/* Course Page Styles */

/* Desktop Header Navigation */
.desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    display: none;
}

[data-theme="light"] .desktop-header {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.9), rgba(173, 216, 230, 0.8));
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(135, 206, 235, 0.3);
    box-shadow: 0 8px 32px rgba(135, 206, 235, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    height: 70px;
    width: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.header-logo .logo-image {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .header-logo .logo-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .header-logo .logo-text {
        font-size: 0.9rem;
    }
}

[data-theme="light"] .header-logo .logo-text {
    background: linear-gradient(135deg, #3b82f6, #1e90ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-shrink: 0;
}

.header-nav-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

[data-theme="light"] .header-nav-item {
    color: rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.header-nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .header-nav-item:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.header-nav-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(79, 172, 254, 0.3));
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .header-nav-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(79, 172, 254, 0.2));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.header-nav-item .nav-icon {
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #000;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.15);
}

.theme-icon {
    font-size: 1rem;
}


/* Desktop Navigation Display */
@media (min-width: 769px) {
    .desktop-header {
        display: block;
    }

    .page-header-section {
        margin-top: 70px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }

    .page-header-section {
        margin-top: 0;
    }
}

/* CSS Variables (fallback if main.css not loaded) */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #dbeafe;
    --primary-rgb: 59, 130, 246;
    --secondary-color: #8b5cf6;
    --secondary-dark: #7c3aed;
    --success-color: #10b981;
    --success-dark: #059669;
    --danger-color: #ef4444;
    --danger-dark: #dc2626;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --info-color: #06b6d4;
    --info-light: #cffafe;
    --info-rgb: 6, 182, 212;
    --warning-rgb: 245, 158, 11;

    --text-color: #1f2937;
    --text-secondary: #6b7280;
    --bg-color: #ffffff;
    --bg-secondary: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --input-bg: #ffffff;

    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-heavy: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --text-color: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-color: #111827;
    --bg-secondary: #1f2937;
    --card-bg: #1f2937;
    --border-color: #374151;
    --input-bg: #374151;
}

/* Basic body styles */
body {
    font-family: 'Noto Sans Bengali', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.brand-logo {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

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

.theme-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-btn:hover {
    background-color: var(--bg-secondary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.2s;
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    z-index: 1000;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.mobile-nav-link.active {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

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

    .mobile-nav {
        display: flex;
        justify-content: space-around;
    }
}

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

/* Basic button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
    margin-top: 70px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Course Card Styles */
.course-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-card .course-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.course-card .voucher-btn {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.course-card .voucher-btn:hover {
    background: rgba(255, 193, 7, 0.3);
    transform: translateY(-1px);
}

.course-card .purchase-btn {
    background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex: 1;
    justify-content: center;
}

.course-card .purchase-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Search Section */
.search-section {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.filter-clear-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-clear-btn:hover {
    background: var(--danger-dark);
    transform: translateY(-1px);
}

/* Course Grid Section */
.course-grid-section {
    padding: 3rem 0;
    min-height: 60vh;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

.loading-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

/* Course Cards */
.course-card {
    background: linear-gradient(145deg, rgba(173, 216, 230, 0.15), rgba(135, 206, 235, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(135, 206, 235, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .course-card {
    background: linear-gradient(145deg, rgba(173, 216, 230, 0.25), rgba(224, 247, 250, 0.95));
    border: 2px solid rgba(135, 206, 235, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="dark"] .course-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.85));
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 12px 24px rgba(33, 150, 243, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(33, 150, 243, 0.5);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.course-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.course-card:hover::after {
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.course-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.course-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--success-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.course-badge.free {
    background: var(--success-color);
}

.course-badge.paid {
    background: var(--primary-color);
}

/* Discount Stamp */
.discount-stamp {
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 10;
}

.discount-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
    animation: pulse 2s infinite;
    border: 3px solid white;
}

.discount-percent {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.discount-text {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 2px;
}

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

    50% {
        transform: scale(1.05);
    }

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

/* Course Overlay */
.course-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.course-card:hover .course-overlay {
    transform: translateY(0);
}

.quick-stats {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.75rem;
}

.stat-icon {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.course-content {
    padding: 1rem;
}

/* Course Header */
.course-header {
    margin-bottom: 1rem;
}

.course-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
}

.course-class-subject {
    display: flex;
    gap: 0.5rem;
}

.class-badge,
.subject-badge {
    background: linear-gradient(135deg, var(--primary-color), #1976d2);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subject-badge {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.course-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

/* Course Info List Section */
.course-info-list {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Discount Badge Inline */
.discount-badge-inline {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

[data-theme="dark"] .discount-badge-inline {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.12));
    border-color: rgba(239, 68, 68, 0.4);
}

.discount-badge-inline .discount-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.discount-badge-inline .discount-percent {
    font-size: 0.9rem;
    color: #dc2626;
    font-weight: 700;
}

[data-theme="dark"] .discount-badge-inline .discount-percent {
    color: #ef4444;
}

.discount-badge-inline .discount-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

[data-theme="dark"] .course-info-list {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.12));
    border-color: rgba(59, 130, 246, 0.3);
}

.info-list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
}

.info-list-item .info-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.info-list-item .info-text {
    line-height: 1.2;
}

/* Responsive adjustments for info list */
@media (max-width: 768px) {
    .course-info-list {
        padding: 0.6rem;
        gap: 0.4rem;
    }

    .info-list-item {
        font-size: 0.7rem;
    }

    .info-list-item .info-icon {
        font-size: 0.9rem;
    }
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.course-class,
.course-subject {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}



/* Course Description Wrapper */
.course-description-wrapper {
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.course-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.course-description.expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.2rem 0;
    text-decoration: underline;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
    display: inline-block;
}

.read-more-btn:hover {
    color: var(--primary-dark);
    transform: translateX(2px);
}

.read-more-btn:active {
    transform: scale(0.98);
}

.course-features {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.features-box {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
}

.features-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.feature-item::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.feature-tag {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-teacher {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.teacher-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.teacher-info {
    flex: 1;
}

.teacher-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.teacher-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.course-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.price-current.free {
    color: var(--success-color);
}

.price-original {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-top: 0.2rem;
}

.course-actions {
    display: flex;
    gap: 0.5rem;
}

.course-btn {
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: none;
    outline: none;
}

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

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

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

.course-btn.success:hover {
    background: var(--success-dark);
    transform: translateY(-2px);
}

.course-btn.outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 1.5rem;
        margin-top: 0;
    }

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

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

    .course-filters {
        position: static;
        padding: 1.5rem 0;
    }

    .filter-container {
        gap: 1rem;
    }

    .filter-options {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .filter-group {
        justify-content: space-between;
    }

    .filter-select {
        min-width: auto;
        flex: 1;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .course-card {
        margin: 0 0.5rem;
    }

    .course-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .course-actions {
        justify-content: center;
    }

    .course-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .course-grid-section {
        padding: 2rem 0;
    }

    .course-content {
        padding: 0.8rem;
    }

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

    .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .course-filters {
    border-bottom-color: var(--border-color);
}

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

[data-theme="dark"] .course-badge {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feature-tag {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary-light);
}

/* Animation for course cards loading */
.course-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

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

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

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

.course-card:nth-child(5) {
    animation-delay: 0.5s;
}

.course-card:nth-child(6) {
    animation-delay: 0.6s;
}

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

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1001;
}

.modal.show .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, white);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, white);
}

.modal-content {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-actions {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.course-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.course-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary, white);
    font-size: 1.1rem;
}

.course-info p {
    margin: 0;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 0.9rem;
}

.vouchers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.voucher-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.voucher-item:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.5);
}

.voucher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.voucher-code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #ffc107;
    font-size: 1.1rem;
}

.voucher-discount {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.voucher-details {
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 0.875rem;
    line-height: 1.4;
}

.voucher-expiry {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.no-vouchers {
    text-align: center;
    padding: 2rem 1rem;
}

.no-vouchers-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-vouchers h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary, white);
}

.no-vouchers p {
    margin: 0;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 0.9rem;
}

.btn-primary,
.btn-cancel {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary, white);
}

/* Enhanced Course Card Styles */

/* Course Stats Detailed */
.course-stats-detailed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
    border-radius: 16px;
    border: 2px solid rgba(33, 150, 243, 0.2);
    position: relative;
    overflow: hidden;
}

.course-stats-detailed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-stats-detailed::before {
    opacity: 1;
}

.stat-box {
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

[data-theme="light"] .stat-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

[data-theme="dark"] .stat-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Teacher Section */
.course-teacher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border-radius: 16px;
    border: 2px solid rgba(76, 175, 80, 0.2);
}

.teacher-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.teacher-info {
    flex: 1;
}

.teacher-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.teacher-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.teacher-rating {
    text-align: right;
}

.rating-stars {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.rating-count {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Enhanced Course Footer */
.course-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(33, 150, 243, 0.1);
}

.course-price-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-radius: 20px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
}

.price-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), transparent);
    z-index: 0;
}

.price-container>* {
    position: relative;
    z-index: 1;
}

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

.price-current {
    font-size: 1.8rem;
    font-weight: 900;
    color: #f57c00;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-current.free {
    color: var(--success-color);
    font-size: 1.6rem;
}

.price-original {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.6;
}

.savings-badge {
    background: linear-gradient(135deg, var(--success-color), #388e3c);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.savings-text {
    font-size: 0.75rem;
}

.course-actions {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.8rem;
}

.voucher-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--warning-color);
    color: white;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voucher-btn:hover {
    background: var(--warning-dark);
    transform: translateY(-2px);
}

.voucher-icon {
    font-size: 0.9rem;
}

.course-btn {
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.course-btn.outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.course-btn.outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

.course-btn.success:hover {
    background: var(--success-dark);
    transform: translateY(-2px);
}

.course-btn.secondary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.course-btn.secondary:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.course-btn.primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.course-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Enhanced Features Box */
.course-features {
    margin-bottom: 1rem;
}

.features-box {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 10px;
    padding: 0.6rem;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .features-box {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08), rgba(33, 150, 243, 0.03));
    border: 1px solid rgba(33, 150, 243, 0.15);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
}

.feature-item {
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--text-color);
    text-align: left;
    font-weight: 500;
}

[data-theme="light"] .feature-item {
    color: #374151;
}

/* Course Details Modal */
.course-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.course-details-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .modal-content {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.9));
}

.course-details-modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(33, 150, 243, 0.1);
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.course-details-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-thumbnail-large {
    width: 100%;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

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

.course-stats-large .stat-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
    border-radius: 16px;
    border: 2px solid rgba(33, 150, 243, 0.2);
}

.course-stats-large .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.course-stats-large .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-features-large h3,
.teacher-info-large h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.course-features-large ul {
    list-style: none;
    padding: 0;
}

.course-features-large li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

.teacher-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border-radius: 16px;
    border: 2px solid rgba(76, 175, 80, 0.2);
}

.teacher-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.avatar-placeholder-large {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.teacher-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.teacher-text p {
    margin: 0;
    color: var(--text-secondary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 2px solid rgba(33, 150, 243, 0.1);
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(33, 150, 243, 0.02));
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-btn.secondary {
    background: rgba(108, 117, 125, 0.1);
    color: var(--text-secondary);
    border: 2px solid rgba(108, 117, 125, 0.3);
}

.modal-btn.secondary:hover {
    background: rgba(108, 117, 125, 0.2);
    transform: translateY(-2px);
}

.modal-btn.primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-stats-detailed {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .course-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .course-actions {
        justify-content: center;
    }

    .discount-circle {
        width: 60px;
        height: 60px;
    }

    .discount-percent {
        font-size: 1rem;
    }

    .discount-text {
        font-size: 0.6rem;
    }
}

/* Enrollment Success Modal Styles */
.enrollment-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.enrollment-success-modal.active {
    display: flex;
}

.enrollment-success-modal .modal-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

.enrollment-success-modal .modal-header {
    background: var(--success-color);
    color: white;
    padding: var(--space-4);
    text-align: center;
}

.enrollment-success-modal .success-icon {
    font-size: 3rem;
    margin-bottom: var(--space-2);
}

.enrollment-success-modal .modal-header h3 {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
}

.enrollment-success-modal .modal-content {
    padding: var(--space-4);
}

.enrollment-success-modal .success-message p {
    margin: 0 0 var(--space-3) 0;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.6;
}

.enrollment-success-modal .success-message strong {
    color: var(--primary-color);
}

.enrollment-success-modal .modal-actions {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

.enrollment-success-modal .btn {
    flex: 1;
    max-width: 150px;
}

/* Trailer Modal Styles */
.trailer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.trailer-modal.show {
    opacity: 1;
    visibility: visible;
}

.trailer-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.trailer-modal .modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1200px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.9));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.trailer-modal.show .modal-container {
    transform: translate(-50%, -50%) scale(1);
}

.trailer-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.1));
    border-bottom: 2px solid rgba(33, 150, 243, 0.3);
}

.trailer-modal .modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.trailer-modal .close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.trailer-modal .close-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: scale(1.1);
}

.trailer-modal .player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.trailer-modal .video-wrapper {
    width: 100%;
    height: 100%;
}

.trailer-modal .video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Course Duration Info Styles */
.course-duration-info {
    margin: 0.75rem 0;
    padding: 0.5rem 0;
}

.duration-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

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

.duration-icon {
    font-size: 1rem;
}

.duration-text {
    font-weight: 500;
}

/* Course Status Badge Styles */
.course-status-badge {
    margin: 0.5rem 0;
    display: flex;
    justify-content: flex-start;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

/* Status Badge Colors */
.status-badge.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-badge.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.status-badge.coming-soon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.status-badge.completed {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

/* Dark theme adjustments */
[data-theme="dark"] .status-badge.active {
    background: linear-gradient(135deg, #065f46, #047857);
}

[data-theme="dark"] .status-badge.pending {
    background: linear-gradient(135deg, #92400e, #b45309);
}

[data-theme="dark"] .status-badge.coming-soon {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
}

[data-theme="dark"] .status-badge.completed {
    background: linear-gradient(135deg, #374151, #4b5563);
}

/* Responsive Design for Trailer Modal */
@media (max-width: 768px) {
    .trailer-modal .modal-container {
        width: 95%;
        margin: 10px;
    }

    .trailer-modal .modal-header {
        padding: 1rem;
    }

    .trailer-modal .modal-title {
        font-size: 1rem;
    }

    .duration-item {
        font-size: 0.8rem;
    }

    .status-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}