/* =========================================
   1. Global Reset & Typography
   ========================================= */
/* Import Vedic Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&family=Rozha+One&display=swap');

:root {
    /* Palette: Meditation Peach */
    --primary-color: #E88D67;
    /* Warm Peach/Terracotta */
    --primary-hover: #D07B55;
    /* Darker Peach */
    --accent-bg: #FFF5F0;
    /* Very light peach background */
    --accent-blob: #FFD3C4;
    /* Soft pink/peach for blobs */

    --text-main: #2C1810;
    /* Dark Brown/Black for softer contrast */
    --text-muted: #6D5D55;
    /* Muted earth tone */

    --bg-body: #FFF9F7;
    /* Off-White Peach Tint */
    --bg-card: #FFFFFF;
    /* Pure White */

    /* Organic Shapes */
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-pill: 50px;
    --radius-blob: 40% 60% 70% 30% / 40% 50% 60% 50%;
    /* Example organic shape */

    /* Depth */
    --shadow-card: 0 10px 40px -10px rgba(232, 141, 103, 0.15);
    --shadow-hover: 0 20px 50px -10px rgba(232, 141, 103, 0.25);

    /* Typography: Option A (Vedic Modern) */
    --font-heading: 'Rozha One', serif;
    --font-main: 'Hind', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 18px;
    /* Slightly larger base size for Hind */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    /* Rozha One is thick by default */
    color: var(--text-main);
    margin-bottom: 0.8em;
    line-height: 1.2;
    letter-spacing: 0.02em;
    /* Slight spacing for elegance */
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =========================================
   2. Components (Buttons, Inputs, Cards)
   ========================================= */

/* Buttons */
.btn-primary,
.btn-submit {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 40px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(232, 141, 103, 0.4);
}

.btn-primary:hover,
.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 141, 103, 0.5);
    color: #fff;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid transparent;
    background-color: #F0F0F5;
    /* Light gray input bg */
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* Cards */
.card,
.course-card,
.feature-card,
.audience-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.card:hover,
.course-card:hover,
.feature-card:hover,
.audience-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Background Blob Helpers */
.bg-blob {
    position: absolute;
    z-index: 0;
    border-radius: var(--radius-blob);
    background: var(--accent-blob);
    opacity: 0.5;
    filter: blur(40px);
}

/* =========================================
   3. Header & Navigation (Capsule)
   ========================================= */
header {
    background-color: #D07B55;
    /* User Requested: #D07B55 */
    padding: 0 2rem;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    /* Capsule Shape */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle glass border */
    backdrop-filter: blur(10px);
}

/* Header Links (Underline Effect) */
header nav ul li a {
    color: #fff !important;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #fff !important;
    background-color: transparent !important;
    /* Remove box effect */
    transform: none;
    /* Remove generic lift if any */
}

/* Header Buttons (Login/Signup) */
header .btn-login,
header .btn-signup,
header .btn-primary,
header .btn-secondary {
    background: #fff;
    color: #D07B55;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

header .btn-login:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* =========================================
   4. Hero Section
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 5rem; Removed bad padding */
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F7FA 100%);
    overflow: hidden;
    margin-bottom: 0;
}

.hero-content {
    flex: 1;
    text-align: center;
    max-width: 50%;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1D1D1F 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 4.8rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.hero-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    color: #fff;
}

.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    max-height: 100vh;
    overflow: hidden;
}

.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    max-height: 100vh;
    overflow: hidden;
}

.floating-model {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
}

.floating-model model-viewer {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Floating 3D Model Effect */
@keyframes float {

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

    25% {
        transform: translateY(-20px) rotateY(5deg);
    }

    75% {
        transform: translateY(10px) rotateY(-5deg);
    }
}

.floating-model {
    animation: float 8s ease-in-out infinite;
}

/* Header Layout Container */
.header-nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Large 3D Model for Hero Section */
.floating-model {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: 10;
}


.brand-logo-container img {
    max-height: 50px;
    width: auto;

}

.brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* Navigation Menu Layout */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Auth Buttons Container */
.auth-buttons {
    display: flex;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
    background: var(--accent-bg);
    transform: translateY(-1px);
}

nav ul li a.active {
    color: var(--primary-color);
    background: var(--accent-bg);
    font-weight: 600;
}

/* Enhanced Login/Dropdown Button */
.btn-login {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1001;
    margin-top: 8px;
}

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

.dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: var(--accent-bg);
    color: var(--primary-color);
}

/* =========================================
   4. Hero Section - Revised for Mobile & Aesthetics
   ========================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
    gap: 2rem;
}

/* Hero Content (Left Side) */
.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    text-align: left;
    padding-top: 2rem;
    /* Slight breathing room */
}

/* Typography Enhancements */
.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.6;
    font-weight: 400;
}

/* Hero Visual (Right Side - 3D Container) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
    height: 80vh;
    /* Controlled height for model */
}

/* Themed Background Glow/Blob */
.hero-visual::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 141, 103, 0.4) 0%, rgba(255, 249, 247, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
    animation: breatheGlow 6s ease-in-out infinite alternate;
}

@keyframes breatheGlow {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Mobile Responsive Layout (Breakpoint: 992px) */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        /* Standard Column */
        justify-content: flex-start;
        /* Start from top */
        padding-top: 100px;
        /* Clear header */
        padding-bottom: 2rem;
        gap: 1rem;
        height: auto;
        min-height: 100vh;
        max-height: none;
        /* Allow scrolling */
    }

    /* 1. VISUAL ON TOP */
    .hero-visual {
        order: 1;
        /* First */
        width: 100%;
        height: 40vh;
        /* Adjust height */
        margin-bottom: 0;
        flex: 0 0 auto;
        position: relative;
        /* Ensure relative context */
        z-index: 5;
    }

    /* Force container to fill parent exactly */
    #model-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 10;
    }

    .glow-bg {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 1;
    }

    /* 2. CONTENT BELOW */
    .hero-content {
        order: 2;
        /* Second */
        max-width: 100%;
        text-align: center;
        padding-top: 0;
    }

    /* Typography Adjustments */
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin: 0 auto 1.5rem auto;
        max-width: 90%;
        line-height: 1.4;
    }

    .hero-actions {
        display: flex;
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }

    .hero-visual::before {
        width: 250px;
        height: 250px;
        filter: blur(30px);
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* =========================================
   5. Modals (Auth & Language)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-main);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: #F0F0F5;
    padding: 4px;
    border-radius: var(--radius-pill);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: var(--radius-pill);
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Language Buttons */
.language-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.lang-btn {
    padding: 1rem;
    border: 1px solid #E5E5EA;
    background: #fff;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    background: var(--accent-bg);
    color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* =========================================
   6. Dashboard Layout
   ========================================= */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-nav ul li {
    margin-bottom: 0.5rem;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px 16px;
    color: var(--text-muted);
    align-items: center;
    margin-bottom: 3rem;
}

.dashboard-header h2 {
    font-size: 2rem;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-thumbnail {
    height: 180px;
    background: #E5E5EA;
    position: relative;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.course-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #F5F5F7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background: #F0F0F5;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* =========================================
   7. Course Player (Protected Layout)
   ========================================= */
.player-body {
    background: #1D1D1F;
    /* Dark mode default for player immersion */
    color: #fff;
    overflow: hidden;
}

.player-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    height: 100vh;
}

/* Player Sidebar */
.player-sidebar {
    background: #2C2C2E;
    /* Dark gray */
    border-right: 1px solid #3A3A3C;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.player-sidebar .sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #3A3A3C;
    margin-bottom: 0;
}

.player-sidebar .back-link {
    color: #A1A1A6;
    font-size: 0.9rem;
}

.player-sidebar .back-link:hover {
    color: #fff;
}

.player-sidebar .course-meta {
    padding: 1.5rem;
    border-bottom: 1px solid #3A3A3C;
    border-top: none;
}

.player-sidebar h4 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

/* Curriculum List */
.curriculum-list {
    flex: 1;
    padding: 1rem 0;
}

.section-item {
    margin-bottom: 1rem;
}

.section-title {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #86868B;
    font-weight: 600;
}

.lecture-list {
    list-style: none;
}

.lecture-item {
    padding: 12px 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #E5E5EA;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.lecture-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lecture-item.active {
    background: rgba(0, 122, 255, 0.15);
    border-left-color: var(--primary-color);
    color: #fff;
}

.lecture-item i {
    font-size: 0.9rem;
    color: #86868B;
}

.lecture-item.active i {
    color: var(--primary-color);
}

.lecture-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Player Main Content */
.player-main {
    display: flex;
    flex-direction: column;
    background: #1D1D1F;
    position: relative;
}

/* Toolbar */
.player-toolbar {
    height: 64px;
    background: #2C2C2E;
    border-bottom: 1px solid #3A3A3C;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.tool-btn {
    background: transparent;
    border: none;
    color: #E5E5EA;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle,
.font-controls {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 2px;
}

.tool-label {
    padding: 0 8px;
    font-size: 0.9rem;
    color: #86868B;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.lecture-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lecture-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #E5E5EA;
}

.player-navigation {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid #3A3A3C;
}

.nav-btn {
    padding: 12px 24px;
    background: #2C2C2E;
    border: 1px solid #3A3A3C;
    color: #fff;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background: #3A3A3C;
    border-color: #48484A;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Player Light Mode Override */
body:not(.player-dark-mode) .player-body,
body:not(.player-dark-mode) .player-main {
    background: #F5F5F7;
}

body:not(.player-dark-mode) .player-sidebar {
    background: #fff;
    border-right-color: #E5E5EA;
}

body:not(.player-dark-mode) .player-sidebar .sidebar-header,
body:not(.player-dark-mode) .player-sidebar .course-meta {
    border-bottom-color: #E5E5EA;
}

body:not(.player-dark-mode) .player-sidebar h4 {
    color: #1D1D1F;
}

body:not(.player-dark-mode) .player-sidebar .back-link {
    color: #86868B;
}

body:not(.player-dark-mode) .lecture-item {
    color: #1D1D1F;
}

body:not(.player-dark-mode) .lecture-item:hover {
    background: #F5F5F7;
}

body:not(.player-dark-mode) .lecture-item.active {
    background: #E3F2FD;
    color: var(--primary-color);
}

body:not(.player-dark-mode) .player-toolbar {
    background: #fff;
    border-bottom-color: #E5E5EA;
}

body:not(.player-dark-mode) .tool-btn {
    color: #1D1D1F;
}

body:not(.player-dark-mode) .tool-btn:hover {
    background: #F5F5F7;
}

body:not(.player-dark-mode) .lang-toggle,
body:not(.player-dark-mode) .font-controls {
    background: #F5F5F7;
}

body:not(.player-dark-mode) .lecture-title {
    color: #1D1D1F;
}

body:not(.player-dark-mode) .lecture-text {
    color: #1D1D1F;
}

body:not(.player-dark-mode) .nav-btn {
    background: #fff;
    border-color: #E5E5EA;
    color: #1D1D1F;
}

body:not(.player-dark-mode) .nav-btn:hover:not(:disabled) {
    background: #F5F5F7;
    border-color: #D1D1D6;
}

/* =========================================
   8. Footer
   ========================================= */
footer {
    background: #fff;
    padding: 4rem 2rem 2rem;
    margin-top: auto;
    border-top: 1px solid #E5E5EA;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #F5F5F7;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   9. Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    /* Hero Responsive Styles */
    @media (max-width: 768px) {
        .hero {
            flex-direction: column;
            padding: 2rem 1rem;
            min-height: auto;
            text-align: center;
        }

        .hero-content {
            max-width: 100%;
            margin-bottom: 2rem;
        }

        .hero-title {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .hero-subtitle {
            font-size: 1.1rem;
            margin-bottom: 2rem;
            max-width: 100%;
        }

        .hero-visual {
            min-height: 300px;
            margin-top: 2rem;
        }

        .floating-model {
            height: 250px;
            max-width: 400px;
        }
    }

    @media (max-width: 640px) {
        .hero {
            padding: 1.5rem 1rem;
        }

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

        .hero-subtitle {
            font-size: 1rem;
            margin-bottom: 1.5rem;
        }

        .hero-cta {
            padding: 10px 24px;
            font-size: 0.9rem;
        }

        .hero-visual {
            min-height: 250px;
            margin-top: 1.5rem;
        }

        .floating-model {
            height: 200px;
            max-width: 300px;
        }
    }

    /* Header Responsive Styles */
    header {
        padding: 1rem;
        height: auto;
        flex-wrap: wrap;
    }

    .brand-text {
        display: none;
    }

    .header-nav-container {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-top: 0.5rem;
    }

    nav ul {
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .btn-login {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .auth-buttons {
        justify-content: center;
    }

    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .player-container {
        grid-template-columns: 1fr;
    }

    .player-sidebar {
        display: none;
        /* Add toggle logic in JS if needed */
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100%;
        z-index: 200;
    }

    .player-sidebar.active {
        display: flex;
    }

    /* Additional mobile optimizations */
    @media (max-width: 640px) {
        header {
            padding: 0.75rem 1rem;
        }

        .brand-logo-container {
            width: 40px;
            height: 40px;
            padding: 8px;
        }

        .brand-logo-container img {
            max-height: 24px;
        }

        .header-nav-container {
            gap: 0.75rem;
        }

        nav ul li a {
            padding: 6px 10px;
            font-size: 0.85rem;
        }

        .btn-login {
            padding: 6px 14px;
            font-size: 0.85rem;
        }
    }
}

/* =========================================
   10. New Homepage Sections
   ========================================= */

.section-padding {
    padding: 5rem 2rem;
}

.bg-white {
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.bg-light {
    background-color: #F5F5F7;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

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

/* Learning Grid - Simple Card Design */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.learn-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 122, 255, 0.08);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.learn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.learn-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 122, 255, 0.15);
    border-color: var(--primary-color);
}

.learn-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.25);
    transition: all 0.3s ease;
}

.learn-card:hover .learn-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 122, 255, 0.35);
}

.learn-content p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 500;
}

/* Section Subtitle */
.section-subtitle {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design for Learning Grid */
@media (max-width: 768px) {
    .learning-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .learn-card {
        padding: 1.5rem;
    }

    .learn-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .learn-content h3 {
        font-size: 1.2rem;
    }

    .section-subtitle {}

    .player-sidebar {
        display: none;
        /* Add toggle logic in JS if needed */
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100%;
        z-index: 200;
    }

    .player-sidebar.active {
        display: flex;
    }

    /* Additional mobile optimizations */
    @media (max-width: 640px) {
        header {
            padding: 0.75rem 1rem;
        }

        .brand-logo-container {
            width: 40px;
            height: 40px;
            padding: 8px;
        }

        .brand-logo-container img {
            max-height: 24px;
        }

        .header-nav-container {
            gap: 0.75rem;
        }

        nav ul li a {
            padding: 6px 10px;
            font-size: 0.85rem;
        }

        .btn-login {
            padding: 6px 14px;
            font-size: 0.85rem;
        }
    }
}

/* =========================================
   10. New Homepage Sections
   ========================================= */

.section-padding {
    padding: 5rem 2rem;
}

.bg-white {
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.bg-light {
    background-color: #F5F5F7;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

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

/* Learning Grid - Simple Card Design */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.learning-card {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--primary-color);
    background: #E88D67;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.learning-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.learning-card .icon-box {
    margin-bottom: 1rem;
}



.learn-content p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 500;
}

/* Section Subtitle */
.section-subtitle {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design for Learning Grid */
@media (max-width: 768px) {
    .learning-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .learn-card {
        padding: 1.5rem;
    }

    .learn-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .learn-content h3 {
        font-size: 1.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .learning-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .learn-card {
        padding: 1.2rem;
    }

    .learn-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .learn-content h3 {
        font-size: 1.1rem;
    }

    .learn-content p {
        font-size: 0.95rem;
    }
}


/* Audience Grid */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.audience-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 122, 255, 0.1);
}

/* Featured Card Styling */
.audience-card.featured-card {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #fff 0%, #F8F9FA 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-card .card-info {
    flex: 0 0 35%;
}

.featured-card .icon-wrapper {
    margin: 0 0 1.5rem 0;
}

.featured-card .audience-list {
    flex: 1;
    margin-top: 0;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
}

.featured-card .audience-list li {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-card .audience-list li::before {
    content: "\f00c";
    /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.audience-card .icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--accent-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.audience-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.audience-card .card-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.audience-list {
    text-align: left;
    margin-top: auto;
}

.audience-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Responsive Design for Audience Grid */
@media (max-width: 992px) {
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .audience-card.featured-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }

    .featured-card .card-info {
        flex: auto;
        width: 100%;
    }

    .featured-card .icon-wrapper {
        margin: 0 auto 1.5rem;
    }

    .featured-card .audience-list {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

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

/* Requirements List */
.req-list-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #F9F9FB;
    padding: 3rem;
    border-radius: var(--radius-md);
}

.req-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.req-list li {
    position: relative;
    padding-left: 2rem;
    font-size: 1.05rem;
    color: var(--text-main);
}

.req-list li::before {
    content: "â€¢";
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #007AFF 0%, #0055B3 100%);
    padding: 5rem 2rem;
    color: #fff;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--primary-color);
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
}

@media (min-width: 768px) {
    .req-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================
   8. Enhanced Sections (Mandala Theme V2)
   ========================================= */

/* Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

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

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes staggerFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-entrance {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    opacity: 0;
}

/* Use classes to trigger animations via JS adding 'visible' class */
.animate-entrance.visible {
    opacity: 1;
    transform: none;
    animation-play-state: running;
}

/* Specific Animation Classes */
.anim-fade-up.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.anim-slide-left.visible {
    animation: slideInLeft 0.8s ease-out forwards;
}

.anim-slide-right.visible {
    animation: slideInRight 0.8s ease-out forwards;
}

.anim-zoom.visible {
    animation: zoomIn 0.8s ease-out forwards;
}

.anim-delay-1 {
    animation-delay: 0.1s;
    transition-delay: 0.1s;
}

.anim-delay-2 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.anim-delay-3 {
    animation-delay: 0.3s;
    transition-delay: 0.3s;
}

.anim-delay-4 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

/* Mandala Backgrounds - Random & Repeated */
.bg-mandala-wrapper {
    position: relative;
    overflow: hidden;
}

/* Common style for all mandalas */
.bg-mandala-wrapper::before,
.bg-mandala-wrapper::after,
.mandala-scatter {
    content: '';
    position: absolute;
    z-index: 0;
    opacity: 0.85;
    /* Increased visibility as requested */
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Specific Mandalas per Section (Base) */
.bg-mandala-1::after {
    width: 600px;
    height: 600px;
    background-image: url('../images/mandala1.svg');
    top: -100px;
    right: -100px;
    animation: spinSlow 60s linear infinite;
}

.bg-mandala-2::before {
    width: 600px;
    /* Larger */
    height: 600px;
    background-image: url('../images/mandala2.svg');
    bottom: -150px;
    left: -100px;
    animation: spinSlow 80s linear infinite reverse;
}

/* Extra decorative mandalas for Learning */
.bg-mandala-2::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: url('../images/mandala3.svg');
    top: 10%;
    right: -50px;
    opacity: 0.7;
    animation: pulse 8s ease-in-out infinite;
}

.bg-mandala-3::after {
    width: 500px;
    height: 500px;
    background-image: url('../images/mandala3.svg');
    top: -50px;
    right: -50px;
    animation: pulse 10s ease-in-out infinite;
}

/* Extra decorative for Audience */
.bg-mandala-3::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background-image: url('../images/mandala1.svg');
    bottom: 50px;
    left: -50px;
    opacity: 0.65;
    animation: spinSlow 50s linear infinite;
}

.bg-mandala-4::before {
    width: 900px;
    height: 900px;
    background-image: url('../images/mandala4.svg');
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    animation: spinSlow 100s linear infinite;
}

/* Extra decorative for Requirements */
.bg-mandala-4::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: url('../images/mandala2.svg');
    top: 5%;
    left: 5%;
    opacity: 0.7;
    animation: pulse 5s ease-in-out infinite;
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }

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

/* Learning Grid - 2 Columns & Interactive */
.learning-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .learning-grid-2col {
        grid-template-columns: 1fr;
    }
}

.learning-card {
    background: var(--accent-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: start;
    text-align: left;
    gap: 1.5rem;
    border: 1px solid var(--primary-color);
}

.learning-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(232, 141, 103, 0.2);
    border-color: var(--primary-color);
}

.learning-card .icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--accent-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.learning-card:hover .icon-box {
    transform: rotate(360deg);
}

/* Symmetric Audience Layout - Fixed for wider last item */
.audience-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.audience-symmetric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

.audience-card-sym {
    background: #fff;
    padding: 2.5rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* Full Width Featured or Last Item */
.audience-card-sym.featured,
.audience-card-sym.last-wide {
    grid-column: 1 / -1;
    transform: scale(1.02);
    margin-top: 1rem;
}

/* Decorative corner for audience cards */
.audience-card-sym::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: var(--accent-bg);
    border-radius: 50%;
    z-index: 0;
}

.audience-card-sym:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.audience-card-sym.featured {
    background: var(--primary-color);
    color: #fff;
}

.audience-card-sym.featured h3,
.audience-card-sym.featured p,
.audience-card-sym.featured li {
    color: #fff;
}

.audience-card-sym.featured .icon-circle {
    background: #fff;
    color: var(--primary-color);
}

/* Requirements Grid Layout */
.req-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.req-card {
    background: #FFF;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--primary-color);
    background: var(--accent-bg);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.req-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.req-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

/* Hero Visual Container */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    max-height: 100vh;
    overflow: hidden;
}

/* New 3D Layout Styles */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center,
            rgba(99, 102, 241, 0.4) 0%,
            rgba(139, 92, 246, 0.2) 40%,
            rgba(236, 72, 153, 0.1) 70%,
            transparent 100%);
    filter: blur(60px);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: pulseGlow 5s infinite ease-in-out;
}

#model-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-200 {
    animation-delay: 200ms;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* =========================================
   Mobile Optimization
   ========================================= */

/* 1. Header & Navigation */
.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-user-actions {
    display: none;
}

@media (max-width: 900px) {
    header {
        width: 95%;
        padding: 0 1.5rem;
        border-radius: 50px;
        top: 10px;
    }

    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

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

    .mobile-user-actions {
        display: block;
    }

    .mobile-icon-btn {
        color: white;
        font-size: 1.4rem;
        display: flex;
        align-items: center;
    }

    .header-nav-container {
        position: absolute;
        top: 80px;
        /* Below header */
        left: 0;
        width: 100%;
        background: #fff;
        border-radius: var(--radius-md);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        display: none;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        z-index: 1001;
    }

    .header-nav-container.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }

    /* Fix Dropdown Text Color */
    header nav ul li a {
        color: var(--text-main) !important;
    }

    header nav ul li a.active {
        color: var(--primary-color) !important;
        font-weight: 700;
    }


    header nav ul li a::after {
        background-color: var(--primary-color);
    }

    .auth-buttons {
        width: 100%;
        justify-content: center;
        display: flex;
    }
}

/* 2. Hero Section */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 3rem;
        /* Better balance */
        line-height: 1.2;
    }

    .hero-visual {
        height: 60vh;
        /* Give it space */
        width: 100%;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {

    /* Stack Hero Content */
    #hero .hero-content {
        margin-top: 3rem;
        /* Clear fixed header + spacing */
        text-align: center;
        padding: 0 1rem;
        position: relative;
        z-index: 2;
        /* Ensure text is above model */
    }

    /* Adjust model container */
    #model-container {
        width: 70%;
        height: 70%;
    }

    .hero-visual {
        position: relative;
        height: 50vh;
        /* Good height for mobile */
        width: 100%;
        left: 0;
        right: 0;
        margin-top: -3rem;
        /* Overlap effect: Pull model up into text */
        z-index: 1;
        mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        /* Soft bottom fade */
        -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    }

    .glow-bg {
        width: 250px;
        /* Smaller glow for mobile */
        height: 250px;
        left: 50%;
        transform: translateX(-50%);
        top: 20%;
        /* Center glow in visual area */
    }

    /* Move Mandala to absolute top-left corner */
    .bg-mandala-1::after {
        top: -150px !important;
        left: -180px !important;
        right: auto !important;
        width: 500px !important;
        /* Large enough to be seen */
        height: 500px !important;
        opacity: 0.6;
        z-index: 0;
        /* Behind everything */
    }
}

/* 3. Section Grids (Stacking) */
@media (max-width: 768px) {

    /* Single Column Grids */
    .learning-grid-2col,
    .audience-symmetric-grid,
    .req-grid-new,
    .about-grid,
    .about-visual {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        width: 100%;
    }

    /* Padding Adjustments */
    .section-padding {
        padding: 3rem 1.5rem !important;
    }

    /* Font Sizes */
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* CTA Section */
    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section .btn-primary,
    .cta-section .btn-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* 4. Footer & Misc */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Ensure floating btn doesn't cover content */
    #floating-lang-toggle {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 0.8rem;
    }
}

/* ----------------------------------------------------
   Auth Modal (Split Screen Redesign)
   ---------------------------------------------------- */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 24, 16, 0.7);
    /* Darker backdrop */
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-modal-container {
    background: #fff;
    width: 900px;
    /* Wide format */
    max-width: 95vw;
    height: 600px;
    max-height: 90vh;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

/* Close Button */
.auth-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s;
    font-size: 1.2rem;
    color: var(--text-main);
}

.auth-close-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

/* The Two Sides */
/* The Two Sides */
.auth-side-visual {
    width: 45%;
    /* Use a static mandala pattern or gradient */
    background: var(--primary-color) url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"><circle cx="50" cy="50" r="40"/><circle cx="50" cy="50" r="30"/><circle cx="50" cy="50" r="20"/><path d="M50 10 L50 90 M10 50 L90 50"/></svg>') center/150px repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    color: #fff;
    /* Optimized Transition: Use transform for smoother swap if possible, but order is layout thrashing. 
       Better approach for performance: Absolute positioning sliding. 
       But keeping 'order' for now as requested "less glitchy" implies fixing the duration/easing. */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay gradient for text readability and depth */
.auth-side-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Richer gradient */
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.9) 0%, rgba(232, 141, 103, 0.6) 100%);
    z-index: 1;
}

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

.auth-visual-content h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.auth-visual-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.auth-side-form {
    width: 55%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Changed from center to prevent jumping */
    background: #fff;
    position: relative;
    overflow-y: auto;
    /* Allow scrolling */
    max-height: 100%;
}

/* Custom Scrollbar for Form */
.auth-side-form::-webkit-scrollbar {
    width: 6px;
}

.auth-side-form::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.auth-side-form::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.auth-side-form::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Swapping Logic */
/* By default: Visual (left), Form (right). To swap, we use specific classes */
.auth-modal-container.signup-mode .auth-side-visual {
    order: 2;
    /* Move to right */
}

.auth-modal-container.signup-mode .auth-side-form {
    order: 1;
    /* Move to left */
}

/* Tabs / Switcher */
.auth-switch-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.auth-switch-btn {
    padding: 10px 30px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
}

.auth-switch-btn.active {
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Forms */
.auth-form-block {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-form-block.active {
    display: block;
}

/* The 3 Big Buttons */
.auth-selection_grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-auth-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align icon, text center-ish */
    padding: 1rem 1.5rem;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    position: relative;
}

.btn-auth-option:hover {
    background: #fafafa;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-auth-option i,
.btn-auth-option img {
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.btn-auth-option.mobile {
    border-color: var(--primary-color);
    background: rgba(232, 141, 103, 0.05);
    color: var(--primary-color);
    font-weight: 600;
}

/* Inputs */
.input-group-auth {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group-auth label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.input-group-auth input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border 0.2s;
    background: #fcfcfc;
}

.input-group-auth input:focus {
    border-color: var(--primary-color);
    background: #fff;
    outline: none;
}

/* Forgot Password */
.forgot-pass-link {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.forgot-pass-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


.auth-back-btn {
    margin-bottom: 1rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.auth-back-btn:hover {
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-modal-container {
        flex-direction: column;
        height: 100%;
        max-height: 100%;
        width: 100%;
        border-radius: 0;
    }

    .auth-side-visual {
        display: none;
        /* Hide visual on mobile to save space */
    }

    .auth-side-form {
        width: 100%;
        height: 100%;
        padding: 2rem;
    }
}