/* ================================
   MADRASSA MTANDAO MAIN CSS
   All styles from the original file
================================ */

:root {
    --primary-100: #c8e6c9;
    --primary-200: #a5d6a7;
    --primary-300: #81c784;
    --primary-400: #66bb6a;
    --primary-500: #4caf50;
    --primary-600: #43a047;
    --primary-700: #388e3c;
    --primary-800: #2e7d32;
    --primary-900: #1b5e20;
    
    --secondary-100: #ffe0b2;
    --secondary-200: #ffcc80;
    --secondary-300: #ffb74d;
    --secondary-400: #ffa726;
    --secondary-500: #ff9800;
    --secondary-600: #fb8c00;
    --secondary-700: #f57c00;
    --secondary-800: #ef6c00;
    --secondary-900: #e65100;
    
    --accent-100: #b3e5fc;
    --accent-200: #81d4fa;
    --accent-300: #4fc3f7;
    --accent-400: #29b6f6;
    --accent-500: #03a9f4;
    --accent-600: #039be5;
    --accent-700: #0288d1;
    --accent-800: #0277bd;
    --accent-900: #01579b;
    
    --purple-100: #e1bee7;
    --purple-200: #ce93d8;
    --purple-300: #ba68c8;
    --purple-400: #ab47bc;
    --purple-500: #9c27b0;
    --purple-600: #8e24aa;
    --purple-700: #7b1fa2;
    --purple-800: #6a1b9a;
    --purple-900: #4a148c;
    
    --teal-100: #b2dfdb;
    --teal-200: #80cbc4;
    --teal-300: #4db6ac;
    --teal-400: #26a69a;
    --teal-500: #009688;
    --teal-600: #00897b;
    --teal-700: #00796b;
    --teal-800: #00695c;
    --teal-900: #004d40;
    
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #eeeeee;
    --neutral-300: #e0e0e0;
    --neutral-400: #bdbdbd;
    --neutral-500: #9e9e9e;
    --neutral-600: #757575;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;
    
    --success: #00c853;
    --warning: #ffc107;
    --danger: #f44336;
    --info: #2196f3;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --gradient-warning: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --gradient-cool: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --gradient-warm: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    --gradient-morning: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --gradient-night: linear-gradient(135deg, #141e30 0%, #243b55 100%);
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px rgba(0,0,0,0.25);
    --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.05);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--neutral-800);
    line-height: 1.5;
    min-height: 100vh;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 100%);
    color: white;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--secondary-400);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.top-bar-info {
    display: flex;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-item i {
    font-size: 1rem;
    color: var(--secondary-300);
}

/* ===== HEADER ===== */
header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-500), var(--accent-500), var(--purple-500));
    border-image-slice: 1;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-300);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-700), var(--accent-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--neutral-600);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== MOBILE MENU BUTTON - IMPROVED ===== */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-600);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: var(--radius-full);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== NAVIGATION - IMPROVED MOBILE RESPONSIVENESS ===== */
.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: var(--neutral-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary-600);
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--accent-100) 100%);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-600));
    color: white;
    box-shadow: var(--shadow-md);
}

.nav-link.active::after {
    display: none;
}

/* ===== AUTH BUTTONS ===== */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-auth {
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-auth.login {
    background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
    color: var(--neutral-800);
    border: 1px solid var(--neutral-300);
}

.btn-auth.login:hover {
    background: linear-gradient(135deg, var(--neutral-200), var(--neutral-300));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-auth.register {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
    border: 1px solid var(--primary-400);
}

.btn-auth.register:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-300);
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6a11cb 100%);
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-width="2"/><path d="M20,20 L80,20 L80,80 L20,80 Z" fill="none" stroke="white" stroke-width="2"/></svg>');
    background-size: 80px;
    animation: float 20s linear infinite;
}

@keyframes float {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow-lg);
}

.hero-badge i {
    color: var(--secondary-300);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-title span {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-hero {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.btn-hero.primary {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: var(--neutral-900);
}

.btn-hero.primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.btn-hero.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-hero.secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
    transform: translateY(-4px);
}

.hero-video {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow-2xl);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s;
}

.hero-video:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.video-container {
    aspect-ratio: 16/9;
    width: 100%;
    position: relative;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    padding: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.2);
}

/* ===== THREE COLUMN LAYOUT ===== */
.courses-layout {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 300px 1fr 320px;
    gap: 1.5rem;
}

/* Course Description Preview */
.course-description-preview {
    font-size: 0.85rem;
    color: var(--neutral-600);
    line-height: 1.5;
    max-height: 3.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0.75rem 0;
}

/* Course Details Modal */
#courseDetailsModal .modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

.description-content {
    background: var(--neutral-100);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.description-content::-webkit-scrollbar {
    width: 6px;
}

.description-content::-webkit-scrollbar-track {
    background: var(--neutral-200);
    border-radius: var(--radius-full);
}

.description-content::-webkit-scrollbar-thumb {
    background: var(--primary-500);
    border-radius: var(--radius-full);
}

.description-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-600);
}

/* Button group styling */
.d-flex.gap-2 .btn-continue {
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
}

.d-flex.gap-2 .btn-continue i {
    font-size: 0.9rem;
}

/* ===== CATEGORIES SIDEBAR ===== */
.categories-sidebar {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid var(--neutral-200);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    border-image-slice: 1;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-700), var(--accent-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.sidebar-header h3 i {
    color: var(--primary-500);
    -webkit-text-fill-color: initial;
}

.sidebar-header .badge {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Category Items */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-item {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.category-item:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    background: linear-gradient(135deg, white, var(--primary-50));
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: white;
    transition: all 0.3s;
}

.category-header:hover {
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
}

.category-header.active {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-600));
    color: white;
}

.category-header.active .category-name {
    color: white;
}

.category-header.active .category-name i {
    color: white;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 0.95rem;
}

.category-name i {
    color: var(--primary-500);
    font-size: 1.1rem;
    width: 20px;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-count {
    background: var(--neutral-200);
    color: var(--neutral-700);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.category-header.active .category-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.category-arrow {
    color: var(--neutral-400);
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.category-header[aria-expanded="true"] .category-arrow {
    transform: rotate(90deg);
    color: var(--primary-500);
}

.category-header.active .category-arrow {
    color: white;
}

/* Subcategories */
.subcategories {
    padding: 0.75rem 0 0.75rem 2.5rem;
    background: linear-gradient(135deg, var(--neutral-50), var(--neutral-100));
    border-top: 1px solid var(--neutral-200);
}

.subcategory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.25rem;
    border-left: 4px solid transparent;
}

.subcategory-item:hover {
    background: white;
    border-left-color: var(--primary-500);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.subcategory-item.active {
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
    border-left-color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

.subcategory-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--neutral-600);
    font-weight: 500;
}

.subcategory-name i {
    font-size: 0.4rem;
    color: var(--neutral-400);
}

.subcategory-item:hover .subcategory-name i {
    color: var(--primary-500);
}

.subcategory-item.active .subcategory-name {
    color: var(--primary-700);
    font-weight: 600;
}

.subcategory-count {
    background: var(--neutral-200);
    color: var(--neutral-600);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
}

.subcategory-item:hover .subcategory-count {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    color: white;
}

/* Filter Section */
.filter-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--neutral-300);
}

.filter-title {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--neutral-700);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.filter-check:hover {
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
}

.filter-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--neutral-300);
    cursor: pointer;
    accent-color: var(--primary-500);
}

.btn-reset {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-lg);
    color: var(--neutral-700);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-reset:hover {
    background: linear-gradient(135deg, var(--neutral-200), var(--neutral-300));
    border-color: var(--primary-500);
    color: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    min-height: 600px;
    border: 1px solid var(--neutral-200);
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 3rem;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--neutral-200);
    border-top-color: var(--primary-500);
    border-right-color: var(--accent-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Course Overview */
.course-overview {
    text-align: center;
}

.course-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: var(--neutral-500);
    font-size: 0.9rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
    border-radius: var(--radius-full);
}

.course-breadcrumb a {
    color: var(--primary-600);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

.course-breadcrumb a:hover {
    color: var(--accent-600);
    text-decoration: underline;
}

.course-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-700), var(--accent-700), var(--purple-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.course-header p {
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.course-price-tag {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 2rem 0;
    text-shadow: var(--shadow-sm);
}

.btn-enroll-large {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-600), var(--purple-600));
    color: white;
    border: none;
    padding: 1.25rem 3.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.btn-enroll-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-enroll-large:hover::before {
    left: 100%;
}

.btn-enroll-large:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.course-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--neutral-700);
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.feature-item i {
    color: var(--success);
    font-size: 1.2rem;
}

/* Lesson Content */
.lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.lesson-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-700), var(--accent-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lesson-meta {
    display: flex;
    gap: 1rem;
    color: var(--neutral-600);
    font-size: 0.95rem;
}

.lesson-meta i {
    color: var(--primary-500);
    margin-right: 0.25rem;
}

.free-badge {
    background: linear-gradient(135deg, var(--success), #69f0ae);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.lock-image-container {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
}

.lock-image-container i {
    font-size: 5rem;
    color: var(--warning);
    margin-bottom: 1rem;
    animation: pulseLock 2s infinite;
}

@keyframes pulseLock {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.lock-image-container h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.lock-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.lesson-description {
    background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-top: 2rem;
}

.lesson-description h3 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description-text {
    color: var(--neutral-700);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.highlight-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    border: 1px solid var(--neutral-200);
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, white, var(--primary-50));
}

.highlight-card i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.highlight-card span {
    display: block;
    font-weight: 700;
    color: var(--neutral-800);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.highlight-card small {
    color: var(--neutral-500);
    font-size: 0.8rem;
}

/* Lessons Sidebar */
.lessons-sidebar {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid var(--neutral-200);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.lessons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    border-image-slice: 1;
}

.lessons-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-700), var(--accent-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.lessons-header .badge {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--neutral-200);
    background: white;
}

.lesson-item:hover {
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
    border-color: var(--primary-300);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.lesson-item.active {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-600));
    border-color: var(--primary-400);
    color: white;
}

.lesson-item.locked {
    opacity: 0.7;
}

.lesson-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.lesson-item.active .lesson-number {
    background: white;
    color: var(--primary-700);
}

.lesson-item.locked .lesson-number {
    background: var(--neutral-400);
}

.lesson-info {
    flex: 1;
    min-width: 0;
}

.lesson-info .title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lesson-item.active .lesson-info .title {
    color: white;
}

.lesson-info .duration {
    font-size: 0.7rem;
    color: var(--neutral-500);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lesson-item.active .lesson-info .duration {
    color: rgba(255,255,255,0.8);
}

.lesson-status {
    color: var(--primary-500);
    font-size: 0.9rem;
}

.lesson-item.active .lesson-status {
    color: white;
}

.lesson-item.locked .lesson-status {
    color: var(--neutral-400);
}

.lessons-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--neutral-700);
}

.stat-item i {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 20px;
}

/* ===== COURSES GRID SECTION ===== */
.courses-grid-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-700), var(--accent-700), var(--purple-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.course-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    border: 1px solid var(--neutral-200);
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.course-image {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-bestseller {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--secondary-500), var(--secondary-700));
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.course-content {
    padding: 1.5rem;
}

.course-category {
    font-size: 0.75rem;
    color: var(--primary-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3rem;
}

.course-instructor {
    font-size: 0.8rem;
    color: var(--neutral-500);
    margin-bottom: 0.75rem;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.rating-stars {
    color: var(--secondary-500);
    font-size: 0.8rem;
}

.rating-number {
    font-weight: 700;
    color: var(--neutral-700);
    font-size: 0.9rem;
}

.rating-count {
    color: var(--neutral-500);
    font-size: 0.75rem;
}

.course-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.original-price {
    font-size: 0.9rem;
    color: var(--neutral-400);
    text-decoration: line-through;
}

.discount-badge {
    background: linear-gradient(135deg, var(--success), #69f0ae);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-full);
    font-size: 0.6rem;
    font-weight: 700;
}

.btn-continue {
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
    color: var(--primary-700);
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    border: 1px solid var(--primary-300);
}

.btn-continue:hover {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-600));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.load-more-container {
    text-align: center;
}

.btn-load-more {
    background: white;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, var(--primary-500), var(--accent-500));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: var(--primary-700);
    padding: 0.75rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-800);
}

/* ===== INSTRUCTORS GRID ===== */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.instructor-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    border: 1px solid var(--neutral-200);
}

.instructor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    background: linear-gradient(135deg, white, var(--primary-50));
}

.instructor-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-600), var(--purple-600));
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

.instructor-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 0.25rem;
}

.instructor-title {
    color: var(--neutral-500);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.instructor-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 2px dashed var(--neutral-200);
    border-bottom: 2px dashed var(--neutral-200);
}

.stat {
    text-align: center;
}

.stat-value {
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.3rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--neutral-500);
    font-weight: 600;
}

.btn-view-courses {
    background: transparent;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, var(--primary-500), var(--accent-500));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: var(--primary-700);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-view-courses:hover {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-600));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== MY COURSES SECTION ===== */
.my-courses-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.my-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.empty-courses {
    text-align: center;
    padding: 4rem;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.empty-courses i {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--neutral-300), var(--neutral-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6a11cb 100%);
    padding: 5rem 1rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

.btn-cta {
    background: linear-gradient(135deg, var(--secondary-500), var(--secondary-700));
    color: white;
    border: none;
    padding: 1.25rem 3.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-xl);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-cta:hover {
    background: linear-gradient(135deg, var(--secondary-600), var(--secondary-800));
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-2xl);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--neutral-900) 0%, #1a1a2e 100%);
    color: white;
    padding: 4rem 1rem 1rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    border-radius: var(--radius-full);
}

.footer-column p {
    color: var(--neutral-400);
    font-size: 0.9rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    transform: translateY(-4px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--neutral-400);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-links i {
    font-size: 0.7rem;
    color: var(--primary-400);
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-800);
    text-align: center;
    color: var(--neutral-500);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--primary-400);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent-400);
}

/* ===== MODAL STYLES - YOUR EXACT ORIGINAL PAYMENT FLOW ===== */
.modal-content {
    border: none;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600), var(--purple-600));
    color: white;
    border: none;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.course-summary-card {
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--primary-300);
    box-shadow: var(--shadow-md);
}

.registration-fields {
    background: white;
    border-radius: var(--radius-xl);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.registration-fields .form-label {
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 6px;
}

.registration-fields .form-control {
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    border: 2px solid var(--neutral-200);
    transition: all 0.2s;
}

.registration-fields .form-control:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.help-icon {
    color: var(--primary-500);
    font-size: 0.9rem;
    cursor: help;
    margin-left: 5px;
}

.info-tooltip {
    display: inline-block;
    margin-left: 6px;
    color: var(--neutral-500);
    cursor: help;
    position: relative;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.tooltip-text {
    visibility: hidden;
    width: 250px;
    background: var(--neutral-800);
    color: #fff;
    text-align: center;
    border-radius: var(--radius-lg);
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: normal;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--neutral-800) transparent transparent transparent;
}

.info-instruction-card {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: var(--radius-xl);
    padding: 16px 18px;
    margin: 20px 0 10px;
    border-left: 6px solid var(--accent-500);
    box-shadow: var(--shadow-md);
}

.info-instruction-card i {
    color: var(--accent-600);
    font-size: 1.8rem;
    margin-right: 15px;
}

.instruction-badge {
    background: linear-gradient(135deg, var(--secondary-500), var(--secondary-700));
    color: white;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 10px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-option-card {
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.payment-option-card:hover {
    border-color: var(--primary-500);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, white, var(--primary-50));
}

.payment-option-card.selected {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
    box-shadow: var(--shadow-md);
}

.payment-option-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.payment-option-title {
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 5px;
}

.payment-option-desc {
    font-size: 0.8rem;
    color: var(--neutral-500);
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}

.network-card {
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.network-card:hover {
    border-color: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.network-card.selected {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
}

.network-card img {
    height: 30px;
    width: auto;
    margin-bottom: 8px;
}

.network-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== QR CODE SELECTION STYLES (CONSOLIDATED) ===== */
.network-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.network-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.network-card.selected {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.network-card img {
    transition: all 0.3s ease;
}

.network-card.selected img {
    transform: scale(1.05);
}

#selectedQRImage {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    background: white;
}

.qr-container {
    background: white;
    padding: 20px;
    border-radius: var(--radius-xl);
    display: inline-block;
    margin: 15px 0;
    box-shadow: var(--shadow-md);
}

#qrcode {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.network-number-box {
    background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
    border-radius: var(--radius-xl);
    padding: 25px;
    border: 1px solid var(--neutral-300);
    box-shadow: var(--shadow-inner);
}

.big-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    font-family: 'Inter', monospace;
}

.ref-chip {
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    color: white;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.company-number-highlight {
    background: linear-gradient(135deg, var(--secondary-600), var(--secondary-800));
    color: white;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: inline-block;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.btn-complete {
    background: linear-gradient(135deg, var(--success), #00e676);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-complete:hover:not(:disabled) {
    background: linear-gradient(135deg, #00e676, #00c853);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-complete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.success-animation {
    font-size: 5rem;
    background: linear-gradient(135deg, var(--success), #69f0ae);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulseSuccess 1.5s infinite;
}

@keyframes pulseSuccess {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== RESPONSIVE DESIGN - IMPROVED MOBILE MENU ===== */
@media (max-width: 1200px) {
    .courses-layout {
        grid-template-columns: 280px 1fr 280px;
    }
    
    .instructors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-2xl);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-container.active {
        right: 0;
    }
    
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem;
        border-radius: var(--radius-lg);
        border-bottom: 1px solid var(--neutral-200);
        font-size: 1.1rem;
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, var(--primary-500), var(--accent-600));
        color: white;
        border-bottom: none;
    }
    
    .auth-buttons.desktop {
        display: none !important;
    }
    
    .auth-buttons.mobile {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        margin-top: 2rem;
        gap: 1rem;
    }
    
    .auth-buttons.mobile .btn-auth {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
        display: inline-flex !important;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem;
        margin-bottom: 1rem;
        display: flex !important;
    }
    
    .user-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .courses-layout {
        grid-template-columns: 1fr;
    }
    
    .categories-sidebar,
    .lessons-sidebar {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .network-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    
    .instructors-grid {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .top-bar-info {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-subtitle {
        display: none;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .course-header h2 {
        font-size: 1.5rem;
    }
    
    .course-price-tag {
        font-size: 2rem;
    }
    
    .btn-enroll-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .big-number {
        font-size: 1.8rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.d-none {
    display: none !important;
}

.auth-buttons.mobile {
    display: none;
}

@media (min-width: 993px) {
    .auth-buttons.desktop {
        display: flex !important;
    }
    .auth-buttons.mobile {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .auth-buttons.desktop {
        display: none !important;
    }
    .auth-buttons.mobile {
        display: flex !important;
    }
}

/* ===== SMOOTH SCROLLING FOR SECTION NAVIGATION ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ================================
   Madrassa Mtandao Benefits Section
   Prefix: mm-benefits-
   Will NOT conflict with existing CSS
================================ */

.mm-benefits-section {
    padding: 80px 20px;
    background: #f9fafb;
}

.mm-benefits-container {
    max-width: 1200px;
    margin: auto;
}

.mm-benefits-header {
    text-align: center;
    margin-bottom: 50px;
}

.mm-benefits-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.mm-benefits-header p {
    color: #6b7280;
    font-size: 1rem;
}

.mm-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.mm-benefit-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    transition: 0.3s ease;
    border: 1px solid #e5e7eb;
}

.mm-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.mm-benefit-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.mm-benefit-icon i {
    color: white;
    font-size: 22px;
}

.mm-benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #111827;
}

.mm-benefit-card p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Mobile optimization */
@media (max-width: 600px) {
    .mm-benefits-section {
        padding: 60px 15px;
    }
}

/* ===== FIXED VIDEO PLAYER SIZING ===== */
.video-wrapper {
    width: 100%;
    margin: 1.5rem 0;
    position: relative;
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Override any existing Plyr styles that might interfere */
.plyr__video-embed {
    padding-bottom: 56.25% !important;
    height: 0 !important;
    position: relative !important;
}

.plyr__video-embed iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Ensure the video player takes full width */
.plyr {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
}

.instructor-actions{
    display:flex;
    gap:10px;
    justify-content:center;
    margin-top:15px;
}

.btn-view-profile{
    background:#0d6efd;
    color:white;
    border:none;
    padding:8px 14px;
    border-radius:6px;
}

.modal-avatar{
    width:90px;
    height:90px;
    background:#2c7be5;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    border-radius:50%;
    margin:auto;
    margin-bottom:10px;
}

.btn-instructor-profile{
    width:100%;
    padding:11px;
    border:2px solid #2c7be5;
    background:#fff;
    color:#2c7be5;
    border-radius:8px;
    font-weight:600;
    font-size:14px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    transition:all .25s ease;
}

.btn-instructor-profile:hover{
    background:#2c7be5;
    color:white;
}

/* ===== FIXED: Prevent form expansion on mobile when keyboard opens ===== */
@media (max-width: 768px) {
    /* Fix for mobile keyboard causing layout shift */
    .modal-dialog {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0 !important;
        max-width: 100%;
        transform: none !important;
        display: flex;
        align-items: flex-start;
    }
    
    .modal-content {
        border-radius: 0;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-body {
        padding-bottom: 40px; /* Extra space for keyboard */
    }
    
    /* Fix for iOS zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents iOS zoom */
        max-height: 45px;
    }
    
    /* Prevent body scroll when modal is open */
    body.modal-open {
        position: fixed;
        width: 100%;
    }
    
    /* Ensure the registration fields don't expand */
    .registration-fields {
        max-height: none;
        overflow: visible;
    }
    
    /* Make form inputs stable */
    .form-control {
        transition: none !important;
        transform: none !important;
    }
    
    /* Fix for Android keyboard */
    .modal-body {
        min-height: 100%;
    }
    
    /* Ensure the form doesn't jump */
    .payment-modal .modal-dialog {
        transition: none !important;
    }
}

/* Additional fix for very small screens */
@media (max-width: 480px) {
    .modal-dialog {
        align-items: flex-start;
        padding-top: 0;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    /* Make inputs more stable */
    .registration-fields .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .registration-fields .col-md-6 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Prevent input zoom on focus */
    .form-control:focus {
        font-size: 16px !important;
    }
}

/* Course Details Grid */
.course-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.details-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.details-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-section h3 i {
    color: #10b981;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: #475569;
    font-size: 0.95rem;
}

.details-list li i {
    color: #10b981;
    font-size: 1rem;
    margin-top: 3px;
}

/* Stats Section */
.stats-section {
    grid-column: span 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat-box {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-box i {
    font-size: 1.5rem;
    color: #10b981;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
}

/* Price Section */
.course-price-section {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
    border: 2px solid #10b981;
}

.price-details {
    margin-bottom: 20px;
}

.price-label {
    font-size: 1rem;
    color: #475569;
    display: block;
    margin-bottom: 5px;
}

.price-note {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 5px;
}

.payment-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    color: #475569;
    font-size: 0.9rem;
}

.payment-info i {
    color: #10b981;
}

.guarantee-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    color: #059669;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Testimonials Section */
.testimonials-section {
    margin: 40px 0;
}

.testimonials-section h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #1e293b;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 10px;
}

.testimonial-text {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.testimonial-author strong {
    display: block;
    color: #1e293b;
    font-size: 0.9rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: #64748b;
}

/* FAQ Section */
.faq-section {
    margin: 40px 0;
}

.faq-section h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #1e293b;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.faq-item h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.9rem;
}

.trust-item i {
    color: #10b981;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 16px;
    color: white;
    margin-top: 40px;
}

.final-cta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.final-cta .small-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 15px;
    margin-bottom: 0;
}

/* ===== MOBILE OPTIMIZATION STYLES (CONSOLIDATED) ===== */

/* Mobile Quick Course Selector */
.mobile-quick-course-selector {
    display: none;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 15px;
    border-bottom: 3px solid #10b981;
    position: relative;
    z-index: 99;
}

.quick-selector-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.quick-selector-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #1e293b;
}

.quick-selector-title i {
    color: #10b981;
    font-size: 1.2rem;
}

.quick-selector-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 16px;
    margin-bottom: 12px;
    background: white;
    cursor: pointer;
}

.quick-selector-select:focus {
    border-color: #10b981;
    outline: none;
}

.quick-enroll-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

/* Mobile Floating Action Button */
.mobile-fab {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid white;
    animation: pulseFAB 2s infinite;
}

.mobile-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

@keyframes pulseFAB {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile Sticky Enroll Bar */
.mobile-sticky-enroll {
    display: none;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    padding: 12px 15px;
    border-bottom: 2px solid #10b981;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sticky-enroll-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sticky-course-info {
    flex: 1;
}

.sticky-course-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 2px;
}

.sticky-course-price {
    color: #10b981;
    font-weight: 800;
    font-size: 16px;
}

.sticky-enroll-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Mobile Course Cards Optimization */
@media (max-width: 768px) {
    .mobile-quick-course-selector,
    .mobile-fab,
    .mobile-sticky-enroll {
        display: block;
    }
    
    /* Hide desktop elements on mobile */
    .categories-sidebar,
    .lessons-sidebar {
        display: none;
    }
    
    /* Make main content full width */
    .main-content {
        grid-column: 1 / -1;
        margin-top: 0;
        border-radius: 0;
        padding: 15px;
    }
    
    /* Show mobile course grid */
    .courses-grid-section {
        display: block !important;
        padding: 0 15px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Adjust hero section for mobile */
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    /* Make course cards more compact */
    .course-card {
        margin-bottom: 15px;
    }
    
    .course-content {
        padding: 15px;
    }
    
    /* Adjust modal for mobile */
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }
    
    .modal-content {
        border-radius: 0;
        height: 100%;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    /* Payment options grid for mobile */
    .row.g-3 {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .col-md-4 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .payment-option-card {
        padding: 15px 10px;
    }
    
    .payment-option-icon {
        font-size: 2rem;
    }
    
    .payment-option-title {
        font-size: 0.9rem;
    }
    
    .payment-option-desc {
        font-size: 0.7rem;
    }
    
    /* Form inputs */
    .form-control {
        font-size: 16px !important;
        padding: 12px;
    }
    
    /* Fix for iOS */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Hide desktop elements */
    .d-md-block {
        display: none !important;
    }
    
    /* Show mobile elements */
    .d-block.d-md-none {
        display: block !important;
    }
    
    /* Adjust the three column layout */
    .courses-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        margin: 0;
    }
    
    /* Hide categories and lessons on mobile by default */
    .categories-sidebar,
    .lessons-sidebar {
        display: none;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .quick-selector-card {
        padding: 12px;
    }
    
    .quick-selector-title {
        font-size: 0.9rem;
    }
    
    .quick-selector-select {
        padding: 10px;
        font-size: 14px;
    }
    
    .quick-enroll-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .sticky-enroll-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .sticky-course-title {
        font-size: 12px;
    }
    
    .sticky-course-price {
        font-size: 14px;
    }
    
    .mobile-fab {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

/* Responsive adjustments for course details */
@media (max-width: 768px) {
    .course-details-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        grid-column: span 1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .trust-badges {
        grid-template-columns: 1fr;
    }
}

/* ===== END OF CSS ===== */