/* ─── Fonts ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ─── Design Tokens ──────────────────────────────────────────── */
:root {
    /* Brand palette — from upNext logo */
    --emerald:        #6EE7B7;
    --emerald-mid:    #34D399;
    --emerald-deep:   #10B981;
    --blue:           #3B82F6;
    --sky:            #38BDF8;

    /* Gradients */
    --grad-brand:     linear-gradient(135deg, #6EE7B7 0%, #3B82F6 100%);
    --grad-text:      linear-gradient(90deg,  #6EE7B7 0%, #38BDF8 100%);
    --grad-dark:      linear-gradient(135deg, #070E1A 0%, #0F1F38 100%);

    /* Dark surfaces */
    --bg-darkest:     #070E1A;
    --bg-dark:        #0F172A;
    --bg-card-dark:   #162032;
    --bg-elevated:    #1E293B;

    /* Light surfaces */
    --white:          #FFFFFF;
    --light-bg:       #F1F5F9;
    --light-card:     #F8FAFC;

    /* Text */
    --text-dark:      #0F172A;
    --text-body:      #334155;
    --text-light:     #64748B;
    --text-muted:     #94A3B8;

    /* Borders */
    --border:         #E2E8F0;
    --border-strong:  #CBD5E1;
    --border-glass:   rgba(110, 231, 183, 0.18);
    --border-dark:    rgba(255, 255, 255, 0.08);

    /* Glow / glass */
    --glow-emerald:   rgba(110, 231, 183, 0.22);
    --glow-blue:      rgba(59, 130, 246, 0.2);
    --glass:          rgba(255, 255, 255, 0.06);
    --glass-border:   rgba(255, 255, 255, 0.10);

    /* Legacy compat for sections that use old vars */
    --primary-color:  var(--emerald-deep);
    --secondary-color:var(--emerald);
    --gradient:       var(--grad-dark);
    --dark-bg:        var(--bg-darkest);
    --dark-mid:       var(--bg-dark);
    --dark-card:      var(--bg-card-dark);

    /* Success / warning */
    --success: #10B981;
    --warning: #F59E0B;
}

/* ─── Dark Mode ──────────────────────────────────────────────── */
html[data-theme="dark"] {
    --white:          #0F172A;
    --light-bg:       #162032;
    --light-card:     #1E293B;
    --text-dark:      #E2EAF4;
    --text-body:      #CBD5E1;
    --text-light:     #94A3B8;
    --text-muted:     #64748B;
    --border:         rgba(255, 255, 255, 0.08);
    --border-strong:  rgba(255, 255, 255, 0.14);
    --glass:          rgba(255, 255, 255, 0.05);
    --glass-border:   rgba(110, 231, 183, 0.14);
}

/* ─── Skip to Content ────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    background: var(--emerald-deep);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ─── Focus Visible ──────────────────────────────────────────── */
:focus { outline: none; }

:focus-visible {
    outline: 2px solid var(--emerald-mid);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--emerald-mid);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ─── Smooth Theme Transition ────────────────────────────────── */
*, *::before, *::after {
    transition: background-color 0.25s ease, border-color 0.25s ease,
                color 0.25s ease, box-shadow 0.25s ease;
}

/* ─── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .tagline-track { animation: none !important; }
    .promo-slide-img img { transition: none !important; }
    #heroCanvas { display: none; }
}

/* ─── Reset & Base ───────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 60px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    color: var(--text-dark);
}

/* Display headings — Space Grotesk for personality and hierarchy */
h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.04em;
}

/* Supporting headings — stay in Plus Jakarta Sans */
h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p { color: var(--text-body); }

a { text-decoration: none; }

ul { list-style: none; }

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

/* ─── Screen reader only ─────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ─── Container ──────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Gradient Text Utility ──────────────────────────────────── */
.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Sections ───────────────────────────────────────────────── */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 500;
}

/* ─── Header ─────────────────────────────────────────────────── */
header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

html[data-theme="dark"] header {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 24px rgba(0,0,0,0.4);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    gap: 1.5rem;
}

/* ─── Logo ───────────────────────────────────────────────────── */
.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    line-height: 1;
    flex-shrink: 0;
}

.logo-icon {
    display: block;
    flex-shrink: 0;
}

.logo-wordmark {
    display: flex;
    align-items: baseline;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1;
}

.logo-up {
    font-weight: 300;
    color: var(--text-dark);
}

html[data-theme="dark"] .logo-up,
.footer-logo .logo-up {
    color: #FFFFFF;
}

.logo-next {
    font-weight: 800;
    background: linear-gradient(90deg, #6EE7B7, #38BDF8, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo {
    margin-bottom: 0.75rem;
}

/* ─── Navigation ─────────────────────────────────────────────── */
nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--emerald-deep);
    background: rgba(110, 231, 183, 0.1);
}

html[data-theme="dark"] nav a:hover,
html[data-theme="dark"] nav a.active {
    color: var(--emerald);
    background: rgba(110, 231, 183, 0.08);
}

/* ─── Theme Toggle ───────────────────────────────────────────── */
.theme-toggle {
    background: none;
    border: 1.5px solid var(--border-strong);
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
    border-color: var(--emerald-deep);
    background: rgba(110, 231, 183, 0.08);
}

/* ─── Mobile Menu ────────────────────────────────────────────── */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1.5px solid var(--border-strong);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.mobile-menu-btn:hover {
    border-color: var(--emerald-deep);
}

/* ─── Promo / Hero Slider ────────────────────────────────────── */
.promo-slider {
    position: relative;
    height: 560px;
    background: var(--bg-darkest);
    overflow: hidden;
}

.promo-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(110,231,183,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110,231,183,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* ── Right panel: full-width background images */
.promo-right-panel {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.promo-right-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7,14,26,0.5) 0%, rgba(7,14,26,0.35) 50%, rgba(7,14,26,0.65) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ── Left panel: text overlay left-aligned on top of the image */
.promo-left-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 55%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 3rem 4rem;
    background: linear-gradient(to right, rgba(7,14,26,0.82) 55%, transparent 100%);
}

/* ── Each slide is an image inside the right panel */
.promo-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.promo-slide.active { opacity: 1; }

.promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 6s ease;
}

.promo-slide.active img { transform: scale(1.06); }

/* ── Text styles inside the left panel */
.promo-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.promo-left-panel h1,
.promo-left-panel h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.045em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.promo-left-panel h2 { font-size: 2.2rem; }

.promo-left-panel h1 span,
.promo-left-panel h2 span {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-desc {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.promo-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 10;
}

.promo-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: width 0.3s, background 0.3s;
    padding: 0;
}

.promo-dot.active {
    width: 22px;
    background: var(--emerald);
}

.promo-arrow {
    position: absolute;
    bottom: 1.25rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.promo-arrow:hover {
    background: rgba(110,231,183,0.15);
    border-color: var(--emerald);
    color: var(--emerald);
}

.promo-prev { right: calc(50% + 0.4rem); }
.promo-next { right: 1.5rem; }

.promo-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--grad-brand);
    z-index: 10;
}

/* ─── Tagline Ticker ─────────────────────────────────────────── */
.tagline-ticker {
    background: var(--bg-darkest);
    border-top: 1px solid rgba(110,231,183,0.12);
    border-bottom: 1px solid rgba(110,231,183,0.12);
    overflow: hidden;
    padding: 0.7rem 0;
    white-space: nowrap;
}

.tagline-track {
    display: inline-flex;
    gap: 0;
    animation: tickerScroll 30s linear infinite;
}

.tagline-ticker:hover .tagline-track {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.tagline-track span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    padding: 0 1.8rem;
}

.tagline-track span.ticker-sep {
    color: var(--emerald);
    padding: 0;
    opacity: 0.6;
}

.tagline-track span.ticker-hero {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    opacity: 1;
}

/* ─── Hero accent line ───────────────────────────────────────── */
.hero-accent {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.18);
    margin-bottom: 0.6rem;
    line-height: 1;
}

.hero-accent em {
    font-style: normal;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1;
}

/* ─── Typewriter ─────────────────────────────────────────────── */
.typed-span {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 2px; /* prevents layout shift when empty */
}

.typed-span::after {
    content: '|';
    -webkit-text-fill-color: var(--emerald);
    color: var(--emerald);
    font-weight: 300;
    animation: cursorBlink 0.65s step-end infinite;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .typed-span::after { animation: none; opacity: 1; }
}

/* ─── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
                transform 0.65s cubic-bezier(0.22,1,0.36,1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Custom Cursor (dot + ring) ────────────────────────────── */
@media (pointer: fine) {
    body, a, button, [role="button"] { cursor: none; }
}

#cursor-dot {
    width: 8px; height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: screen;
    will-change: transform;
    opacity: 0;
}

#cursor-ring {
    width: 32px; height: 32px;
    border: 1.5px solid rgba(110,231,183,0.45);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
    transition: border-color 0.2s, width 0.2s, height 0.2s;
    opacity: 0;
}

/* ─── Hero Canvas ────────────────────────────────────────────── */
#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.55;
}

/* ─── About Section ──────────────────────────────────────────── */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h2 {
    font-size: 1.9rem;
    margin-bottom: 1.25rem;
}

.about-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--emerald-deep);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

html[data-theme="dark"] .about-text h3 {
    color: var(--emerald);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-body);
    font-size: 0.95rem;
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.about-text ul li {
    padding: 0.3rem 0;
    font-size: 0.95rem;
    color: var(--text-body);
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.about-text ul li::before {
    content: '→';
    color: var(--emerald-deep);
    font-weight: 700;
    flex-shrink: 0;
}

html[data-theme="dark"] .about-text ul li::before {
    color: var(--emerald);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    background: var(--light-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--emerald-deep);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

html[data-theme="dark"] .highlight-item {
    border-left-color: var(--emerald);
    background: var(--bg-card-dark);
    border-color: var(--border);
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--glow-emerald);
    border-color: rgba(110,231,183,0.3);
}

.highlight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.highlight-icon {
    width: 34px;
    height: 34px;
    background: rgba(110,231,183,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-deep);
    flex-shrink: 0;
}

html[data-theme="dark"] .highlight-icon {
    background: rgba(110,231,183,0.08);
    color: var(--emerald);
}

.highlight-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

.highlight-item p,
.highlight-item li {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ─── Circle Highlights (dark section) ──────────────────────── */
.circle-highlights-section {
    background: var(--bg-darkest);
    padding: 72px 0;
    border-top: 1px solid rgba(110,231,183,0.06);
    border-bottom: 1px solid rgba(110,231,183,0.06);
    position: relative;
    overflow: hidden;
}

.circle-highlights-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(110,231,183,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110,231,183,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.circle-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.circle-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(110,231,183,0.05);
    border: 1.5px solid rgba(110,231,183,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald);
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.circle-item:hover .circle-icon {
    background: rgba(110,231,183,0.1);
    border-color: var(--emerald);
    box-shadow: 0 0 28px var(--glow-emerald);
    transform: translateY(-4px);
}

.circle-item span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

.circle-item:hover span {
    color: rgba(255,255,255,0.8);
}

/* ─── Courses Grid ───────────────────────────────────────────── */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 1.75rem;
}

.course-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1), 0 0 0 1px var(--emerald-deep);
    border-color: var(--emerald-deep);
}

html[data-theme="dark"] .course-card {
    background: var(--bg-card-dark);
    border-color: var(--border);
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

html[data-theme="dark"] .course-card:hover {
    border-color: var(--emerald);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--emerald);
}

.course-header {
    background: var(--grad-brand);
    padding: 1.75rem 2rem;
    position: relative;
    overflow: hidden;
}

.course-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.course-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0F172A;
    position: relative;
    z-index: 1;
}

.course-duration {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(15,23,42,0.65);
    margin-top: 0.3rem;
    position: relative;
    z-index: 1;
}

.course-body {
    padding: 1.75rem 2rem;
}

.course-body ul {
    list-style: none;
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.course-body ul li {
    font-size: 0.875rem;
    color: var(--text-body);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    line-height: 1.5;
}

.course-body ul li::before {
    content: '→';
    color: var(--emerald-deep);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.8rem;
}

html[data-theme="dark"] .course-body ul li::before {
    color: var(--emerald);
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0 1.25rem;
}

.course-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(110,231,183,0.1);
    color: var(--emerald-deep);
    border: 1px solid rgba(110,231,183,0.2);
}

html[data-theme="dark"] .course-tag {
    background: rgba(110,231,183,0.08);
    color: var(--emerald);
    border-color: rgba(110,231,183,0.2);
}

.course-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 10px 22px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--grad-brand);
    color: #0F172A;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.course-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--glow-emerald);
}

.course-card-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.course-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.course-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(7,14,26,0.7) 100%);
}

/* ─── Feature Cards ──────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-brand);
    opacity: 0;
    transition: opacity 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.07);
    border-color: rgba(110,231,183,0.3);
}

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

html[data-theme="dark"] .feature-card {
    background: var(--bg-card-dark);
    border-color: var(--border);
}

html[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    border-color: rgba(110,231,183,0.25);
}

.feature-icon {
    width: 46px;
    height: 46px;
    background: rgba(110,231,183,0.1);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--emerald-deep);
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

html[data-theme="dark"] .feature-icon {
    background: rgba(110,231,183,0.08);
    color: var(--emerald);
}

.feature-card:hover .feature-icon {
    background: rgba(110,231,183,0.18);
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ─── CTA Buttons ────────────────────────────────────────────── */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 13px 30px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--grad-brand);
    color: #0F172A;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-emerald);
}

.cta-button.cta-outline {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.35);
}

.cta-button.cta-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.6);
    box-shadow: none;
}

/* ─── Hero Section (inner pages) ────────────────────────────── */
.hero {
    background: var(--grad-dark);
    color: white;
    text-align: center;
    padding: 72px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(110,231,183,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110,231,183,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero h1 {
    font-size: 2.8rem;
    color: white;
    letter-spacing: -0.045em;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

/* ─── Forms ──────────────────────────────────────────────────── */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: var(--light-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

html[data-theme="dark"] .contact-form {
    background: var(--bg-card-dark);
    border-color: var(--border);
}

.contact-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border-strong);
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group textarea,
html[data-theme="dark"] .form-group select {
    background: var(--bg-dark);
    border-color: var(--border);
    color: var(--text-dark);
}

html[data-theme="dark"] .form-group select option {
    background: var(--bg-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--emerald-deep);
    box-shadow: 0 0 0 3px var(--glow-emerald);
}

html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group textarea:focus,
html[data-theme="dark"] .form-group select:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(110,231,183,0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--grad-brand);
    color: #0F172A;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--glow-emerald);
}

/* ─── Contact Info ───────────────────────────────────────────── */
.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    background: var(--light-card);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

html[data-theme="dark"] .contact-item {
    background: var(--bg-card-dark);
    border-color: var(--border);
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: rgba(110,231,183,0.3);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

html[data-theme="dark"] .contact-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(110,231,183,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--emerald-deep);
}

.contact-item h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald-deep);
    margin-bottom: 0.3rem;
}

html[data-theme="dark"] .contact-item h4 { color: var(--emerald); }

.contact-item p, .contact-item a {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
}

.contact-item a:hover { color: var(--emerald-deep); }

/* ─── Course Detail ──────────────────────────────────────────── */
.course-detail-hero {
    background: var(--grad-dark);
    padding: 48px 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-with-image {
    display: flex;
    flex-direction: column;
}

.hero-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.course-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(110,231,183,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110,231,183,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.course-detail-hero h1 {
    font-size: 2.6rem;
    color: white;
    letter-spacing: -0.045em;
    position: relative;
    z-index: 1;
}

.course-detail-hero p {
    color: rgba(255,255,255,0.65);
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
}

.course-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.course-sidebar {
    position: sticky;
    top: 100px;
}

.info-box {
    background: var(--light-card);
    padding: 1.75rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

html[data-theme="dark"] .info-box {
    background: var(--bg-card-dark);
    border-color: var(--border);
}

.info-box h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--emerald-deep);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[data-theme="dark"] .info-box h3 { color: var(--emerald); }

.info-box p {
    font-size: 0.875rem;
    color: var(--text-body);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.module {
    background: var(--light-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

html[data-theme="dark"] .module {
    background: var(--bg-card-dark);
    border-color: var(--border);
}

.module:hover { border-color: rgba(110,231,183,0.3); }

.module h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.module ul li {
    font-size: 0.875rem;
    color: var(--text-body);
    padding: 0.2rem 0;
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
}

.module ul li::before {
    content: '·';
    color: var(--emerald-deep);
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
    background: var(--bg-darkest);
    padding: 4rem 0 1.5rem;
    border-top: 1px solid rgba(110,231,183,0.08);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(110,231,183,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110,231,183,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.footer-section ul li { margin-bottom: 0.4rem; }

.footer-section a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-section a:hover { color: var(--emerald); }

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.social-links a:hover {
    background: rgba(110,231,183,0.1);
    border-color: rgba(110,231,183,0.3);
    color: var(--emerald);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.22);
}

/* ─── Admin / Content Manager ────────────────────────────────── */
.admin-header {
    background: var(--grad-dark);
    color: white;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(110,231,183,0.1);
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(110,231,183,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110,231,183,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.admin-header .container { position: relative; z-index: 1; }

.admin-header h1 {
    color: white;
    font-size: 1.8rem;
}

.admin-header p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.admin-header a {
    color: var(--emerald);
    font-size: 0.875rem;
    margin-top: 1rem;
    display: inline-block;
    font-weight: 600;
    transition: color 0.2s;
}

.admin-header a:hover { color: var(--emerald-mid); }

.admin-container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 24px;
}

.content-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-section {
    background: var(--white);
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid var(--border);
}

html[data-theme="dark"] .admin-section {
    background: var(--bg-card-dark);
    border-color: var(--border);
}

.admin-section h2 { font-size: 1.15rem; margin-bottom: 1.25rem; }

.add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: var(--grad-brand);
    color: #0F172A;
    border: none;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: opacity 0.2s, box-shadow 0.2s;
}

.add-btn:hover {
    opacity: 0.9;
    box-shadow: 0 6px 20px var(--glow-emerald);
}

.course-list { display: grid; gap: 0.75rem; }

.course-list-item {
    background: var(--light-bg);
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

html[data-theme="dark"] .course-list-item {
    background: var(--bg-elevated);
    border-color: var(--border);
}

.course-list-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.course-list-item p { font-size: 0.82rem; color: var(--text-light); }
.course-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.edit-btn {
    padding: 7px 16px;
    border-radius: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(110,231,183,0.1);
    color: var(--emerald-deep);
    border: 1px solid rgba(110,231,183,0.25);
    cursor: pointer;
    transition: background 0.2s;
}

.edit-btn:hover { background: rgba(110,231,183,0.2); }

html[data-theme="dark"] .edit-btn {
    color: var(--emerald);
    background: rgba(110,231,183,0.08);
}

.delete-btn {
    padding: 7px 16px;
    border-radius: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(239,68,68,0.08);
    color: #EF4444;
    border: 1px solid rgba(239,68,68,0.2);
    cursor: pointer;
    transition: background 0.2s;
}

.delete-btn:hover { background: rgba(239,68,68,0.15); }

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}

html[data-theme="dark"] .modal-content {
    background: var(--bg-card-dark);
    border-color: var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 { font-size: 1.15rem; }

.close-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0 0.25rem;
    transition: color 0.2s;
}

.close-btn:hover { color: var(--text-dark); }

.modal-content form { padding: 1.5rem 2rem 2rem; }

/* ─── Misc ───────────────────────────────────────────────────── */
code {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    background: var(--light-bg);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--emerald-deep);
}

html[data-theme="dark"] code {
    background: var(--bg-elevated);
    color: var(--emerald);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .promo-slider { height: 460px; }
    .promo-left-panel {
        width: 100%;
        padding: 2.5rem 1.5rem 4rem;
        background: linear-gradient(to bottom, rgba(7,14,26,0.7) 0%, rgba(7,14,26,0.5) 100%);
    }
    .promo-prev { right: calc(2rem + 44px); }
    .promo-next { right: 2rem; }
}

@media (max-width: 768px) {
    section { padding: 56px 0; }
    section h2 { font-size: 1.75rem; }
    .hero h1 { font-size: 2rem; }

    .about-content,
    .contact-content,
    .course-detail-content {
        grid-template-columns: 1fr;
    }

    .course-sidebar { position: static; }

    .courses-grid,
    .features-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .mobile-menu-btn { display: block; }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 32px rgba(0,0,0,0.08);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        z-index: 999;
    }

    html[data-theme="dark"] nav ul {
        background: rgba(15,23,42,0.96);
    }

    nav ul.active { display: flex; }
    nav ul li { padding: 0; }

    nav a {
        display: block;
        padding: 0.75rem 1.5rem;
        border-radius: 0;
    }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .circle-icon { width: 86px; height: 86px; }
    .promo-left-panel h1 { font-size: 2rem; }
    .promo-left-panel h2 { font-size: 1.75rem; }
    .theme-toggle { margin-right: 0; }
    .logo { padding-left: 0.75rem; }
}

@media (max-width: 480px) {
    body { font-size: 1rem; } /* 16px minimum on mobile */
    section h2 { font-size: 1.55rem; }
    .hero h1 { font-size: 1.75rem; }
    .promo-left-panel { padding: 1.75rem 1.25rem 3.5rem; }
    .promo-left-panel h1 { font-size: 1.75rem; margin-bottom: 0.75rem; }
    .promo-desc { display: none; } /* hide description — slider has fixed height */
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .cta-button { width: 100%; justify-content: center; text-align: center; }
    .footer-content { grid-template-columns: 1fr; }
}

/* ─── Minimum 320px (very small phones) ─────────────────────── */
@media (max-width: 360px) {
    .container { padding: 0 16px; }
    .promo-left-panel { padding: 1.5rem 1rem 3rem; }
    .promo-left-panel h1 { font-size: 1.5rem; }
    .promo-left-panel h2 { font-size: 1.35rem; }
    .cta-button { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
    .hero-accent { font-size: 0.85rem; }
    .promo-label { display: none; }
}

/* ─── Touch Targets (≥44px) ──────────────────────────────────── */
.promo-dot {
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-arrow {
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-btn {
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 768px) {
    nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ─── Boot Camp Registration Modal ──────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay[hidden] { display: none; }

.modal-border-wrap {
    background: linear-gradient(135deg, #6EE7B7, #38BDF8, #3B82F6);
    border-radius: 1.35rem;
    padding: 2px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.modal-box {
    background: #1e293b;
    border-radius: 1.25rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--border); color: var(--text-dark); }

.modal-header { display: block; margin-bottom: 1.5rem; padding: 0 0 1rem; border-bottom: 1px solid var(--border); text-align: center; }
.modal-header h2 { font-size: 1.4rem; margin-bottom: 0.25rem; color: var(--text-dark); }
.modal-header p { font-size: 0.875rem; color: var(--text-light); }

.form-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald);
    margin: 1.5rem 0 0.75rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.bootcamp-form .form-group { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.5rem; }
.bootcamp-form label { font-size: 0.85rem; font-weight: 500; color: var(--text-dark); }
.optional { font-weight: 400; color: var(--text-light); }
.req { color: #f87171; }

.bootcamp-form input[type="text"],
.bootcamp-form input[type="tel"],
.bootcamp-form input[type="email"],
.bootcamp-form input[type="date"],
.bootcamp-form select {
    background: #0f172a;
    border: 1px solid rgba(110,231,183,0.2);
    border-radius: 0.6rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    color: #e2eaf4;
    width: 100%;
    transition: border-color 0.2s;
    font-family: inherit;
    color-scheme: dark;
}
.bootcamp-form input:focus,
.bootcamp-form select:focus {
    outline: none;
    border-color: var(--emerald);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.form-check input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--emerald); }
.form-check label { font-size: 0.85rem; color: var(--text-dark); line-height: 1.5; }

.modal-submit-row { margin-top: 1.5rem; }
.modal-submit-btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(90deg, #6EE7B7, #38BDF8, #3B82F6);
    color: #0f172a;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.modal-submit-btn:hover { opacity: 0.88; }
.modal-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.modal-success {
    margin-top: 1.25rem;
    text-align: center;
    color: #6EE7B7;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ─── Announcement Bar ───────────────────────────────────────── */
.announcement-bar {
    position: relative;
    background: linear-gradient(90deg, #6EE7B7, #38BDF8, #3B82F6);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.65rem 3rem;
    font-size: 0.9rem;
    line-height: 1.4;
    z-index: 900;
}

.announcement-bar.hidden {
    display: none;
}

.announcement-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: center;
    text-align: center;
}

.announcement-tag {
    background: rgba(0,0,0,0.15);
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.announcement-text {
    color: #0f172a;
}

.announcement-cta {
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.announcement-cta:hover {
    opacity: 0.85;
}

.announcement-close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(15,23,42,0.5);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.announcement-close:hover {
    color: #0f172a;
}

/* ─── Hero Badge ─────────────────────────────────────────────── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(110,231,183,0.1);
    border: 1px solid rgba(110,231,183,0.25);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--emerald);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.badge-pulse {
    width: 6px; height: 6px;
    background: var(--emerald);
    border-radius: 50%;
    flex-shrink: 0;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(1.6); }
}

/* ─── Hero Deco Stat Cards ───────────────────────────────────── */
.hero-deco-cards {
    position: absolute;
    bottom: 3.5rem;
    right: 2rem;
    display: flex;
    gap: 10px;
    z-index: 5;
    pointer-events: none;
    align-items: flex-end;
}

.hero-deco-card {
    background: rgba(7,14,26,0.78);
    border: 1px solid rgba(110,231,183,0.2);
    border-radius: 14px;
    padding: 13px 16px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 78px;
    text-align: center;
    animation: floatCard 5s ease-in-out infinite;
}

.hero-deco-card:nth-child(2) {
    animation-delay: 0.8s;
    margin-bottom: 12px;
}

.hero-deco-card:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-9px); }
}

.hdc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald);
}

.hdc-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hdc-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .hero-deco-cards { display: none; }
}

/* ─── Hero Orbs ──────────────────────────────────────────────── */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(72px);
    animation: orbFloat 20s ease-in-out infinite;
    z-index: 0;
}

.hero-orb1 {
    width: 380px; height: 380px;
    background: rgba(110,231,183,0.14);
    top: -80px; left: -80px;
    animation-duration: 22s;
}

.hero-orb2 {
    width: 280px; height: 280px;
    background: rgba(56,189,248,0.1);
    bottom: -50px; right: 8%;
    animation-duration: 18s;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    33%       { transform: translateY(-28px) scale(1.04); }
    66%       { transform: translateY(14px) scale(0.97); }
}

/* ─── Stats / Counter Section ────────────────────────────────── */
.stats-section {
    background: var(--light-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 64px 0;
}

html[data-theme="dark"] .stats-section {
    background: var(--bg-dark);
    border-color: var(--border);
}

.stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
}

.stat-item { text-align: center; }

.stat-number {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-desc {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 6px;
}

.stats-progress {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.progress-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-row-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
}

.progress-row-pct {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--emerald-deep);
}

html[data-theme="dark"] .progress-row-pct { color: var(--emerald); }

.progress-track {
    height: 5px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--grad-brand);
    border-radius: 100px;
    width: 0;
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 768px) {
    .stats-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .stat-number { font-size: 2.4rem; }
}

/* ─── Steps / Journey Section ────────────────────────────────── */
.steps-section {
    padding: 80px 0;
    background: var(--white);
}

html[data-theme="dark"] .steps-section { background: var(--bg-darkest); }

.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 3rem;
    position: relative;
}

.step-connector {
    position: absolute;
    top: 26px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(110,231,183,0.4) 15%,
        rgba(56,189,248,0.4) 50%,
        rgba(59,130,246,0.4) 85%,
        transparent
    );
    pointer-events: none;
    z-index: 0;
}

.step-item {
    text-align: center;
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: var(--white);
    transition: border-color 0.3s, box-shadow 0.3s;
}

html[data-theme="dark"] .step-num {
    background: var(--bg-darkest);
    border-color: rgba(255,255,255,0.12);
}

.step-num span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-item:hover .step-num {
    border-color: var(--emerald-deep);
    box-shadow: 0 0 22px var(--glow-emerald);
}

.step-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.65;
}

@media (max-width: 768px) {
    .steps-row { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .step-connector { display: none; }
}

@media (max-width: 480px) {
    .steps-row { grid-template-columns: 1fr; }
}

/* ─── Section orbs (for dark sections) ──────────────────────── */
.section-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(64px);
    opacity: 0.14;
    z-index: 0;
}

.section-orb-teal { background: var(--emerald); }
.section-orb-blue { background: var(--sky); }

/* ─── Feature card enhanced hover glow ──────────────────────── */
.feature-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.07),
                0 0 0 1px rgba(110,231,183,0.18),
                0 4px 22px var(--glow-emerald);
}

html[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.3),
                0 0 0 1px rgba(110,231,183,0.18),
                0 4px 24px var(--glow-emerald);
}


/* ─── Learning Approach Cards ────────────────────────────────── */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.approach-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.approach-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
    border-color: rgba(110,231,183,0.25);
}

html[data-theme="dark"] .approach-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.approach-card h3 {
    color: var(--emerald-deep);
    margin: 0;
}

/* ─── Our Promise Banner ─────────────────────────────────────── */
.promise-banner {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--bg-darkest);
    color: white;
    border-radius: 16px;
    border: 1px solid rgba(110,231,183,0.12);
    position: relative;
    overflow: hidden;
}

.promise-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(110,231,183,0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(110,231,183,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.promise-banner h3 {
    color: white;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

.promise-banner p {
    color: rgba(255,255,255,0.65);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* ─── Dark CTA Section ───────────────────────────────────────── */
.section-dark-cta {
    background: var(--bg-darkest);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-dark-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(110,231,183,0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(110,231,183,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.section-dark-cta .container {
    position: relative;
    z-index: 1;
}

.section-dark-cta h2 { color: white; }

.section-dark-cta .cta-desc {
    color: rgba(255,255,255,0.55);
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.cta-flex {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Mission List ───────────────────────────────────────────── */
.mission-list {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.mission-list li { padding: 0.3rem 0; }

/* ─── Animated Grid Background ──────────────────────────────── */
@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 40px 40px; }
}

/* Apply drift to every dark section that uses the grid pattern */
.promo-slider::before,
.hero::before,
.course-detail-hero::before,
.circle-highlights-section::before,
.promise-banner::before,
.section-dark-cta::before,
.footer::before,
.admin-header::before {
    animation: gridDrift 28s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .promo-slider::before,
    .hero::before,
    .course-detail-hero::before,
    .circle-highlights-section::before,
    .footer::before,
    .admin-header::before {
        animation: none;
    }
}

/* ─── WhatsApp Floating Button ─────────────────────────────── */
.wa-fab {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 900;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    isolation: isolate;
}
.wa-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.wa-fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: waPulse 2.8s ease-out infinite;
}
@keyframes waPulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.9); opacity: 0; }
}
.wa-fab-tip {
    position: absolute;
    right: calc(100% + 10px);
    background: var(--bg-card, #fff);
    color: var(--text, #111);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 14px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
.wa-fab:hover .wa-fab-tip { opacity: 1; }
@media (max-width: 480px) {
    .wa-fab { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
    .wa-fab-pulse { animation: none; }
}

/* ─── Noise Texture Overlay ──────────────────────────────────── */
.hero::after,
.section-dark-cta::after,
.promise-banner::after,
.circle-highlights-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
}

/* ─── FAQ Items ──────────────────────────────────────────────── */
.faq-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-color: rgba(110,231,183,0.3);
}

html[data-theme="dark"] .faq-item {
    background: var(--bg-card-dark);
    border-color: var(--border);
}

html[data-theme="dark"] .faq-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    border-color: rgba(110,231,183,0.25);
}

.faq-item h4 { color: var(--emerald-deep); margin-bottom: 0.5rem; }
html[data-theme="dark"] .faq-item h4 { color: var(--emerald); }

/* ─── Glassmorphism Card Variant ─────────────────────────────── */
.glass-card {
    background: rgba(110,231,183,0.06);
    border: 1px solid rgba(110,231,183,0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ─── Touch devices: bake hover effects in permanently ───────── */
@media (hover: none) and (pointer: coarse) {
    /* Feature cards — show gradient top bar and border highlight */
    .feature-card::before { opacity: 0.7; }
    .feature-card {
        border-color: rgba(110,231,183,0.22);
        box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    }
    .feature-card .feature-icon {
        background: rgba(110,231,183,0.18);
    }
    .feature-card:active {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 4px 16px var(--glow-emerald);
    }

    /* Approach cards — show border (was transparent) and shadow */
    .approach-card {
        border-color: rgba(110,231,183,0.22);
        box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    }
    .approach-card:active {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }

    /* Highlight / mission cards — show glow shadow */
    .highlight-item {
        box-shadow: 0 4px 18px var(--glow-emerald);
        border-color: rgba(110,231,183,0.28);
    }
    .highlight-item:active { transform: translateY(-2px); }

    /* Course cards */
    .course-card {
        border-color: rgba(110,231,183,0.22);
        box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    }
    .course-card:active {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.1), 0 0 0 1px var(--emerald-deep);
    }

    /* FAQ items */
    .faq-item {
        border-color: rgba(110,231,183,0.2);
    }
}
