@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* -------------------------------------------------------------
   CORE DESIGN SYSTEM & VARIABLES
   ------------------------------------------------------------- */
:root {
    --bg-darker: #090d16;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.2);
    
    /* Harmonious Gradients */
    --accent-indigo: #6366f1;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --gradient-primary: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    --gradient-glow: linear-gradient(135deg, var(--accent-indigo), var(--accent-pink));
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-highlight: #38bdf8;
    
    /* Animation Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* -------------------------------------------------------------
   LAYOUT & CONTAINERS
   ------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

/* -------------------------------------------------------------
   BACKGROUND GLOW ELEMENTS
   ------------------------------------------------------------- */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -10%;
    left: -10%;
    z-index: 0;
    pointer-events: none;
}
.glow-bg-right {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(0,0,0,0) 70%);
    bottom: 10%;
    right: -10%;
    z-index: 0;
    pointer-events: none;
}

/* -------------------------------------------------------------
   NAVIGATION BAR
   ------------------------------------------------------------- */
header {
    background: rgba(9, 13, 22, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}
.nav-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.nav-item a:hover {
    color: var(--text-main);
}
.btn-login {
    background: var(--gradient-primary);
    color: var(--text-main) !important;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

/* -------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------- */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 120px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-highlight);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-content h1 span {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}
.hero-actions {
    display: flex;
    gap: 1.2rem;
}
.btn-primary {
    background: var(--gradient-glow);
    color: var(--text-main);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.2);
    transition: var(--transition-smooth);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(236, 72, 153, 0.4);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-circle {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--gradient-glow);
    filter: blur(80px);
    position: absolute;
    opacity: 0.4;
    animation: pulse 6s infinite alternate;
}
.hero-card, .hero-card-3d {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.hero-card-3d:hover {
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.35);
}
.hero-card-3d .pop-out {
    transform: translateZ(50px);
    transition: transform 0.3s ease;
}
.hero-card-3d .pop-out-deep {
    transform: translateZ(80px);
    transition: transform 0.3s ease;
}
.hero-card-3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
    z-index: 2;
}

/* Category Grid & Cards */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.search-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition-smooth);
}
.search-input:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}
.category-icon {
    font-size: 2rem;
    transition: var(--transition-smooth);
}
.category-card:hover .category-icon {
    transform: scale(1.2) rotate(10deg);
}
.category-info h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}
.category-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.category-badge-locked {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font-size: 0.7rem;
    color: var(--accent-pink);
    opacity: 0.6;
}

/* Video Section styling */
.video-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
.video-wrapper-youtube {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 15px 40px rgba(99,102,241,0.25);
    border: 1px solid var(--border-glow);
    background: #000;
}
.video-wrapper-youtube iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* -------------------------------------------------------------
   STATS SECTION
   ------------------------------------------------------------- */
.stats {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-card h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}
.stat-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* -------------------------------------------------------------
   MISSION & VISION SECTION
   ------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.1);
}
.about-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.about-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.about-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* -------------------------------------------------------------
   WHY CHOOSE US SECTION
   ------------------------------------------------------------- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}
.section-header h2 span {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
}
.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-indigo);
    margin-bottom: 1.5rem;
}
.feature-card h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* -------------------------------------------------------------
   COURSES CATALOG
   ------------------------------------------------------------- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
}
.course-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(9, 13, 22, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.course-badge.locked {
    color: var(--accent-pink);
}
.course-badge.unlocked {
    color: #10b981;
}
.course-image-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    padding: 0 1rem;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.course-content {
    padding: 2rem;
}
.course-content h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.course-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* -------------------------------------------------------------
   STUDENT PORTAL MODAL / SECTION
   ------------------------------------------------------------- */
.portal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 13, 22, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.portal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.portal-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    position: relative;
}
.btn-close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-close-modal:hover {
    color: var(--text-main);
}
.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.form-group {
    margin-bottom: 1.8rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}
.input-code {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-main);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-smooth);
}
.input-code:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}
.btn-submit-code {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--text-main);
    border: none;
    padding: 1.1rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    transition: var(--transition-smooth);
}
.btn-submit-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}
.modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.modal-footer code {
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--text-highlight);
    font-weight: bold;
}

/* -------------------------------------------------------------
   STUDENT PLATFORM VIEW (CLASSROOM)
   ------------------------------------------------------------- */
.classroom-container {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
    background: var(--bg-darker);
}
.classroom-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 80px);
}
.classroom-sidebar {
    background: rgba(15, 23, 42, 0.4);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.classroom-welcome {
    margin-bottom: 2rem;
}
.classroom-welcome h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.classroom-welcome p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.module-list {
    list-style: none;
}
.module-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin: 1.5rem 0 0.8rem;
}
.lesson-item {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    margin-bottom: 0.3rem;
}
.lesson-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}
.lesson-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-highlight);
    font-weight: 600;
    border-left: 3px solid var(--accent-indigo);
}
.classroom-content {
    padding: 2.5rem;
    overflow-y: auto;
}
.classroom-player-wrapper {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}
.classroom-player-wrapper iframe, .classroom-player-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
}
.lesson-details h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}
.lesson-details p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}
.resources-section {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}
.resources-section h5 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}
.resource-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.resource-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-glow);
}
.resource-icon {
    font-size: 1.4rem;
}

/* -------------------------------------------------------------
   ANIMATION KEYFRAMES
   ------------------------------------------------------------- */
@keyframes pulse {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.1) translate(10px, -10px);
        opacity: 0.55;
    }
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-visual {
        order: -1;
    }
    .hero-actions {
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .classroom-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .classroom-sidebar {
        height: 300px;
    }
}

/* -------------------------------------------------------------
   COOKIES & POLICIES STYLING
   ------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    width: calc(100% - 4rem);
    max-width: 650px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.active {
    transform: translateX(-50%) translateY(0);
}
.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.cookie-banner p a {
    color: var(--text-highlight);
    text-decoration: underline;
}

/* Legal Modals Content Styling */
.legal-modal-content {
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-right: 0.5rem;
    margin-top: 1rem;
    text-align: left;
}
.legal-modal-content h4 {
    color: var(--text-main);
    margin: 1.5rem 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}
.legal-modal-content p {
    margin-bottom: 1rem;
}

/* -------------------------------------------------------------
   ADMIN DASHBOARD CONTAINER
   ------------------------------------------------------------- */
.admin-container {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
    background: var(--bg-darker);
}
.admin-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: calc(100vh - 80px);
}
.admin-sidebar {
    background: rgba(15, 23, 42, 0.4);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}
.admin-menu {
    list-style: none;
}
.admin-menu-item {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.admin-menu-item:hover, .admin-menu-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-main);
    font-weight: 600;
}
.admin-content-area {
    padding: 2.5rem;
    overflow-y: auto;
    height: calc(100vh - 80px);
}
.admin-content-section {
    display: none;
}
.admin-content-section.active {
    display: block;
}
.admin-form {
    max-width: 750px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
}
.admin-input-group {
    margin-bottom: 1.5rem;
}
.admin-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.admin-input, .admin-textarea, .admin-select {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.admin-input:focus, .admin-textarea:focus, .admin-select:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}
.admin-textarea {
    resize: vertical;
    height: 120px;
}
.admin-table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.admin-table th, .admin-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.admin-table th {
    background: rgba(255,255,255,0.02);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}
.admin-table tr:last-child td {
    border-bottom: none;
}
.admin-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}
.admin-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}
.btn-delete:hover {
    background: #ef4444;
    color: var(--text-main);
}
.btn-generate {
    background: var(--gradient-primary);
    color: var(--text-main);
    border: none;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    transition: var(--transition-smooth);
}
.btn-generate:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.admin-panel-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
}


/* =========================================================
   CUSTOM HERO BANNER (ESTUDIANTES)
   ========================================================= */
.custom-hero-banner {
    position: relative;
    width: 100vw;
    height: 600px;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    margin-top: 80px; /* Offset for fixed header */
    margin-bottom: 2rem;
}

.custom-hero-banner img.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: transform 0.8s ease;
}

.custom-hero-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.1) 100%);
    z-index: 2;
}

.custom-banner-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-text-section {
    max-width: 55%;
    color: var(--text-main);
    cursor: pointer;
}

.custom-text-section h1 {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.custom-text-section h1 span {
    color: var(--text-highlight);
}

.custom-text-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.custom-hover-text-container {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-text-section:hover .custom-hover-text-container {
    height: auto;
    opacity: 1;
    transform: translateY(0);
    padding-top: 1rem;
    border-top: 2px solid var(--text-highlight);
}

.custom-hover-text-container h3 {
    color: var(--accent-pink);
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.custom-hover-text-container p {
    font-size: 1.1rem;
    color: var(--text-main);
}

.custom-text-section:hover ~ img.bg-image {
    transform: scale(1.05);
}

.custom-animated-side {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-circle-anim {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed var(--text-highlight);
    animation: customSpin 15s linear infinite;
}

.custom-circle-1 {
    width: 280px;
    height: 280px;
    animation-duration: 25s;
    border-color: rgba(56, 189, 248, 0.4);
}

.custom-circle-2 {
    width: 200px;
    height: 200px;
    animation-direction: reverse;
    animation-duration: 18s;
    border-color: rgba(236, 72, 153, 0.6);
}

.custom-circle-3 {
    width: 120px;
    height: 120px;
    animation-duration: 10s;
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-circle-3::after {
    content: "ˇEstudia Ahora!";
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-main);
    text-align: center;
    animation: customPulse 2s infinite;
}

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

@keyframes customPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .custom-banner-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 2rem;
    }
    .custom-hero-banner::after {
        background: rgba(15, 23, 42, 0.85);
    }
    .custom-text-section {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    .custom-text-section h1 {
        font-size: 2.5rem;
    }
    .custom-animated-side {
        width: 200px;
        height: 200px;
    }
    .custom-circle-1 { width: 180px; height: 180px; }
    .custom-circle-2 { width: 130px; height: 130px; }
    .custom-circle-3 { width: 80px; height: 80px; }
    .custom-circle-3::after { font-size: 0.8rem; }
}


/* --- MOBILE FIXES --- */
@media (max-width: 768px) {
    /* Header Mobile Fix */
    .nav-container { justify-content: center; }
    .nav-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: row;
        justify-content: center;
        padding: 0.8rem;
        gap: 1rem;
        z-index: 1000;
        border-top: 1px solid var(--border-color);
        margin: 0;
    }
    .nav-item a { display: none; }
    header { border-bottom: none; }
    
    /* Hero Section Mobile Fix */
    .custom-hero-banner {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 6rem;
    }
    .custom-banner-content {
        flex-direction: column;
        padding-top: 0;
    }
    .custom-text-section h1 { font-size: 2.5rem; }
    .custom-hover-text-container {
        height: auto !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding-top: 1rem;
        border-top: 2px solid var(--text-highlight);
    }
    
    /* 3D Card Fix */
    .custom-animated-side {
        width: 100%;
        height: auto;
        margin-top: 2rem;
    }
    .hero-card-3d {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    /* Grids Fix */
    .video-grid, .features-grid, .courses-grid, .stats-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .section-header h2 { font-size: 2.2rem; }
}

/* Fix for cookie banner overlapping with bottom nav on mobile */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 5rem !important;
        flex-direction: column;
        text-align: center;
        width: 90%;
    }
    #btn-accept-cookies {
        width: 100%;
        padding: 1rem;
        margin-top: 0.5rem;
    }
}
