/* ========================================
   VARIABLE DEFINITIONS & RESET
   ======================================== */

:root {
    /* ===== CORE COLOR SYSTEM ===== */
    --primary-glow-color: rgba(168, 85, 247, 0.5);
    --secondary-glow-color: rgba(78, 205, 196, 0.4);
    --math-glow-color: rgba(255, 165, 0, 0.5);
    --ai-glow-color: rgba(236, 72, 153, 0.5);

    /* ===== GLASSMORPHISM SYSTEM ===== */
    --glass-bg-dark: rgba(8, 8, 16, 0.9);
    --glass-bg-light: rgba(16, 16, 28, 0.8);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-blur: 20px;
    --glass-hover-bg-light: rgba(24, 24, 40, 0.9);
    --glass-hover-border: rgba(255, 255, 255, 0.2);
    --glass-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);

    /* ===== INCLUSIVITY SECTION COLORS ===== */
    --inclusivity-gradient: linear-gradient(135deg,
            var(--primary-glow-color),
            var(--secondary-glow-color),
            var(--math-glow-color),
            var(--ai-glow-color));
    --inclusivity-bg: rgba(168, 85, 247, 0.05);
    --inclusivity-border: rgba(168, 85, 247, 0.2);
    --demographic-kids: rgba(78, 205, 196, 0.8);
    --demographic-teens: rgba(168, 85, 247, 0.8);
    --demographic-adults: rgba(255, 165, 0, 0.8);
    --demographic-professionals: rgba(236, 72, 153, 0.8);

    /* ===== GIRLS SECTION COLORS ===== */
    --girls-primary: rgba(236, 72, 153, 0.8);
    --girls-secondary: rgba(251, 207, 232, 0.6);
    --girls-accent: rgba(168, 85, 247, 0.7);
    --girls-warm-bg: rgba(251, 207, 232, 0.1);
    --girls-empowerment-color: #EC4899;
    --girls-confidence-color: #A855F7;
    --girls-creativity-color: #F59E0B;
    --girls-teamwork-color: #10B981;

    /* ===== ENHANCED TYPOGRAPHY SYSTEM ===== */
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --heading-primary: clamp(2.5rem, 5vw, 4rem);
    --heading-secondary: clamp(2rem, 4vw, 3rem);
    --heading-tertiary: clamp(1.5rem, 3vw, 2rem);
    --body-large: clamp(1.125rem, 2vw, 1.25rem);
    --body-regular: clamp(1rem, 1.5vw, 1.125rem);
    --body-small: clamp(0.875rem, 1.2vw, 1rem);

    /* ===== ENHANCED SPACING SYSTEM ===== */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --section-gap: clamp(4rem, 8vw, 8rem);
    --card-gap: clamp(1.5rem, 3vw, 2.5rem);
    --section-padding-mobile: 2rem 1rem;
    --section-padding-tablet: 3rem 2rem;
    --section-padding-desktop: 4rem 3rem;
    --content-max-width: 1200px;
    --text-max-width: 65ch;

    /* ===== BORDER RADIUS SYSTEM ===== */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-2xl: 2rem;

    /* ===== ANIMATION & TRANSITION SYSTEM ===== */
    --card-hover-transform: translateY(-8px) scale(1.02);
    --transition-speed: 0.3s;
    --transition-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --animation-duration-fast: 0.2s;
    --animation-duration-normal: 0.3s;
    --animation-duration-slow: 0.5s;
}

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

::selection {
    background: var(--primary-glow-color);
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   SMOOTH SCROLLING & SECTION TRANSITIONS
   ======================================== */


a[href^="#"] {
    scroll-behavior: smooth;
}


.section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-timing);
}

.section.animate-in {
    opacity: 1;
    transform: translateY(0);
}


.section .feature-item,
.section .course-card,
.section .demographic-card,
.section .girls-empowerment-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--transition-timing);
}

.section.animate-in .feature-item,
.section.animate-in .course-card,
.section.animate-in .demographic-card,
.section.animate-in .girls-empowerment-card {
    opacity: 1;
    transform: translateY(0);
}


.section.animate-in .feature-item:nth-child(1) {
    transition-delay: 0.1s;
}

.section.animate-in .feature-item:nth-child(2) {
    transition-delay: 0.2s;
}

.section.animate-in .feature-item:nth-child(3) {
    transition-delay: 0.3s;
}

.section.animate-in .feature-item:nth-child(4) {
    transition-delay: 0.4s;
}

.section.animate-in .course-card:nth-child(1) {
    transition-delay: 0.1s;
}

.section.animate-in .course-card:nth-child(2) {
    transition-delay: 0.2s;
}

.section.animate-in .course-card:nth-child(3) {
    transition-delay: 0.3s;
}

.section.animate-in .demographic-card:nth-child(1) {
    transition-delay: 0.1s;
}

.section.animate-in .demographic-card:nth-child(2) {
    transition-delay: 0.2s;
}

.section.animate-in .demographic-card:nth-child(3) {
    transition-delay: 0.3s;
}

.section.animate-in .demographic-card:nth-child(4) {
    transition-delay: 0.4s;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000002;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ENHANCED TYPOGRAPHY HIERARCHY
   ======================================== */

.heading-primary {
    font-size: var(--heading-primary);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), #d1d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading-secondary {
    font-size: var(--heading-secondary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--text-primary), #d1d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading-tertiary {
    font-size: var(--heading-tertiary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.body-large {
    font-size: var(--body-large);
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-secondary);
}

.body-regular {
    font-size: var(--body-regular);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
}

.body-small {
    font-size: var(--body-small);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ========================================
   ACCESSIBILITY & REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


*:focus-visible {
    outline: 2px solid var(--primary-glow-color);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

/* ========================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ======================================== */


@media (max-width: 480px) {
    :root {
        --heading-primary: clamp(2rem, 8vw, 2.5rem);
        --heading-secondary: clamp(1.75rem, 6vw, 2rem);
        --heading-tertiary: clamp(1.5rem, 5vw, 1.75rem);
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 2.5rem;
    }

    body {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .nav-container {
        padding: 0.875rem 1rem;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .logo-img {
        width: 38px;
        height: 38px;
        max-width: 38px;
        max-height: 38px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    /* Hide logo text on very small screens if needed */
    @media (max-width: 360px) {
        .logo-text {
            display: none;
        }
        .logo-img {
            width: 36px;
            height: 36px;
            max-width: 36px;
            max-height: 36px;
        }
    }

    .tab-button {
        min-width: 130px;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.75rem;
        padding: 0 1rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .tabs-wrapper {
        padding: 0;
    }

    .tabs-container {
        padding: 0.5rem 0.25rem;
    }
}

@media (max-width: 768px) {


    body.index-page main,
    body.courses-page main {
        padding: 100px var(--spacing-md) var(--spacing-md);
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-2xl);
        gap: var(--spacing-2xl);
    }

    .hero-text,
    .hero-image {
        flex: none;
    }


    .section {
        margin-bottom: var(--spacing-2xl);
    }

    .section-title {
        margin-bottom: var(--spacing-xl);
    }


    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .feature-item {
        text-align: center;
        padding: var(--spacing-lg);
    }
}

@media (max-width: 1024px) {


    .nav-container {
        padding: var(--spacing-md) var(--spacing-xl);
    }

    .hero-section {
        padding: var(--spacing-2xl);
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (min-width: 1400px) {


    .container {
        max-width: 1400px;
    }

    .hero-section {
        padding: var(--spacing-3xl);
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


@media (hover: none) and (pointer: coarse) {

    .course-card:hover,
    .demographic-card:hover,
    .girls-empowerment-card:hover {
        transform: none;
    }

    .course-card:active,
    .demographic-card:active,
    .girls-empowerment-card:active {
        transform: scale(0.98);
    }


    .nav-link,
    .cta-button,
    .card-button {
        min-height: 44px;
        min-width: 44px;
    }
}


@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .logo-img,
    .logo-icon,
    .card-icon svg,
    .card-icon img,
    .demographic-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ========================================
   STANDARDIZED DESIGN CONSISTENCY
   ======================================== */


.btn-primary,
.cta-button,
.card-button.coding {
    background: linear-gradient(135deg, #8A2BE2, #4A00E0);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--body-regular);
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 25px var(--primary-glow-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    text-align: center;
    min-height: 44px;
}

.btn-secondary,
.card-button.math {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--body-regular);
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 25px var(--math-glow-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    text-align: center;
    min-height: 44px;
}

.btn-tertiary,
.card-button.ai {
    background: linear-gradient(135deg, #EC4899, #BE185D);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--body-regular);
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 25px var(--ai-glow-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    text-align: center;
    min-height: 44px;
}


.btn-primary:hover,
.cta-button:hover,
.card-button.coding:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px var(--primary-glow-color);
}

.btn-secondary:hover,
.card-button.math:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px var(--math-glow-color);
}

.btn-tertiary:hover,
.card-button.ai:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px var(--ai-glow-color);
}


.card,
.course-card,
.feature-card,
.demographic-card,
.girls-empowerment-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-speed) var(--transition-timing);
    position: relative;
    overflow: hidden;
}

.card:hover,
.course-card:hover,
.feature-card:hover,
.demographic-card:hover,
.girls-empowerment-card:hover {
    background: var(--glass-hover-bg-light);
    border-color: var(--glass-hover-border);
    box-shadow: var(--glass-hover-shadow);
    transform: var(--card-hover-transform);
}


h1,
.h1 {
    font-size: var(--heading-primary);
    font-weight: 800;
    line-height: 1.1;
}

h2,
.h2 {
    font-size: var(--heading-secondary);
    font-weight: 700;
    line-height: 1.2;
}

h3,
.h3 {
    font-size: var(--heading-tertiary);
    font-weight: 600;
    line-height: 1.3;
}

h4,
.h4 {
    font-size: var(--body-large);
    font-weight: 600;
    line-height: 1.4;
}

h5,
.h5 {
    font-size: var(--body-regular);
    font-weight: 600;
    line-height: 1.4;
}

h6,
.h6 {
    font-size: var(--body-small);
    font-weight: 600;
    line-height: 1.4;
}

p,
.body-text {
    font-size: var(--body-regular);
    line-height: 1.6;
    color: var(--text-secondary);
}

.text-large {
    font-size: var(--body-large);
    line-height: 1.6;
    color: var(--text-secondary);
}

.text-small {
    font-size: var(--body-small);
    line-height: 1.5;
    color: var(--text-muted);
}


.mt-xs {
    margin-top: var(--spacing-xs);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mt-2xl {
    margin-top: var(--spacing-2xl);
}

.mb-xs {
    margin-bottom: var(--spacing-xs);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.mb-2xl {
    margin-bottom: var(--spacing-2xl);
}

.p-xs {
    padding: var(--spacing-xs);
}

.p-sm {
    padding: var(--spacing-sm);
}

.p-md {
    padding: var(--spacing-md);
}

.p-lg {
    padding: var(--spacing-lg);
}

.p-xl {
    padding: var(--spacing-xl);
}

.p-2xl {
    padding: var(--spacing-2xl);
}


.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-coding {
    color: var(--primary-glow-color);
}

.text-math {
    color: var(--math-glow-color);
}

.text-ai {
    color: var(--ai-glow-color);
}

.text-girls {
    color: var(--girls-empowerment-color);
}


.rounded-sm {
    border-radius: var(--border-radius-sm);
}

.rounded-md {
    border-radius: var(--border-radius-md);
}

.rounded-lg {
    border-radius: var(--border-radius-lg);
}

.rounded-xl {
    border-radius: var(--border-radius-xl);
}

.rounded-2xl {
    border-radius: var(--border-radius-2xl);
}


.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shadow-md {
    box-shadow: var(--glass-shadow);
}

.shadow-lg {
    box-shadow: var(--glass-hover-shadow);
}

.shadow-glow-primary {
    box-shadow: 0 8px 25px var(--primary-glow-color);
}

.shadow-glow-math {
    box-shadow: 0 8px 25px var(--math-glow-color);
}

.shadow-glow-ai {
    box-shadow: 0 8px 25px var(--ai-glow-color);
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */


.course-card,
.demographic-card,
.girls-empowerment-card,
.feature-item,
.cta-button,
.card-button {
    will-change: transform;
    transform: translateZ(0);
}


@keyframes optimized-float {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -10px, 0);
    }
}

@keyframes optimized-pulse {

    0%,
    100% {
        transform: scale3d(1, 1, 1);
    }

    50% {
        transform: scale3d(1.05, 1.05, 1);
    }
}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


@supports not (backdrop-filter: blur(20px)) {

    .inclusivity-section,
    .coding-for-girls-section,
    .course-card,
    .demographic-card,
    .girls-empowerment-card {
        background: rgba(16, 16, 28, 0.95);
    }
}


img {
    loading: lazy;
    decoding: async;
    max-width: 100%;
    height: auto;
}


@font-face {
    font-family: 'Inter';
    font-display: swap;
}


.above-fold {
    contain: layout style paint;
}


.scroll-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}


.static-element {
    contain: strict;
}


.transform-element {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}


.virtual-list {
    contain: size layout style paint;
    overflow: hidden;
}

/* ========================================
   CROSS-BROWSER COMPATIBILITY & QA
   ======================================== */


.glassmorphism {
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
}


@supports not (display: grid) {

    .courses-grid,
    .features-grid,
    .inclusivity-chart,
    .girls-features-grid {
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }

    .courses-grid>*,
    .features-grid>*,
    .inclusivity-chart>*,
    .girls-features-grid>* {
        flex: 1 1 300px;
        min-width: 300px;
    }
}


@supports not (display: grid) {

    .demographic-card,
    .girls-empowerment-card,
    .course-card {
        width: calc(50% - var(--spacing-lg));
        display: inline-block;
        vertical-align: top;
        margin-bottom: var(--spacing-lg);
    }
}


@supports not (color: var(--primary-glow-color)) {
    .cta-button {
        background: linear-gradient(135deg, #8A2BE2, #4A00E0);
    }

    .course-card {
        background: rgba(16, 16, 28, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }
}


@supports not (scroll-behavior: smooth) {
    html {
        scroll-behavior: auto;
    }
}


@supports not (transform: translateY(-8px)) {

    .course-card:hover,
    .demographic-card:hover,
    .girls-empowerment-card:hover {
        margin-top: -8px;
        margin-bottom: 8px;
    }
}


@supports not (clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%)) {

    .hero-section::before,
    .inclusivity-section::before {
        border-radius: 50%;
        width: 200px;
        height: 200px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}


@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .navbar,
    .mobile-menu-btn,
    .cta-button,
    .card-button {
        display: none !important;
    }

    .section,
    .course-card,
    .demographic-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    h1,
    h2,
    h3 {
        page-break-after: avoid;
    }
}


@media (prefers-contrast: high) {

    .course-card,
    .demographic-card,
    .girls-empowerment-card {
        border: 2px solid currentColor;
    }

    .cta-button,
    .card-button {
        border: 2px solid currentColor;
        background: transparent;
        color: currentColor;
    }
}


@media (prefers-color-scheme: light) {


    .text-muted {
        color: #64748b;
    }
}


@media (pointer: coarse) {

    .nav-link,
    .cta-button,
    .card-button,
    .tab-button,
    .sub-tab {
        min-height: 44px;
        min-width: 44px;
        padding: var(--spacing-md) var(--spacing-lg);
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.navbar {
    z-index: 9999;
}

.dropdown-content {
    z-index: 10000;
}

.mobile-menu {
    z-index: 9998;
}

.modal {
    z-index: 10001;
}

.tooltip {
    z-index: 10002;
}


.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;
}


.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-glow-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10003;
}

.skip-link:focus {
    top: 6px;
}


#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.8;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.2), transparent),
        radial-gradient(ellipse 80% 50% at 50% 120%, rgba(168, 85, 247, 0.15), transparent);
    animation: subtle-glow 20s ease-in-out infinite;
}

@keyframes subtle-glow {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }

    25% {
        transform: scale(1.1) rotate(2deg);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.2) rotate(5deg);
        opacity: 1;
    }

    75% {
        transform: scale(1.1) rotate(3deg);
        opacity: 0.9;
    }
}


@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px var(--glow-color));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 20px var(--glow-color));
        transform: scale(1.05);
    }
}

@keyframes float {

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

    25% {
        transform: translateY(-10px) rotate(1deg);
    }

    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}


/* ========================================
   HEADER & NAVBAR Z-INDEX HIERARCHY
   
   Z-Index Layering (highest to lowest):
   - Modal/Overlay: 10001+
   - Dropdown Content: 10000
   - Mobile Menu Button: 10000 (must be clickable)
   - Header/Navbar: 9999
   - Mobile Menu: 9998
   - Page Content: 1 or auto
   - Background: -1 to -3
   ======================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    /* Below mobile menu button (10000) */
    width: 100%;
    margin: 0;
    padding: 0;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

nav {
    width: 100%;
    z-index: 1000;
    /* Relative z-index within header */
    position: relative;
    /* Create stacking context */
}

.navbar {
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed) var(--transition-timing);
    margin: 0;
    width: 100%;
    z-index: 9999;
    /* Same as header */
    position: relative;
    /* Explicit positioning for stacking context */
}

.navbar:hover {
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0.875rem 1.75rem;
    gap: 1.5rem;
    position: relative;
    /* Ensure proper stacking */
    z-index: 1;
    /* Lower than mobile-menu-btn to not block it */
}

.course-detail-page .nav-container {
    grid-template-columns: 40px auto 1fr auto;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #a855f7;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.back-button:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateX(-3px);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    max-height: 60px;
}

.logo:hover {
    transform: scale(1.02);
}

/* Logo Image Styling */
.logo-img {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px;
    min-height: 45px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3));
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
}

/* Legacy logo-icon support (if needed elsewhere) */
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #a855f7, #4ecdc4);
    border-radius: 0.875rem;
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
    transition: all 0.4s ease;
    animation: pulse-glow 3s ease-in-out infinite;
}

.logo-icon::before {
    content: '</>';
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.7);
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #ffffff, #E0E7FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-self: end;
}

.nav-link {
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    color: #CBD5E1;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Active state for current page */
.nav-link.active {
    color: white;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

/* Hover state */
.nav-link:hover {
    color: white;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Active link should have stronger highlight on hover */
.nav-link.active:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    min-width: 220px;
    padding: 0.5rem;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all var(--transition-speed) var(--transition-timing);
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #CBD5E1;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 0.625rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

/* Hover state for dropdown items */
.dropdown-item:hover {
    background: rgba(168, 85, 247, 0.15);
    color: white;
}

/* Active state for dropdown items */
.dropdown-item.active {
    background: rgba(168, 85, 247, 0.2);
    color: white;
    border-left: 3px solid rgba(168, 85, 247, 0.8);
}

/* Remove the flashy animation effect */
.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(168, 85, 247, 0.1);
    transition: left 0.4s ease;
}

.dropdown-item:hover::before {
    left: 0;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 1.5rem;
}

.cta-button {
    background: linear-gradient(135deg, #8A2BE2, #4A00E0);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.875rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 25px var(--primary-glow-color);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.cta-button::after {
    content: '';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover::after {
    transform: translateX(3px);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 40px var(--primary-glow-color);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.05);
}

/* ========================================
   MOBILE MENU BUTTON - Z-INDEX HIERARCHY
   Button must be above navbar (9999) to ensure clickability
   ======================================== */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    /* Increased clickable area */
    z-index: 10000;
    /* Above navbar to ensure clickability */
    position: relative;
    /* Create stacking context */
    min-width: 44px;
    /* Meet touch target minimum */
    min-height: 44px;
    /* Meet touch target minimum */
    align-items: center;
    justify-content: center;
}


main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6rem;
    width: 100%;
}

/* ========================================
   PAGE-SPECIFIC LAYOUTS & SPACING
   ======================================== */


body.index-page main {
    padding: 120px 20px 20px;
}

body.courses-page main {
    padding: var(--section-padding-desktop);
    padding-top: 120px;
    gap: var(--spacing-2xl);
    max-width: 100%;
}

body.about-page main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    gap: 3rem;
}


body.courses-page .container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

body.courses-page .course-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}


.tab-navigation {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--glass-shadow);
}

.main-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-2xl);
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-xl);
    position: relative;
}

.main-tab {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: transparent;
    border: none;
    border-radius: var(--border-radius-lg);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--body-regular);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    min-width: 140px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.main-tab:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.main-tab.active {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    color: white;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

.main-tab .tab-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-tab .tab-icon svg {
    width: 18px;
    height: 18px;
    transition: all var(--transition-speed) ease;
}

.main-tab.active .tab-icon svg {
    color: var(--primary-glow-color);
}

.sub-tabs-container {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.sub-tabs {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-lg);
}

.sub-tab {
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    color: var(--text-muted);
    font-weight: 500;
    font-size: var(--body-small);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
    position: relative;
}

.sub-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-glow-color);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

.sub-tab:hover {
    color: var(--text-secondary);
    background: rgba(168, 85, 247, 0.05);
}

.sub-tab.active {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.sub-tab.active::before {
    width: 80%;
}


@media (max-width: 768px) {
    .main-tabs {
        flex-direction: column;
        gap: var(--spacing-xs);
        padding: var(--spacing-md);
    }

    .main-tab {
        min-width: auto;
        width: 100%;
        padding: var(--spacing-md);
    }

    .sub-tabs {
        flex-direction: column;
        gap: var(--spacing-xs);
        padding: var(--spacing-sm);
    }

    .sub-tab {
        width: 100%;
        text-align: center;
        padding: var(--spacing-sm) var(--spacing-md);
    }
}


.section {
    width: 100%;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.8s forwards;
    animation-timing-function: var(--transition-timing);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: var(--spacing-2xl);
    background: linear-gradient(135deg, var(--text-primary), #d1d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: calc(-1 * var(--spacing-lg)) auto var(--spacing-2xl);
    font-weight: 400;
    line-height: 1.6;
}


.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


.hero-section {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 3.5rem;
    overflow: hidden;
    position: relative;
    transition: all var(--transition-speed) ease;
}

.hero-section:hover {
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.3);
    border-color: var(--glass-hover-border);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: subtle-glow 15s ease-in-out infinite;
}

.hero-text,
.hero-image {
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1 1 55%;
    animation: slideInLeft 1s ease;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #d1d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-text h1 {
        white-space: normal;
    }
}

.hero-text h1 .highlight-ma,
.hero-text h1 .highlight-de,
.hero-text h1 .highlight-made {
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    display: inline-block;
}

.hero-text p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #94a3b8;
    max-width: 500px;
    animation: fadeIn 1s ease 0.5s both;
}

.hero-image {
    flex: 1 1 45%;
    display: grid;
    place-items: center;
    animation: slideInRight 1s ease;
}

.hero-image svg {
    width: 100%;
    max-width: 300px;
    animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {

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

    25% {
        transform: translateY(-15px) rotate(2deg);
    }

    50% {
        transform: translateY(-20px) rotate(-1deg);
    }

    75% {
        transform: translateY(-10px) rotate(1deg);
    }
}

/* ========================================
   INCLUSIVITY SECTION - "CODING AND MATHS FOR EVERYONE"
   ======================================== */

.inclusivity-section {
    width: 100%;
    max-width: var(--content-max-width);
    margin: var(--section-gap) auto;
    padding: var(--spacing-3xl);
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--inclusivity-border);
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

.inclusivity-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--inclusivity-gradient);
    opacity: 0.05;
    z-index: 0;
    animation: subtle-glow 20s ease-in-out infinite;
}

.inclusivity-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    z-index: 0;
    animation: subtle-glow 25s ease-in-out infinite reverse;
}

.inclusivity-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.inclusivity-title {
    font-size: var(--heading-primary);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    background: var(--inclusivity-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
    animation: fadeIn 1s ease-out 0.3s both;
}

.inclusivity-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--inclusivity-gradient);
    border-radius: 2px;
    animation: slideInUp 0.8s ease-out 0.8s both;
}

.inclusivity-subtitle {
    font-size: var(--body-large);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-3xl);
    max-width: var(--text-max-width);
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.inclusivity-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--card-gap);
    margin-top: var(--spacing-3xl);
}

.demographic-card {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-speed) var(--transition-timing);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.demographic-card:nth-child(1) {
    animation-delay: 0.1s;
}

.demographic-card:nth-child(2) {
    animation-delay: 0.2s;
}

.demographic-card:nth-child(3) {
    animation-delay: 0.3s;
}

.demographic-card:nth-child(4) {
    animation-delay: 0.4s;
}

.demographic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: transform var(--transition-speed) ease;
    transform: scaleX(0);
    transform-origin: left;
}

.demographic-card.kids::before {
    background: var(--demographic-kids);
}

.demographic-card.teens::before {
    background: var(--demographic-teens);
}

.demographic-card.adults::before {
    background: var(--demographic-adults);
}

.demographic-card.professionals::before {
    background: var(--demographic-professionals);
}

.demographic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--glass-hover-border);
}

.demographic-card:hover::before {
    transform: scaleX(1);
}

.demographic-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.demographic-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    transform: scale(0);
    transition: transform var(--transition-speed) ease;
}

.demographic-card.kids .demographic-icon {
    background: linear-gradient(135deg, var(--demographic-kids), rgba(78, 205, 196, 0.3));
}

.demographic-card.teens .demographic-icon {
    background: linear-gradient(135deg, var(--demographic-teens), rgba(168, 85, 247, 0.3));
}

.demographic-card.adults .demographic-icon {
    background: linear-gradient(135deg, var(--demographic-adults), rgba(255, 165, 0, 0.3));
}

.demographic-card.professionals .demographic-icon {
    background: linear-gradient(135deg, var(--demographic-professionals), rgba(236, 72, 153, 0.3));
}

.demographic-card:hover .demographic-icon {
    transform: scale(1.1) rotate(10deg);
}

.demographic-card:hover .demographic-icon::before {
    transform: scale(1.5);
    opacity: 0.1;
}


@keyframes demographic-float {

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

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

.demographic-icon {
    animation: demographic-float 3s ease-in-out infinite;
}

.demographic-card.kids .demographic-icon {
    animation-delay: 0s;
}

.demographic-card.teens .demographic-icon {
    animation-delay: 0.5s;
}

.demographic-card.adults .demographic-icon {
    animation-delay: 1s;
}

.demographic-card.professionals .demographic-icon {
    animation-delay: 1.5s;
}

.demographic-title {
    font-size: var(--heading-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.demographic-description {
    font-size: var(--body-regular);
    color: var(--text-muted);
    line-height: 1.5;
}

.demographic-age {
    font-size: var(--body-small);
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: var(--spacing-sm);
    opacity: 0.8;
}


@media (max-width: 768px) {
    .inclusivity-section {
        padding: var(--section-padding-mobile);
        margin: var(--spacing-2xl) auto;
    }

    .inclusivity-chart {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .demographic-card {
        padding: var(--spacing-lg);
    }
}

/* ========================================
   ENHANCED CODING FOR GIRLS SECTION
   ======================================== */

.coding-for-girls-section {
    width: 100%;
    max-width: var(--content-max-width);
    margin: var(--section-gap) auto;
    padding: var(--spacing-3xl);
    background: var(--girls-warm-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--girls-primary);
    border-radius: var(--border-radius-2xl);
    box-shadow: 0 20px 50px rgba(236, 72, 153, 0.2);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

.coding-for-girls-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--girls-primary), var(--girls-accent));
    opacity: 0.03;
    z-index: 0;
}

.girls-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    margin-bottom: var(--spacing-3xl);
    position: relative;
    z-index: 1;
}

.empowerment-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.empowerment-circle {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-layer {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.circle-layer:nth-child(1) {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--girls-empowerment-color), transparent);
    opacity: 0.2;
    animation-delay: 0s;
}

.circle-layer:nth-child(2) {
    width: 80%;
    height: 80%;
    background: linear-gradient(225deg, var(--girls-confidence-color), transparent);
    opacity: 0.3;
    animation-delay: -2s;
}

.circle-layer:nth-child(3) {
    width: 60%;
    height: 60%;
    background: linear-gradient(315deg, var(--girls-creativity-color), transparent);
    opacity: 0.4;
    animation-delay: -4s;
}

.empowerment-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.empowerment-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--glass-bg-dark);
    border: 2px solid var(--girls-empowerment-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--girls-empowerment-color);
    animation: pulse-glow 3s ease-in-out infinite;
    transition: all var(--transition-speed) ease;
}

.empowerment-icon:hover {
    transform: scale(1.2);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
    border-color: var(--girls-confidence-color);
    color: var(--girls-confidence-color);
}


.empowerment-icon.creativity:hover {
    border-color: var(--girls-creativity-color);
    color: var(--girls-creativity-color);
}

.empowerment-icon.teamwork:hover {
    border-color: var(--girls-teamwork-color);
    color: var(--girls-teamwork-color);
}

.empowerment-icon.confidence:hover {
    border-color: var(--girls-confidence-color);
    color: var(--girls-confidence-color);
}

.empowerment-icon.leadership:hover {
    border-color: var(--girls-empowerment-color);
    color: var(--girls-empowerment-color);
}

.empowerment-icon.creativity {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.empowerment-icon.teamwork {
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.empowerment-icon.confidence {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.empowerment-icon.leadership {
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.girls-content {
    text-align: left;
}

.girls-title {
    font-size: var(--heading-primary);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--girls-empowerment-color), var(--girls-confidence-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.girls-subtitle {
    font-size: var(--body-large);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    font-weight: 500;
}

.girls-features {
    display: grid;
    gap: var(--spacing-md);
}

.girls-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(236, 72, 153, 0.1);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-speed) ease;
}

.girls-feature:hover {
    background: rgba(236, 72, 153, 0.15);
    transform: translateX(10px);
}

.girls-feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--girls-empowerment-color), var(--girls-confidence-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.girls-feature-text {
    font-size: var(--body-regular);
    color: var(--text-secondary);
    font-weight: 500;
}

.girls-cta {
    margin-top: var(--spacing-xl);
}

.girls-cta-button {
    background: linear-gradient(135deg, var(--girls-empowerment-color), var(--girls-confidence-color));
    color: white;
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--body-regular);
    transition: all var(--transition-speed) ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.girls-cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.4);
}

.girls-cta-button::after {
    content: '';
    font-size: 1.2rem;
    transition: transform var(--transition-speed) ease;
}

.girls-cta-button:hover::after {
    transform: translateX(5px);
}

.girls-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--card-gap);
    margin-top: var(--spacing-3xl);
    position: relative;
    z-index: 1;
}

.girls-empowerment-card {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--girls-primary);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.girls-empowerment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--girls-empowerment-color), var(--girls-confidence-color));
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
    transform-origin: left;
}

.girls-empowerment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.3);
    border-color: var(--girls-empowerment-color);
}

.girls-empowerment-card:hover::before {
    transform: scaleX(1);
}

.girls-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--girls-empowerment-color), var(--girls-confidence-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all var(--transition-speed) ease;
}

.girls-empowerment-card:hover .girls-card-icon {
    transform: scale(1.1) rotate(10deg);
}

.girls-card-title {
    font-size: var(--heading-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.girls-card-description {
    font-size: var(--body-regular);
    color: var(--text-muted);
    line-height: 1.5;
}


@media (max-width: 768px) {
    .coding-for-girls-section {
        padding: var(--section-padding-mobile);
    }

    .girls-hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }

    .empowerment-circle {
        width: 250px;
        height: 250px;
    }

    .girls-content {
        text-align: center;
    }

    .girls-features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ========================================
   PROFESSIONAL LEARNING PATHWAY SECTION
   ======================================== */

.learning-pathway {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) 0;
}

.pathway-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
    flex-wrap: wrap;
}

.pathway-node {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-speed) ease;
    position: relative;
    min-width: 180px;
    animation: slideInUp 0.8s ease-out;
}

.pathway-node:nth-child(odd) {
    animation-delay: 0.1s;
}

.pathway-node:nth-child(even) {
    animation-delay: 0.3s;
}

.pathway-node:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
    border-color: var(--primary-glow-color);
}

.node-content {
    position: relative;
    z-index: 1;
}

.node-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-glow-color), var(--secondary-glow-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-speed) ease;
}

.pathway-node:hover .node-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.node-icon svg {
    width: 24px;
    height: 24px;
}

.pathway-node h3 {
    font-size: var(--heading-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.pathway-node p {
    font-size: var(--body-small);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.node-description {
    font-size: var(--body-small);
    color: var(--text-muted);
    line-height: 1.4;
    display: block;
}

.pathway-connector {
    flex-shrink: 0;
    width: 100px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pathway-connector svg {
    width: 100%;
    height: 100%;
}

.pathway-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
    padding: var(--spacing-2xl);
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--glass-shadow);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    transition: all var(--transition-speed) ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-glow-color), var(--secondary-glow-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.stat-label {
    font-size: var(--body-regular);
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   PROFESSIONAL GIRLS SECTION STYLING
   ======================================== */

.girls-feature-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 20px 50px rgba(236, 72, 153, 0.1);
}

.girls-visual svg {
    width: 100%;
    height: 200px;
}

.girls-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(236, 72, 153, 0.05);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) ease;
}

.highlight-item:hover {
    background: rgba(236, 72, 153, 0.1);
    transform: translateX(8px);
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #EC4899, #A855F7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 20px;
    height: 20px;
}

.highlight-item span {
    font-size: var(--body-regular);
    color: var(--text-secondary);
    font-weight: 500;
}


@media (max-width: 768px) {
    .pathway-flow {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .pathway-connector {
        transform: rotate(90deg);
        width: 20px;
        height: 60px;
    }

    .pathway-node {
        min-width: 280px;
        width: 100%;
    }

    .pathway-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
    }

    .girls-highlights {
        gap: var(--spacing-sm);
    }

    .highlight-item {
        padding: var(--spacing-sm);
    }
}

/* ========================================
   AMAZING QUADRANT LAYOUT STYLES - GLOWY PURPLE VIBES
   ======================================== */

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

.quadrant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    min-height: 550px;
    padding: 1rem;
}

.quadrant-item {
    position: relative;
    border-radius: 2rem;
    padding: 3.5rem 2.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.quadrant-item:nth-child(1) {
    animation-delay: 0.1s;
}

.quadrant-item:nth-child(2) {
    animation-delay: 0.2s;
}

.quadrant-item:nth-child(3) {
    animation-delay: 0.3s;
}

.quadrant-item:nth-child(4) {
    animation-delay: 0.4s;
}

.quadrant-item:hover {
    transform: translateY(-8px) scale(1.02);
}

.quadrant-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.quadrant-item:hover::before {
    opacity: 1;
}

.quadrant-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 2rem;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(15px);
}

.quadrant-item:hover .quadrant-glow {
    opacity: 0.8;
}

.quadrant-background {
    display: none;
}

.quadrant-pattern {
    display: none;
}

.quadrant-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 1.5rem;
}

.quadrant-icon {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 20px currentColor);
    transition: all 0.4s ease;
}

.quadrant-item:hover .quadrant-icon {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 0 35px currentColor);
}

.quadrant-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 0 30px currentColor;
    line-height: 1.2;
}

.quadrant-age {
    display: none;
}

.quadrant-description {
    display: none;
}

.highlight-text {
    display: none;
}

.feature-text {
    display: none;
}

.quadrant-stats {
    display: none;
}

.mini-stat {
    display: none;
}

/* Kids Quadrant - Cyan Theme (matching website secondary color) */
.kids-quadrant {
    background: linear-gradient(135deg, #0d3d3a 0%, #082826 100%);
    color: #ffffff;
    border-color: rgba(78, 205, 196, 0.3);
}

.kids-quadrant .quadrant-glow {
    background: linear-gradient(135deg, #4ecdc4 0%, #3ab5ad 100%);
}

.kids-quadrant .quadrant-title {
    color: #4ecdc4;
    text-shadow: 0 0 30px #4ecdc4, 0 0 60px rgba(78, 205, 196, 0.5);
}

.kids-quadrant .quadrant-icon {
    color: #4ecdc4;
}

.kids-quadrant:hover {
    box-shadow: 0 15px 60px rgba(78, 205, 196, 0.4), 0 0 80px rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.5);
}

/* Teens Quadrant - Purple Theme (matching website primary color) */
.teens-quadrant {
    background: linear-gradient(135deg, #3d1f5c 0%, #2a1440 100%);
    color: #ffffff;
    border-color: rgba(168, 85, 247, 0.3);
}

.teens-quadrant .quadrant-glow {
    background: linear-gradient(135deg, #a855f7 0%, #8b3fd9 100%);
}

.teens-quadrant .quadrant-title {
    color: #a855f7;
    text-shadow: 0 0 30px #a855f7, 0 0 60px rgba(168, 85, 247, 0.5);
}

.teens-quadrant .quadrant-icon {
    color: #a855f7;
}

.teens-quadrant:hover {
    box-shadow: 0 15px 60px rgba(168, 85, 247, 0.4), 0 0 80px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
}

/* Adults Quadrant - Orange Theme (matching website math color) */
.adults-quadrant {
    background: linear-gradient(135deg, #4a3310 0%, #332208 100%);
    color: #ffffff;
    border-color: rgba(255, 165, 0, 0.3);
}

.adults-quadrant .quadrant-glow {
    background: linear-gradient(135deg, #ffa500 0%, #e69500 100%);
}

.adults-quadrant .quadrant-title {
    color: #ffa500;
    text-shadow: 0 0 30px #ffa500, 0 0 60px rgba(255, 165, 0, 0.5);
}

.adults-quadrant .quadrant-icon {
    color: #ffa500;
}

.adults-quadrant:hover {
    box-shadow: 0 15px 60px rgba(255, 165, 0, 0.4), 0 0 80px rgba(255, 165, 0, 0.2);
    border-color: rgba(255, 165, 0, 0.5);
}

/* Professionals Quadrant - Pink Theme (matching website AI color) */
.professionals-quadrant {
    background: linear-gradient(135deg, #4a1f3d 0%, #331429 100%);
    color: #ffffff;
    border-color: rgba(236, 72, 153, 0.3);
}

.professionals-quadrant .quadrant-glow {
    background: linear-gradient(135deg, #ec4899 0%, #d63384 100%);
}

.professionals-quadrant .quadrant-title {
    color: #ec4899;
    text-shadow: 0 0 30px #ec4899, 0 0 60px rgba(236, 72, 153, 0.5);
}

.professionals-quadrant .quadrant-icon {
    color: #ec4899;
}

.professionals-quadrant:hover {
    box-shadow: 0 15px 60px rgba(236, 72, 153, 0.4), 0 0 80px rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.5);
}

.quadrant-overall-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: var(--glass-shadow);
}

.overall-stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.overall-stat-item:hover {
    transform: translateY(-5px);
    background: rgba(168, 85, 247, 0.1);
}

.overall-stat-item .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.overall-stat-item .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


@media (max-width: 768px) {
    .learning-quadrant-container {
        padding: 2rem 0;
        max-width: 600px;
    }

    .quadrant-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
        padding: 0.5rem;
    }

    .quadrant-item {
        padding: 2.5rem 2rem;
    }

    .quadrant-icon {
        width: 100px;
        height: 100px;
    }

    .quadrant-title {
        font-size: 2rem;
    }

    .quadrant-overall-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .overall-stat-item .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .learning-quadrant-container {
        max-width: 400px;
        padding: 1.5rem 0;
    }

    .quadrant-grid {
        gap: 1.2rem;
    }

    .quadrant-overall-stats {
        grid-template-columns: 1fr;
    }

    .quadrant-item {
        padding: 2rem 1.5rem;
    }

    .quadrant-icon {
        width: 80px;
        height: 80px;
    }

    .quadrant-title {
        font-size: 1.75rem;
    }
}


.filter-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.filter-sidebar {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    position: sticky;
    top: 20px;
    height: fit-content;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-speed) ease;
    animation: slideInLeft 0.8s ease-out;
}

.filter-sidebar:hover {
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
    border-color: var(--glass-hover-border);
}

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

.filter-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #d1d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clear-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
    transform: scale(1.05);
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-glow-color), var(--secondary-glow-color));
    border-radius: 2px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-option:hover {
    background: rgba(168, 85, 247, 0.1);
    transform: translateX(5px);
}

.filter-option:hover::before {
    left: 100%;
}

.filter-checkbox {
    width: 22px;
    height: 22px;
    margin-right: 0.75rem;
    border: 2px solid var(--glass-border);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.filter-checkbox.checked {
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    border-color: transparent;
    animation: checkPulse 0.4s ease;
}

@keyframes checkPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.filter-checkbox.checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.filter-label {
    color: #CBD5E1;
    font-size: 0.95rem;
    flex: 1;
    font-weight: 500;
}

.filter-count {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
    background: var(--glass-hover-bg-light);
    transform: translateY(-2px);
}

.course-content {
    flex: 1;
    padding: var(--spacing-xl) 0;
}

.search-controls {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--spacing-lg);
    align-items: center;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-speed) ease;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.search-controls:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
}

.search-box {
    position: relative;
    min-width: 300px;
}

.search-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-md) 3.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    color: var(--text-primary);
    font-size: var(--body-regular);
    outline: none;
    transition: all var(--transition-speed) ease;
    font-family: inherit;
}

.search-input:focus {
    border-color: var(--primary-glow-color);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-speed) ease;
}

.search-input:focus+.search-icon,
.search-input:not(:placeholder-shown)+.search-icon {
    color: var(--primary-glow-color);
}

.sort-dropdown {
    position: relative;
}

.sort-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--border-radius-lg);
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--body-regular);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    white-space: nowrap;
    min-width: 140px;
    justify-content: space-between;
}

.sort-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
}

.view-toggle {
    display: flex;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed) ease;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-secondary);
}

.view-btn.active {
    background: linear-gradient(135deg, var(--primary-glow-color), var(--secondary-glow-color));
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

@media (max-width: 1024px) {
    .search-controls {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .search-box {
        min-width: auto;
    }

    .sort-dropdown,
    .view-toggle {
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .search-controls {
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
    }

    .search-input {
        padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 3rem;
        font-size: var(--body-small);
    }

    .sort-btn {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .view-toggle {
        justify-self: center;
    }
}

.search-controls:hover {
    border-color: var(--glass-hover-border);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
}

.search-box {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon svg {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-glow-color);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.search-input::placeholder {
    color: #64748b;
}

/* ========================================
   PROMINENT SEARCH SECTION
   ======================================== */

.search-section {
    width: 100%;
    padding: 1.5rem 0 1rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(78, 205, 196, 0.03));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

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

.search-box-prominent {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.search-box-prominent:focus-within {
    border-color: var(--primary-glow-color);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2), 0 12px 40px rgba(168, 85, 247, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.search-input-prominent {
    width: 100%;
    padding: 1.25rem 4rem 1.25rem 4rem;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.search-input-prominent::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    transition: all 0.3s ease;
}

.search-input-prominent:focus::placeholder {
    color: rgba(148, 163, 184, 0.7);
    transform: translateX(4px);
}

.search-icon-prominent {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box-prominent:focus-within .search-icon-prominent {
    color: var(--primary-glow-color);
    transform: translateY(-50%) scale(1.1);
}

.search-icon-prominent svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.search-clear-btn {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.search-clear-btn.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    transform: translateY(-50%) scale(1.1);
}

.search-clear-btn svg {
    width: 16px;
    height: 16px;
}


.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
    gap: 1rem;
}

/* ========================================
   PROMINENT SEARCH RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .search-container {
        padding: 0 1.5rem;
    }

    .search-input-prominent {
        padding: 1.125rem 3.5rem 1.125rem 3.5rem;
        font-size: 1rem;
    }

    .search-icon-prominent {
        left: 1rem;
        width: 22px;
        height: 22px;
    }

    .search-clear-btn {
        right: 1rem;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    .main-tabs-header {
        margin-bottom: 1rem;
    }

    .tabs-title {
        font-size: 1.5rem;
    }

    .tabs-subtitle {
        font-size: 0.9rem;
    }

    .search-section {
        padding: 1.5rem 0 1rem;
        margin-bottom: 1.5rem;
    }

    .search-container {
        padding: 0 1rem;
    }

    .search-box-prominent {
        border-radius: 20px;
    }

    .search-input-prominent {
        padding: 1rem 3rem 1rem 3rem;
        font-size: 0.95rem;
    }

    .search-icon-prominent {
        left: 0.875rem;
        width: 20px;
        height: 20px;
    }

    .search-icon-prominent svg {
        width: 18px;
        height: 18px;
    }

    .search-clear-btn {
        right: 0.875rem;
        width: 26px;
        height: 26px;
    }

    .search-clear-btn svg {
        width: 14px;
        height: 14px;
    }

    .controls-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .main-tabs-header {
        margin-bottom: 0.75rem;
    }

    .tabs-title {
        font-size: 1.25rem;
    }

    .tabs-subtitle {
        font-size: 0.85rem;
    }

    .search-section {
        padding: 1rem 0 0.75rem;
        margin-bottom: 1rem;
    }

    .search-container {
        padding: 0 0.75rem;
    }

    .search-box-prominent {
        border-radius: 18px;
    }

    .search-input-prominent {
        padding: 0.875rem 2.75rem 0.875rem 2.75rem;
        font-size: 0.9rem;
    }

    .search-icon-prominent {
        left: 0.75rem;
        width: 18px;
        height: 18px;
    }

    .search-icon-prominent svg {
        width: 16px;
        height: 16px;
    }

    .search-clear-btn {
        right: 0.75rem;
        width: 24px;
        height: 24px;
    }

    .search-clear-btn svg {
        width: 12px;
        height: 12px;
    }
}

/* ========================================
   SEARCH HIGHLIGHTING
   ======================================== */

.search-highlight {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(78, 205, 196, 0.2));
    color: var(--text-primary);
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.sort-dropdown {
    position: relative;
}

.sort-btn {
    padding: 0.875rem 1.5rem;
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sort-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.4s ease;
}

.sort-btn:hover::before {
    left: 100%;
}

.sort-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.sort-btn.active {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.sort-btn span:last-child {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.sort-btn.active span:last-child {
    transform: rotate(180deg);
}

.sort-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: rgba(16, 16, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.75rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.sort-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    padding: 0.875rem 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
}

.sort-option:last-child {
    margin-bottom: 0;
}

.sort-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.4s ease;
}

.sort-option:hover::before {
    left: 100%;
}

.sort-option:hover {
    background: rgba(168, 85, 247, 0.2);
    color: var(--text-primary);
    transform: translateX(4px);
    border-left: 3px solid var(--primary-glow-color);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.view-btn.active {
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    color: white;
}

.view-btn:hover:not(.active) {
    background: rgba(168, 85, 247, 0.1);
    color: white;
}

.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    animation: fadeIn 0.8s ease-out 0.3s both;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .results-bar {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md);
    }
}

.results-count {
    font-size: 1.1rem;
    color: #CBD5E1;
}

.results-count strong {
    color: #a855f7;
    font-weight: 700;
    font-size: 1.3rem;
}

.active-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 0.375rem 0.75rem;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid #a855f7;
    border-radius: 2rem;
    color: white;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.filter-tag button:hover {
    transform: scale(1.2);
}

/* ========================================
   ENHANCED NO RESULTS STATE
   ======================================== */

.no-results {
    display: none;
    width: 100%;
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.no-results.show {
    display: block;
    animation: fadeIn 0.6s ease;
}

.no-results-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(78, 205, 196, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-glow-color);
    animation: pulse-glow 3s ease-in-out infinite;
}

.no-results-icon svg {
    width: 40px;
    height: 40px;
}

.no-results-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), #d1d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-results-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.no-results-suggestions {
    text-align: left;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-results-suggestions h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.suggestions-list li::before {
    content: '';
    color: var(--primary-glow-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.no-results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.clear-search-btn,
.browse-all-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-search-btn {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(138, 43, 226, 0.1));
    color: var(--text-primary);
    border-color: rgba(168, 85, 247, 0.3);
}

.clear-search-btn:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(138, 43, 226, 0.2));
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.browse-all-btn {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(168, 85, 247, 0.1));
    color: var(--text-primary);
    border-color: rgba(78, 205, 196, 0.3);
}

.browse-all-btn:hover {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.3), rgba(168, 85, 247, 0.2));
    border-color: rgba(78, 205, 196, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.popular-suggestions {
    text-align: center;
}

.popular-suggestions h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.suggestion-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.suggestion-tag:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    color: var(--text-primary);
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .no-results-content {
        padding: 2rem 1.5rem;
    }

    .no-results-title {
        font-size: 1.75rem;
    }

    .no-results-description {
        font-size: 1rem;
    }

    .no-results-actions {
        flex-direction: column;
        align-items: center;
    }

    .clear-search-btn,
    .browse-all-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .no-results {
        padding: 2rem 1rem;
    }

    .no-results-content {
        padding: 1.5rem 1rem;
    }

    .no-results-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .no-results-icon svg {
        width: 30px;
        height: 30px;
    }

    .no-results-title {
        font-size: 1.5rem;
    }

    .suggestion-tags {
        gap: 0.5rem;
    }

    .suggestion-tag {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
}


.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
    margin-bottom: var(--spacing-3xl);
}

@media (max-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

.courses-grid.list-view {
    grid-template-columns: 1fr;
}

/* Math section - 2 cards per row with better width for index.html */
#math-tabs .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Math section cards - larger and more prominent */
#math-tabs .course-card {
    min-height: 420px;
}

@media (max-width: 1200px) {
    #math-tabs .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 1000px;
    }
}

@media (max-width: 900px) {
    #math-tabs .courses-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    #math-tabs .courses-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Math section for course.html page - when maths tab is active */
.courses-grid.maths-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 1rem !important;
}

/* Ensure course cards in maths section are larger */
.courses-grid.maths-grid .course-card {
    min-height: 420px !important;
}

@media (max-width: 1200px) {
    .courses-grid.maths-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        max-width: 1000px !important;
    }
}

@media (max-width: 900px) {
    .courses-grid.maths-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-lg) !important;
        max-width: 600px !important;
    }
}

@media (max-width: 768px) {
    .courses-grid.maths-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-lg) !important;
    }
}

.course-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease both;
    cursor: pointer;
    margin-bottom: 1rem;
    height: 100%;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #4ecdc4);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
    transform-origin: left;
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card:hover {
    transform: translateY(-6px) scale(1.02);
    background: var(--glass-hover-bg-light);
    border-color: var(--glass-hover-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.course-card.coding:hover {
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.4);
}

.course-card.math:hover {
    box-shadow: 0 12px 40px rgba(255, 165, 0, 0.4);
}

.course-card.ai:hover {
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.4);
}

.courses-grid.list-view .course-card {
    flex-direction: row;
}

.courses-grid.list-view .course-header {
    width: 200px;
    height: auto;
    min-height: 150px;
}

.courses-grid.list-view .card-content {
    flex: 1;
    text-align: left;
}

.course-header {
    position: relative;

    height: 200px !important;
    min-height: 200px !important;

    padding: 0 !important;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(78, 205, 196, 0.05));
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.course-card.math .course-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
}

.course-card.ai .course-header {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(239, 68, 68, 0.2));
}

.course-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    padding: 0.375rem 0.75rem;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge.hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: pulseBadge 1.5s ease-in-out infinite;
}

@keyframes pulseBadge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
}

.badge.popular {
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
    gap: 1rem;
    min-height: 280px;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .card-content {
        padding: 1.25rem;
        min-height: 260px;
    }
}


/* .card-icon svg,
.course-icon svg,
.course-header svg {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
} */


/*.course-card .course-header img,
.course-card .course-header .course-image,
.course-header > img,
.course-header > .course-image {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    object-fit: contain !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
    padding: 20px !important;
    margin: 0 auto !important;
    display: block !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2)) !important;
    position: relative !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
}
*/

/*.course-card:hover .course-header img,
.course-card:hover .course-header .course-image,
.course-card:hover .course-header > img,
.course-card:hover .course-header > .course-image {
    transform: scale(1.15) rotate(5deg) translateY(-10px) !important;
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4),
                0 0 0 2px rgba(255, 255, 255, 0.2) inset !important;
    filter: drop-shadow(0 12px 40px rgba(168, 85, 247, 0.6)) brightness(1.15) !important;
}


/* .course-card.coding:hover .course-header img,
.course-card.coding:hover .course-header .course-image,
.course-card.coding:hover .course-header > img {
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.6),
                0 0 0 2px rgba(168, 85, 247, 0.3) inset !important;
    filter: drop-shadow(0 12px 40px rgba(168, 85, 247, 0.7)) brightness(1.15) !important;
}

.course-card.math:hover .course-header img,
.course-card.math:hover .course-header .course-image,
.course-card.math:hover .course-header > img {
    box-shadow: 0 20px 60px rgba(255, 165, 0, 0.6),
                0 0 0 2px rgba(255, 215, 0, 0.3) inset !important;
    filter: drop-shadow(0 12px 40px rgba(255, 165, 0, 0.7)) brightness(1.15) !important;
}

.course-card.ai:hover .course-header img,
.course-card.ai:hover .course-header .course-image,
.course-card.ai:hover .course-header > img {
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.6),
                0 0 0 2px rgba(236, 72, 153, 0.3) inset !important;
    filter: drop-shadow(0 12px 40px rgba(236, 72, 153, 0.7)) brightness(1.15) !important;
}


/* @media (max-width: 768px) {
    .course-card .course-header img,
    .course-card .course-header .course-image,
    .course-header > img,
    .course-header > .course-image {
        width: 160px !important;
        height: 160px !important;
        min-width: 160px !important;
        min-height: 160px !important;
        max-width: 160px !important;
        max-height: 160px !important;
        padding: 15px !important;
    }

    .course-header {
        min-height: 220px !important;
        padding: 25px 18px !important;
    }
} */

/* @media (max-width: 480px) {
    .course-card .course-header img,
    .course-card .course-header .course-image,
    .course-header > img,
    .course-header > .course-image {
        width: 140px !important;
        height: 140px !important;
        min-width: 140px !important;
        min-height: 140px !important;
        max-width: 140px !important;
        max-height: 140px !important;
        padding: 12px !important;
    }

    .course-header {
        min-height: 200px !important;
        padding: 20px 15px !important;
    }
}  */


/* === NEW, CORRECTED COURSE IMAGE STYLES === */


.course-header .course-image {
    width: 100% !important;
    height: 100% !important;


    object-fit: cover !important;


    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;


    transition: transform 0.4s ease !important;
}


.course-card:hover .course-image {
    transform: scale(1.1);
}


.course-category {
    font-size: 0.85rem;
    color: #a855f7;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.course-card.math .course-category {
    color: #FFD700;
}

.course-card.ai .course-category {
    color: #EC4899;
}

.card-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: 400;
}

.card-skills {
    list-style: none;
    padding: 1.25rem 0;
    margin: 1.5rem 0;
    text-align: left;
    font-size: 0.9rem;
    color: #cbd5e1;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.card-skills li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.card-skills li:hover {
    transform: translateX(5px);
}

.card-skills li:last-child {
    margin-bottom: 0;
}

.card-skills li::before {
    content: '';
    margin-right: 0.75rem;
    font-weight: 900;
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.course-card.math .card-skills li::before {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
}

.course-card.ai .card-skills li::before {
    color: #EC4899;
    background: rgba(236, 72, 153, 0.2);
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--glass-border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #CBD5E1;
    font-size: 0.9rem;
}

.meta-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meta-icon svg {
    width: 14px;
    height: 14px;
    color: currentColor;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.course-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-current {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, white, #E0E7FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-original {
    font-size: 1.1rem;
    color: #64748b;
    text-decoration: line-through;
}

.card-button-container {
    margin-top: auto;
    padding-top: 0.5rem;
}

.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.875rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    transition: all var(--transition-speed) ease;
    background-size: 200% auto;
    position: relative;
    overflow: hidden;
    border: none;
}

.card-button::after {
    content: '';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.card-button:hover::after {
    transform: translateX(5px);
}

.card-button.coding {
    background-image: linear-gradient(to right, #8A2BE2 0%, #4A00E0 51%, #8A2BE2 100%);
    --glow-color: var(--primary-glow-color);
}

.card-button.math {
    background-image: linear-gradient(to right, #FFC107 0%, #F57C00 51%, #FFC107 100%);
    --glow-color: var(--math-glow-color);
}

.card-button.ai {
    background-image: linear-gradient(to right, #EC4899 0%, #EF4444 51%, #EC4899 100%);
    --glow-color: var(--ai-glow-color);
}

.card-button:hover {
    background-position: right center;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 5px 25px var(--glow-color);
}


.card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.view-course-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-speed) ease;
    font-size: 0.9rem;
}

.view-course-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--glass-hover-border);
    transform: translateY(-2px);
}

.buy-now-btn {
    flex: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    background-size: 200% auto;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.buy-now-btn .btn-text {
    font-size: 0.9rem;
    font-weight: 700;
}

.buy-now-btn .btn-price {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

.buy-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.buy-now-btn:hover::before {
    left: 100%;
}

.buy-now-btn.coding {
    background-image: linear-gradient(135deg, #8A2BE2 0%, #4A00E0 51%, #8A2BE2 100%);
    --glow-color: var(--primary-glow-color);
}

.buy-now-btn.maths {
    background-image: linear-gradient(135deg, #FFC107 0%, #F57C00 51%, #FFC107 100%);
    --glow-color: var(--math-glow-color);
}

.buy-now-btn.ai {
    background-image: linear-gradient(135deg, #EC4899 0%, #EF4444 51%, #EC4899 100%);
    --glow-color: var(--ai-glow-color);
}

.buy-now-btn:hover {
    background-position: right center;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 30px var(--glow-color);
}

.buy-now-btn:active {
    transform: scale(0.98) translateY(-1px);
}


.card-footer {
    margin-bottom: 0;
}


.course-pricing-section {
    padding: 4rem 2rem;
    background: var(--glass-bg-dark);
    margin-top: 3rem;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.pricing-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--glass-hover-border);
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.3);
}

.pricing-card.featured {
    border-color: #a855f7;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.2);
}

.featured-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-type {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.pricing-description {
    color: #94a3b8;
    font-size: 0.95rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.currency {
    font-size: 2rem;
    color: #a855f7;
    font-weight: 700;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-left: 0.25rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: #CBD5E1;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-button {
    display: block;
    width: 100%;
    padding: 1.25rem 2rem;
    border-radius: 0.875rem;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    transition: all var(--transition-speed) ease;
    background-size: 200% auto;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.pricing-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.pricing-button:hover::before {
    left: 100%;
}

.pricing-button.group {
    background-image: linear-gradient(135deg, #4ecdc4 0%, #44a08d 51%, #4ecdc4 100%);
    --glow-color: rgba(78, 205, 196, 0.5);
}

.pricing-button.personalized {
    background-image: linear-gradient(135deg, #a855f7 0%, #8a2be2 51%, #a855f7 100%);
    --glow-color: var(--primary-glow-color);
}

.pricing-button:hover {
    background-position: right center;
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 15px 40px var(--glow-color);
    border-color: rgba(255, 255, 255, 0.3);
}

.pricing-button:active {
    transform: scale(1.05) translateY(-1px);
}

@media (max-width: 768px) {
    .pricing-options {
        grid-template-columns: 1fr;
    }

    .pricing-title {
        font-size: 2rem;
    }

    .price {
        font-size: 2.5rem;
    }
}


.feature-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    padding: 3.5rem;
    display: flex;
    align-items: center;
    gap: 3.5rem;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    animation: fadeIn 1s ease both;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--glass-hover-border);
}

.feature-text {
    flex: 1 1 55%;
    animation: slideInLeft 1s ease 0.3s both;
}

.feature-text .tagline {
    font-weight: 600;
    color: #EC4899;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease 0.5s both;
}

.feature-text h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.feature-text p {
    color: #94a3b8;
    max-width: 500px;
}

.feature-visual {
    flex: 1 1 45%;
    display: grid;
    place-items: center;
    animation: slideInRight 1s ease 0.3s both;
}

.feature-visual svg,
.feature-visual img {
    width: 100%;
    max-width: 350px;
    animation: float 4s ease-in-out infinite;
}

.certificate-visual img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.certificate-visual:hover img {
    transform: rotateY(10deg) rotateX(5deg) scale(1.05);
}

.certificate-features {
    list-style: none;
    padding-left: 0;
    margin-top: 2rem;
}

.certificate-features li {
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.certificate-features li:hover {
    transform: translateX(5px);
}

.certificate-features li::before {
    content: '';
    margin-right: 12px;
    font-weight: 900;
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-speed) ease;
    animation: slideInUp 0.8s ease both;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    transition: all 0.6s ease;
}

.feature-item:hover::before {
    top: -150%;
    left: -150%;
}

.feature-item:hover {
    transform: var(--card-hover-transform);
    background: var(--glass-hover-bg-light);
    border-color: var(--glass-hover-border);
    box-shadow: var(--glass-hover-shadow);
}

.feature-icon {
    height: 50px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-icon svg {
    height: 100%;
    width: auto;
    stroke: #a855f7;
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon svg {
    stroke: #4ecdc4;
    transform: scale(1.2) rotate(10deg);
}

.feature-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.feature-item p {
    font-size: 0.9rem;
    color: #94a3b8;
    position: relative;
    z-index: 1;
}


.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    animation: fadeIn 1s ease both;
}

.testimonial-card:hover {
    transform: var(--card-hover-transform);
    background: var(--glass-hover-bg-light);
    border-color: var(--glass-hover-border);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.2);
}

.testimonial-content {
    padding: 2rem;
}

.testimonial-content blockquote {
    font-style: italic;
    color: #cbd5e1;
    border-left: 3px solid var(--primary-glow-color);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    transition: padding-left 0.3s ease;
}

.testimonial-card:hover blockquote {
    padding-left: 2rem;
}

.testimonial-info .name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.testimonial-info .course {
    font-size: 0.9rem;
    color: #94a3b8;
}

.parent-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 2px solid var(--glass-border);
    float: left;
    transition: all 0.3s ease;
}

.testimonial-card:hover .parent-avatar {
    border-color: var(--primary-glow-color);
    transform: scale(1.1);
}

.parent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.projects-gallery-wrapper {
    position: relative;
    width: 100%;
}

.projects-gallery {
    display: flex;
    gap: 2rem;
    padding: 2rem 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-glow-color) transparent;
}

.projects-gallery::-webkit-scrollbar {
    height: 8px;
}

.projects-gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.projects-gallery::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #a855f7, #4ecdc4);
    border-radius: 4px;
}

.project-card {
    flex: 0 0 400px;
    height: 250px;
    border-radius: 1.25rem;
    overflow: hidden;
    position: relative;
    scroll-snap-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    animation: fadeIn 1s ease both;
}

.project-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 50px var(--primary-glow-color);
    z-index: 10;
    border-color: var(--glass-hover-border);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image {
    transform: scale(1.15);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.project-info p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.project-info .student-name {
    font-size: 0.9rem;
    font-style: italic;
    color: #94a3b8;
}


.roadmap-timeline {
    position: relative;
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-glow-color), var(--secondary-glow-color));
    transform: translateX(-50%);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.roadmap-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    animation: slideInLeft 0.8s ease both;
}

.roadmap-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
    margin-left: 50%;
    animation: slideInRight 0.8s ease both;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    top: 15px;
    right: -13px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #010103;
    border: 4px solid #a855f7;
    box-shadow: 0 0 15px var(--primary-glow-color);
    z-index: 1;
    transition: all 0.3s ease;
}

.roadmap-item:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 25px var(--primary-glow-color);
}

.roadmap-item:nth-child(even)::before {
    right: auto;
    left: -13px;
}

.roadmap-content {
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-speed) ease;
    max-width: 400px;
}

.roadmap-content:hover {
    transform: translateY(-8px);
    border-color: var(--glass-hover-border);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3);
}

.roadmap-phase {
    font-weight: 600;
    color: #a855f7;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.roadmap-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.roadmap-description {
    font-size: 0.95rem;
    color: #94a3b8;
}

.roadmap-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.roadmap-skill {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.8rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.roadmap-skill:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: scale(1.05);
}


.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all var(--transition-speed) var(--transition-timing);
    animation: fadeIn 0.8s ease both;
}

.faq-item:hover {
    border-color: var(--glass-hover-border);
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.1);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #a855f7;
    padding-left: 2rem;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform var(--transition-speed) ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-out;
    opacity: 0;
}

.faq-answer p {
    padding-bottom: 1.25rem;
    color: #94a3b8;
}

.faq-item.active {
    background: var(--glass-hover-bg-light);
    border-color: var(--primary-glow-color);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: #a855f7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
}


.cta-banner {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(74, 0, 224, 0.9));
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.4);
    transition: all 0.4s ease;
    animation: fadeIn 1s ease both;
}

.cta-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(138, 43, 226, 0.5);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    animation: subtle-glow 10s ease-in-out infinite;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.cta-text h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
}

.cta-banner .cta-button {
    background: white;
    color: #8A2BE2;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-banner .cta-button:hover {
    background: #f0f0f0;
    transform: scale(1.1) translateY(-3px);
}


.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    animation: fadeIn 1s ease both;
}

.contact-container:hover {
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.2);
    border-color: var(--glass-hover-border);
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
    animation: slideInUp 0.8s ease both;
}

.contact-form .input-field {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-form .input-field::placeholder {
    color: #64748b;
}

.contact-form .input-field:focus {
    outline: none;
    border-color: var(--primary-glow-color);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.contact-form textarea.input-field {
    resize: vertical;
    min-height: 120px;
}

.contact-form .submit-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background-image: linear-gradient(to right, #8A2BE2 0%, #4A00E0 51%, #8A2BE2 100%);
    background-size: 200% auto;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.contact-form .submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.contact-form .submit-button:hover::before {
    left: 100%;
}

.contact-form .submit-button:hover {
    background-position: right center;
    box-shadow: 0 10px 30px var(--primary-glow-color);
    transform: translateY(-3px);
}

/* ========================================
   TRY CODING SECTION - ENHANCED STYLES
   ======================================== */

/* Try Coding Section Container */
.try-coding-section {
    position: relative;
    padding: 4rem 2rem;
}

/* Try Coding Header */
.try-coding-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Try Coding Title with Gradient Animation */
.try-coding-title {
    background: linear-gradient(135deg, #a855f7, #4ecdc4, #a855f7);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Add glow effect to title */
.try-coding-title::after {
    content: 'Try Coding';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.5;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Error Messages */
.error-message {
    display: none;
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    animation: shake 0.3s ease;
}

.error-message::before {
    content: '⚠ ';
    margin-right: 0.25rem;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Input Field Enhancements */
.contact-form .input-field.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.contact-form .input-field:valid {
    border-color: rgba(78, 205, 196, 0.5);
}

/* Submit Button Loading State */
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.button-loader {
    display: inline-block;
}

.spinner {
    animation: rotate 1s linear infinite;
    width: 24px;
    height: 24px;
}

.spinner .path {
    stroke: #fff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Form Feedback (Success/Error Messages) */
.form-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    text-align: center;
    animation: feedbackSlideIn 0.4s ease;
}

@keyframes feedbackSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.form-feedback::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
    animation: fadeIn 0.3s ease;
}

/* Feedback Icon */
.feedback-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Success State */
.form-feedback.feedback-success .feedback-icon {
    background: rgba(78, 205, 196, 0.2);
    border: 3px solid #4ecdc4;
}

.form-feedback.feedback-success .feedback-icon::before {
    content: '✓';
    color: #4ecdc4;
}

.form-feedback.feedback-success {
    border-color: rgba(78, 205, 196, 0.5);
}

/* Error State */
.form-feedback.feedback-error .feedback-icon {
    background: rgba(255, 107, 107, 0.2);
    border: 3px solid #ff6b6b;
}

.form-feedback.feedback-error .feedback-icon::before {
    content: '✕';
    color: #ff6b6b;
}

.form-feedback.feedback-error {
    border-color: rgba(255, 107, 107, 0.5);
}

/* Feedback Message */
.feedback-message {
    color: var(--text-primary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

/* Feedback Close Button */
.feedback-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feedback-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* ========================================
   WHATSAPP STICKY BUTTON
   ======================================== */

.whatsapp-sticky-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.whatsapp-sticky-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    color: white;
}

/* WhatsApp Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.9);
}

.whatsapp-sticky-button:hover .whatsapp-tooltip {
    opacity: 1;
}

/* Pulse Animation for WhatsApp Button */
.whatsapp-sticky-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.7;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE DESIGN FOR TRY CODING SECTION
   ======================================== */

@media (max-width: 768px) {
    .try-coding-section {
        padding: 3rem 1rem;
    }

    .contact-container {
        padding: 2rem 1.5rem;
    }

    .form-feedback {
        padding: 2rem;
        width: 95%;
    }

    .feedback-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .whatsapp-sticky-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .try-coding-header {
        margin-bottom: 2rem;
    }

    .contact-container {
        padding: 1.5rem 1rem;
    }

    .contact-form .form-group {
        margin-bottom: 1rem;
    }

    .form-feedback {
        padding: 1.5rem;
    }

    .feedback-message {
        font-size: 1rem;
    }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .try-coding-title,
    .whatsapp-sticky-button,
    .whatsapp-sticky-button::before {
        animation: none;
    }

    .form-feedback {
        animation: fadeIn 0.2s ease;
    }
}


.about-hero {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 4rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: subtle-glow 15s ease-in-out infinite;
}

.about-hero:hover {
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.3);
    border-color: var(--glass-hover-border);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #d1d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.content-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all var(--transition-speed) var(--transition-timing);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #4ecdc4);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.content-card:hover::before {
    transform: scaleX(1);
}

.content-card:hover {
    transform: var(--card-hover-transform);
    background: var(--glass-hover-bg-light);
    border-color: var(--glass-hover-border);
    box-shadow: 0 20px 50px var(--primary-glow-color);
}

.content-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
}

.content-card p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.stats-section {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--glass-hover-border);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.stat-number {
    --glow-color: var(--primary-glow-color);
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
    animation: pulse-glow 3s ease-in-out infinite;
}

.stat-label {
    font-size: 1.05rem;
    color: #94a3b8;
    font-weight: 500;
}

.journey-section {
    margin-top: 1rem;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.5), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8A2BE2, #4A00E0);
    border: 3px solid rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    z-index: 2;
}

.timeline-content {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    padding: 2rem;
    width: calc(50% - 50px);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.03);
    border-color: var(--glass-hover-border);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3);
}

.timeline-content h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.7;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.curriculum-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 1.3rem;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.curriculum-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #a855f7, #4ecdc4, transparent);
    transition: left 0.6s ease;
}

.curriculum-card:hover::before {
    left: 100%;
}

.curriculum-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-hover-border);
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.4);
}

.curriculum-card h4 {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.curriculum-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.curriculum-list li {
    padding: 0.6rem 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.curriculum-list li::before {
    content: '';
    position: absolute;
    left: 0;
    color: #a855f7;
    font-weight: bold;
}


.about-page .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-page .testimonial-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 1.3rem;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    position: relative;
}

.about-page .testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-hover-border);
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.3);
}

.testimonial-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.author-info h5 {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.85rem;
    color: #94a3b8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    transition: all 0.6s ease;
}

.value-card:hover::before {
    top: -150%;
    left: -150%;
}

.value-card:hover {
    transform: var(--card-hover-transform);
    background: var(--glass-hover-bg-light);
    border-color: var(--glass-hover-border);
    box-shadow: var(--glass-hover-shadow);
}

.value-card h4 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.value-card p {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}


.site-footer {
    width: 100%;
    padding: 4rem 0 1.5rem 0;
    background: rgba(4, 4, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 5rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-column .logo {
    margin-bottom: 1.25rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    background: var(--primary-glow-color);
    color: #fff;
    transform: translateY(-5px) rotate(360deg);
    border-color: transparent;
    box-shadow: 0 5px 20px var(--primary-glow-color);
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: #94a3b8;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    left: -15px;
    opacity: 1;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: #94a3b8;
}


@media (max-width: 1024px) {
    .filter-container {
        grid-template-columns: 250px 1fr;
    }

    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 968px) {


    .timeline::before {
        left: 30px;
    }

    .timeline-marker {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        text-align: left;
    }

    .content-section,
    .curriculum-grid,
    .values-grid,
    .about-page .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   MOBILE NAVIGATION MENU (900px and below)
   Z-index: 9998 (below mobile button 10000, below navbar 9999)
   ======================================== */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 20, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border: none;
        border-top: 1px solid var(--glass-border);
        padding: 2rem 1.5rem;
        gap: 0.75rem;
        overflow-y: auto;
        z-index: 9998;
        /* Below mobile button and navbar */
    }

    .nav-menu.active {
        display: flex;
        animation: slideInUp 0.4s ease;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 1.25rem;
        text-align: left;
        font-size: 1.1rem;
        border: 1px solid rgba(168, 85, 247, 0.2);
        background: rgba(168, 85, 247, 0.05);
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        /* Ensure touch target minimum */
        transition: all 0.2s ease;
        /* Smooth feedback */
    }

    /* Touch feedback for mobile nav links */
    .nav-link:active {
        background: rgba(168, 85, 247, 0.2);
        border-color: rgba(168, 85, 247, 0.4);
        transform: scale(0.98);
    }

    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        /* Changed from space-between for better centering */
        gap: 5px;
        /* Space between hamburger lines */
        width: 44px;
        /* Increased from 32px for better touch target */
        height: 44px;
        /* Increased from 24px for better touch target */
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        /* Added padding for larger clickable area */
        z-index: 10000;
        /* Above navbar (9999) to ensure clickability */
        transition: all 0.2s ease;
        /* Smooth feedback */
    }

    /* Touch feedback for mobile menu button */
    .mobile-menu-btn:active {
        background: rgba(168, 85, 247, 0.1);
        border-radius: 8px;
        transform: scale(0.95);
    }

    .mobile-menu-btn span {
        display: block;
        width: 24px;
        /* Fixed width for hamburger lines */
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: all 0.3s var(--transition-timing);
    }

    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .dropdown-content {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(168, 85, 247, 0.1);
        border: 1px solid rgba(168, 85, 247, 0.2);
        border-radius: 0.75rem;
        box-shadow: none;
        display: none;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-item {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: 0.5rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 800px) {
    .feature-card {
        flex-direction: column;
        padding: 2.5rem;
    }

    .feature-text {
        text-align: center;
    }
}

@media (max-width: 768px) {


    .hero-section {
        flex-direction: column;
        padding: 2.5rem;
        text-align: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-text {
        margin-bottom: 1.5rem;
    }

    .roadmap-timeline::before {
        left: 15px;
    }

    .roadmap-item,
    .roadmap-item:nth-child(even) {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        margin-left: 0;
    }

    .roadmap-item::before,
    .roadmap-item:nth-child(even)::before {
        left: 3px;
    }

    .footer-grid {
        text-align: center;
    }

    .social-links,
    .footer-column .logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }


    .about-hero {
        padding: 2.5rem;
    }

    .content-card {
        padding: 2rem;
    }

    .stats-section {
        padding: 2rem;
    }

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

    .timeline-content {
        padding: 1.5rem;
    }

    .about-page .testimonial-grid {
        grid-template-columns: 1fr;
    }


    .filter-container {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
        border-radius: 0;
        max-width: none;
        height: 100%;
        overflow-y: auto;
    }

    .filter-sidebar.active {
        transform: translateX(0);
    }

    .mobile-filter-toggle {
        display: block;
    }

    .search-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box {
        width: 100%;
    }

    .courses-grid:not(.list-view) {
        grid-template-columns: 1fr;
    }

    .results-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .view-toggle {
        display: none;
    }

    .sort-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .sort-menu {
        left: 0;
        right: 0;
        min-width: auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        top: calc(100% + 1rem);
    }

    .sort-option {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        text-align: center;
    }


    .card-actions {
        gap: var(--spacing-sm);
    }

    .view-course-btn,
    .buy-now-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 500px) {
    .project-card {
        flex-basis: 90%;
    }
}

@media (max-width: 480px) {
    main.courses-page {
        padding: 20px 10px;
    }

    .card-content {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .price-current {
        font-size: 1.5rem;
    }

    .card-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }


    .card-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .view-course-btn,
    .buy-now-btn {
        flex: 1;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .buy-now-btn .btn-text,
    .buy-now-btn .btn-price {
        font-size: 0.85rem;
    }
}

body.index-page main {
    padding: 120px 20px 20px;
}


.dropdown-item.highlight {
    color: #fce7f3;

    font-weight: 600;
    background: rgba(236, 72, 153, 0.15);

    border: 1px solid rgba(236, 72, 153, 0.4);
}

.dropdown-item.highlight:hover {
    color: white;
    background: rgba(236, 72, 153, 0.3);

    border-color: rgba(236, 72, 153, 0.6);
}


.tabs-wrapper {
    margin-bottom: 4rem;

    animation: slideInUp 0.8s ease-out 0.4s both;
}

.tabs-container {
    display: flex;
    position: relative;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: var(--glass-shadow);
    max-width: fit-content;

    margin: 0 auto 2rem;

}

.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    color: #94a3b8;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.875rem;
    cursor: pointer;
    transition: color 0.4s ease;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.tab-button.active {
    color: white;
}

.tab-button:hover:not(.active) {
    color: #e2e8f0;
}

.tab-glider {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    height: calc(100% - 1rem);
    border-radius: 0.875rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(78, 205, 196, 0.5));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

#math-tabs .tab-glider {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(255, 165, 0, 0.5));
}

.tab-content {
    display: none;
    animation: fadeInContent 0.6s ease-in-out forwards;
}

.tab-content.active {
    display: block;

}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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


.view-more-container {
    text-align: center;
    margin-top: 3rem;
}

.view-more-button {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 50px;

    box-shadow: var(--glass-shadow);
    transition: all var(--transition-speed) var(--transition-timing);
    position: relative;
    overflow: hidden;
}

.view-more-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.view-more-button:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--glass-hover-bg-light);
    border-color: var(--glass-hover-border);
    box-shadow: 0 10px 30px var(--primary-glow-color);
}

.view-more-button:hover::before {
    left: 100%;
}


/* ========================================
   MOBILE TAB BUTTON OPTIMIZATION
   Reduced min-width and optimized spacing to prevent squeezing
   ======================================== */
@media (max-width: 768px) {
    .tabs-wrapper {
        margin-bottom: 3rem;
        padding: 0 1rem;
        /* Increased from 0.5rem for better spacing */
    }

    .tabs-container {
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.75rem 0.5rem;
        /* Increased vertical padding */
        padding-bottom: 15px;
        display: flex;
        flex-wrap: nowrap;
        gap: 0.75rem;
        /* Increased from 0.5rem for better spacing */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        max-width: 100%;
        margin: 0 auto 2rem;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-glow-color) rgba(0, 0, 0, 0.2);
    }

    .tab-button {
        flex: 0 0 auto;
        min-width: 140px;
        /* Reduced from 150px to prevent squeezing */
        max-width: 180px;
        /* Added max-width constraint */
        padding: 0.875rem 1.25rem;
        /* Optimized padding */
        font-size: 0.95rem;
        /* Slightly smaller for better fit */
        white-space: nowrap;
        scroll-snap-align: center;
        background: rgba(168, 85, 247, 0.1);
        border: 1px solid rgba(168, 85, 247, 0.3);
        min-height: 44px;
        /* Ensure touch target minimum */
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        /* Smooth feedback */
    }

    /* Touch feedback for tab buttons */
    .tab-button:active {
        transform: scale(0.96);
        background: rgba(168, 85, 247, 0.2);
    }

    .tab-button.active {
        background: rgba(168, 85, 247, 0.3);
        border-color: rgba(168, 85, 247, 0.5);
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    }

    .tabs-container::-webkit-scrollbar {
        height: 8px;
    }

    .tabs-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

    .tabs-container::-webkit-scrollbar-thumb {
        background: var(--primary-glow-color);
        border-radius: 4px;
    }

    .tabs-container::-webkit-scrollbar-thumb:hover {
        background: rgba(168, 85, 247, 0.8);
        /* Brighter on hover */
    }

    .tab-glider {
        display: none;
    }

    /* Math tabs specific styling */
    #math-tabs .tab-button {
        background: rgba(255, 165, 0, 0.1);
        border-color: rgba(255, 165, 0, 0.3);
    }

    #math-tabs .tab-button.active {
        background: rgba(255, 165, 0, 0.3);
        border-color: rgba(255, 165, 0, 0.5);
        box-shadow: 0 0 15px rgba(255, 165, 0, 0.4);
    }
}

/* ========================================
   EXTRA SMALL SCREENS (480px and below)
   Further optimizations for iPhone SE and similar devices
   ======================================== */
@media (max-width: 480px) {
    .tabs-wrapper {
        padding: 0 0.75rem;
    }

    .tabs-container {
        padding: 0.5rem 0.25rem;
        gap: 0.5rem;
    }

    .tab-button {
        min-width: 120px;
        /* Further reduced for small screens */
        max-width: 160px;
        padding: 0.75rem 1rem;
        /* Reduced padding */
        font-size: 0.9rem;
        /* Smaller font */
    }

    /* Math tabs for small screens */
    #math-tabs .tab-button {
        min-width: 120px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Mobile menu button adjustments for very small screens */
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .mobile-menu-btn span {
        width: 22px;
        /* Slightly smaller hamburger lines */
    }
}


.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.pricing-card {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-speed) var(--transition-timing);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: var(--card-hover-transform);
    border-color: var(--glass-hover-border);
    box-shadow: var(--glass-hover-shadow);
}

.pricing-card.popular {
    border-color: var(--primary-glow-color);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 20px 50px var(--primary-glow-color);
}

.popular-badge {
    position: absolute;
    top: 1.5rem;
    right: -50px;
    background: linear-gradient(135deg, #a855f7, #8A2BE2);
    color: white;
    padding: 0.5rem 4rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #d1d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.price-currency {
    font-size: 1.75rem;
    vertical-align: super;
    margin-right: 5px;
    opacity: 0.7;
}

.price-period {
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    color: #cbd5e1;
}

.plan-features li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 1rem;
}

.plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.plan-button {
    display: block;
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    transition: all var(--transition-speed) ease;
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border);
}

.plan-button:hover {
    background: var(--glass-hover-bg-light);
    transform: scale(1.05);
}

.pricing-card.popular .plan-button {
    background: linear-gradient(135deg, #8A2BE2, #4A00E0);
    box-shadow: 0 4px 20px var(--primary-glow-color);
}

.pricing-disclaimer {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 3rem;
}


@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: scale(1);

    }
}


.card-thumbnail-container {
    width: 100%;

    padding-top: 56.25%;
    position: relative;
    overflow: hidden;
}

.card-thumbnail-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

}

/* ===
=== COURSE PAGE STYLES ====== */


.course-detail-page main {
    padding-top: 6rem;

    position: relative;
    z-index: 10;
    min-height: 100vh;
}


.breadcrumb {
    display: none;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '';
    margin-left: 0.5rem;
    color: #64748b;
    font-size: 1.2rem;
}

.breadcrumb-item a {
    color: #a855f7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #4ecdc4;
}

.breadcrumb-item[aria-current="page"] {
    color: #e2e8f0;
}


.course-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;

    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.course-hero-content {
    flex: 1;
}

.course-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.course-category.coding {
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    color: white;
}

.course-category.math {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
}

.course-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1.6;
}

.course-hero-image {
    flex: 0 0 400px;
    max-width: 400px;
}

.course-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3);
}


.course-tabs-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.course-tabs-wrapper {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.course-tabs-container {
    position: relative;
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.course-tab-button {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.course-tab-button:hover {
    color: #e2e8f0;
}

.course-tab-button.active {
    color: white;
}

.course-tab-glider {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    height: calc(100% - 1rem);
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.course-tab-content {
    display: none;
}

.course-tab-content.active {
    display: block;
    animation: fadeInContent 0.4s ease-in-out forwards;
}


.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.about-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #a855f7;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 0;
}

.skills-list li {
    padding: 1rem 1.5rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 1rem;
}

.skills-list li::before {
    content: '';
    color: #4ecdc4;
    font-weight: bold;
    margin-right: 0.5rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.tool-item {
    padding: 1rem;
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 8px;
    text-align: center;
    color: #4ecdc4;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.tool-item:hover {
    background: rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}


.curriculum-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
}

.curriculum-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.curriculum-module {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.curriculum-module:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.module-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.module-header:hover {
    background: rgba(168, 85, 247, 0.1);
}

.module-number {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.module-title {
    flex: 1;
}

.module-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    color: #a855f7;
    transition: transform 0.3s ease;
}

.curriculum-module.expanded .module-icon {
    transform: rotate(180deg);
}

.module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.lesson-list {
    list-style: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
}

.lesson-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #4ecdc4;
    border-radius: 4px;
    color: #94a3b8;
    font-size: 1rem;
}

.lesson-list li::before {
    content: '';
    color: #4ecdc4;
    margin-right: 0.75rem;
    font-weight: bold;
}


.enroll-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.pricing-card {
    max-width: 500px;
    width: 100%;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    text-align: center;
}

.pricing-card h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
}

.price-display {
    margin-bottom: 2rem;
}

.price-current {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-original {
    font-size: 1.5rem;
    color: #64748b;
    text-decoration: line-through;
    margin-left: 1rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: #94a3b8;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.enroll-button {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.enroll-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4);
}


@media (max-width: 768px) {
    .course-hero {
        flex-direction: column;
        text-align: center;
    }

    .course-hero-image {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .course-hero-title {
        font-size: 2rem;
    }

    .course-hero-subtitle {
        font-size: 1rem;
    }

    .course-tabs-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .course-tab-button {
        min-width: auto;
    }

    .course-tab-glider {
        display: none;
    }

    .breadcrumb {
        padding: 0.75rem 1rem;
    }

    .breadcrumb-item {
        font-size: 0.8rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .price-current {
        font-size: 2.5rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* === NAVBAR CONFLICT FIX FOR COURSE PAGES === */
body.course-detail-page nav {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
}

/* =
==== COURSE PAGE SPECIFIC STYLES ===== */


main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 40px 20px 20px;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


.course-content {
    flex: 1;
}


.tab-navigation {
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
}


.main-tabs-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tabs-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), #d1d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tabs-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0;
}


.main-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.main-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    justify-content: center;
    will-change: transform;
    transform: translateZ(0);
}

.main-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.main-tab:hover::before {
    left: 100%;
}

.main-tab:hover {
    background: var(--glass-hover-bg-light);
    border-color: var(--glass-hover-border);
    color: var(--text-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.4);
}

.main-tab.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(78, 205, 196, 0.2));
    border-color: var(--primary-glow-color);
    color: var(--text-primary);
    box-shadow: 0 12px 40px var(--primary-glow-color);
    transform: translateY(-2px);
}


.main-tab[data-tab="coding"] {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(138, 43, 226, 0.1));
}

.main-tab[data-tab="coding"]:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(138, 43, 226, 0.2));
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.5);
}

.main-tab[data-tab="coding"].active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(138, 43, 226, 0.3));
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.6);
}


.main-tab[data-tab="maths"] {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(255, 215, 0, 0.1));
}

.main-tab[data-tab="maths"]:hover {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.25), rgba(255, 215, 0, 0.2));
    box-shadow: 0 12px 40px rgba(255, 165, 0, 0.5);
}

.main-tab[data-tab="maths"].active {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.4), rgba(255, 215, 0, 0.3));
    border-color: rgba(255, 165, 0, 0.8);
    box-shadow: 0 12px 40px rgba(255, 165, 0, 0.6);
}

.main-tab.active .tab-icon {
    animation: pulse-glow 2s ease-in-out infinite;
    --glow-color: var(--primary-glow-color);
}

.tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.tab-icon svg {
    width: 18px;
    height: 18px;
    color: currentColor;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-tab:hover .tab-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.main-tab:hover .tab-icon svg {
    transform: scale(1.1);
}

.main-tab.active .tab-icon {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.main-tab[data-tab="coding"].active .tab-icon svg {
    color: #A855F7;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

.main-tab[data-tab="maths"].active .tab-icon svg {
    color: #FFA500;
    filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.6));
}

.tab-text {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.sub-tabs-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 0.75rem;
    gap: 1rem;
}

.indicator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    max-width: 100px;
}

.indicator-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    padding: 0 1rem;
}


.sub-tabs-container {
    position: relative;
    min-height: 60px;
    margin-top: 0.5rem;
}

.sub-tabs {
    display: none;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0.5rem;
}

.sub-tabs.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.sub-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    will-change: transform;
    transform: translateZ(0);
}

.sub-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.1), transparent);
    transition: left 0.4s ease;
}

.sub-tab:hover::before {
    left: 100%;
}

.sub-tab:hover {
    background: rgba(78, 205, 196, 0.15);
    border-color: rgba(78, 205, 196, 0.4);
    color: #4ecdc4;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.sub-tab.active {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(168, 85, 247, 0.15));
    border-color: var(--secondary-glow-color);
    color: var(--text-primary);
    box-shadow: 0 8px 30px var(--secondary-glow-color);
    transform: translateY(-2px);
}


.coding-subtabs .sub-tab:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #A855F7;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.coding-subtabs .sub-tab.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(138, 43, 226, 0.15));
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
}


.maths-subtabs .sub-tab:hover {
    background: rgba(255, 165, 0, 0.15);
    border-color: rgba(255, 165, 0, 0.4);
    color: #FFA500;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
}

.maths-subtabs .sub-tab.active {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.25), rgba(255, 215, 0, 0.15));
    border-color: rgba(255, 165, 0, 0.6);
    box-shadow: 0 8px 30px rgba(255, 165, 0, 0.4);
}

.subtab-text {
    position: relative;
    z-index: 1;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}


.sub-tab[data-subtab="girls"] {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(251, 207, 232, 0.05));
    border-color: rgba(236, 72, 153, 0.3);
    color: #EC4899;
}

.sub-tab[data-subtab="girls"]:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(251, 207, 232, 0.1));
    border-color: rgba(236, 72, 153, 0.5);
    color: #EC4899;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

.sub-tab[data-subtab="girls"].active {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(251, 207, 232, 0.15));
    border-color: rgba(236, 72, 153, 0.7);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5);
}

/*
 --- COURSE CARD LINK STYLES --- */
.course-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.course-card-link:focus {
    outline: 2px solid var(--primary-glow-color);
    outline-offset: 2px;
}

.course-card-link:hover .course-card {
    transform: var(--card-hover-transform);
    background: var(--glass-hover-bg-light);
    border-color: var(--glass-hover-border);
    box-shadow: var(--glass-hover-shadow);
}

.course-card-link:hover .course-card.coding {
    box-shadow: 0 20px 50px var(--primary-glow-color);
}

.course-card-link:hover .course-card.math {
    box-shadow: 0 20px 50px var(--math-glow-color);
}

.course-card-link:hover .course-card.ai {
    box-shadow: 0 20px 50px var(--ai-glow-color);
}

.course-card-link:hover .course-card::before {
    transform: scaleX(1);
}


@media (hover: none) and (pointer: coarse) {
    .course-card-link:active .course-card {
        transform: scale(0.98);
        background: var(--glass-hover-bg-light);
        border-color: var(--glass-hover-border);
    }

    .main-tab:active {
        transform: scale(0.98);
    }

    .sub-tab:active {
        transform: scale(0.98);
    }
}


.courses-grid.list-view .course-card-link {
    display: block;
    height: 100%;
}

/*
--- TAB NAVIGATION RESPONSIVE --- */
@media (max-width: 1024px) {
    .main-tab {
        padding: 1rem 2rem;
        font-size: 1.125rem;
        min-width: 160px;
    }

    .tab-icon {
        width: 26px;
        height: 26px;
    }

    .tab-icon svg {
        width: 20px;
        height: 20px;
    }

    .sub-tab {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-width: 110px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .main-tabs {
        gap: 1.5rem;
    }

    .sub-tabs {
        gap: 0.875rem;
    }
}

@media (max-width: 768px) {
    .tab-navigation {
        margin-bottom: 1.5rem;
    }

    .main-tabs {
        gap: 1rem;
        padding: 1rem 0;
    }

    .main-tab {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 140px;
    }

    .tab-icon {
        width: 24px;
        height: 24px;
    }

    .tab-icon svg {
        width: 18px;
        height: 18px;
    }

    .sub-tabs {
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .sub-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .main-tabs {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .main-tab {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-width: auto;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .tab-icon {
        width: 22px;
        height: 22px;
    }

    .tab-icon svg {
        width: 18px;
        height: 18px;
    }

    .sub-tabs-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sub-tabs-container::-webkit-scrollbar {
        display: none;
    }

    .sub-tabs {
        gap: 0.75rem;
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 0.5rem 1rem;
        min-width: max-content;
    }

    .sub-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        min-width: 100px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .subtab-text {
        white-space: nowrap;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-tabs {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .main-tab {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-width: auto;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .tab-icon {
        width: 22px;
        height: 22px;
    }

    .tab-icon svg {
        width: 16px;
        height: 16px;
    }

    .sub-tabs {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .sub-tab {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        flex: 1;
        min-width: 0;
    }

    .subtab-text {
        font-size: 0.8rem;
    }
}

/*
--- PRICING SECTION STYLES --- */
.pricing-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.pricing-container {
    text-align: center;
}

.pricing-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), #d1d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pricing-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
}

.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-speed) var(--transition-timing);
    animation: fadeIn 0.8s ease both;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #4ecdc4);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
    transform-origin: left;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--glass-hover-bg-light);
    border-color: var(--glass-hover-border);
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.3);
}

.pricing-card.featured {
    border: 2px solid rgba(168, 85, 247, 0.5);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: translateY(-8px) scale(1.07);
    box-shadow: 0 25px 60px rgba(168, 85, 247, 0.4);
}

.pricing-header {
    margin-bottom: 2rem;
    position: relative;
}

.pricing-plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    color: white;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.pricing-badge.premium {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: pulseBadge 1.5s ease-in-out infinite;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.25rem;
}

.currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, white, #E0E7FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-features li:hover {
    transform: translateX(5px);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '';
    margin-right: 0.75rem;
    font-weight: 900;
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.pricing-cta-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8A2BE2, #4A00E0);
    color: white;
    border: none;
    border-radius: 0.875rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 6px 25px var(--primary-glow-color);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.pricing-cta-button::after {
    content: '';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.pricing-cta-button:hover::before {
    left: 100%;
}

.pricing-cta-button:hover::after {
    transform: translateX(3px);
}

.pricing-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--primary-glow-color);
}

.pricing-cta-button.group-cta {
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.4);
}

.pricing-cta-button.group-cta:hover {
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.5);
}

.pricing-cta-button.personalized-cta {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
}

.pricing-cta-button.personalized-cta:hover {
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.5);
}


body.course-detail-page main {
    padding: 120px 20px 20px;
    gap: 0;
}

.course-hero {
    margin-bottom: 0;
    padding: 3rem 2rem;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    animation: slideInUp 0.8s ease-out both;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: subtle-glow 15s ease-in-out infinite;
}

.course-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.course-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 2rem;
    color: #a855f7;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.course-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #d1d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.course-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.course-tabs-section {
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    animation: slideInUp 0.8s ease-out 0.2s both;
}


@media (max-width: 768px) {
    .pricing-section {
        padding: 3rem 1rem;
    }

    .pricing-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px) scale(1.02);
    }

    .price {
        font-size: 2.5rem;
    }

    .course-hero {
        padding: 2rem 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .pricing-title {
        font-size: 1.8rem;
    }

    .price {
        font-size: 2rem;
    }
}

/* === NEW AMAZING ENROLLMENT BAR STYLES === */

/* === UPDATED AMAZING ENROLLMENT BAR STYLES === */


.enrollment-cta-section {
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 0 2rem;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.enrollment-cta-container {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.enrollment-cta-container:hover {
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.3);
    border-color: var(--glass-hover-border);
}

.enrollment-cta-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #d1d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.enrollment-cta-text p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 400px;
}

.enrollment-options {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

.enrollment-option {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-speed) ease;
    width: 280px;
    position: relative;
}

.enrollment-option:hover {
    transform: translateY(-8px);
    background: var(--glass-hover-bg-light);
    border-color: var(--glass-hover-border);
}

.enrollment-option.featured {
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.enrollment-option h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.enrollment-option .price {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.class-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem 0;
}

.enroll-btn {
    display: inline-block;
    width: 100%;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.enroll-btn.primary {
    background: linear-gradient(135deg, #a855f7, #8A2BE2);
    color: white;
    --glow-color: var(--primary-glow-color);
}

.enroll-btn.outline {
    background: transparent;
    color: #a855f7;
    border-color: #a855f7;
    --glow-color: var(--primary-glow-color);
}

.enroll-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.enroll-btn:hover::before {
    left: 100%;
}

.enroll-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px var(--glow-color);
}

.enroll-btn.outline:hover {
    background: #a855f7;
    color: white;
}

.enroll-btn:active {
    transform: translateY(-2px) scale(1.02);
}


@media (max-width: 1024px) {
    .enrollment-cta-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .enrollment-options {
        flex-direction: column;
        width: 100%;
    }

    .enrollment-option {
        width: 100%;
    }
}

/*
========================================
   BLOG SYSTEM STYLES
   ======================================== */

/* ===== BLOG LISTING PAGE ===== */
.blog-listing-page {
    background: var(--glass-bg-dark);
    min-height: 100vh;
}

.blog-listing-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg,
            rgba(168, 85, 247, 0.1),
            rgba(78, 205, 196, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.blog-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.blog-hero-title {
    font-size: var(--heading-primary);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.blog-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-hero-image svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* ===== FEATURED POSTS SECTION ===== */
.featured-posts-section {
    padding: 80px 0;
    background: var(--glass-bg-light);
}

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

.section-title {
    font-size: var(--heading-secondary);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-post-card {
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(var(--glass-blur));
}

.featured-post-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-hover-border);
    box-shadow: var(--glass-hover-shadow);
}

.featured-post-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(78, 205, 196, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-post-image svg {
    width: 80%;
    height: 80%;
}

.featured-post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-category {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-date,
.post-read-time {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.post-title {
    margin-bottom: 1rem;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #a855f7;
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-author {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.author-name {
    font-weight: 500;
}

/* ===== BLOG FILTER SECTION ===== */
.blog-filter-section {
    padding: 60px 0;
    background: var(--glass-bg-dark);
    border-top: 1px solid var(--glass-border);
}

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

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.search-btn {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.search-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #a855f7;
}

/* ===== ALL POSTS SECTION ===== */
.all-posts-section {
    padding: 80px 0;
    background: var(--glass-bg-light);
}

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

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-post-card {
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(var(--glass-blur));
}

.blog-post-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-hover-border);
    box-shadow: var(--glass-hover-shadow);
}

.post-image {
    height: 160px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(78, 205, 196, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image svg {
    width: 70%;
    height: 70%;
}

.post-content {
    padding: 1.25rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* ===== PAGINATION ===== */
.pagination-container {
    display: flex;
    justify-content: center;
}

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

.pagination-btn {
    padding: 0.5rem;
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #a855f7;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 1rem;
    height: 1rem;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
    margin: 0 1rem;
}

.pagination-number {
    padding: 0.5rem 0.75rem;
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.pagination-number:hover,
.pagination-number.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #a855f7;
}

.pagination-dots {
    color: var(--text-muted);
    padding: 0.5rem;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    padding: 80px 0;
    background: var(--glass-bg-dark);
    border-top: 1px solid var(--glass-border);
}

.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.newsletter-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.newsletter-disclaimer {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.newsletter-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.newsletter-image svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* ===== BLOG DETAIL PAGE ===== */
.blog-detail-page {
    background: var(--glass-bg-dark);
    min-height: 100vh;
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb-section {
    padding: 100px 0 20px;
    background: var(--glass-bg-light);
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #a855f7;
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== BLOG HERO SECTION ===== */
.blog-hero {
    padding: 40px 0 80px;
    background: var(--glass-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-category {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    padding: 0.375rem 1rem;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-date,
.blog-read-time {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a855f7;
}

.author-avatar svg {
    width: 24px;
    height: 24px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.author-title {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.blog-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-hero-image svg {
    width: 100%;
    max-width: 350px;
    height: auto;
}

/* ===== BLOG CONTENT SECTION ===== */
.blog-content-section {
    padding: 80px 0;
    background: var(--glass-bg-dark);
}

.blog-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.blog-article {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(var(--glass-blur));
}

.blog-introduction {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.blog-introduction p {
    margin-bottom: 1rem;
}

.blog-sections {
    margin-bottom: 3rem;
}

.blog-section {
    margin-bottom: 3rem;
}

.blog-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.blog-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.0625rem;
}

.blog-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.blog-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-list li::before {
    content: '';
    position: absolute;
    left: 0;
    color: #a855f7;
    font-weight: bold;
}

.code-section pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.code-section code {
    color: #f8f8f2;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.blog-image {
    margin: 2rem 0;
    text-align: center;
}

.blog-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-conclusion {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.blog-conclusion h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.blog-conclusion p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.0625rem;
}

/* ===== SOCIAL SHARING ===== */
.blog-sharing {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.blog-sharing h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sharing-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn.twitter {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}

.share-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.share-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    transform: translateY(-2px);
}

.share-btn.linkedin {
    background: rgba(0, 119, 181, 0.1);
    color: #0077b5;
}

.share-btn.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    transform: translateY(-2px);
}

/* ===== BLOG SIDEBAR ===== */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(var(--glass-blur));
}

.sidebar-widget h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.related-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post h4 {
    margin-bottom: 0.5rem;
}

.related-post h4 a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-post h4 a:hover {
    color: #a855f7;
}

.related-date {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #a855f7;
}

.category-link span {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.cta-widget {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(78, 205, 196, 0.1));
    border-color: rgba(168, 85, 247, 0.3);
}

.cta-widget p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.sidebar-cta-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

/* ===== BLOG NAVIGATION ===== */
.blog-navigation {
    padding: 60px 0;
    background: var(--glass-bg-light);
    border-top: 1px solid var(--glass-border);
}

.blog-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-post {
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.nav-post:hover {
    border-color: var(--glass-hover-border);
    transform: translateY(-2px);
}

.nav-post.next-post {
    text-align: right;
}

.nav-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.nav-title {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.nav-title:hover {
    color: #a855f7;
}

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

    .blog-hero-content,
    .newsletter-container,
    .blog-content-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-hero-content {
        text-align: center;
    }

    .blog-article {
        padding: 2rem;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }

    .category-filters {
        justify-content: center;
    }

    .posts-grid,
    .featured-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-nav-container {
        grid-template-columns: 1fr;
    }

    .nav-post.next-post {
        text-align: left;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .sharing-buttons {
        justify-content: center;
    }

    .blog-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-hero-subtitle {
        font-size: 1rem;
    }

    .blog-article {
        padding: 1.5rem;
    }

    .blog-section h2 {
        font-size: 1.5rem;
    }

    .featured-posts-grid,
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== BLOG ACTIVE NAVIGATION STATE ===== */
.nav-link.active {
    color: #a855f7;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #a855f7;
    border-radius: 50%;
}

/* ===== BLOG LOADING STATES ===== */
.blog-post-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.blog-post-card.hidden {
    display: none;
}

/* ===== BLOG SEARCH HIGHLIGHTING ===== */
.search-highlight {
    background: rgba(168, 85, 247, 0.3);
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
}

.blog-listing-hero {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
    margin-top: 80px;
}

.blog-listing-hero-content h1 {
    font-size: var(--heading-primary);
    background: linear-gradient(135deg, var(--text-primary), #d1d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
}

.blog-listing-hero-content p {
    font-size: var(--body-large);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}


.featured-post-section {
    padding: var(--spacing-2xl) var(--spacing-xl);
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--card-gap);
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: all var(--transition-speed) var(--transition-timing);
}

.featured-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-hover-shadow);
}

.featured-post-image {
    position: relative;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-post-content {
    padding: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border-radius: var(--border-radius-sm);
    font-size: var(--body-small);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    width: fit-content;
}

.featured-post-content h2 {
    font-size: var(--heading-secondary);
    color: var(--text-primary);
    margin: var(--spacing-md) 0;
}

.featured-post-content p {
    font-size: var(--body-regular);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.featured-post-meta {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    font-size: var(--body-small);
    color: var(--text-muted);
}


.blog-listing-section {
    padding: var(--spacing-2xl) var(--spacing-xl);
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--card-gap);
}


.blog-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: all var(--transition-speed) var(--transition-timing);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    background: var(--glass-hover-bg-light);
    border-color: var(--glass-hover-border);
    box-shadow: var(--glass-hover-shadow);
    transform: var(--card-hover-transform);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-glow-color);
    color: var(--text-primary);
    border-radius: var(--border-radius-sm);
    font-size: var(--body-small);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    width: fit-content;
}

.blog-card-title {
    font-size: var(--heading-tertiary);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: var(--body-regular);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--glass-border);
    font-size: var(--body-small);
    color: var(--text-muted);
}

.blog-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--card-gap);
    padding: var(--spacing-3xl) var(--spacing-xl);
    max-width: var(--content-max-width);
    margin: 80px auto 0;
    align-items: center;
}

.blog-hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.blog-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-glow-color);
    color: var(--text-primary);
    border-radius: var(--border-radius-sm);
    font-size: var(--body-small);
    font-weight: 600;
    width: fit-content;
}

.blog-hero-title {
    font-size: var(--heading-primary);
    color: var(--text-primary);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary), #d1d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-subtitle {
    font-size: var(--body-large);
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--glass-border);
}

.author-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-glow-color);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: var(--body-regular);
    color: var(--text-primary);
    font-weight: 600;
}

.blog-date {
    font-size: var(--body-small);
    color: var(--text-muted);
}

.read-time {
    font-size: var(--body-small);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    background: var(--glass-bg-dark);
    border-radius: var(--border-radius-sm);
}

.blog-hero-image {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.blog-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}


.blog-content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.blog-content {
    font-size: var(--body-large);
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-content h2 {
    font-size: var(--heading-secondary);
    color: var(--text-primary);
    margin-top: var(--spacing-3xl);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.blog-content h3 {
    font-size: var(--heading-tertiary);
    color: var(--text-primary);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.blog-content h4 {
    font-size: var(--body-large);
    color: var(--text-primary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.blog-content p {
    margin-bottom: var(--spacing-lg);
}

.blog-content ul,
.blog-content ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-2xl);
}

.blog-content li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.blog-content ul li {
    list-style-type: disc;
}

.blog-content ol li {
    list-style-type: decimal;
}

.blog-content .blog-image {
    margin: var(--spacing-2xl) 0;
}

.blog-content .blog-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
}

.blog-content figcaption {
    text-align: center;
    font-size: var(--body-small);
    color: var(--text-muted);
    margin-top: var(--spacing-md);
    font-style: italic;
}

.blog-content pre {
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    overflow-x: auto;
    margin: var(--spacing-2xl) 0;
}

.blog-content code {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.9em;
    color: #4ecdc4;
}

.blog-content pre code {
    color: var(--text-secondary);
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-glow-color);
    padding-left: var(--spacing-lg);
    margin: var(--spacing-2xl) 0;
    font-style: italic;
    color: var(--text-muted);
    background: var(--glass-bg-dark);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
}

.blog-content blockquote p {
    margin-bottom: var(--spacing-md);
}

.blog-content blockquote cite {
    display: block;
    font-size: var(--body-small);
    color: var(--text-muted);
    font-style: normal;
    margin-top: var(--spacing-sm);
}


.author-bio-section {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    margin-top: var(--spacing-3xl);
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-glow-color);
    flex-shrink: 0;
}

.author-bio-content h3 {
    font-size: var(--heading-tertiary);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.author-bio-content p {
    font-size: var(--body-regular);
    color: var(--text-secondary);
    line-height: 1.6;
}


.related-posts-section {
    margin-top: var(--spacing-3xl);
}

.related-posts-section h2 {
    font-size: var(--heading-secondary);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--card-gap);
}

.no-related {
    text-align: center;
    color: var(--text-muted);
    padding: var(--spacing-xl);
    background: var(--glass-bg-dark);
    border-radius: var(--border-radius-md);
}


@media (max-width: 768px) {
    .blog-hero {
        grid-template-columns: 1fr;
        padding: var(--spacing-2xl) var(--spacing-md);
        margin-top: 60px;
    }

    .blog-hero-image {
        order: -1;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-post-image {
        height: 250px;
    }

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

    .blog-content-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .author-bio-section {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .blog-listing-hero {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .blog-hero-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .blog-content {
        font-size: var(--body-regular);
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
}

/* === NEW AWESOME COURSE IMAGE STYLES === */


.course-header {

    padding: 0 !important;


    height: 200px !important;
    min-height: 200px !important;


    overflow: hidden !important;
}


.course-header .course-image {

    width: 100% !important;
    height: 100% !important;


    object-fit: cover !important;


    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;


    transition: transform 0.4s ease !important;
}


.course-card:hover .course-image {

    transform: scale(1.1);
}

/* ===
=====================================
   MINIMAL COURSE CARD STYLES (REDESIGN)
   ======================================== */

.course-card-minimal {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--glass-shadow);
    cursor: pointer;
}

.course-card-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-glow-color), var(--secondary-glow-color));
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
    transform-origin: left;
    z-index: 1;
}

.course-card-minimal:hover::before {
    transform: scaleX(1);
}

.course-card-minimal:hover {
    transform: translateY(-6px);
    background: var(--glass-hover-bg-light);
    border-color: var(--glass-hover-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}


.course-card-minimal[data-category="programming"]:hover,
.course-card-minimal[data-category="web-dev"]:hover,
.course-card-minimal[data-category="mobile-dev"]:hover {
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.4);
}

.course-card-minimal[data-category="ai-ml"]:hover {
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.4);
}

.course-card-minimal[data-category="mathematics"]:hover {
    box-shadow: 0 12px 40px rgba(255, 165, 0, 0.4);
}


.course-image-container {
    width: 100%;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(78, 205, 196, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border-radius: 16px 16px 0 0;
}


.course-card-minimal[data-category="ai-ml"] .course-image-container {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(239, 68, 68, 0.05));
}

.course-card-minimal[data-category="mathematics"] .course-image-container {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 165, 0, 0.05));
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.course-card-minimal:hover .course-image {
    transform: scale(1.05);
}


.course-content-minimal {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.course-title-minimal {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    text-align: center;
}

.course-description-minimal {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 1rem 0;
    text-align: center;
    flex-grow: 1;
}


.start-learning-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #8A2BE2, #4A00E0);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    margin-top: auto;
}

.start-learning-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.5);
    background: linear-gradient(135deg, #9333EA, #5B21B6);
}

.start-learning-btn:active {
    transform: translateY(0);
}


.course-card-minimal,
.course-image,
.start-learning-btn,
.btn-arrow {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.start-learning-btn .btn-arrow {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--transition-speed) ease;
}

.start-learning-btn:hover .btn-arrow {
    transform: translateX(4px);
}


.start-learning-btn.disabled,
.start-learning-btn:disabled {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.5), rgba(71, 85, 105, 0.5));
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.start-learning-btn.disabled:hover,
.start-learning-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}


.course-card-minimal[data-category="ai-ml"] .start-learning-btn {
    background: linear-gradient(135deg, #EC4899, #BE185D);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.course-card-minimal[data-category="ai-ml"] .start-learning-btn:hover {
    background: linear-gradient(135deg, #F472B6, #DB2777);
    box-shadow: 0 6px 25px rgba(236, 72, 153, 0.5);
}

.course-card-minimal[data-category="mathematics"] .start-learning-btn {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.course-card-minimal[data-category="mathematics"] .start-learning-btn:hover {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}


@media (max-width: 1024px) {
    .course-image-container {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }

    .course-content-minimal {
        padding: 1.25rem;
    }

    .course-title-minimal {
        font-size: 1.125rem;
    }

    .course-description-minimal {
        font-size: 0.9rem;
    }

    .start-learning-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}


@media (max-width: 768px) {
    .course-image-container {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
    }

    .course-content-minimal {
        padding: 1rem;
        gap: 0.875rem;
    }

    .course-title-minimal {
        font-size: 1.125rem;
    }

    .course-description-minimal {
        font-size: 0.875rem;
    }

    .start-learning-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .course-image-container {
        height: 160px;
        min-height: 160px;
        max-height: 160px;
    }

    .course-content-minimal {
        padding: 1rem;
    }

    .course-title-minimal {
        font-size: 1rem;
    }

    .course-description-minimal {
        font-size: 0.8125rem;
    }

    .start-learning-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}


.start-learning-btn:focus-visible {
    outline: 2px solid var(--primary-glow-color);
    outline-offset: 2px;
}

.course-card-minimal:focus-within {
    outline: 2px solid var(--primary-glow-color);
    outline-offset: 2px;
}


@media (prefers-contrast: high) {
    .course-card-minimal {
        border: 2px solid currentColor;
    }

    .start-learning-btn {
        border: 2px solid currentColor;
    }
}


@media (prefers-reduced-motion: reduce) {

    .course-card-minimal,
    .course-image,
    .start-learning-btn,
    .btn-arrow {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .course-card-minimal:hover {
        transform: none;
    }

    .course-card-minimal:hover .course-image {
        transform: none;
    }
}


.course-card-minimal {
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
}


@supports not (backdrop-filter: blur(20px)) {
    .course-card-minimal {
        background: rgba(16, 16, 28, 0.95);
    }
}


.course-title-minimal,
.course-description-minimal {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.course-card-minimal {
    animation: fadeInUp 0.6s ease both;
}


.course-card-minimal:nth-child(1) {
    animation-delay: 0.05s;
}

.course-card-minimal:nth-child(2) {
    animation-delay: 0.1s;
}

.course-card-minimal:nth-child(3) {
    animation-delay: 0.15s;
}

.course-card-minimal:nth-child(4) {
    animation-delay: 0.2s;
}

.course-card-minimal:nth-child(5) {
    animation-delay: 0.25s;
}

.course-card-minimal:nth-child(6) {
    animation-delay: 0.3s;
}

.course-card-minimal:nth-child(7) {
    animation-delay: 0.35s;
}

.course-card-minimal:nth-child(8) {
    animation-delay: 0.4s;
}

.course-card-minimal:nth-child(9) {
    animation-delay: 0.45s;
}

.course-card-minimal:nth-child(10) {
    animation-delay: 0.5s;
}

.course-card-minimal:nth-child(11) {
    animation-delay: 0.55s;
}

.course-card-minimal:nth-child(12) {
    animation-delay: 0.6s;
}


/* ========================================
   RESPONSIVE GRID FOR MINIMAL CARDS
   ======================================== */


@media (min-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: var(--card-gap) !important;
    }
}


@media (min-width: 768px) and (max-width: 1023px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-lg) !important;
    }
}


@media (max-width: 767px) {
    .courses-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-lg) !important;
    }
}


.courses-grid .course-card-minimal {
    margin: 0;
}


/* ========================================
   COMING SOON TOAST NOTIFICATION
   ======================================== */

.coming-soon-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.coming-soon-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    color: var(--text-primary);
}

.toast-content svg {
    flex-shrink: 0;
    color: var(--primary-glow-color);
}

.toast-content strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.toast-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .coming-soon-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}


/* ========================================
   LIST VIEW FOR MINIMAL CARDS
   ======================================== */

.courses-grid.list-view .course-card-minimal {
    flex-direction: row;
    height: auto;
}

.courses-grid.list-view .course-image-container {
    width: 250px;
    min-width: 250px;
    height: auto;
    min-height: 200px;
}

.courses-grid.list-view .course-content-minimal {
    flex: 1;
    text-align: left;
}

.courses-grid.list-view .course-title-minimal,
.courses-grid.list-view .course-description-minimal {
    text-align: left;
}

.courses-grid.list-view .start-learning-btn {
    width: auto;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .courses-grid.list-view .course-card-minimal {
        flex-direction: column;
    }

    .courses-grid.list-view .course-image-container {
        width: 100%;
        height: 180px;
    }

    .courses-grid.list-view .course-content-minimal {
        text-align: center;
    }

    .courses-grid.list-view .course-title-minimal,
    .courses-grid.list-view .course-description-minimal {
        text-align: center;
    }

    .courses-grid.list-view .start-learning-btn {
        width: 100%;
    }
}



/* ========================================
   AUTHENTICATION MODAL STYLES
   ======================================== */

/**
 * LOGIN MODAL OVERLAY
 * Full-screen overlay that appears behind the modal
 * Darkens the background and prevents interaction with page content
 */
.auth-modal-overlay {
    /* Positioning */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    /* Above all other content */

    /* Appearance */
    background: rgba(0, 0, 0, 0.85);
    /* Dark semi-transparent background */
    backdrop-filter: blur(10px);
    /* Blur effect on background */
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */

    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);

    /* Animation */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-timing);

    /* Prevent scrolling when modal is open */
    overflow-y: auto;
}

/**
 * MODAL VISIBLE STATE
 * Applied when modal is opened
 */
.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/**
 * LOGIN MODAL CONTAINER
 * The actual modal box with glassmorphism effect
 */
.auth-modal {
    /* Sizing */
    width: 100%;
    max-width: 450px;

    /* Glassmorphism Effect */
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-2xl);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3);

    /* Animation */
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s var(--transition-timing);

    /* Prevent modal from closing when clicking inside */
    position: relative;
}

/**
 * MODAL VISIBLE ANIMATION
 */
.auth-modal-overlay.active .auth-modal {
    transform: scale(1) translateY(0);
}

/**
 * MODAL HEADER
 * Contains title and close button
 */
.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-2xl) var(--spacing-2xl) var(--spacing-lg);
    border-bottom: 1px solid var(--glass-border);
}

/**
 * MODAL TITLE
 * "Student Login" or "Teacher Login"
 */
.auth-modal-title {
    font-size: var(--heading-tertiary);
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/**
 * CLOSE BUTTON
 * X button in top-right corner
 */
.auth-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-hover-border);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.auth-modal-close svg {
    width: 20px;
    height: 20px;
}

/**
 * MODAL BODY
 * Contains the login form
 */
.auth-modal-body {
    padding: var(--spacing-2xl);
}

/**
 * ROLE ICON
 * User icon at top of form
 */
.auth-role-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(78, 205, 196, 0.2));
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    color: #a855f7;
}

.auth-role-icon svg {
    width: 40px;
    height: 40px;
}

/**
 * LOGIN FORM
 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/**
 * FORM GROUP
 * Container for each input field
 */
.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/**
 * FORM LABEL
 */
.auth-form-label {
    font-size: var(--body-small);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

/**
 * INPUT WRAPPER
 * Contains icon and input field
 */
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/**
 * INPUT ICON
 * Icon on left side of input
 */
.auth-input-icon {
    position: absolute;
    left: var(--spacing-md);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

/**
 * INPUT FIELD
 */
.auth-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    color: var(--text-primary);
    font-size: var(--body-regular);
    transition: all 0.3s ease;
}

.auth-input::placeholder {
    color: var(--text-muted);
}

.auth-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/**
 * PASSWORD TOGGLE BUTTON
 * Eye icon to show/hide password
 */
.auth-password-toggle {
    position: absolute;
    right: var(--spacing-md);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius-sm);
}

.auth-password-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.auth-password-toggle svg {
    width: 20px;
    height: 20px;
}

/**
 * ERROR MESSAGE
 * Displayed when login fails
 */
.auth-error-message {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius-md);
    color: #fca5a5;
    font-size: var(--body-small);
    animation: shake 0.5s ease;
}

.auth-error-message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/**
 * SHAKE ANIMATION FOR ERRORS
 */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/**
 * SUBMIT BUTTON
 */
.auth-submit-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, #8A2BE2, #4A00E0);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    color: white;
    font-size: var(--body-regular);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/**
 * BUTTON DISABLED STATE (while loading)
 */
.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/**
 * LOADING SPINNER
 */
.auth-btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.auth-spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

/**
 * FORM FOOTER
 * Contains forgot password link
 */
.auth-form-footer {
    text-align: center;
    margin-top: var(--spacing-md);
}

.auth-forgot-password {
    color: var(--text-muted);
    font-size: var(--body-small);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-forgot-password:hover {
    color: #a855f7;
}

/**
 * RESPONSIVE DESIGN
 */
@media (max-width: 768px) {
    .auth-modal {
        max-width: 90%;
        margin: var(--spacing-lg);
    }

    .auth-modal-header,
    .auth-modal-body {
        padding: var(--spacing-xl);
    }

    .auth-modal-title {
        font-size: 1.5rem;
    }

    .auth-role-icon {
        width: 60px;
        height: 60px;
    }

    .auth-role-icon svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .auth-modal-overlay {
        padding: var(--spacing-md);
    }

    .auth-modal-header,
    .auth-modal-body {
        padding: var(--spacing-lg);
    }

    .auth-input {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

/**
 * ACCESSIBILITY
 */
@media (prefers-reduced-motion: reduce) {

    .auth-modal-overlay,
    .auth-modal,
    .auth-submit-btn,
    .auth-modal-close {
        transition: none;
        animation: none;
    }
}

/**
 * PREVENT BODY SCROLL WHEN MODAL IS OPEN
 */
body.modal-open {
    overflow: hidden;
}


/* ========================================
   SUCCESS NOTIFICATION ANIMATIONS
   ======================================== */

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}


/* ========================================
   GIRLS IN TECH & CERTIFICATION SECTIONS
   ======================================== */

/* Feature Card Container */
.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-speed) var(--transition-timing);
}

.feature-card:hover {
    background: var(--glass-hover-bg-light);
    border-color: var(--glass-hover-border);
    box-shadow: var(--glass-hover-shadow);
    transform: translateY(-5px);
}

/* Girls Feature Card Specific */
.girls-feature-card {
    border: 1px solid rgba(236, 72, 153, 0.3);
    background: linear-gradient(135deg,
            rgba(236, 72, 153, 0.05),
            rgba(168, 85, 247, 0.05));
}

.girls-feature-card:hover {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.3);
}

/* Feature Visual */
.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.girls-visual svg {
    width: 100%;
    height: auto;
    max-width: 300px;
}

.certificate-visual {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.certificate-visual img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Feature Text */
.feature-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-text .tagline {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--girls-empowerment-color);
    margin-bottom: 0.5rem;
}

.feature-text h3 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-text p {
    font-size: var(--body-regular);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Girls Highlights */
.girls-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(236, 72, 153, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.4);
    transform: translateX(5px);
}

.highlight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EC4899, #A855F7);
    border-radius: 50%;
    color: white;
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
}

.highlight-item span {
    font-size: var(--body-regular);
    color: var(--text-primary);
    font-weight: 500;
}

/* Certificate Features */
.certificate-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.certificate-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--body-regular);
    color: var(--text-secondary);
    padding: 0.75rem;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.certificate-features li:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateX(5px);
}

.certificate-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #8A2BE2, #4A00E0);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .feature-visual {
        order: -1;
    }

    .girls-visual svg {
        max-width: 250px;
    }

    .feature-text h3 {
        font-size: 1.75rem;
    }

    .girls-highlights,
    .certificate-features {
        gap: 0.75rem;
    }

    .highlight-item,
    .certificate-features li {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .feature-text {
        gap: 1rem;
    }

    .feature-text h3 {
        font-size: 1.5rem;
    }

    .highlight-icon {
        width: 32px;
        height: 32px;
    }

    .highlight-icon svg {
        width: 20px;
        height: 20px;
    }

    .certificate-features li::before {
        width: 20px;
        height: 20px;
        font-size: 0.875rem;
    }
}