/* ======================================================= */
/* == IMPORTS & ROOT VARIABLES == */
/* ======================================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Work+Sans:wght@300;400;500;700&display=swap');

:root {
     --bg-color: #FFF1CA;
    /* NEW: Warm, light cream canvas */
    --text-color: #2D4F2B;
    /* NEW: Dark forest green for main text */
    --dark-bg: #2D4F2B;
    /* NEW: Dark forest green for dark sections */
    --accent-blue: #FFB823;
    /* NEW: Golden Yellow (replaces blue as primary accent) */
    --accent-magenta: #708A58;
    /* NEW: Olive Green (replaces magenta as secondary accent) */
    --accent-yellow: #FFB823;
    /* NEW: Golden Yellow (for stats & gradients) */

    --accent-gradient: linear-gradient(45deg, var(--accent-magenta), var(--accent-yellow));
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Work Sans', sans-serif;
}

/* ======================================================= */
/* == GLOBAL STYLES == */
/* ======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; 
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 400;
}

h2.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
}

h2.section-title.left-align {
    text-align: left;
    left: 0;
    transform: none;
}
h2.section-title.left-align::after {
    left: 0;
    transform: none;
}

.content-section {
    padding: 100px 0;
    position: relative;
    /* overflow: hidden; */
}
.alt-bg {
    background-color: var(--alt-bg);
}
.dark-bg {
    background-color: var(--dark-bg);
    color: #f0f0f0;
}

/* ======================================================= */
/* == HEADER == */
/* ======================================================= */
.course-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}
.course-header.scrolled {
    background-color: rgba(248, 245, 242, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 30px;
    background-color: #FFB823;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    letter-spacing: 1px;
    color: var(--text-color);
}
.course-header.scrolled .logo { color: var(--text-color); }
/* Dark bg header text */
.course-header:not(.scrolled) .logo { color: var(--text-color); }
.course-header:not(.scrolled) .nav-button {
    background-color: white;
    color: var(--text-color) !important;
}

.nav-button {
    background: var(--accent-blue);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}
.nav-button:hover {
    transform: scale(1.05);
    background-color: var(--accent-magenta);
    color: white !important;
}

/* ======================================================= */
/* == HERO SECTION == */
/* ======================================================= */
#course-hero {
    padding-top: 120px; /* Header offset */
    padding-bottom: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--alt-bg) 0%, var(--bg-color) 100%);
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-text .hero-tag {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 15px;
    opacity: 0; /* For JS animation */
}

.hero-text .hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    color: var(--text-color);
    margin-bottom: 25px;
    opacity: 0; /* For JS animation */
}

.hero-text .hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 35px;
    max-width: 500px;
    opacity: 0; /* For JS animation */
}

.cta-button.hero-cta {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--accent-blue);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    opacity: 0; /* For JS animation */
}
.cta-button.hero-cta:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-light);
    background-color: var(--accent-magenta);
}

.hero-image-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transform: translateX(50px); /* For JS animation */
    opacity: 0; /* For JS animation */
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======================================================= */
/* == HIGHLIGHTS SECTION == */
/* ======================================================= */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.highlight-item {
    padding: 20px;
    
}

.highlight-item i {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.highlight-item h3 {
    font-size: 1.1rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.highlight-item p {
    font-size: 1.5rem;
    color: var(--text-color);
    font-family: var(--font-heading);
}

/* ======================================================= */
/* == MODULES SECTION == */
/* ======================================================= */
.modules-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.module-list {
    /* Add padding at the end so the last item can be centered */
    padding-bottom: 30vh;
}

.module-item {
    padding: 40px 0;
    border-bottom: 1px solid #ddd;
    opacity: 0.4; /* Dim all non-active items */
    transition: opacity 0.4s ease;
}
.module-item:first-child {
    padding-top: 0;
}

.module-item h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
    transition: color 0.4s ease;
}
.module-item p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    max-width: 450px;
}

/* --- The "Active" State --- */
.module-item.is-active {
    opacity: 1;
}
.module-item.is-active h3 {
    color: var(--accent-blue);
}

/* --- The Sticky Image Panel --- */
.module-visual {
    height: 100%;
}
.module-visual-sticky {
    position: sticky;
    top: 120px; /* Offset for header */
    width: 100%;
    height: 70vh;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--alt-bg);
    box-shadow: var(--shadow-light);
}

.module-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    scale: 1.05;
    transition: opacity 0.6s ease-in-out, scale 0.6s ease-in-out;
}

.module-image.is-active {
    opacity: 1;
    scale: 1;
}

/* ======================================================= */
/* == MENTOR SECTION == */
/* ======================================================= */
.mentor-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 60px;
}
.mentor-image-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}
.mentor-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mentor-text h3 {
    font-size: 2.5rem;
    color: var(--accent-yellow);
    margin-bottom: 10px;
}
.mentor-text p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
    max-width: 600px;
}
.mentor-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-weight: 500;
    font-size: 1rem;
}
.mentor-stats span {
    display: flex;
    align-items: center;
}
.mentor-stats i {
    color: var(--accent-blue);
    margin-right: 8px;
    font-size: 1.2rem;
}

/* ======================================================= */
/* == FAQ, CTA, FOOTER (Re-using from your styles) == */
/* ======================================================= */

/* --- FAQ --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #ddd; padding: 20px 0; }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
}
.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: #2D4F2B
;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.faq-answer p { padding-top: 15px; }

/* --- CTA --- */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--accent-gradient);
}
.cta-section h2, .cta-section p { color: white; }
.cta-section h2 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 20px;
}
.cta-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}
.cta-button {
    background: white;
    color: var(--text-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 40px;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #ddd;
    background-color: var(--bg-color);
    margin-top: -1px;
}

/* ======================================================= */
/* == RESPONSIVE DESIGN == */
/* ======================================================= */
@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }
    .hero-image-container {
        grid-row: 1; /* Image on top on mobile */
        margin-bottom: 30px;
    }
    .hero-text .hero-title {
        font-size: 3rem;
    }
    .modules-layout {
        grid-template-columns: 1fr;
    }
    .module-visual {
        display: none; /* Hide sticky image on mobile */
    }
    .module-list {
        padding-bottom: 0;
    }
    .module-item {
        opacity: 1; /* Show all items */
    }
    .mentor-layout {
        grid-template-columns: 1fr;
    }
    .mentor-image-container {
        max-width: 400px;
        margin: 0 auto 30px auto;
    }
}

@media (max-width: 768px) {
    .content-section { padding: 80px 0; overflow:hidden;}
    h2.section-title { margin-bottom: 60px; }
    .header-container { padding: 12px 16px; }
    .logo { font-size: 24px; }
    .nav-button { padding: 10px 20px; font-size: 0.9rem; }
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}