/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Inter', sans-serif;
    color: #1c202b;
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    height: 72px;
    width: 100%;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e8f5f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrap {
    display: flex;
    align-items: center;
    padding: 0 16px;
    width: 100%;
}

.logo-link { display: flex; align-items: center; }
.logo { width: 48px; height: 48px; }

.header-content {
    display: flex;
    width: 100%;
    align-items: center;
}

.navigation-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}

.navigation { margin: 0 auto; display: flex; gap: 36px; }

.nav-link {
    font-size: 14px;
    color: #1c202b;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active { color: #008a5f; font-weight: 600; }

.nav-item-group {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.nav-demo-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 1.2;
    padding: 0 14px;
    height: 36px;
    border-radius: 6px;
    color: #ffffff;
    background: #008a5f;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.nav-demo-btn:hover {
    background: #006b4a;
    color: #ffffff;
}

.nav-demo-btn:focus,
.nav-demo-btn:visited,
.nav-demo-btn.active {
    background: #008a5f;
    color: #ffffff;
}

.nav-demo-btn--header {
    height: 46px;
    min-width: 300px;
    padding: 0 18px;
    font-size: 12px;
    line-height: 1.25;
    flex-shrink: 0;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 46px;
    background: #008a5f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn:hover { background: #006b4a; }

/* Hamburger */
.hamburger {
    position: relative; width: 24px; height: 2px;
    background: #58606e; border-radius: 4px; cursor: pointer; z-index: 3; transition: 0.3s;
}
.hamburger::before, .hamburger::after {
    content: ""; position: absolute; height: 2px; right: 0;
    background: #58606e; border-radius: 4px; transition: 0.3s;
}
.hamburger::before { top: -7px; width: 24px; }
.hamburger::after  { top:  7px; width: 24px; }
.toggle-menu { position: absolute; width: 24px; height: 28px; z-index: 4; cursor: pointer; opacity: 0; }
.hamburger, .toggle-menu { display: none; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); display: none; z-index: 1; }
.overlay.open { display: block; }

/* ===== HERO ===== */
.course-hero {
    background: linear-gradient(135deg, #f5fff9 0%, #e8f5ef 100%);
    padding: 72px 0 64px;
    text-align: center;
}

.course-hero-tag {
    display: inline-block;
    background: #008a5f;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.course-hero-title {
    font-size: 52px;
    color: #1a2e23;
    margin-bottom: 20px;
    line-height: 1.15;
}

.course-hero-sub {
    font-size: 18px;
    color: #4a5568;
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

.course-hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.course-cta-btn {
    font-size: 15px;
    height: 52px;
    padding: 0 36px;
    border-radius: 8px;
}

.course-hero-price {
    font-size: 16px;
    color: #008a5f;
    font-weight: 600;
}

/* ===== SECTION SHARED ===== */
.section-title {
    font-size: 36px;
    color: #1a2e23;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: #718096;
    font-size: 15px;
    margin-bottom: 48px;
}

/* ===== FOR WHO ===== */
.for-who {
    padding: 72px 0 56px;
    background: #fff;
}

.for-who-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.for-who-card {
    background: #f5fff9;
    border: 1px solid #b8e8d4;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
}

.for-who-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}

.for-who-text {
    font-size: 16px;
    color: #2d3748;
    line-height: 1.6;
}

.for-who-note {
    text-align: center;
    font-size: 14px;
    color: #718096;
    background: #fafafa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 20px;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== COURSE PLAN ===== */
.course-plan {
    padding: 72px 0;
    background: #f5fff9;
}

.topics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.topic {
    background: #fff;
    border: 1px solid #e8f5f0;
    border-top: 4px solid #008a5f;
    border-radius: 12px;
    padding: 24px 22px;
}

.topic-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a2e23;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topic-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: #008a5f;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
}

.topics-list {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.topics-list li {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
}

/* ===== FAQ ===== */
.faq {
    padding: 72px 0;
    background: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e8f5f0;
    border-radius: 16px;
    overflow: hidden;
}

.faq-item { border-bottom: 1px solid #e8f5f0; }
.faq-item:last-child { border-bottom: none; }

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1c202b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.2s, color 0.2s;
}

.faq-q::after {
    content: "+";
    font-size: 22px;
    font-weight: 400;
    color: #008a5f;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.faq-item.open .faq-q { color: #008a5f; background: #f5fff9; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s;
    padding: 0 24px;
}

.faq-item.open .faq-a {
    max-height: 600px;
    padding: 0 24px 20px;
}

.faq-a p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 8px;
}

.faq-a p:last-child { margin-bottom: 0; }

/* ===== BOTTOM CTA ===== */
.course-bottom-cta {
    padding: 72px 0;
    background: #008a5f;
    text-align: center;
}

.bottom-cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.bottom-cta-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
}

.bottom-cta-btn {
    background: #fff;
    color: #008a5f;
    font-size: 15px;
    height: 52px;
    padding: 0 40px;
    border-radius: 8px;
}

.bottom-cta-btn:hover { background: #e8f5ef; color: #006b4a; }

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: #718096;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.modal-close:hover { background: #f5f5f5; }

.modal-title {
    font-size: 24px;
    color: #1a2e23;
    margin-bottom: 28px;
    text-align: center;
}

.course-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.course-type {
    border: 2px solid #e8f5f0;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: border-color 0.2s;
}

.course-type:hover { border-color: #008a5f; }

.type-title {
    font-weight: 600;
    font-size: 15px;
    color: #1c202b;
    margin-bottom: 8px;
}

.type-price {
    font-size: 20px;
    font-weight: 700;
    color: #008a5f;
    margin-bottom: 16px;
}

.type-btn {
    display: block;
    background: #008a5f;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.type-btn:hover { background: #006b4a; }

/* ===== FOOTER ===== */
.footer {
    background: #f5fff9;
    padding: 40px 0 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.foot-logo { width: 52px; height: 52px; }

.school-name {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    color: #008a5f;
}

.school-name-span { color: #5d616b; font-weight: 400; }

.social-media {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-right: 80px;
    margin-top: -40px;
}

.media-img { width: 24px; height: 24px; }

.footer-line {
    border: none;
    border-top: 1px solid rgba(28,32,43,0.15);
    margin: 20px 0 16px;
}

.footer-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-navigation { display: flex; flex-wrap: wrap; gap: 8px 32px; }

.footer-nav-link {
    font-size: 13px;
    opacity: 0.7;
}

.phone-number { font-size: 13px; opacity: 0.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .hamburger, .toggle-menu { display: block; }

    .header-content { justify-content: flex-end; align-items: center; }

    .navigation-wrap {
        flex-direction: column;
        width: 280px;
        height: 100%;
        position: fixed;
        right: -280px;
        top: 0;
        gap: 10px;
        padding-top: 70px;
        background: #fff;
        transition: 0.3s;
        z-index: 2;
        box-shadow: none;
    }

    .navigation { flex-direction: column; margin: 0 0 0 20px; width: 90%; gap: 0; }
    .nav-link { font-size: 13px; padding: 10px 8px; }
    .nav-link:not(:first-of-type) { border-top: 1px solid #e8f5f0; }

    .nav-item-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-demo-btn--header {
        font-size: 12px;
        margin: 0 auto;
        width: min(100%, 300px);
        min-width: unset;
        height: 40px;
    }

    .btn { margin: 0 auto; width: 220px; height: 40px; font-size: 12px; }

    .header-content input:checked ~ .navigation-wrap { right: 0; box-shadow: -20px 0 40px rgba(0,0,0,0.2); }
    .header-content input:checked ~ .hamburger { background: transparent; }
    .header-content input:checked ~ .hamburger::before { top: 0; transform: rotate(-45deg); }
    .header-content input:checked ~ .hamburger::after  { top: 0; transform: rotate(45deg); }

    .course-hero-title { font-size: 38px; }
    .for-who-grid { grid-template-columns: 1fr; }
    .topics { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 28px; }
}

@media (max-width: 640px) {
    .course-hero { padding: 48px 0 40px; }
    .course-hero-title { font-size: 30px; }
    .course-hero-sub { font-size: 15px; }
    .topics { grid-template-columns: 1fr; }
    .course-types { grid-template-columns: 1fr; }
    .bottom-cta-title { font-size: 28px; }
    .social-media { margin-right: 0; justify-content: center; margin-top: 0; margin-bottom: 16px; }
    .footer-text { flex-direction: column; gap: 12px; text-align: center; }
    .footer-navigation { justify-content: center; }
}
