/* --- ULTRA PREMIUM DESIGN --- */
/* Variables now managed via Settings.php / renderThemeCSS() */


/* --- 1. THEME VARIABLES --- */
/* Light Mode (Default) */
:root {
    /* Typography */
    --font-body: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;

    /* Colors - DARK THEME (Matching Homepage) */
    --bg-primary: #050505;
    --bg-secondary: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --crimson-red: #E11D48;

    /* Gradients */
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);

    /* ENFORCED HIGH CONTRAST */
    --primary: #050505;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --accent: #E11D48;
    --accent-gold: #f59e0b;
    --gradient-button: linear-gradient(135deg, #E11D48 0%, #be123c 100%);
}

/* Optional Light Mode Overrides */
body.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --border-color: #e2e8f0;
    --primary: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
}

/* --- 2. GLOBAL RESET & TYPOGRAPHY --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;

    /* Sticky Footer Implementation */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content grows to push footer to bottom */
main {
    flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
}


.text-highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    display: inline-block;
}

/* --- 3. COMPONENTS --- */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-pad {
    padding: 60px 0;
    position: relative;
}

@media (max-width: 768px) {
    .section-pad {
        padding: 60px 0;
    }
}

.btn {
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
}

.btn-primary {
    background: var(--gradient-button);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
    transform: translateY(-2px);
}

.btn-gold {
    background: white;
    color: #050505;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-gold:hover {
    background: #fb7185;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--crimson-red);
    color: var(--crimson-red);
    background: rgba(225, 29, 72, 0.05);
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.15);
}

/* --- 4. HEADER (Glassmorphism) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.4s ease;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* Fix for unwanted borders/underlines */
    outline: none !important;
    border: none !important;
}

.logo:hover,
.logo:focus,
.logo:active,
.logo:visited {
    text-decoration: none !important;
    outline: none !important;
    border: none !important;
    color: var(--text-main);
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Remove click border/outline */
    outline: none !important;
}

.nav-menu a.active {
    color: var(--accent) !important;
    font-weight: 700;
}

.nav-menu a:focus,
.nav-menu a:active,
.nav-menu a:visited {
    outline: none !important;
    border: none !important;
    color: var(--text-main);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease-in-out;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
}


/* --- 5. HERO SECTION --- */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Background FX */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15);
    animation: float 6s ease-in-out infinite;
}

.hero-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    white-space: nowrap;
    text-transform: uppercase;
    font-family: var(--font-heading);
    margin: 30px 0 40px 0;
    width: 100%;
}

.text-top,
.text-bottom {
    font-size: clamp(0.7rem, 1.5vw, 1.2rem);
    font-weight: 600;
    color: #374151;
    /* Dark Gray for visibility */
    letter-spacing: 1px;
}

.text-main {
    font-size: clamp(1.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--crimson-red);
    /* Premium Crimson Red */
    line-height: 1;
    padding: 0 5px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-line {
        gap: 8px;
    }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);

    margin-bottom: 40px;
    max-width: 700px;
    margin-inline: auto;
    font-weight: 300;
}

.timer-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 25px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

/* --- 6. FLOATING STATS --- */
.stats-container {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding: 0 24px;
    pointer-events: none;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    pointer-events: auto;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 15px 10px;
    text-align: center;
    min-width: 200px;
    flex: 1;
    max-width: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: visible;
    white-space: normal;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--crimson-red);
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- MENTOR SECTION --- */
.ceo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ceo-text h2 {
    color: var(--text-main) !important;

    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.ceo-quote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 0 20px 20px 0;
    margin: 30px 0;
    color: var(--text-main);
    font-style: italic;
    font-weight: 500;
}

.ceo-img-container {
    position: relative;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 5px solid #ffffff;
}

/* --- CARDS & GRID --- */
.feature-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--crimson-red);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.feat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.feat-title {
    color: white !important;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.module-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-text);
    opacity: 0;
    transition: 0.3s;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--crimson-red);
}

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

/* --- 10. PREMIUM ROADMAP (Timeline) --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--gradient-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background: var(--primary);
    border: 4px solid var(--accent);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.05);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent rgba(255, 255, 255, 0.05) transparent transparent;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--glass);
    border: 1px solid var(--glass-border);

    position: relative;
    border-radius: 12px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-main);

    margin-bottom: 5px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {

    .nav-menu,
    .nav-btns {
        display: none;
    }

    .menu-toggle {
        display: block !important;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }

    .menu-toggle i {
        font-size: 1.6rem;
        color: #ffffff;
        /* Explicitly white for dark theme */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent rgba(255, 255, 255, 0.05) transparent transparent;
    }

    .left::after,
    .right::after {
        left: 21px;
    }

    .right {
        left: 0;
    }
}

/* Header Spacer */
.header-spacer {
    height: 60px;
}

/* --- MOBILE NAVIGATION --- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-header .logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.close-menu {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-nav-links {
    list-style: none;
    padding: 20px;
}

.mobile-nav-links li {
    margin-bottom: 15px;
}

.mobile-nav-links a {
    display: block;
    padding: 12px 15px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.mobile-nav-links a:hover {
    background: rgba(225, 29, 72, 0.1);
    color: var(--crimson-red);
}

/* Auth specific for mobile nav */
.mobile-nav-links .btn {
    width: 100%;
    margin-top: 10px;
}

/* Hide mobile nav on desktop */
@media (min-width: 769px) {

    .menu-toggle,
    .mobile-nav {
        display: none !important;
    }
}