/* Import Google Fonts - Inter and Material Symbols */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* CSS Variables */
:root {
    /* Colors */
    --primary: #1043fe;
    --primary-hover: rgba(16, 67, 254, 0.9);
    --primary-light: rgba(16, 67, 254, 0.1);
    
    --bg-light: #f6f7f8;
    --bg-dark: #101922;

    --white: #ffffff;
    --black: #000000;
    
    /* Slate Scale */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Text Colors */
    --text-main: var(--slate-900);
    --text-muted: var(--slate-600);
    --bg-main: var(--bg-light);
    --bg-card: var(--white);
    --border-color: var(--slate-200);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-primary: 0 10px 15px -3px rgba(19, 127, 236, 0.3);

    /* Radii */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Spacing */
    --container-max-w: 80rem; /* 1280px */
}

/* Dark Mode Variables */
.dark, @media (prefers-color-scheme: dark) {
    :root {
        --text-main: var(--white);
        --text-muted: var(--slate-400);
        --bg-main: var(--bg-dark);
        --bg-card: rgba(30, 41, 59, 0.5); /* Slate 800 with 50% opacity */
        --border-color: var(--slate-800);
    }
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: clamp(14px, 1vw + 10px, 16px);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: transparent;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Material Icons Configuration */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: clamp(1.125rem, 0.875rem + 0.4vw, 1.25rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Layout Classes */
.container {
    max-width: var(--container-max-w);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.grid {
    display: grid;
}

.flex {
    display: flex;
}

/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    height: clamp(2.75rem, 2rem + 1vw, 3.5rem);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: clamp(0.875rem, 0.75rem + 0.4vw, 1.125rem);
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

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

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--slate-50);
}

.dark .btn-secondary:hover {
    background-color: var(--slate-800);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.navbar.transparent-header {
    position: absolute;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

.dark .navbar {
    background-color: rgba(16, 25, 34, 0.8);
}
.dark .navbar .nav-links a {
    color: var(--white);
}
.dark .navbar.transparent-header {
    background-color: transparent;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img {
    height: clamp(22px, 16px + 1vw, 28px);
}

.nav-logo h2 {
    font-size: clamp(1rem, 0.75rem + 0.5vw, 1.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

.nav-links {
    display: none;
}

.nav-links a {
    font-size: clamp(0.75rem, 0.625rem + 0.3vw, 0.875rem);
    font-weight: 600;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.navbar.transparent-header .nav-links a {
    color: var(--white);
}

.navbar.transparent-header .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-action-btn {
    display: none;
    height: 2.75rem;
    padding: 0 1.5rem;
    border-radius: var(--radius-lg);
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .nav-action-btn {
        display: flex;
    }
}

.avatar {
    width: clamp(22px, 16px + 1vw, 28px);
    height: clamp(22px, 16px + 1vw, 28px);
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

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

/* Typography Utility */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* Main Sections */
.section {
    padding: 5rem 0;
}

@media (min-width: 1024px) {
    .section {
        padding: 8rem 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-video-bg video.hero-vid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
}

.hero > .container.hero-grid {
    position: relative;
    z-index: 10;
}

.hero .hero-title {
    color: var(--white);
}

.hero .hero-description {
    color: rgba(255, 255, 255, 0.8);
}

.hero .badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: clamp(0.625rem, 0.5rem + 0.4vw, 0.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: fit-content;
}

.hero-title {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

.hero-description {
    font-size: clamp(0.9375rem, 0.75rem + 0.6vw, 1.125rem);
    color: var(--text-muted);
    max-width: 36rem;
    line-height: 1.625;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.avatar-group {
    display: flex;
    margin-left: 0.75rem;
}

.avatar-group .avatar {
    border: 2px solid rgba(0, 0, 0, 0.5);
    margin-left: -0.75rem;
    background-color: var(--slate-300);
}

.hero-badges-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 320px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(0);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-badge:hover {
    transform: translateX(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.hero-badge.badge-1 { align-self: flex-start; margin-left: 10%; }
.hero-badge.badge-2 { align-self: center; margin-right: 5%; }
.hero-badge.badge-3 { align-self: flex-end; margin-right: 15%; }

@media (max-width: 1023px) {
    .hero-badges-wrapper {
        align-items: center;
    }
    .hero-badge.badge-1, .hero-badge.badge-2, .hero-badge.badge-3 {
        align-self: center;
        margin-left: 0;
        margin-right: 0;
    }
}

.badge-icon {
    width: clamp(2rem, 1.5rem + 0.8vw, 3rem);
    height: clamp(2rem, 1.5rem + 0.8vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(16, 67, 254, 0.2);
    color: var(--white);
    border-radius: var(--radius-full);
    border: 1px solid rgba(16, 67, 254, 0.5);
    flex-shrink: 0;
}

.badge-icon span {
    font-size: clamp(1rem, 0.75rem + 0.6vw, 1.5rem);
}

.badge-content h4 {
    color: var(--white);
    font-size: clamp(0.8125rem, 0.625rem + 0.4vw, 1rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.badge-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.6875rem, 0.5rem + 0.4vw, 0.8125rem);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    text-align: center;
}

.card:hover {
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--slate-200);
}

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

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

.card-badge {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

.card-badge.popular {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

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

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    flex: 1;
    text-align: center;
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-title,
.card-subtitle,
.card-category {
    text-align: center;
}

.card-title {
    font-size: clamp(0.9375rem, 0.8rem + 0.4vw, 1.0625rem);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
}

.card-subtitle {
    font-size: clamp(0.8125rem, 0.7rem + 0.3vw, 0.875rem);
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.card-desc {
    font-size: clamp(0.8125rem, 0.7rem + 0.3vw, 0.875rem);
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-meta-item .material-symbols-outlined {
    font-size: 1rem;
}

.card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.card-rating .star {
    color: #f59e0b;
    font-size: 0.875rem;
}

.card-rating .rating-value {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.8125rem;
    margin-left: 0.25rem;
}

.card-rating .rating-count {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.375rem;
}

.card-price-current {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-main);
}

.card-price-original {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    padding: 0 1rem;
    border-radius: var(--radius-lg);
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 700;
    transition: all 0.2s;
    text-decoration: none;
}

.card-action:hover {
    box-shadow: 0 4px 12px rgba(16, 67, 254, 0.3);
    transform: translateY(-1px);
}

.card-action.secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.card-action.secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header.centered,
.section-header[style*="justify-content:center"] {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.section-header-left h2 {
    font-size: clamp(1.5rem, 1rem + 1.5vw, 2rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.375rem;
}

.section-header-left p {
    font-size: clamp(0.875rem, 0.75rem + 0.3vw, 1rem);
    color: var(--text-muted);
}

.section-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s;
}

.view-all-link:hover {
    gap: 0.5rem;
}

.view-all-link .material-symbols-outlined {
    font-size: 1.125rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    transition: all 0.3s ease;
    text-align: center;
    align-items: center;
}

.feature-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.feature-icon {
    width: clamp(3rem, 2rem + 1.5vw, 4rem);
    height: clamp(3rem, 2rem + 1.5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-2xl);
    background-color: var(--primary-light);
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary);
    color: var(--white);
}

.feature-icon span {
    font-size: clamp(1.5rem, 1rem + 1vw, 2rem);
}

/* Footer layout */
.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

/* ============================
   Additional Page Styles
   ============================ */

/* Page Header / Breadcrumb */
.page-header {
    background-color: var(--bg-card);
    padding: 2rem 1.5rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
}

.page-header.dark {
    background-color: var(--bg-dark);
    color: var(--white);
}

.page-header.dark .page-title {
    color: var(--white);
}

.page-header.dark .page-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.page-header.with-action {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 1rem;
}

.page-header.with-action .page-title,
.page-header.with-action .page-subtitle {
    text-align: left;
    margin-bottom: 0;
}

.page-header .page-title {
    display: block;
    text-align: center;
    font-size: clamp(1.5rem, 1rem + 1.5vw, 2rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.page-header .page-subtitle {
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--slate-400);
    transition: color 0.2s ease;
}

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

.breadcrumb .separator {
    color: var(--slate-600);
}

.breadcrumb .current {
    color: var(--white);
    font-weight: 600;
}

/* Course Detail Page */
.course-hero {
    position: relative;
    overflow: hidden;
}

.course-hero-grid {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .course-hero-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.course-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.course-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem);
    border-radius: var(--radius-xl);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: center;
}

.course-meta-item .material-symbols-outlined {
    color: var(--primary);
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    margin-bottom: 0.5rem;
}

.course-meta-label {
    font-size: clamp(0.5625rem, 0.4rem + 0.3vw, 0.625rem);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.course-meta-value {
    font-size: clamp(0.75rem, 0.625rem + 0.3vw, 0.875rem);
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0.25rem;
}

/* Curriculum Accordion */
.curriculum-section {
    margin-top: 3rem;
}

.module-accordion {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-color: var(--bg-card);
    margin-bottom: 0.75rem;
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.module-header:hover {
    background-color: var(--primary-light);
}

.module-header.active {
    background-color: var(--primary-light);
    border-left: 3px solid var(--primary);
}

.module-number {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 700;
    background-color: var(--slate-100);
    color: var(--text-muted);
}

.module-header.active .module-number {
    background-color: var(--primary);
    color: var(--white);
}

.module-title {
    flex: 1;
    margin-left: 1rem;
    font-weight: 600;
    font-size: clamp(0.8125rem, 0.625rem + 0.4vw, 0.9375rem);
}

.module-content {
    display: none;
    padding: 0 1.5rem 1.25rem;
}

.module-content.show {
    display: block;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

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

.lesson-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.lesson-icon.video {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.lesson-icon.pdf {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.lesson-icon.quiz {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.lesson-info {
    flex: 1;
    min-width: 0;
}

.lesson-title {
    font-size: clamp(0.75rem, 0.625rem + 0.3vw, 0.875rem);
    font-weight: 600;
    color: var(--text-main);
}

.lesson-meta {
    font-size: clamp(0.625rem, 0.5rem + 0.25vw, 0.75rem);
    color: var(--text-muted);
    margin-top: 0.125rem;
}

/* Enrollment Sidebar */
.enrollment-card {
    position: sticky;
    top: 6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-lg);
}

.enrollment-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.enrollment-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.enrollment-card-body {
    padding: 2rem;
}

.enrollment-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.price-current {
    font-size: clamp(1.5rem, 1rem + 1.2vw, 2rem);
    font-weight: 900;
    color: var(--text-main);
}

.price-original {
    font-size: clamp(0.9375rem, 0.75rem + 0.5vw, 1.125rem);
    color: var(--text-muted);
    text-decoration: line-through;
}

.enrollment-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.enrollment-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(0.75rem, 0.625rem + 0.3vw, 0.875rem);
    color: var(--text-muted);
}

.enrollment-features li .material-symbols-outlined {
    color: var(--primary);
    font-size: clamp(1rem, 0.75rem + 0.5vw, 1.25rem);
}

/* Instructor Card */
.instructor-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.instructor-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary-light);
}

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

/* Rating */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    font-size: 0.875rem;
    font-weight: 700;
}

.rating-badge .material-symbols-outlined {
    font-size: 1rem;
    font-variation-settings: 'FILL' 1;
}

/* Profile Page */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem 0;
}

.profile-avatar-lg {
    width: 6rem;
    height: 6rem;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--primary);
    flex-shrink: 0;
}

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

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-value {
    font-size: clamp(1.5rem, 1rem + 1.2vw, 2rem);
    font-weight: 900;
    color: var(--text-main);
}

.stat-label {
    font-size: clamp(0.625rem, 0.5rem + 0.3vw, 0.75rem);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tabs */
.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    gap: 0;
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

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

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Progress Bar */
.progress-bar {
    height: 0.5rem;
    background-color: var(--slate-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

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

/* Course Progress Card */
.course-progress-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.course-progress-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.progress-ring {
    position: relative;
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Lesson Player */
.lesson-player-layout {
    display: grid;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .lesson-player-layout {
        grid-template-columns: 1fr 360px;
    }
}

.lesson-sidebar {
    display: none;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
    max-height: 100vh;
    position: sticky;
    top: 0;
}

@media (min-width: 1024px) {
    .lesson-sidebar {
        display: block;
    }
}

.video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.play-btn-large {
    position: absolute;
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    z-index: 10;
}

.play-btn-large:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-primary);
}

.play-btn-large .material-symbols-outlined {
    font-size: clamp(2rem, 1.5rem + 1vw, 2.5rem);
}

.lesson-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lesson-nav-item:hover {
    background-color: var(--primary-light);
}

.lesson-nav-item.active {
    background-color: var(--primary-light);
    border-left: 3px solid var(--primary);
}

.lesson-nav-item.completed .lesson-nav-check {
    background-color: #10b981;
    color: var(--white);
}

.lesson-nav-check {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lesson-nav-check .material-symbols-outlined {
    font-size: 1rem;
}

/* Form Styles */
.form-section {
    padding: 2rem;
    border-radius: var(--radius-2xl);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: clamp(1rem, 0.75rem + 0.6vw, 1.25rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-title .material-symbols-outlined {
    color: var(--primary);
}

.form-row {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact Page */
.contact-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.contact-info-icon {
    width: clamp(2.25rem, 1.5rem + 1vw, 3rem);
    height: clamp(2.25rem, 1.5rem + 1vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background-color: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}

/* About Page */
.about-hero {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.about-stat {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.about-stat-number {
    font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem);
    font-weight: 900;
    color: var(--primary);
}

.about-stat-label {
    font-size: clamp(0.75rem, 0.625rem + 0.3vw, 0.875rem);
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 600;
}

.team-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 6rem;
    height: 6rem;
    border-radius: var(--radius-full);
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid var(--primary-light);
}

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

/* Certificate Card */
.certificate-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-color: var(--bg-card);
    transition: all 0.3s ease;
}

.certificate-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.certificate-preview {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--primary-light), rgba(19, 127, 236, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.certificate-preview .material-symbols-outlined {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
}

.certificate-body {
    padding: 1.25rem;
}

/* Settings Form */
.settings-group {
    margin-bottom: 2rem;
}

.settings-group-title {
    font-size: clamp(0.75rem, 0.625rem + 0.3vw, 0.875rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.toggle-info h4 {
    font-size: clamp(0.8125rem, 0.625rem + 0.4vw, 0.9375rem);
    font-weight: 600;
    color: var(--text-main);
}

.toggle-info p {
    font-size: clamp(0.6875rem, 0.5rem + 0.4vw, 0.8125rem);
    color: var(--text-muted);
    margin-top: 0.125rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 3rem;
    height: 1.75rem;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--slate-300);
    border-radius: var(--radius-full);
    transition: 0.3s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 1.25rem;
    width: 1.25rem;
    left: 0.25rem;
    bottom: 0.25rem;
    background-color: var(--white);
    border-radius: var(--radius-full);
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(1.25rem);
}

/* Auth Pages */
.auth-layout {
    display: flex;
    min-height: 100vh;
}

.auth-sidebar {
    display: none;
    width: 50%;
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

@media (min-width: 768px) {
    .auth-sidebar {
        display: flex;
    }
}

.auth-main {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--bg-main);
}

@media (min-width: 768px) {
    .auth-main {
        width: 50%;
    }
}

.auth-box {
    width: 100%;
    max-width: 400px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 40;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary);
}

/* Section Title */
.section-title {
    font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: clamp(0.9375rem, 0.75rem + 0.5vw, 1.125rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Two Column Layout */
.two-col {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .two-col {
        grid-template-columns: 1fr 1fr;
    }
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Horizontal Scroll */
.scroll-x {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.scroll-x::-webkit-scrollbar {
    height: 4px;
}

.scroll-x::-webkit-scrollbar-track {
    background: var(--slate-100);
    border-radius: var(--radius-full);
}

.scroll-x::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: var(--radius-full);
}
