/* --- Global Styles & Variables --- */
:root {
    --primary-color: #ff0000;      /* Blue */
    --secondary-color: #037382ff;    /* Green */
    --accent-color: #E63946;      /* Red */
    --highlight-color: #FFC857;   /* Yellow */
    --text-color: #000000;
    --bg-color: #F9F9F9;
    --heading-font: 'Nunito', sans-serif;
    --body-font: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* --- Header & Navigation --- */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--primary-color); /* Updated to Blue */
    text-decoration: none;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    padding: 0 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--highlight-color); /* Updated to Yellow */
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 60vh;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
}

.btn {
    display: inline-block;
    background: var(--accent-color); /* Updated to Red */
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #d02b3a; /* Darker Red on hover */
}

/* --- General Sections & Cards --- */
section {
    padding: 4rem 0;
}

.welcome, .featured-courses, .team-section {
    text-align: center;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3, .card p {
    padding: 1rem;
}

.course-cards, .team-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* --- About Page Specific --- */
.page-header {
    background: var(--secondary-color); /* Updated to Green */
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* --- Courses Page Specific --- */
.course-grid {
    display: grid;
    gap: 2rem;
}

.course-card-full {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    align-items: center;
}

.course-card-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card-full .course-info {
    padding: 2rem;
}

/* --- Contact Page Specific --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#form-status {
    margin-top: 1rem;
    font-weight: bold;
}

.map {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}


/* --- Footer --- */
footer {
    background: var(--text-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 73px; /* Adjust based on header height */
        background: #fff;
        flex-direction: column;
        width: 60%;
        height: calc(100vh - 73px);
        text-align: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        padding: 1.5rem 0;
    }
    
    .hamburger {
        display: block;
    }

    .course-cards, .team-cards, .about-grid, .contact-grid, .course-card-full {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* --- Header & Navigation --- */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    padding: 0 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 60vh;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #e05a39;
}

/* --- General Sections & Cards --- */
section {
    padding: 4rem 0;
}

.welcome, .featured-courses, .team-section {
    text-align: center;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3, .card p {
    padding: 1rem;
}

.course-cards, .team-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* --- About Page Specific --- */
.page-header {
    background: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* --- Courses Page Specific --- */
.course-grid {
    display: grid;
    gap: 2rem;
}

.course-card-full {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    align-items: center;
}

.course-card-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card-full .course-info {
    padding: 2rem;
}

/* --- Contact Page Specific --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#form-status {
    margin-top: 1rem;
    font-weight: bold;
}

.map {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}


/* --- Footer --- */
footer {
    background: var(--text-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 73px; /* Adjust based on header height */
        background: #fff;
        flex-direction: column;
        width: 60%;
        height: calc(100vh - 73px);
        text-align: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        padding: 1.5rem 0;
    }
    
    .hamburger {
        display: block;
    }

    .course-cards, .team-cards, .about-grid, .contact-grid, .course-card-full {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}