/* ========================================
   YCOTES COURSES - COURSERA-INSPIRED DESIGN
   Modern, Professional, Premium
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
    /* Premium Golden/Yellow Theme */
    --primary-gold: #D4AF37;
    --primary-dark: #B8941E;
    --primary-light: #E5C158;

    --secondary-amber: #FFA500;
    --accent-bronze: #CD7F32;
    --accent-warm: #FF8C00;

    /* Neutral Colors */
    --text-primary: #1F1F1F;
    --text-secondary: #545454;
    --text-tertiary: #767676;
    --text-light: #FFFFFF;
    --text-gold: #B8941E;

    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light: #FFFBF0;
    --bg-cream: #FFF8E7;
    --bg-gray: #F5F5F0;
    --bg-dark: #1F1F1F;
    --bg-gold-light: rgba(212, 175, 55, 0.05);

    /* Border & Divider */
    --border-color: #E5DCC5;
    --border-light: #F0EBD8;
    --border-gold: #D4AF37;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(184, 148, 30, 0.1);
    --shadow-md: 0 4px 6px rgba(184, 148, 30, 0.15);
    --shadow-lg: 0 10px 20px rgba(184, 148, 30, 0.2);
    --shadow-xl: 0 20px 40px rgba(184, 148, 30, 0.25);
    --shadow-gold: 0 4px 12px rgba(212, 175, 55, 0.3);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Spacing (8px base) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-12: 96px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

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

/* ========== ANIMATIONS & KEYFRAMES ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    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 scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

@keyframes float {

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

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {

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

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 3rem;
}

/* 48px */
h2 {
    font-size: 2.25rem;
}

/* 36px */
h3 {
    font-size: 1.875rem;
}

/* 30px */
h4 {
    font-size: 1.5rem;
}

/* 24px */
h5 {
    font-size: 1.25rem;
}

/* 20px */
h6 {
    font-size: 1rem;
}

/* 16px */

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.container-fluid {
    max-width: 100%;
    padding: 0 var(--space-3);
}

/* ========== HEADER / NAVIGATION ========== */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    animation: slideUp 0.6s ease-out;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) 0;
    gap: var(--space-3);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-base);
    cursor: pointer;
}

.logo h1:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 48px 12px 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    transition: var(--transition-base);
    background: var(--bg-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-gold);
    background: var(--bg-cream);
}

.nav-link.active {
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.08);
}

/* CTA Button */
.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-amber));
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    padding: 12px 24px;
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-buttons {
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

/* ========== HERO SECTION ========== */
.hero {
    background: url('../assets/hero-background.png');
    background-size: cover;
    background-position: left center;
    color: var(--text-primary);
    padding: var(--space-5) 0;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    bottom: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: right;
    max-width: 550px;
    margin-left: auto;
    margin-right: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    line-height: 1.2;
    animation: slideInLeft 0.8s ease-out;
    color: #1a1a2e;
}

.hero-title span {
    display: inline-block;
    color: #1a1a2e;
    -webkit-text-fill-color: #1a1a2e;
}

.hero-highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
    max-width: 500px;
    color: #4a4a5e;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-6);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out 0.3s backwards;
}

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

.hero-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat .stat-text {
    font-size: 0.875rem;
    color: #4a4a5e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    gap: var(--space-2);
    justify-content: flex-end;
    flex-wrap: wrap;
    animation: slideInLeft 0.8s ease-out 0.4s backwards;
}

.btn-hero {
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-amber));
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-hero-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* ========== HERO SEARCH BAR ========== */
.hero-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

.hero-search-wrapper {
    display: flex;
    max-width: 600px;
    margin: 0 auto var(--space-4);
    background: white;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out 0.3s backwards;
}

.hero-search-input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    font-size: 1.125rem;
    color: var(--text-primary);
    background: transparent;
    outline: none;
}

.hero-search-input::placeholder {
    color: #9CA3AF;
}

.hero-search-btn {
    padding: 14px 24px;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.hero-search-btn svg {
    color: white;
}

.hero-search-btn:hover {
    opacity: 0.9;
}

/* Hero Tags */
.hero-tags {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 0.6s ease-out 0.5s backwards;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
}

.hero-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-tag.hot {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

/* ========== INSIGHTS PREVIEW SECTION ========== */
.insights-preview-section {
    padding: var(--space-8) 0;
    background: var(--bg-secondary);
}

.insights-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
    margin-bottom: var(--space-6);
}

.insights-preview-content h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--space-3);
}

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

.insights-preview-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.insights-preview-quotes {
    position: relative;
    min-height: 200px;
}

.quote-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    box-shadow: var(--shadow-md);
    position: absolute;
    max-width: 280px;
}

.quote-bubble p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-1);
}

.quote-author {
    font-size: 0.8125rem;
    color: var(--primary-gold);
    font-weight: 500;
}

.quote-bubble.quote-1 {
    top: 0;
    left: 0;
}

.quote-bubble.quote-2 {
    bottom: 0;
    right: 0;
}

/* Feature Pills */
.feature-pills {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.feature-pill:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.pill-icon {
    font-size: 1.25rem;
}

/* Insights Preview Dark Mode */
[data-theme="dark"] .insights-preview-section {
    background: var(--bg-primary);
}

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

/* Insights Preview Responsive */
@media (max-width: 768px) {
    .insights-preview-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        text-align: center;
    }

    .insights-preview-content h2 {
        font-size: 1.75rem;
    }

    .insights-preview-quotes {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
        min-height: auto;
    }

    .quote-bubble {
        position: relative;
        max-width: 100%;
    }

    .hero-search-wrapper {
        margin: 0 var(--space-2) var(--space-3);
    }

    .hero-search-input {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .hero-search-btn {
        padding: 12px 16px;
    }

    .hero-tags {
        gap: var(--space-1);
    }

    .hero-tag {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }

    .feature-pills {
        gap: var(--space-2);
    }

    .feature-pill {
        padding: 10px 14px;
        font-size: 0.875rem;
    }
}

/* ========== COURSE GRID ========== */
.courses-section {
    padding: var(--space-8) 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-2);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Filters */
.filters {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--text-secondary);
}

.filter-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-amber));
    color: var(--text-light);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold);
}

/* Course Cards Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

/* Course Card */
.course-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-amber));
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    pointer-events: none;
}

.course-card:hover::before {
    opacity: 0.05;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.course-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.course-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-color);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

.course-level {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
}

.course-content {
    padding: var(--space-3);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    color: var(--primary-gold);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-1);
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    line-height: 1.3;
}

.course-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.course-meta {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary-gold);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-2);
}

.course-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
}

.price-original {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.price-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.btn-enroll {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-amber));
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-gold);
}

.btn-enroll:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-8) 0 var(--space-3);
    margin-top: var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.footer-section h3 {
    color: var(--text-light);
    margin-bottom: var(--space-2);
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: var(--space-1);
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--text-light);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ========== RESPONSIVE ========== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
    z-index: 1001;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

[data-theme="dark"] .mobile-menu-toggle {
    color: var(--primary-gold);
}

/* Hide mobile nav close button on desktop */
.mobile-nav-close {
    display: none;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

@media (max-width: 768px) {

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide desktop search */
    .header-search {
        display: none;
    }

    /* Mobile Navigation */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 80px 24px 24px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 0;
    }

    [data-theme="dark"] .nav {
        background: var(--bg-secondary);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--border-color);
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 16px 20px;
        border-radius: var(--radius-md);
        margin-bottom: 8px;
        text-align: left;
        font-size: 1rem;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
        gap: 12px;
    }

    .auth-buttons button {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        /* Lower than nav (1000) to allow clicks on nav items */
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    /* Header adjustments */
    .header-content {
        justify-content: space-between;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    /* Hero adjustments */
    .hero-title {
        font-size: 2rem;
    }

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

    /* Course grid */
    .courses-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Loading States */
.loading {
    text-align: center;
    padding: var(--space-6);
    color: var(--text-secondary);
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   DARK MODE - BLACK & GOLDEN THEME
   ======================================== */

[data-theme="dark"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Header Dark Mode */
[data-theme="dark"] .header {
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: var(--border-color);
    backdrop-filter: blur(20px);
}

[data-theme="dark"] .logo h1 {
    color: var(--primary-gold);
}

[data-theme="dark"] .search-input {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: #FFFFFF !important;
}

[data-theme="dark"] .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .search-input:focus {
    background: var(--bg-tertiary);
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--primary-gold);
    background: var(--bg-tertiary);
}

[data-theme="dark"] .nav-link.active {
    color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
}

/* Hero Dark Mode - Keep background image, just add dark overlay */
[data-theme="dark"] .hero {
    /* Background image is preserved from light mode, no override needed */
    position: relative;
    color: var(--text-light);
}

/* Dark overlay for hero - replaces light mode's white overlay with dark version */
[data-theme="dark"] .hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    bottom: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0) 100%) !important;
    pointer-events: none;
}

/* Golden glow effect on dark hero */
[data-theme="dark"] .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

[data-theme="dark"] .hero-title {
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
}

[data-theme="dark"] .hero-title span {
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
}

[data-theme="dark"] .hero-highlight {
    background: linear-gradient(to right, var(--primary-gold), var(--secondary-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Hero stats in dark mode */
[data-theme="dark"] .hero-stat .stat-number {
    color: var(--primary-gold);
}

[data-theme="dark"] .hero-stat .stat-text {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .btn-hero-primary {
    background: var(--primary-gold);
    color: #000000;
    font-weight: 700;
}

[data-theme="dark"] .btn-hero-primary:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-gold);
}

[data-theme="dark"] .btn-hero-secondary {
    background: transparent;
    color: var(--primary-gold);
    border-color: var(--primary-gold);
}

[data-theme="dark"] .btn-hero-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

/* Course Section Dark Mode */
[data-theme="dark"] .courses-section {
    background: var(--bg-primary);
}

[data-theme="dark"] .section-title,
[data-theme="dark"] .course-title,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary);
}

[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .course-description,
[data-theme="dark"] p {
    color: rgba(255, 255, 255, 0.9);
}

/* Filter Buttons Dark Mode */
[data-theme="dark"] .filter-btn {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .filter-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background: var(--bg-tertiary);
}

[data-theme="dark"] .filter-btn.active {
    background: var(--gradient-primary);
    color: #000000;
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold);
    font-weight: 700;
}

/* Course Cards Dark Mode */
[data-theme="dark"] .course-card {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .course-card:hover {
    box-shadow: var(--shadow-gold);
    border-color: var(--border-gold);
}

[data-theme="dark"] .course-card::before {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
}

[data-theme="dark"] .course-category {
    color: var(--primary-gold);
}

[data-theme="dark"] .course-title {
    color: var(--text-primary);
}

[data-theme="dark"] .course-description {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .course-meta {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .meta-item {
    color: rgba(255, 215, 0, 0.7);
}

[data-theme="dark"] .price-current {
    color: var(--primary-gold);
}

[data-theme="dark"] .price-original {
    color: rgba(255, 255, 255, 0.5);
}

/* Footer Dark Mode */
[data-theme="dark"] .footer {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .footer h3 {
    color: var(--primary-gold);
}

[data-theme="dark"] .footer p {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .footer a {
    color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .footer a:hover {
    color: var(--primary-gold);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: var(--border-color);
    color: rgba(255, 215, 0, 0.6);
}

[data-theme="dark"] .footer-bottom p {
    color: rgba(255, 215, 0, 0.6);
}

/* Loading States Dark Mode */
[data-theme="dark"] .loading {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
}

/* ========================================
   ENHANCED MOBILE RESPONSIVENESS
   ======================================== */

/* Tablet Breakpoint (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 var(--space-3);
    }

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

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

    .header-content {
        gap: var(--space-2);
    }

    .nav {
        gap: var(--space-2);
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.875rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 18px;
        font-size: 0.875rem;
    }
}

/* Mobile Breakpoint (< 768px) */
@media (max-width: 767px) {
    .container {
        padding: 0 var(--space-2);
    }

    /* Mobile Header */
    .header-content {
        flex-wrap: wrap;
        gap: var(--space-2);
        padding: var(--space-2) 0;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: var(--transition-fast);
    }

    .mobile-menu-toggle:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-toggle svg {
        width: 24px;
        height: 24px;
        color: var(--text-primary);
    }

    [data-theme="dark"] .mobile-menu-toggle {
        background: transparent;
        border: none;
    }

    [data-theme="dark"] .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    [data-theme="dark"] .mobile-menu-toggle svg {
        color: var(--primary-gold);
    }

    /* Mobile Nav Close Button */
    .mobile-nav-close {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        border-radius: var(--radius-full);
        cursor: pointer;
        transition: var(--transition-fast);
    }

    .mobile-nav-close svg {
        width: 24px;
        height: 24px;
        color: var(--text-secondary);
    }

    .mobile-nav-close:hover {
        background: rgba(0, 0, 0, 0.08);
    }

    .mobile-nav-close:hover svg {
        color: var(--text-primary);
    }

    [data-theme="dark"] .mobile-nav-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    [data-theme="dark"] .mobile-nav-close svg {
        color: rgba(255, 255, 255, 0.6);
    }

    [data-theme="dark"] .mobile-nav-close:hover svg {
        color: var(--primary-gold);
    }

    /* Mobile Navigation Overlay */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px var(--space-3) var(--space-3);
        gap: var(--space-1);
        z-index: 1001;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    }

    .nav.active {
        right: 0;
    }

    [data-theme="dark"] .nav {
        background: var(--bg-secondary);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-link {
        width: 100%;
        padding: 14px var(--space-2);
        font-size: 1rem;
        border-radius: var(--radius-md);
    }

    .nav-link:hover {
        background: var(--bg-hover);
    }

    /* Mobile Overlay Background */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        /* Lower than nav (1000) to allow clicks on nav items */
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: auto;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Auth buttons in mobile nav */
    #authButtons {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: var(--space-1);
        margin-top: var(--space-2);
        padding-top: var(--space-2);
        border-top: 1px solid var(--border-light);
    }

    #authButtons button {
        width: 100%;
        margin: 0 !important;
    }

    /* Hero Mobile - Optimized */
    .hero {
        padding: var(--space-5) 0;
        min-height: 400px;
    }

    /* Override the right-aligned overlay for mobile - use full width subtle overlay */
    .hero::before {
        width: 100% !important;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
    }

    [data-theme="dark"] .hero::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%) !important;
    }

    .hero-content {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        padding: 0 var(--space-2);
    }

    .hero-title {
        font-size: 1.875rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-3);
        max-width: 100%;
    }

    /* Hero stats mobile - centered row */
    .hero-stats {
        justify-content: center !important;
        gap: var(--space-3);
        margin-bottom: var(--space-4);
    }

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

    .hero-stat .stat-number {
        font-size: 1.5rem;
    }

    .hero-stat .stat-text {
        font-size: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: var(--space-2);
        justify-content: center !important;
    }

    .btn-hero {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* Section Headers Mobile */
    .section-header {
        margin-bottom: var(--space-4);
    }

    .section-title {
        font-size: 1.625rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
    }

    /* Courses Grid Mobile */
    .courses-section {
        padding: var(--space-5) 0;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .course-card {
        max-width: 100%;
    }

    .course-image {
        height: 200px;
    }

    .course-title {
        font-size: 1.125rem;
    }

    .course-content {
        padding: var(--space-2);
    }

    /* Filter Buttons Mobile */
    .filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: var(--space-1);
        gap: var(--space-1);
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        text-align: center;
    }

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

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-2);
    }

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

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .course-content {
        padding: var(--space-2);
    }

    .course-title {
        font-size: 1rem;
    }

    .course-description {
        font-size: 0.875rem;
    }

    .price-current {
        font-size: 1.375rem;
    }

    .btn-enroll {
        padding: 8px 16px;
        font-size: 0.875rem;
    }

    .modal-content {
        margin: var(--space-2);
        padding: var(--space-3);
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {

    .btn-primary,
    .btn-secondary,
    .btn-hero,
    .filter-btn,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
    }

    .course-card:active {
        transform: scale(0.98);
    }

    .filter-btn:active,
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.95);
    }
}

/* Landscape mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        padding: var(--space-4) 0;
    }

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

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

    .courses-section {
        padding: var(--space-4) 0;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .mobile-menu-overlay {
        display: none !important;
    }
}

/* ========================================
   SUGGESTED FOR YOU SECTION
   ======================================== */
.suggested-section {
    padding: var(--space-8) 0;
    background: var(--bg-tertiary);
}

.suggested-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.suggested-course-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
    text-decoration: none;
    display: block;
}

.suggested-course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-gold);
}

.suggested-course-image {
    height: 160px;
    overflow: hidden;
}

.suggested-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.suggested-course-card:hover .suggested-course-image img {
    transform: scale(1.05);
}

.suggested-course-info {
    padding: var(--space-3);
}

.suggested-course-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggested-course-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-1) 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggested-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-2);
}

.suggested-course-level {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.suggested-course-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-gold);
}

/* Suggested Section Dark Mode */
[data-theme="dark"] .suggested-section {
    background: var(--bg-primary);
}

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

/* Suggested Section Responsive */
@media (max-width: 1024px) {
    .suggested-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .suggested-courses-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .suggested-course-image {
        height: 180px;
    }
}

/* ========================================
   FAQ SECTION (INDEX PAGE)
   ======================================== */
.faq-section {
    padding: var(--space-8) 0;
    background: var(--bg-secondary);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.faq-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.faq-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item:hover {
    border-color: var(--primary-gold);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.05);
}

.faq-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-gold);
    min-width: 32px;
}

.faq-question-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: var(--transition-fast);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    color: var(--primary-gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 var(--space-3) var(--space-3);
    padding-left: calc(var(--space-3) + 32px + var(--space-3));
}

.faq-answer p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Dark Mode */
[data-theme="dark"] .faq-section {
    background: var(--bg-tertiary);
}

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

[data-theme="dark"] .faq-header h2 {
    color: #FFFFFF;
}

[data-theme="dark"] .faq-header p {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .faq-question-text {
    color: #FFFFFF;
}

[data-theme="dark"] .faq-answer p {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .faq-toggle {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .faq-question:hover {
    background: var(--bg-hover);
}

/* Suggested Section Dark Mode - Enhanced */
[data-theme="dark"] .suggested-course-title {
    color: #FFFFFF;
}

[data-theme="dark"] .suggested-course-level {
    color: rgba(255, 255, 255, 0.7);
}

/* Quote Bubbles Dark Mode */
[data-theme="dark"] .quote-bubble {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .quote-bubble p {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .quote-author {
    color: var(--primary-gold);
}

/* Feature Pills Dark Mode */
[data-theme="dark"] .feature-pill {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: #FFFFFF;
}

[data-theme="dark"] .feature-pill:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Insights Preview Section Dark Mode */
[data-theme="dark"] .insights-preview-content h2 {
    color: #FFFFFF;
}

[data-theme="dark"] .insights-preview-content p {
    color: rgba(255, 255, 255, 0.85);
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: var(--space-5) 0;
    }

    .faq-header h2 {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: var(--space-2);
    }

    .faq-item.active .faq-answer {
        padding-left: calc(var(--space-2) + 32px + var(--space-2));
    }

    .faq-question-text {
        font-size: 0.9375rem;
    }
}

/* No Results Message */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}

.no-results-message p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.no-results-message a {
    color: var(--primary-gold);
    font-weight: 600;
}

/* ========================================
   ENHANCED DARK MODE TEXT VISIBILITY FIXES
   ======================================== */

/* Username/Greeting in Header - Bright White */
[data-theme="dark"] .user-greeting,
[data-theme="dark"] .user-name,
[data-theme="dark"] .nav .user-greeting,
[data-theme="dark"] .header .user-greeting,
[data-theme="dark"] #authButtons .user-greeting,
[data-theme="dark"] .greeting-text,
[data-theme="dark"] span[style*="Hi,"] {
    color: #FFFFFF !important;
}

/* Section Titles - Bright & Prominent */
[data-theme="dark"] .section-title {
    color: #FFFFFF !important;
}

[data-theme="dark"] .section-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Course Card Title - Bright White */
[data-theme="dark"] .course-title,
[data-theme="dark"] .course-card .course-title {
    color: #FFFFFF !important;
}

/* Course Description - High Visibility */
[data-theme="dark"] .course-description,
[data-theme="dark"] .course-card .course-description {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Pricing - Better Visibility for Original Prices */
[data-theme="dark"] .price-original,
[data-theme="dark"] .course-price .price-original {
    color: rgba(255, 255, 255, 0.65) !important;
}

[data-theme="dark"] .price-current,
[data-theme="dark"] .course-price .price-current {
    color: var(--primary-gold) !important;
}

/* Course Meta Items - Better Contrast */
[data-theme="dark"] .meta-item,
[data-theme="dark"] .meta-item span {
    color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] .meta-item svg {
    color: var(--primary-gold) !important;
}

/* Suggested Course Cards */
[data-theme="dark"] .suggested-course-title {
    color: #FFFFFF !important;
}

[data-theme="dark"] .suggested-course-level {
    color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] .suggested-course-category {
    color: var(--primary-gold) !important;
}

/* Testimonials Section */
[data-theme="dark"] .testimonials-header h2 {
    color: #FFFFFF !important;
}

[data-theme="dark"] .testimonials-header p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* General Heading Overrides for Brightness */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #FFFFFF !important;
}

/* Paragraph Text - Subtle but Visible */
[data-theme="dark"] p {
    color: rgba(255, 255, 255, 0.85);
}

/* Header Elements */
[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .nav-link:hover {
    color: var(--primary-gold) !important;
}

/* User Greeting - Explicit Bright White */
[data-theme="dark"] .user-greeting {
    color: #FFFFFF !important;
}

/* Header/Navigation Dark Mode */
[data-theme="dark"] .header {
    background: var(--bg-secondary) !important;
    backdrop-filter: blur(10px);
    border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .search-input {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .search-input::placeholder {
    color: #9CA3AF !important;
}

[data-theme="dark"] .search-input:focus {
    background: var(--bg-tertiary) !important;
    border-color: var(--primary-gold) !important;
}

/* FAQ Text Visibility */
[data-theme="dark"] .faq-question-text {
    color: #FFFFFF !important;
}

[data-theme="dark"] .faq-answer p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Quote Bubbles */
[data-theme="dark"] .quote-bubble p {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Feature Pills */
[data-theme="dark"] .feature-pill {
    color: #FFFFFF !important;
}

[data-theme="dark"] .feature-pill span {
    color: #FFFFFF !important;
}

/* Insights Section */
[data-theme="dark"] .insights-preview-content h2 {
    color: #FFFFFF !important;
}

[data-theme="dark"] .insights-preview-content p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Text Gold Class - Ensure High Visibility */
[data-theme="dark"] .text-gold {
    color: var(--primary-gold) !important;
}

/* Button Text Visibility */
[data-theme="dark"] .btn-hero-primary {
    color: #000000 !important;
}

[data-theme="dark"] .btn-hero-secondary {
    color: var(--primary-gold) !important;
}

/* Loading Text */
[data-theme="dark"] .loading,
[data-theme="dark"] .loading p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* No Results Message */
[data-theme="dark"] .no-results-message p {
    color: rgba(255, 255, 255, 0.85) !important;
}