/* ═══════════════════════════════════════════════════════════════
   NuruTeck — Executive Midnight Theme
   Palette: Deep Navy · Indigo · Gold
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Brand */
    --brand-midnight: #0A0F1C;
    --brand-navy: #131B2E;
    --brand-navy-light: #1E293B;
    --brand-indigo: #6366F1;
    --brand-indigo-dark: #4F46E5;
    --brand-indigo-light: #818CF8;
    --brand-gold: #F59E0B;
    --brand-gold-light: #FBBF24;
    --brand-gold-dark: #D97706;

    /* Surfaces */
    --surface-base: #F8FAFC;
    --surface-raised: #FFFFFF;
    --surface-muted: #F1F5F9;
    --surface-dark: #0A0F1C;

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-inverse: #F8FAFC;

    /* Borders & shadows */
    --border-subtle: #E2E8F0;
    --border-medium: #CBD5E1;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 32px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --shadow-gold: 0 8px 24px rgba(245, 158, 11, 0.25);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Motion */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.25s var(--ease-out);

    /* Bootstrap overrides */
    --bs-primary: var(--brand-indigo);
    --bs-primary-rgb: 99, 102, 241;
    --bs-success: var(--brand-indigo);
    --bs-success-rgb: 99, 102, 241;
    --bs-body-bg: var(--surface-base);
    --bs-body-color: var(--text-primary);
    --bs-border-color: var(--border-subtle);
    --bs-link-color: var(--brand-indigo);
    --bs-link-hover-color: var(--brand-indigo-dark);

    /* Legacy aliases */
    --nuru-green: var(--brand-indigo);
    --nuru-green-dark: var(--brand-indigo-dark);
    --nuru-green-deep: var(--brand-indigo-dark);
    --nuru-dark: var(--text-primary);
    --nuru-body-bg: var(--surface-base);
    --nuru-radius-sm: var(--radius-md);
    --nuru-radius-md: var(--radius-lg);
    --nuru-radius-lg: var(--radius-xl);
    --nuru-radius-xl: var(--radius-2xl);
    --nuru-shadow-sm: var(--shadow-sm);
    --nuru-shadow-md: var(--shadow-md);
    --nuru-shadow-lg: var(--shadow-lg);
    --nuru-transition: var(--transition);
}

/* ─── Base Overrides to Stop Over-Sliding ─── */
/* ─── Base Overrides (Fixed Sticky Context) ─── */
html {
    scroll-behavior: smooth;
    /* Removed overflow-x here to allow sticky positioning to find the viewport context */
}

body.nuru-landing {
    width: 100%;
    max-width: 100%;
    /* Changing overflow-x to clip prevents over-sliding without breaking position: sticky */
    overflow-x: clip; 
    margin: 0;
    padding: 0;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    background: var(--surface-base);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-family: 'Outfit', system-ui, sans-serif;
    letter-spacing: -0.02em;
    overflow-wrap: break-word; 
    word-wrap: break-word; /* Safe tracking for lengthy continuous strings on small widths */
}

/* Fix Bootstrap row bleeding edges */
.row {
    max-width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* ─── Theme utilities ─── */
.text-accent { color: var(--brand-indigo) !important; }
.text-gold { color: var(--brand-gold) !important; }

.brand-accent {
    background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-brand-dark { background: var(--brand-midnight) !important; }
.bg-brand-navy { background: var(--brand-navy) !important; }
.bg-surface { background: var(--surface-base) !important; }
.bg-surface-muted { background: var(--surface-muted) !important; }

.text-success,
a.text-success { color: var(--brand-indigo) !important; }

.bg-success { background-color: var(--brand-indigo) !important; }
.btn-success {
    background: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-indigo-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
}
.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, var(--brand-indigo-dark) 0%, #4338CA 100%);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-outline-success {
    color: var(--brand-indigo);
    border-color: var(--brand-indigo);
}
.btn-outline-success:hover {
    background: var(--brand-indigo);
    border-color: var(--brand-indigo);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
    border: none;
    color: var(--brand-midnight);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--brand-gold-light) 0%, var(--brand-gold) 100%);
    color: var(--brand-midnight);
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

.btn-nuru {
    background: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-indigo-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
}
.btn-nuru:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-brand {
    color: var(--text-inverse);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    font-weight: 600;
    transition: all var(--transition);
}
.btn-outline-brand:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--brand-indigo);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-badge--gold {
    background: rgba(245, 158, 11, 0.12);
    color: var(--brand-gold-dark);
    border-color: rgba(245, 158, 11, 0.25);
}

.section-heading {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-subheading {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Navbar ─── */
.nuru-navbar {
    position: sticky;     /* Keeps the navbar locked at the top of the viewport */
    top: 0;              /* Fastens it to the exact top edge */
    z-index: 1020;       /* Places it above landing elements, but safely below standard modals */
    background: rgba(10, 15, 28, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.85rem 0;
    transition: all var(--transition);
}

.nuru-navbar.scrolled {
    background: rgba(10, 15, 28, 0.97) !important;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
    padding: 0.65rem 0;
}

.nuru-navbar .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    color: #fff !important;
}

.nuru-navbar .navbar-brand span.brand-accent {
    background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nuru-navbar .nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition);
}

.nuru-navbar .nav-link:hover,
.nuru-navbar .nav-link.active {
    color: #fff !important;
}

.nuru-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-indigo), var(--brand-gold));
    transition: width var(--transition), left var(--transition);
    border-radius: 2px;
}

.nuru-navbar .nav-link:hover::after,
.nuru-navbar .nav-link.active::after {
    width: 50%;
    left: 25%;
}

.nuru-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
}
.nuru-navbar .navbar-toggler-icon {
    filter: invert(1);
}

.nuru-navbar .btn-nav-cta {
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
    color: var(--brand-midnight) !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1.5rem;
    border-radius: var(--radius-full);
    border: none;
    transition: all var(--transition);
}
.nuru-navbar .btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
    color: var(--brand-midnight) !important;
}

@media (max-width: 991px) {
    .nuru-navbar .navbar-collapse {
        background: var(--brand-navy);
        border-radius: var(--radius-lg);
        padding: 1.25rem;
        margin-top: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nuru-navbar .nav-link {
        padding: 0.75rem 0.5rem !important;
    }
    .nuru-navbar .nav-link::after {
        display: none;
    }
    .nuru-navbar .btn-nav-cta {
        display: block;
        text-align: center;
        margin-top: 0.75rem;
        width: 100%;
    }
}

/* ─── Hero (Strict Overflow Blocking) ─── */
.hero-section {
    position: relative;
    background: var(--brand-midnight);
    overflow: hidden !important; /* Critical to lock absolute child gradients internally */
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 8rem);
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50__);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--brand-indigo-light), var(--brand-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.65);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    max-width: 520px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat__value {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--brand-gold-light);
    line-height: 1;
}

.hero-stat__label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

/* ─── Feature cards ─── */
.feature-card {
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: clamp(1.5rem, 4vw, 2rem);
    height: 100%;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-indigo), var(--brand-gold));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.feature-card__icon--indigo {
    background: rgba(99, 102, 241, 0.1);
    color: var(--brand-indigo);
}

.feature-card__icon--gold {
    background: rgba(245, 158, 11, 0.1);
    color: var(--brand-gold-dark);
}

.feature-card__icon--teal {
    background: rgba(20, 184, 166, 0.1);
    color: #0D9488;
}

.pillar-card {
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    height: 100%;
    transition: all var(--transition);
}

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

.pillar-card img {
    height: clamp(180px, 25vw, 220px);
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pillar-card:hover img { transform: scale(1.05); }

.pillar-card__body { padding: clamp(1.25rem, 3vw, 1.75rem); }

.pillar-card__link {
    color: var(--brand-indigo);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    display: inline-block;
    transition: color var(--transition);
}
.pillar-card__link:hover { color: var(--brand-indigo-dark); }

/* ─── CTA banner ─── */
.cta-banner {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-midnight) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-2xl);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    position: relative;
    overflow: hidden !important;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* ─── Course cards ─── */
.course-landing-card {
    position: relative;
    z-index: 1;
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-2xl) !important;
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
    overflow: hidden;
}

.course-landing-card img {
    height: clamp(180px, 25vw, 220px);
    object-fit: cover;
    transition: transform 0.6s ease;
}

.course-landing-card:hover {
    z-index: 2;
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
}

.course-landing-card:hover img { transform: scale(1.06); }

.card-title-hover { transition: color 0.3s ease; }
.course-landing-card:hover .card-title-hover { color: var(--brand-indigo) !important; }

.badge-glass {
    background: rgba(10, 15, 28, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff !important;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.line-clamp-landing {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.extra-small { font-size: 0.75rem; letter-spacing: 0.04em; }

/* ─── Search ─── */
.search-container-parent,
[style*="z-index: 9999"] { isolation: isolate; }

.row.g-4 { position: relative; z-index: 1; }

#suggestionsBox {
    overflow: hidden;
    animation: nuruSlideDown 0.3s ease-out;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999 !important;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg) !important;
    background: var(--surface-raised) !important;
}

.search-container-parent { position: relative; z-index: 10000; }

.search-bar {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--surface-raised);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.search-bar:focus-within {
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(99, 102, 241, 0.12);
    border-color: var(--brand-indigo-light);
}

.list-group-item-action {
    border: none !important;
    padding: 14px 20px !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    background: var(--surface-raised);
}

.list-group-item-action:hover {
    background: rgba(99, 102, 241, 0.06) !important;
    color: var(--brand-indigo) !important;
    padding-left: 24px !important;
    border-left: 3px solid var(--brand-indigo) !important;
}

.suggestion-thumb {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-right: 14px;
    flex-shrink: 0;
}

/* ─── Team cards ─── */
.team-card {
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: clamp(1.5rem, 4vw, 2rem) 1.5rem;
    text-align: center;
    transition: all var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.team-card img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border-subtle);
    margin-bottom: 1rem;
    transition: border-color var(--transition);
}

.team-card:hover img { border-color: var(--brand-indigo-light); }

.team-card__role {
    color: var(--brand-indigo);
    font-size: 0.8rem;
    font-weight: 600;
}

.team-card__social a {
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-muted);
    transition: all var(--transition);
    text-decoration: none;
}
.team-card__social a:hover {
    background: var(--brand-indigo);
    color: #fff;
}

/* ─── Contact section ─── */
.contact-panel {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
}

.contact-panel__info {
    background: linear-gradient(160deg, var(--brand-midnight) 0%, var(--brand-navy) 100%);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    color: #fff;
    position: relative;
    overflow: hidden !important;
}

.contact-panel__info::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-indigo-light);
    flex-shrink: 0;
}

/* ─── Values section ─── */
.values-section {
    background: var(--brand-midnight);
    border-radius: var(--radius-2xl);
    margin: 0 1rem;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    position: relative;
    overflow: hidden !important;
}

.values-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.value-item__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-indigo-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ─── Footer ─── */
.nuru-footer {
    background: var(--brand-midnight);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
}

.nuru-footer .footer-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
}

.nuru-footer h6 {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.nuru-footer a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.875rem;
    display: inline-block;
    padding: 0.25rem 0;
}

.nuru-footer a:hover { color: var(--brand-gold-light) !important; }

.nuru-footer .social-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition);
}

.nuru-footer .social-link:hover {
    background: var(--brand-indigo);
    border-color: var(--brand-indigo);
    color: #fff !important;
    transform: translateY(-2px);
}

.nuru-footer hr {
    border-color: rgba(255, 255, 255, 0.08);
}

.nuru-footer .newsletter-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
}
.nuru-footer .newsletter-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.nuru-footer .newsletter-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    color: #fff;
}

.nuru-footer .btn-newsletter {
    background: var(--brand-gold);
    color: var(--brand-midnight);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.25rem;
}

/* ─── FAQ ─── */
.faq-section {
    background: var(--surface-muted);
    border-top: 1px solid var(--border-subtle);
}

#faqAccordion {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--surface-raised);
}

#faqAccordion .accordion-button {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    background: var(--surface-raised);
    color: var(--text-primary);
}

#faqAccordion .accordion-button:not(.collapsed) {
    background: rgba(99, 102, 241, 0.06);
    color: var(--brand-indigo);
    box-shadow: none;
}

#faqAccordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

#faqAccordion .accordion-body {
    color: var(--text-secondary);
    padding: 0 1.5rem 1.25rem;
}

/* ─── Auth pages ─── */
.auth-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: var(--surface-base);
    padding: clamp(1.5rem, 5vw, 3rem) 0;
}

.auth-card {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface-raised);
}

.auth-panel {
    background: linear-gradient(160deg, var(--brand-midnight) 0%, var(--brand-navy) 100%);
    position: relative;
    overflow: hidden !important;
}

.auth-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50__);
}

.auth-panel__content { position: relative; z-index: 2; }

.bg-circle-1, .bg-circle-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 6s infinite ease-in-out;
}
.bg-circle-1 { top: -50px; right: -50px; width: 200px; height: 200px; }
.bg-circle-2 { bottom: -30px; left: -30px; width: 150px; height: 150px; animation-direction: reverse; animation-duration: 8s; }

/* ─── Error pages ─── */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.error-page__code {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4rem, 15vw, 9rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand-indigo-light), var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-page__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.error-page__icon--warning { background: rgba(245, 158, 11, 0.12); color: var(--brand-gold); }
.error-page__icon--danger { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.error-page__icon--info { background: rgba(99, 102, 241, 0.12); color: var(--brand-indigo); }

/* ─── Payment ─── */
.payment-status-card {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    background: var(--surface-raised);
    max-width: 440px;
    width: 100%;
}

.payment-status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.payment-status-icon--success { background: rgba(99, 102, 241, 0.1); color: var(--brand-indigo); }
.payment-status-icon--error { background: rgba(239, 68, 68, 0.1); color: #EF4444; }

.payment-loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-subtle);
    border-bottom-color: var(--brand-indigo);
    border-radius: 50%;
    animation: nuruSpin 0.8s linear infinite;
}

/* ─── Forms ─── */
.nuru-form-control:focus,
.form-control:focus {
    border-color: var(--brand-indigo) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}

/* ─── Alerts ─── */
.alert {
    border: none;
    border-radius: var(--radius-lg);
}

/* ─── Back to top ─── */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--brand-indigo);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition);
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--brand-indigo-dark); transform: translateY(-3px); }

/* ─── Skip link ─── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 100000;
    padding: 0.75rem 1.25rem;
    background: var(--brand-indigo);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ─── Cards generic ─── */
.nuru-card {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    background: var(--surface-raised);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
}
.nuru-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ─── Animations ─── */
@keyframes nuruSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes nuruSpin { to { transform: rotate(360deg); } }
@keyframes nuruFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(12px, 12px); }
}

.animate-fade-in { animation: nuruFadeIn 1.2s ease-out; }
.z-index-10 { z-index: 10; }
.transition-all { transition: all 0.3s ease; }

lottie-player { margin: 0 auto; filter: hue-rotate(200deg) saturate(0.8); }

/* ─── Responsive & Hard-Stopping Over-Sliding ─── */
@media (max-width: 768px) {
    .display-5 { font-size: 2rem; }
    .course-landing-card img { height: 180px; }
    #suggestionsBox { left: 0; right: 0; width: 100%; }
    #backToTop { bottom: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; justify-content: space-between; }
    .values-section { margin: 0; border-radius: 0; } 
    
    .nuru-footer .btn-newsletter,
    .nuru-footer .newsletter-input {
        width: 100%;
        text-align: center;
    }
    .nuru-footer .btn-newsletter {
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    /* Converts inline button arrays to vertical blocks to avoid breaking parent layout container scopes */
    .hero-content .btn,
    .cta-banner .btn {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0.75rem;
    }
    .hero-content .btn:last-child,
    .cta-banner .btn:last-child {
        margin-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
