/* ========================================
   Foothills Pharmacy Tech — Design System
   Synthesized from: Cerebral, Brilliant, BetterHelp, Headspace, Linear
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
    /* Primary brand */
    --teal: #0d6b6e;
    --teal-deep: #074043;
    --teal-light: #e8f4f4;
    --teal-muted: #4a9a9c;

    /* Warm backgrounds */
    --bg-white: #ffffff;
    --bg-warm: #f7f0e6;
    --bg-soft: #f9f4f2;
    --bg-green: #ebf5e6;

    /* Legacy aliases (keep for portal/admin compat) */
    --warm-cream: #f7f0e6;
    --warm-light: #f9f4f2;
    --warm-green: #ebf5e6;
    --surface: #ffffff;
    --surface-warm: #FAF7F3;
    --cream: #FAF7F3;
    --white: #ffffff;

    /* Text hierarchy (Headspace — NOT pure black) */
    --text-primary: #2D2C2B;
    --text-body: #44423F;
    --text-muted: #63605D;

    /* Legacy aliases */
    --text-secondary: #44423F;
    --gray-100: #edecea;
    --gray-200: #E2DED9;
    --gray-300: #c4c1bc;
    --gray-500: #63605D;
    --gray-700: #44423F;
    --gray-800: #2D2C2B;
    --gray-900: #2D2C2B;

    /* Borders & shadows */
    --border: #E2DED9;
    --border-light: #EDE9E3;

    /* Accents */
    --accent-green: #397a4a;
    --accent-amber: #d97706;
    --red: #c53030;
    --green: #276749;

    /* Font — NO serif anywhere */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--teal);
    text-decoration: none;
    transition: opacity 200ms ease;
}
a:hover { opacity: 0.7; }

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


/* ========== NAVBAR (Brilliant.org pattern) ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: transparent;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1216px;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    text-decoration: none;
}
.nav-brand:hover { opacity: 1; }

.brand-logo {
    height: 32px;
    width: auto;
}

.brand-logo-svg {
    height: 44px;
    width: auto;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--teal-deep);
    line-height: 1.2;
    letter-spacing: 0.01em;
    font-family: 'EB Garamond', 'Merriweather', Georgia, serif;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0;
    transition: opacity 200ms ease;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
}
.nav-link:hover {
    opacity: 0.6;
    color: var(--text-primary);
}
.nav-link.active { color: var(--teal); }
.nav-link-portal {
    color: var(--teal) !important;
    font-weight: 700 !important;
    border: 1.5px solid var(--teal);
    border-radius: 6px;
    padding: 0.35rem 0.9rem !important;
}
.nav-link-portal:hover {
    background: var(--teal) !important;
    color: white !important;
}

/* "Log in" — outline pill */
.nav-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 54px;
    text-decoration: none;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: border-color 200ms ease;
    white-space: nowrap;
}
.nav-btn-secondary:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
    opacity: 1;
}

/* "Get started" — solid teal pill with 3D shadow */
.nav-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-sans);
    color: #ffffff !important;
    background: var(--teal);
    border: 2px solid transparent;
    border-radius: 54px;
    text-decoration: none;
    margin-left: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 0 0 var(--teal-deep);
    transform: translateY(-2px);
    transition: all 200ms cubic-bezier(0, 0, 0.2, 1);
    white-space: nowrap;
}
.nav-btn-primary:hover {
    opacity: 0.9;
    color: #ffffff !important;
}
.nav-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 0 0 var(--teal-deep);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s;
}

/* User dropdown */
.nav-dropdown {
    position: relative;
    margin-left: 0.5rem;
}
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 0.3rem 0.75rem 0.3rem 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}
.nav-dropdown-toggle:hover {
    border-color: var(--gray-300);
    background: var(--bg-soft);
}
.nav-user-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.nav-user-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-body);
}
.nav-dropdown-arrow {
    color: var(--text-muted);
    transition: transform 0.2s ease;
}
.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(20, 19, 19, 0.15);
    padding: 0.5rem 0;
    z-index: 1001;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    transition: all 0.15s ease;
}
.nav-dropdown-item:hover {
    background: var(--bg-soft);
    color: var(--teal);
    opacity: 1;
}
.nav-dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.3rem 0;
}
.nav-dropdown-logout { color: var(--text-muted); }
.nav-dropdown-logout:hover { color: var(--red); background: #fef2f2; }


/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0;
}
.btn:hover { opacity: 1; }

.btn-primary {
    background: var(--teal);
    color: white;
    box-shadow: 0 4px 0 0 var(--teal-deep);
    transform: translateY(-2px);
}
.btn-primary:hover {
    background: var(--teal);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 0 0 var(--teal-deep), 0 8px 20px rgba(13,107,110,0.2);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 0 0 var(--teal-deep);
}

.btn-secondary {
    background: var(--teal);
    color: white;
}
.btn-secondary:hover {
    background: var(--teal-deep);
    color: white;
}

.btn-outline-dark {
    background: transparent;
    color: var(--teal);
    border: 1.5px solid var(--teal);
}
.btn-outline-dark:hover {
    background: var(--teal);
    color: white;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background: white;
    color: var(--teal-deep);
    border-color: white;
}

.btn-lg { padding: 1rem 2.5rem; font-size: 0.95rem; }
.btn-sm { padding: 0.45rem 1.2rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* Homepage buttons with press physics */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.25rem;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: var(--font-sans);
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0.01em;
    transition: all 200ms cubic-bezier(0, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.hp-btn:hover { opacity: 1; }

.hp-btn-primary {
    background: var(--teal);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 3px 0 0 var(--teal-deep), 0 6px 16px rgba(13,107,110,0.2);
}
.hp-btn-primary:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 4px 0 0 var(--teal-deep), 0 8px 24px rgba(13,107,110,0.3);
}
.hp-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 0 0 var(--teal-deep), 0 2px 8px rgba(13,107,110,0.15);
}

.hp-btn-secondary {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
    padding: 0.75rem 2.25rem;
}
.hp-btn-secondary:hover {
    background: var(--teal);
    color: white;
}

/* Ripple on hp-btn click */
.hp-btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 400ms ease, height 400ms ease;
}
.hp-btn:active::after { width: 300px; height: 300px; }


/* ========== SCROLL REVEAL (all pages) ========== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms cubic-bezier(0.32, 0.94, 0.6, 1),
                transform 600ms cubic-bezier(0.32, 0.94, 0.6, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger for card grids */
.hp-value-card.scroll-reveal:nth-child(1) { transition-delay: 0ms; }
.hp-value-card.scroll-reveal:nth-child(2) { transition-delay: 100ms; }
.hp-value-card.scroll-reveal:nth-child(3) { transition-delay: 200ms; }
.hp-testimonial.scroll-reveal:nth-child(1) { transition-delay: 0ms; }
.hp-testimonial.scroll-reveal:nth-child(2) { transition-delay: 120ms; }
.hp-testimonial.scroll-reveal:nth-child(3) { transition-delay: 240ms; }

/* Hero stagger animation */
.hp-stagger {
    opacity: 0;
    transform: translateY(24px);
    animation: staggerIn 700ms cubic-bezier(0.32, 0.94, 0.6, 1) forwards;
}
.hp-stagger[data-delay="0"] { animation-delay: 100ms; }
.hp-stagger[data-delay="1"] { animation-delay: 250ms; }
.hp-stagger[data-delay="2"] { animation-delay: 400ms; }
.hp-stagger[data-delay="3"] { animation-delay: 550ms; }

@keyframes staggerIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Legacy interior page reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ========== WAVE DIVIDERS ========== */
.wave-divider {
    width: 100%;
    display: block;
    line-height: 0;
    overflow: hidden;
}
.wave-divider svg {
    width: 100%;
    height: auto;
    display: block;
}
.wave-cream-to-white { background: var(--bg-warm); }
.wave-white-to-green { background: var(--bg-white); }
.wave-green-to-white { background: var(--bg-green); }
.wave-white-to-dark { background: var(--bg-white); }
.wave-dark-to-cream { background: var(--teal-deep); }
.wave-cream-to-white-bottom { background: var(--bg-warm); }


/* ========== HOMEPAGE: HERO ========== */
.hp-hero {
    background: var(--bg-warm);
    padding: 8rem 0 4rem;
    padding-top: calc(64px + 5rem);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hp-hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hp-hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal);
    margin-bottom: 1rem;
}

.hp-hero-text h1 {
    font-family: var(--font-sans);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.hp-hero-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 2rem;
    max-width: 520px;
}

.hp-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hp-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.hp-stat {
    background: white;
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.06);
}

.hp-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--teal);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hp-stat-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.hp-stat-seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hp-ptcb-seal {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 0.35rem;
}

/* Floating decorative shapes — hero only */
.hp-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.hp-deco-circle-1 {
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(13, 107, 110, 0.06);
    top: -40px; right: 8%;
    animation: floatSlow 8s ease-in-out infinite;
}
.hp-deco-circle-2 {
    width: 100px; height: 100px; border-radius: 50%;
    background: rgba(57, 122, 74, 0.07);
    bottom: 60px; left: 5%;
    animation: floatSlow 10s ease-in-out infinite 2s;
}
.hp-deco-triangle {
    width: 0; height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 30px solid rgba(217, 119, 6, 0.1);
    top: 30%; right: 3%;
    transform: rotate(15deg);
    animation: floatSlow 12s ease-in-out infinite 1s;
}
.hp-deco-dot-1 {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(13, 107, 110, 0.12);
    top: 55%; left: 8%;
    animation: floatSlow 7s ease-in-out infinite 3s;
}
.hp-deco-dot-2 {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(217, 119, 6, 0.15);
    top: 20%; left: 15%;
    animation: floatSlow 9s ease-in-out infinite 4s;
}
.hp-deco-circle-3 {
    width: 140px; height: 140px; border-radius: 50%;
    background: rgba(57, 122, 74, 0.08);
    top: -30px; left: -40px;
    animation: floatSlow 11s ease-in-out infinite 1.5s;
}
.hp-deco-dot-3 {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(13, 107, 110, 0.12);
    bottom: 20%; right: 5%;
    animation: floatSlow 8s ease-in-out infinite 2.5s;
}
.hp-deco-circle-dark-1 {
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    top: -60px; right: -60px;
    animation: floatSlow 14s ease-in-out infinite;
}
.hp-deco-circle-dark-2 {
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    bottom: -30px; left: 10%;
    animation: floatSlow 10s ease-in-out infinite 3s;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}


/* ========== HOMEPAGE: SECTIONS ========== */
.hp-section {
    padding: 5rem 0;
}
.hp-section-white { background: var(--bg-white); }
.hp-section-green { background: var(--bg-soft); }
.hp-section-dark { background: var(--teal-deep); color: white; }
.hp-section-cream { background: var(--bg-warm); }

.hp-section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3.5rem;
}
.hp-section-header h2 {
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.hp-section-dark .hp-section-header h2 { color: white; }
.hp-section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}
.hp-section-dark .hp-section-header p { color: rgba(255,255,255,0.6); }


/* ========== HOMEPAGE: VALUE CARDS ========== */
.hp-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hp-value-card {
    padding: 2.25rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 300ms ease, transform 300ms ease;
}
.hp-value-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.hp-value-card h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.hp-value-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}


/* ========== HOMEPAGE: COMPARISON TABLE ========== */
.hp-comparison {
    max-width: 820px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hp-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.hp-compare-table thead th {
    padding: 1.1rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-light);
    text-align: center;
    background: white;
}
.hp-compare-table thead th.hp-compare-us {
    color: var(--teal);
    background: var(--teal-light);
    border-bottom-color: var(--teal);
    font-size: 0.85rem;
}
.hp-compare-table tbody td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid #f0efed;
    color: var(--text-body);
}
.hp-compare-table tbody tr:last-child td { border-bottom: none; }
.hp-compare-table .hp-compare-label {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    padding-left: 1.5rem;
}
.hp-compare-table .hp-compare-us {
    background: #f5fbfb;
    color: var(--teal-deep);
    font-weight: 600;
}
.hp-check {
    color: var(--accent-green);
    font-weight: 700;
}


/* ========== HOMEPAGE: CEREBRAL VERTICAL TIMELINE ========== */
.cerebral-timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* The background track (light gray) */
.cerebral-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: #e2e8e8;
    z-index: 0;
}

/* The progress fill (teal, grows on scroll) */
.cerebral-timeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 0%;
    background: var(--teal);
    z-index: 1;
    transition: height 0.1s linear;
}

/* Each step row */
.cerebral-step {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 100px;
}
.cerebral-step:last-child { margin-bottom: 0; }

/* Dot on the vertical line */
.cerebral-step::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #e2e8e8;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px #e2e8e8;
    z-index: 3;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Dot turns teal when step is revealed */
.cerebral-step.revealed::before {
    background: var(--teal);
    box-shadow: 0 0 0 3px rgba(13, 107, 110, 0.25), 0 0 12px rgba(13, 107, 110, 0.15);
}

/* Default: illustration LEFT, text RIGHT */
.cerebral-step-visual {
    width: calc(50% - 24px);
    display: flex;
    justify-content: flex-end;
    padding-right: 2rem;
    flex-shrink: 0;
}

.cerebral-step-text {
    width: calc(50% - 24px);
    padding-left: 2.5rem;
    margin-left: auto;
}

/* Reversed: text LEFT, illustration RIGHT */
.cerebral-step-reverse .cerebral-step-visual {
    order: 2;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 2.5rem;
    margin-left: auto;
}
.cerebral-step-reverse .cerebral-step-text {
    order: 1;
    text-align: right;
    padding-left: 0;
    padding-right: 2rem;
    margin-left: 0;
}

/* The gap in the center for the line */
.cerebral-step-visual,
.cerebral-step-text {
    position: relative;
}

.cerebral-step-illustration {
    width: 180px;
    height: auto;
    flex-shrink: 0;
}

.cerebral-step-photo {
    position: relative;
    width: 180px;
    height: 135px;
}
.cerebral-step-img {
    width: 180px;
    height: 135px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.cerebral-step-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.cerebral-step-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.cerebral-step-text p {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.65;
}

/* Chatbot typing indicator */
.chat-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    align-items: center;
}
.chat-typing span {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: chatBounce 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}


/* ========== HOMEPAGE: INSTRUCTOR ========== */
.hp-instructor {
    display: flex;
    gap: 3.5rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.hp-instructor-photo-wrap { flex-shrink: 0; }

.hp-instructor-photo {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hp-instructor-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal-muted);
    margin-bottom: 0.5rem;
}
.hp-instructor-text h2 {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}
.hp-instructor-title {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.hp-instructor-text > p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.hp-instructor-creds {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hp-cred { display: flex; flex-direction: column; }
.hp-cred-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.01em;
}
.hp-cred-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.45);
    margin-top: 0.15rem;
}


/* ========== HOMEPAGE: TESTIMONIALS ========== */
.hp-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hp-testimonial {
    background: white;
    padding: 2.25rem 2rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hp-testimonial blockquote {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-body);
    margin: 0 0 1.5rem;
    padding: 0;
    border: none;
    font-style: normal;
}
.hp-testimonial-author {
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}
.hp-testimonial-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}
.hp-testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* ========== HOMEPAGE: CTA ========== */
.hp-cta { padding: 5rem 0 6rem; }

.hp-cta-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.hp-cta-inner h2 {
    font-family: var(--font-sans);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.hp-cta-inner p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}


/* ========== INTERIOR PAGES: SECTIONS ========== */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-soft); }

/* Page header — used by portal/enroll/success/dashboard/accounts */
.page-header {
    padding: 7rem 0 2rem;
    background: var(--bg-warm);
    color: var(--text-primary);
}
.page-header h1 {
    font-family: var(--font-sans);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.page-header p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
}
.page-header-sm {
    padding: 7.5rem 0 2rem;
    text-align: center;
    background: var(--bg-warm);
    color: var(--text-primary);
}

/* Inline page title — modern interior pages */
.page-inline-title {
    font-family: var(--font-sans);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.page-inline-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

/* Content narrow container */
.content-narrow {
    max-width: 720px;
    margin: 0 auto;
}
.content-narrow h2 {
    font-family: var(--font-sans);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 3rem 0 1rem;
    padding-bottom: 0;
}
.content-narrow h2:first-child { margin-top: 0; }
.content-narrow h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.content-narrow p {
    margin-bottom: 1.25rem;
    color: var(--text-body);
    line-height: 1.8;
}
.content-narrow ul, .content-narrow ol {
    margin-bottom: 1.25rem;
    padding-left: 0;
    list-style: none;
}
.content-narrow li {
    margin-bottom: 0.6rem;
    color: var(--text-body);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}
.content-narrow ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
}
.content-narrow ol {
    counter-reset: item;
}
.content-narrow ol li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--teal);
    font-size: 0.9rem;
}


/* ========== CTA INLINE (interior pages) ========== */
.cta-inline {
    margin-top: 3.5rem;
    padding: 2.5rem;
    background: var(--bg-warm);
    text-align: center;
    border-radius: 12px;
}
.cta-inline h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.cta-inline p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}


/* ========== ABOUT PAGE ========== */
.about-hero {
    padding: 7rem 0 3rem;
    background: var(--bg-warm);
}

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

.about-hero-text h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.about-hero-text p {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Photo collage with decorative shapes */
.photo-collage {
    position: relative;
    padding: 2rem;
}
.photo-collage-main {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    width: 100%;
    max-width: 360px;
    display: block;
    position: relative;
    z-index: 2;
}
.photo-collage-secondary {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    width: 180px;
    height: 130px;
    object-fit: cover;
    z-index: 3;
}
.photo-collage-circle {
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Decorative floating shapes */
.deco-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    animation: decoFloat 6s ease-in-out infinite;
}
.deco-shape:nth-child(2) { animation-delay: 1s; }
.deco-shape:nth-child(3) { animation-delay: 2s; }
.deco-shape:nth-child(4) { animation-delay: 3s; }
.deco-shape:nth-child(5) { animation-delay: 0.5s; }
.deco-shape:nth-child(6) { animation-delay: 2.5s; }

.deco-circle-teal {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(13,107,110,0.12);
}
.deco-circle-green {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(57,122,74,0.15);
}
.deco-triangle-amber {
    width: 0; height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 24px solid rgba(13,107,110,0.1);
    transform: rotate(15deg);
}
.deco-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(13,107,110,0.18);
}
.deco-dot-amber {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(13,107,110,0.12);
}
.deco-ring-teal {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 3px solid rgba(13,107,110,0.1);
}

@keyframes decoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

/* About hero collage */
.about-hero-collage {
    position: relative;
    padding: 2rem 1rem 2rem 2rem;
    min-height: 420px;
}
.about-hero-collage .photo-collage-main {
    max-width: 300px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    margin-left: auto;
}
.about-hero-collage .photo-collage-secondary {
    bottom: 0;
    left: 0;
    width: 190px;
    height: 140px;
}

/* About stats grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.about-card {
    text-align: center;
    padding: 2rem 1.5rem;
}
.about-stat {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 0.75rem;
}
.about-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.about-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* About story with inline photo */
.about-story-section { position: relative; }
.about-story-content {
    max-width: 720px;
    margin: 0 auto;
}
.about-story-photo-wrap {
    float: right;
    position: relative;
    margin: 0 0 1.5rem 2rem;
    padding: 1rem;
}
.about-story-photo-wrap img {
    width: 260px;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    display: block;
    position: relative;
    z-index: 2;
}
.about-ptcb-seal { display: inline-block; margin-top: 1.5rem; }
.about-ptcb-seal img { width: 100px; height: auto; opacity: 0.85; }


/* ========== CONTACT PAGE ========== */
.contact-page-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contact-form-modern .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.contact-sidebar { padding-top: 0; }
.contact-collage-wrap {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.contact-collage-wrap .photo-collage-main {
    max-width: 100%;
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.contact-card {
    padding: 1.5rem;
    background: var(--bg-soft);
    border-radius: 12px;
    margin-bottom: 1rem;
}
.contact-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.contact-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}


/* ========== FAQ ========== */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:first-child { border-top: 1px solid var(--border-light); }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.35rem 0;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
    letter-spacing: 0;
}

.faq-toggle {
    font-size: 1.25rem;
    color: var(--teal);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1.5rem;
    font-weight: 300;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer p {
    color: var(--text-body);
    line-height: 1.8;
    font-size: 0.95rem;
}


/* ========== PROGRAM PAGE: INFO GRID ========== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 2.5rem 0;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.info-card {
    padding: 2rem;
    text-align: center;
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.info-card:nth-child(2n) { border-right: none; }
.info-card:nth-last-child(-n+2) { border-bottom: none; }
.info-card h3 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.info-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 0.25rem;
    font-family: var(--font-sans);
}
.info-card p:last-child { font-size: 0.82rem; color: var(--text-muted); }


/* ========== PROGRAM PAGE: CURRICULUM SCHEDULE ========== */
.curriculum-schedule {
    margin: 2rem 0;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.curriculum-week {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
}
.curriculum-week:last-child { border-bottom: none; }
.week-label {
    flex-shrink: 0;
    width: 110px;
    padding: 1.25rem 1rem;
    background: var(--teal-deep);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.week-content { padding: 1.25rem 1.5rem; flex: 1; }
.week-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}
.week-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.curriculum-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--bg-soft);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}


/* ========== TEXTBOOKS ========== */
.textbook-list { margin: 1.5rem 0; }
.textbook-item {
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.textbook-item h4 { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.35rem; }
.textbook-item p { font-size: 0.88rem; color: var(--text-body); margin-bottom: 0.25rem; }
.textbook-isbn { font-family: monospace; font-size: 0.82rem !important; color: var(--text-muted) !important; letter-spacing: 0.03em; }
.textbook-price { font-weight: 600; color: var(--teal) !important; font-size: 0.85rem !important; }

.program-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 1rem 1.25rem;
    background: var(--bg-soft);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-top: 1rem;
}

.checklist {
    list-style: none;
    padding: 0;
    columns: 2;
    column-gap: 2rem;
}
.checklist li {
    padding: 0.6rem 0;
    padding-left: 1.75rem;
    position: relative;
    break-inside: avoid;
}
.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
}


/* ========== FORMS ========== */
.form-group { margin-bottom: 1.35rem; }
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-body);
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
}
.form-input:focus {
    outline: none;
    border-color: var(--teal);
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 107, 110, 0.1);
}
textarea.form-input { resize: vertical; min-height: 140px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.required { color: var(--red); }
.optional { color: var(--text-muted); font-weight: 400; font-size: 0.75rem; }


/* ========== AUTH CARD ========== */
.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.06);
}
.auth-card h2 {
    font-size: 1.25rem;
    font-family: var(--font-sans);
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-sans);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-google:hover {
    background: var(--gray-50, #f9fafb);
    border-color: var(--gray-300, #d1d5db);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light, #e5e7eb);
}
.auth-divider span {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}
.forgot-password-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.88rem;
}
.forgot-password-link a { color: var(--text-muted); }
.forgot-password-link a:hover { color: var(--teal); opacity: 1; }


/* ========== ALERTS ========== */
.messages-container { padding-top: 76px; }
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    border-left: 4px solid;
    border-radius: 6px;
}
.alert-success { background: #f0fdf4; color: #166534; border-left-color: #16a34a; }
.alert-error { background: #fef2f2; color: #991b1b; border-left-color: #dc2626; }
.alert-warning { background: #fffbeb; color: #92400e; border-left-color: #d97706; }
.alert-info { background: var(--teal-light); color: var(--teal-deep); border-left-color: var(--teal); }
.alert-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    padding: 0 0.25rem;
}
.error-list { list-style: none; padding: 0; margin: 0; }


/* ========== DASHBOARD ========== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}
.dash-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.dash-card h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}
.dash-links { list-style: none; padding: 0; }
.dash-links li { padding: 0.5rem 0; border-bottom: 1px solid var(--gray-100); }
.dash-links li:last-child { border-bottom: none; }
.dash-links a { color: var(--teal); font-weight: 500; font-size: 0.9rem; }
.dash-links a:hover { color: var(--teal-deep); opacity: 1; }

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
}
.status-active { background: #f0fdf4; color: #166534; }
.status-pending { background: #fffbeb; color: #92400e; }
.status-completed { background: var(--teal-light); color: var(--teal); }
.status-cancelled { background: #fef2f2; color: #991b1b; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.table th, .table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}
.table th {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* ========== CHECKOUT ========== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 880px;
    margin: 0 auto;
}
.checkout-summary h2, .checkout-payment h2 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.summary-card {
    padding: 2rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.summary-card h3 { font-size: 1.05rem; margin-bottom: 1.25rem; color: var(--text-primary); }
.summary-card ul { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.summary-card li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-body);
    font-size: 0.9rem;
}
.summary-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-top: 2px solid var(--text-primary);
    font-weight: 700;
}
.total-amount {
    font-size: 1.6rem;
    color: var(--teal);
    font-family: var(--font-sans);
}
.summary-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; }
.payment-card {
    padding: 2rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.secure-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ========== SUCCESS ========== */
.success-card {
    max-width: 620px;
    margin: 2rem auto;
    text-align: center;
    padding: 3.5rem 2rem;
}
.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border: 2px solid var(--green);
    color: var(--green);
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.success-card h1 { font-family: var(--font-sans); font-size: 2rem; margin-bottom: 0.5rem; }
.success-subtitle { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.success-details {
    text-align: left;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.success-details h3 { margin-bottom: 1.25rem; font-size: 1rem; }
.next-steps { padding-left: 1.25rem; }
.next-steps li { margin-bottom: 0.85rem; color: var(--text-body); line-height: 1.7; }
.enrollment-receipt {
    border: 1px solid var(--gray-200);
    padding: 1.75rem;
    margin-bottom: 2rem;
    text-align: left;
    border-radius: 8px;
}
.enrollment-receipt h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.enrollment-receipt p { margin-bottom: 0.25rem; color: var(--text-body); font-size: 0.92rem; }
.success-actions { display: flex; gap: 1rem; justify-content: center; }


/* ========== PORTAL ========== */
.portal-priority {
    border: 2px solid var(--teal);
    background: var(--bg-soft);
}

.portal-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}
.portal-status-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border-light);
}
.portal-status-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--teal);
}
.portal-status-label { font-size: 0.82rem; color: var(--text-muted); }

.portal-action-box {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    text-align: center;
}
.portal-action-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.portal-action-box p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.portal-info-list { margin-top: 1.5rem; }
.portal-info-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-light);
}
.portal-info-item:last-child { border-bottom: none; }
.portal-info-item strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}
.portal-info-item p {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
}

.portal-textbooks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}
.portal-textbook {
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-soft);
}
.portal-textbook h4 { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.35rem; }
.portal-textbook p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.portal-help-list { margin-top: 1rem; }
.portal-help-item { padding: 1rem 0; border-bottom: 1px solid var(--border-light); }
.portal-help-item:last-child { border-bottom: none; }
.portal-help-item h4 { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.25rem; }
.portal-help-item p { font-size: 0.88rem; color: var(--text-body); margin: 0; line-height: 1.6; }

.portal-simple-list { list-style: none; padding: 0; margin: 0.75rem 0; }
.portal-simple-list li {
    padding: 0.4rem 0 0.4rem 1.25rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-body);
}
.portal-simple-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
}

.portal-completion-banner {
    background: var(--teal);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}
.portal-completion-banner h2 { color: white; margin-bottom: 0.5rem; }
.portal-completion-banner p { opacity: 0.85; margin-bottom: 1.25rem; }
.portal-completion-banner .btn { background: white; color: var(--teal); }

.portal-grid-2col {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
}
.portal-section-card {
    background: white;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.portal-section-card h2 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.portal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}
.progress-counter {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.portal-section-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Countdown bar */
.countdown-bar-wrap {
    height: 6px;
    background: var(--gray-200);
    margin-bottom: 0.75rem;
    border-radius: 3px;
    overflow: hidden;
}
.countdown-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--teal) 0%, var(--teal-muted) 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2%;
    border-radius: 3px;
}
.countdown-dates {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}


/* ========== PORTAL: STUDY CHECKLIST ========== */
.study-checklist { display: flex; flex-direction: column; gap: 0; }
.study-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
    transition: opacity 0.3s ease;
}
.study-item:last-child { border-bottom: none; }
.study-item-done { opacity: 0.55; }
.study-item-done .study-info h4 { text-decoration: line-through; }

.study-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem;
    transition: all 0.2s ease;
    padding: 0;
}
.study-check:hover { border-color: var(--teal); }
.study-item-done .study-check,
.exam-prep-done .study-check {
    background: var(--teal);
    border-color: var(--teal);
}
.check-box { font-size: 0.85rem; font-weight: 700; color: white; line-height: 1; }
.study-info { flex: 1; }
.study-week-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
}
.study-info h4 { font-size: 0.92rem; color: var(--text-primary); margin-bottom: 0.15rem; font-weight: 600; }
.study-info p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin: 0; }


/* ========== PORTAL: DAILY QUIZ ========== */
.quiz-score { font-size: 0.85rem; font-weight: 700; color: var(--teal); letter-spacing: 0.02em; }
.quiz-loading { padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.quiz-progress-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    margin-bottom: 0.75rem;
}
.quiz-question-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.quiz-choices { display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-choice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-body);
    transition: all 0.2s ease;
    width: 100%;
}
.quiz-choice:hover:not(:disabled) { border-color: var(--teal); background: var(--teal-light); }
.quiz-choice:disabled { cursor: default; opacity: 0.85; }
.quiz-choice-letter {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--text-body);
    border-radius: 50%;
}
.quiz-choice-correct { border-color: #16a34a !important; background: #f0fdf4 !important; }
.quiz-choice-correct .quiz-choice-letter { background: #16a34a; color: white; }
.quiz-choice-wrong { border-color: #dc2626 !important; background: #fef2f2 !important; }
.quiz-choice-wrong .quiz-choice-letter { background: #dc2626; color: white; }
.quiz-feedback {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.6;
}
.quiz-results { text-align: center; padding: 2rem 1rem; }
.quiz-results h3 { font-family: var(--font-sans); font-size: 1.25rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.quiz-results p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.5rem; }


/* ========== PORTAL: EXAM PREP ========== */
.exam-prep-list { display: flex; flex-direction: column; gap: 0; }
.exam-prep-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-200);
    transition: opacity 0.3s ease;
}
.exam-prep-item:last-child { border-bottom: none; }
.exam-prep-done { opacity: 0.55; }
.exam-prep-done .exam-prep-title { text-decoration: line-through; }
.exam-prep-title { font-size: 0.9rem; color: var(--text-body); }


/* ========== PORTAL: RESOURCE LINKS ========== */
.resource-links { display: flex; flex-direction: column; gap: 0.75rem; }
.resource-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.resource-link-card:hover {
    border-color: var(--teal);
    background: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    opacity: 1;
}
.resource-link-card h4 { font-size: 0.88rem; color: var(--text-primary); margin-bottom: 0.1rem; font-weight: 600; }
.resource-link-card p { font-size: 0.78rem; color: var(--text-muted); margin: 0; line-height: 1.4; }


/* ========== PORTAL: MILESTONES & PACE ========== */
.portal-milestone {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.portal-milestone p { font-size: 0.92rem; color: #166534; font-weight: 600; margin: 0; line-height: 1.5; }
.portal-pace {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    border-radius: 8px;
}
.portal-pace p { font-size: 0.88rem; font-weight: 500; margin: 0; line-height: 1.5; }
.portal-pace-slightly_behind { background: #fffbeb; border-left-color: #d97706; }
.portal-pace-slightly_behind p { color: #92400e; }
.portal-pace-behind { background: #fef2f2; border-left-color: #dc2626; }
.portal-pace-behind p { color: #991b1b; }


/* ========== PORTAL: ANNOUNCEMENTS ========== */
.announcement-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}
.announcement-date {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--teal);
    padding-top: 0.15rem;
}
.announcement-content h4 { font-size: 0.92rem; color: var(--text-primary); margin-bottom: 0.25rem; }
.announcement-content p { font-size: 0.88rem; color: var(--text-body); line-height: 1.6; margin: 0; }


/* ========== PORTAL: RESOURCE DOWNLOADS ========== */
.resource-downloads { display: flex; flex-direction: column; gap: 0.5rem; }
.resource-download-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.resource-download-item:hover {
    border-color: var(--teal);
    background: var(--teal-light);
    transform: translateX(4px);
    opacity: 1;
}
.resource-download-type {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    margin-bottom: 0.15rem;
}
.resource-download-title { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); }


/* ========== FOOTER ========== */
.footer {
    background: var(--text-primary);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1.25rem;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}
.footer h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}
.footer h4 {
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.footer p { font-size: 0.88rem; line-height: 1.7; }
.footer ul { list-style: none; padding: 0; }
.footer li { padding: 0.3rem 0; font-size: 0.88rem; }
.footer a {
    color: rgba(255,255,255,0.65);
    transition: color 0.2s ease;
}
.footer a:hover { color: white; opacity: 1; }
.footer-bottom {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* Legal pages */
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }


/* ========== CHATBOT ========== */
.chatbot-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--teal);
    color: white;
    border: none;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.chatbot-toggle:hover {
    background: var(--teal-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.chatbot-panel {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 380px;
    max-height: 520px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.97);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.chatbot-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.chatbot-header {
    background: var(--text-primary);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}
.chatbot-header h4 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; }
.chatbot-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
}
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 360px;
}
.chat-msg {
    max-width: 85%;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    line-height: 1.6;
    border-radius: 10px;
}
.chat-msg.bot {
    background: var(--bg-soft);
    color: var(--text-primary);
    align-self: flex-start;
    border-radius: 10px 10px 10px 2px;
}
.chat-msg.user {
    background: var(--teal);
    color: white;
    align-self: flex-end;
    border-radius: 10px 10px 2px 10px;
}
.chatbot-input {
    display: flex;
    border-top: 1px solid var(--gray-200);
}
.chatbot-input input {
    flex: 1;
    padding: 0.85rem 1rem;
    border: none;
    font-size: 0.88rem;
    font-family: var(--font-sans);
    outline: none;
}
.chatbot-input button {
    padding: 0.85rem 1.25rem;
    background: var(--teal);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.88rem;
}
.chatbot-input button:hover { background: var(--teal-deep); }


/* ========== RESPONSIVE: 1024px ========== */
@media (max-width: 1024px) {
    .hp-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hp-hero-stats { grid-template-columns: repeat(4, 1fr); }
    .hp-value-grid { grid-template-columns: 1fr 1fr; }
    .hp-testimonials { grid-template-columns: 1fr 1fr; }
    .hp-instructor { flex-direction: column; text-align: center; gap: 2rem; }
    .hp-instructor-creds { justify-content: center; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }

    /* Cerebral timeline collapses to single column */
    .cerebral-timeline::before,
    .cerebral-timeline::after { left: 24px; transform: none; }
    .cerebral-step { flex-direction: column; align-items: flex-start; padding-left: 56px; }
    .cerebral-step::before { left: 24px; top: 2rem; transform: translate(-50%, 0); }
    .cerebral-step-visual,
    .cerebral-step-reverse .cerebral-step-visual {
        width: auto;
        padding: 0;
        justify-content: flex-start;
        order: 0;
    }
    .cerebral-step-text,
    .cerebral-step-reverse .cerebral-step-text {
        width: auto;
        padding: 0;
        text-align: left;
        order: 0;
    }
    .cerebral-step { margin-bottom: 80px; }
}


/* ========== RESPONSIVE: 768px ========== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 4.5rem;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        gap: 0;
    }
    .nav-menu.active { display: flex; }
    .nav-link { padding: 0.85rem 2rem; width: 100%; border-radius: 0; font-size: 1rem; }
    .nav-link:hover { background: var(--bg-soft); }
    .nav-btn-secondary,
    .nav-btn-primary {
        margin: 0.5rem 1.5rem;
        text-align: center;
        justify-content: center;
    }

    .nav-dropdown {
        margin-left: 0;
        width: 100%;
        border-top: 1px solid var(--border-light);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    .nav-dropdown-toggle {
        width: 100%;
        padding: 0.85rem 2rem;
        border: none;
        border-radius: 0;
        justify-content: space-between;
    }
    .nav-dropdown-menu {
        position: static;
        border: none;
        border-radius: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        min-width: 0;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
        max-height: 300px;
        padding: 0.25rem 0;
    }
    .nav-dropdown-item { padding: 0.7rem 2rem 0.7rem 3.5rem; font-size: 0.95rem; }
    .nav-dropdown-divider { margin: 0.3rem 2rem; background: var(--border-light); }

    .hp-hero { padding: 6rem 0 3rem; }
    .hp-hero-stats { grid-template-columns: 1fr 1fr; }
    .hp-value-grid { grid-template-columns: 1fr; }
    .hp-testimonials { grid-template-columns: 1fr; }
    .hp-compare-table { font-size: 0.82rem; }
    .hp-compare-table thead th,
    .hp-compare-table tbody td { padding: 0.75rem 0.75rem; }
    .hp-instructor-photo { width: 180px; height: 180px; }
    .hp-instructor-creds { flex-wrap: wrap; gap: 1.25rem; }
    .hp-section { padding: 3.5rem 0; }

    .section { padding: 4rem 0; }
    .page-header { padding: 7rem 0 2rem; }
    .page-header h1 { font-size: 1.85rem; }
    .page-header-sm { padding: 6.5rem 0 1.5rem; }

    .about-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .about-hero-collage {
        min-height: 320px;
        padding: 1.5rem;
        display: flex;
        justify-content: center;
    }
    .about-hero-collage .photo-collage-main { max-width: 240px; margin: 0 auto; }
    .about-hero-collage .photo-collage-secondary { width: 140px; height: 100px; bottom: -10px; left: -10px; }
    .about-grid { grid-template-columns: 1fr; gap: 1rem; }
    .about-story-photo-wrap { float: none; margin: 0 auto 1.5rem; text-align: center; }
    .about-story-photo-wrap img { width: 200px; margin: 0 auto; }

    .contact-page-layout { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form-modern .form-row { grid-template-columns: 1fr; }
    .contact-collage-wrap { padding: 1rem; }
    .contact-collage-wrap .photo-collage-main { height: 180px; }

    .info-grid { grid-template-columns: 1fr; }
    .info-card { border-right: none !important; }
    .info-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--gray-200); }
    .info-card:last-child { border-bottom: none; }

    .checkout-grid { grid-template-columns: 1fr; }
    .portal-grid-2col { grid-template-columns: 1fr; }
    .portal-section-card { padding: 1.75rem 1.5rem; }
    .portal-section-header { flex-direction: column; gap: 0.25rem; }
    .portal-status-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .portal-textbooks { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .checklist { columns: 1; }
    .curriculum-week { flex-direction: column; }
    .week-label { width: 100%; padding: 0.75rem 1rem; }

    .chatbot-panel {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        transform: translateY(20px);
    }
    .chatbot-panel.open { transform: translateY(0); }
    .chatbot-toggle { bottom: 1.5rem; right: 1.5rem; }

    /* Cerebral timeline mobile */
    .cerebral-timeline::before,
    .cerebral-timeline::after { left: 16px; }
    .cerebral-step { padding-left: 44px; margin-bottom: 60px; }
    .cerebral-step::before { left: 16px; }
    .cerebral-step-illustration { width: 140px; }
    .cerebral-step-photo,
    .cerebral-step-img { width: 140px; height: 105px; }
}


/* ========== RESPONSIVE: 480px ========== */
@media (max-width: 480px) {
    .auth-card { padding: 2rem 1.5rem; }
    .success-actions { flex-direction: column; }
    .announcement-item { flex-direction: column; gap: 0.5rem; }

    .hp-hero { padding: 5.5rem 0 2.5rem; }
    .hp-hero-actions { flex-direction: column; }
    .hp-hero-actions .hp-btn { width: 100%; text-align: center; justify-content: center; }
    .hp-hero-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .hp-stat { padding: 1.25rem 1rem; }
    .hp-stat-number { font-size: 2rem; }
    .hp-section-header { margin-bottom: 2.5rem; }
    .hp-comparison { margin: 0 -1rem; }
    .hp-compare-table { font-size: 0.75rem; }
    .hp-instructor-creds { flex-direction: column; gap: 1rem; align-items: center; }
}
