/* ═══════════════════════════════════════════════════
   RMA Educacional — Modern Landing Page
   ═══════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
    --green-500: #00C853;
    --green-600: #00A843;
    --green-700: #008F39;
    --orange-500: #FF6B35;
    --orange-600: #E55A2B;
    --orange-700: #D1491F;
    --yellow-400: #FFD600;
    --dark-900: #0D1117;
    --dark-800: #161B22;
    --dark-700: #21262D;
    --dark-600: #30363D;
    --gray-100: #F6F8FA;
    --gray-200: #E6EDF3;
    --gray-300: #D0D7DE;
    --gray-400: #8B949E;
    --gray-500: #6E7681;
    --gray-600: #484F58;
    --text-primary: #1A1A2E;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --white: #ffffff;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 16px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.08);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-family: 'Nunito Sans', sans-serif;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    text-align: left;
    background-color: var(--white);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ── Scroll Reveal Base ── */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-spring);
    will-change: opacity, transform;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s var(--ease-smooth);
}

header.header--scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.header-gradient-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--orange-500), var(--green-500));
    background-size: 200% 100%;
    animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 40px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.logo img {
    height: 48px;
    border-radius: var(--radius-sm);
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.25s var(--ease-smooth);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-500);
    transition: width 0.3s var(--ease-spring);
    border-radius: 1px;
}

nav a:hover {
    color: var(--green-600);
}

nav a:hover::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
    transform-origin: center;
}

.hamburger--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger--active span:nth-child(2) {
    opacity: 0;
}
.hamburger--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero {
    background: url('../images/hero-bg.webp') center/cover no-repeat;
    color: #fff;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch; /* content fills full section height */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(13,17,23,0.85) 0%, rgba(13,17,23,0.6) 100%);
    z-index: 0;
    /* height set dynamically via JS to align with hero-image-wrapper bottom */
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 80px 40px 0;
}

.hero-label {
    font-size: 13px;
    color: var(--green-500);
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-text h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 32px;
    color: var(--white);
    font-weight: 400;
}

.hero-text h1 span {
    color: var(--green-500);
    display: block;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.feature-item {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-dot {
    width: 8px;
    height: 8px;
    background: var(--green-500);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--green-500);
}

.hero-text {
    align-self: start;
    padding-bottom: 60px; /* breathing room so text doesn't sit at the very bottom */
}

.hero-text > p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 36px;
    color: rgba(255,255,255,0.75);
    max-width: 500px;
}

.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    align-self: start;
    margin-top: 32px; /* aligns image top with the h1 (accounts for hero-label height + margin) */
    margin-bottom: 0;
}

/* ─── Geometric shape behind professor ─── */
.hero-shape {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 80%;
    background: linear-gradient(160deg, var(--green-500), var(--green-700));
    border-radius: 200px 200px 24px 24px;
    opacity: 0.18;
    z-index: 0;
    filter: blur(2px);
}

/* ─── Image wrapper ─── */
.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    filter: drop-shadow(0 8px 30px rgba(0,0,0,0.35));
    transition: transform 0.5s var(--ease-spring);
    display: block;
    position: relative;
}

.hero-image:hover .hero-image-wrapper img {
    transform: scale(1.02) translateY(-4px);
}

/* ─── Contact shadow at the base ─── */
.hero-contact-shadow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 16px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(6px);
}

/* ─── Decorative anchor bar ─── */
.hero-base-bar {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green-500), transparent);
    border-radius: 2px;
    z-index: 3;
    opacity: 0.6;
}

/* ─── Decorative dots grid (z-index layering) ─── */
.hero-dots {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
}

.hero-dots--back {
    top: 8%;
    right: -12px;
    z-index: 0;
    opacity: 0.7;
}

.hero-dots--front {
    bottom: 25%;
    left: -16px;
    z-index: 4;
    opacity: 0.5;
    width: 64px;
    height: 64px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.22) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
}

/* Hero Wave Divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 1;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ═══════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════ */
.stats-bar {
    background: var(--gray-100);
    padding: 48px 0;
    border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    color: var(--green-600);
    line-height: 1;
}

.stat-plus {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: var(--green-600);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   CTA BUTTONS
   ═══════════════════════════════════════════════════ */
.cta-button {
    display: inline-block;
    color: var(--white);
    padding: 16px 48px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-spring);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
    isolation: isolate; /* Create new stacking context */
}

/* Base background */
.cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    z-index: -2;
}

/* Hover background */
.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

.cta-button--large {
    padding: 20px 60px;
    font-size: 17px;
}

/* Pulse animation for hero CTA */
.cta-pulse {
    animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(255, 107, 53, 0.55); }
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* ═══════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════ */
.about {
    background: var(--gray-100);
    padding: 100px 0 120px;
    position: relative;
}

.about h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    margin-bottom: 56px;
    text-align: center;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.about-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: left;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-smooth);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.about-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--green-700));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-spring);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.about-card:hover::after {
    transform: scaleX(1);
}

.about-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--white);
}

.about-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.about-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Section Wave Dividers */
.section-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.section-wave svg {
    width: 100%;
    height: 60px;
}

/* ═══════════════════════════════════════════════════
   COURSES SECTION
   ═══════════════════════════════════════════════════ */
.courses {
    background: var(--white);
    padding: 100px 0;
}

.courses h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    margin-bottom: 56px;
    text-align: center;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.courses h2 em {
    font-style: italic;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.65em;
    display: block;
    margin-top: 8px;
}

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

.topic-pill {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s var(--ease-spring);
    color: var(--text-secondary);
    cursor: default;
}

.topic-pill:hover {
    border-color: var(--green-500);
    color: var(--green-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.15);
}

.courses-footer {
    background: var(--gray-100);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 48px;
    border: 1px solid var(--gray-200);
}

.courses-footer p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   PRICING SECTION
   ═══════════════════════════════════════════════════ */
.pricing {
    background: var(--dark-900);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.shape--1 {
    width: 400px;
    height: 400px;
    background: var(--green-500);
    top: -100px;
    right: -100px;
}

.shape--2 {
    width: 300px;
    height: 300px;
    background: var(--orange-500);
    bottom: -80px;
    left: -80px;
}

.price-box {
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-700) 100%);
    color: var(--white);
    padding: 56px 48px;
    border-radius: var(--radius-xl);
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 168, 67, 0.3);
}

.price-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 20px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.price-box h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--white);
    font-weight: 400;
}

.price-box .old-price {
    font-size: 16px;
    text-decoration: line-through;
    opacity: 0.7;
    margin-bottom: 8px;
    color: var(--white);
}

.price-box .new-price {
    font-size: 80px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--yellow-400);
    font-family: 'Bebas Neue', sans-serif;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(255, 214, 0, 0.3);
}

.price-box .period {
    font-size: 16px;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.85);
}

.price-secure-text {
    font-size: 14px;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.75);
}

.price-box img {
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 24px auto 0;
    opacity: 0.9;
}

.price-box .cta-button {
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

/* ═══════════════════════════════════════════════════
   BONUS SECTION
   ═══════════════════════════════════════════════════ */
.bonus {
    padding: 100px 0;
    background: var(--gray-100);
}

.bonus h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    margin-bottom: 56px;
    text-align: center;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 18px;
}

.bonus h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--orange-500));
    border-radius: 2px;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.bonus-item {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.bonus-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--green-500), var(--orange-500));
    transition: width 0.3s var(--ease-smooth);
}

.bonus-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-500);
}

.bonus-item:hover::before {
    width: 6px;
}

.bonus-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.bonus-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0;
}

.bonus-item h4 {
    color: var(--text-primary);
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
}

.bonus-item p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-left: 56px;
}

/* ═══════════════════════════════════════════════════
   TEACHERS SECTION
   ═══════════════════════════════════════════════════ */
.teachers {
    background: var(--white);
    padding-top: 100px;
}

.teachers h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    margin-bottom: 56px;
    text-align: center;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 18px;
}

.teachers h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--orange-500));
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════
   TEACHERS SECTION (New Layout)
   ═══════════════════════════════════════════════════ */
.teachers-title {
    background: var(--dark-900);
    padding: 60px 0 20px;
    text-align: center;
}

.teachers-title h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.teacher-section {
    background-color: var(--dark-900);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.teacher-section--alt {
    background-color: var(--dark-800);
}

.teacher-section .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center; /* Changed from end to center for better balance */
}

/* Zig-Zag Layout Modifier */
.teacher-section--reverse .container {
    grid-template-columns: 0.8fr 1.2fr;
}

.teacher-section--reverse .teacher-content {
    order: 2;
}

.teacher-section--reverse .teacher-photo {
    order: 1;
}

/* Tech Badges */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--gray-200);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s var(--ease-smooth);
    letter-spacing: 0.02em;
}

.tech-badge:hover {
    background: rgba(0, 200, 83, 0.1);
    border-color: var(--green-500);
    color: var(--green-500);
    transform: translateY(-2px);
}

.tech-badge--highlight {
    background: rgba(0, 200, 83, 0.15);
    border-color: var(--green-500);
    color: var(--green-500);
}

.teacher-content {
    max-width: 650px;
    align-self: center;
    padding-bottom: 80px;
}

.teacher-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
}

.teacher-content h2 span {
    color: var(--green-500);
}

.teacher-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.85);
}

.teacher-content p strong {
    color: var(--white);
    font-weight: 700;
}

.teacher-content p a {
    color: var(--green-500);
    text-decoration: none;
    font-weight: 700;
}

.teacher-content p a:hover {
    text-decoration: underline;
}

.teacher-photo {
    position: relative;
    display: flex;
    justify-content: center;
}

.teacher-photo img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    /* Optional: add some style/filter to match Hero vibes? */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    transition: transform 0.5s var(--ease-smooth);
}

.teacher-section:hover .teacher-photo img {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .teacher-section {
        padding: 60px 0;
    }
    
    .teacher-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .teacher-content {
        margin: 0 auto;
        padding: 0 16px;
    }
    
    .teacher-photo {
        margin: 0 auto;
        order: 2; /* Image below text */
    }
    
    .teacher-content {
        order: 1;
    }

    /* Force mobile stack order even for reversed sections */
    .teacher-section--reverse .teacher-content {
        order: 1;
    }
    .teacher-section--reverse .teacher-photo {
        order: 2;
    }
}

/* ═══════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════ */
.faq {
    background: var(--gray-100);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-500), var(--orange-500));
}

.faq h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    margin-bottom: 56px;
    text-align: center;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 18px;
}

.faq h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--orange-500));
    border-radius: 2px;
}

.faq-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 56px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-smooth);
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.faq-toggle {
    width: 100%;
    padding: 24px 28px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    font-family: inherit;
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.faq-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-icon::before {
    content: '?';
    color: white;
    font-weight: 800;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.faq-item h4 {
    color: var(--text-primary);
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: transform 0.3s var(--ease-spring);
    display: flex;
}

.faq-item--open .faq-chevron {
    transform: rotate(180deg);
    color: var(--green-500);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-smooth), padding 0.4s var(--ease-smooth);
}

.faq-item--open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 28px 24px 72px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.faq-item--open {
    border-color: var(--green-500);
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.1);
}

.faq-cta {
    text-align: center;
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px solid var(--gray-200);
}

/* ═══════════════════════════════════════════════════
   GUARANTEE SECTION
   ═══════════════════════════════════════════════════ */
.guarantee {
    background: var(--dark-900);
    color: var(--white);
    padding: 80px 0;
}

.guarantee-content {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
    background: var(--dark-800);
    border-radius: var(--radius-xl);
    border: 1px solid var(--dark-600);
}

.guarantee-icon {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.guarantee-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.guarantee-text h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--green-500);
    font-weight: 400;
    letter-spacing: 2px;
}

.guarantee-text p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
footer {
    background: var(--dark-800);
    color: rgba(255,255,255,0.5);
    padding: 32px 0;
    font-size: 13px;
    border-top: 1px solid var(--dark-600);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

.footer-logo {
    height: 32px;
    border-radius: 2px;
}

.footer-copy p {
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .header-content {
        padding: 14px 24px;
    }

    /* Hamburger visible */
    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 0;
        box-shadow: -8px 0 30px rgba(0,0,0,0.1);
        transition: right 0.35s var(--ease-smooth);
        z-index: 100;
    }

    nav.nav--open {
        right: 0;
    }

    nav a {
        padding: 16px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--gray-200);
    }

    nav a::after {
        display: none;
    }

    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 48px 24px 0;
        min-height: auto;
    }

    .hero-text {
        padding-bottom: 0;
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-image {
        max-width: 300px;
        margin: 0 auto;
        align-self: end;
    }

    .hero-shape {
        width: 70%;
        height: 70%;
    }

    .hero-dots {
        display: none;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Courses */
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .topic-pill {
        font-size: 13px;
        padding: 12px 16px;
    }

    /* Bonus */
    .bonus-grid {
        grid-template-columns: 1fr;
    }

    /* Teachers */
    .teacher-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .teacher-image {
        width: 100%;
        min-height: 320px;
    }

    .teacher-info {
        padding: 32px 24px;
        max-width: 100%;
    }

    /* Guarantee */
    .guarantee-content {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Section headings */
    .about h2,
    .courses h2,
    .bonus h2,
    .teachers h2,
    .faq h2 {
        font-size: 26px;
    }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — MOBILE (480px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .topics-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        padding: 40px 20px 80px;
    }

    .faq-toggle {
        padding: 20px;
    }

    .faq-answer p {
        padding: 0 20px 20px 20px;
    }

    .faq-header {
        gap: 12px;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
    }

    .faq-item h4 {
        font-size: 15px;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 14px;
    }

    .cta-button--large {
        padding: 16px 40px;
        font-size: 15px;
    }

    .price-box {
        padding: 40px 24px;
    }

    .price-box .new-price {
        font-size: 64px;
    }

    .bonus-item p {
        margin-left: 0;
    }
}

