/* ========================================
   EJADA Learning Platform - Main Stylesheet
   ======================================== */

/* ═══════════════════════════════════════════════════════════════════════════
   EJADA - Light Theme with Logo Colors (Teal/Green)
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* Logo Colors - Teal & Green Theme */
    --primary: #0d7377;
    --primary-dark: #084b4f;
    --primary-light: #e6f7f7;
    --secondary: #14b8a6;
    --secondary-dark: #0d9488;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    
    /* Light Theme - White Backgrounds */
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-section: #f8fafc;
    --bg-hover: #f1f5f9;
    
    /* Text Colors from Logo */
    --text-dark: #0f3a3c;
    --text-primary: #0d7377;
    --text-secondary: #14b8a6;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Neutral */
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Effects */
    --shadow: 0 4px 6px -1px rgba(13, 115, 119, 0.08), 0 2px 4px -1px rgba(13, 115, 119, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(13, 115, 119, 0.15), 0 8px 10px -6px rgba(13, 115, 119, 0.08);
    --shadow-colored: 0 10px 40px -10px rgba(13, 115, 119, 0.25);
    
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE - Deep Teal/Slate Theme
   ═══════════════════════════════════════════════════════════════════════════ */
body.dark-theme {
    --primary: #14b8a6;
    --primary-dark: #0d9488;
    --primary-light: rgba(20, 184, 166, 0.15);
    --secondary: #5eead4;
    --secondary-dark: #2dd4bf;
    
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-section: #1e293b;
    --bg-hover: #334155;
    
    --text-dark: #f8fafc;
    --text-primary: #14b8a6;
    --text-secondary: #5eead4;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    
    --dark: #f8fafc;
    --gray: #94a3b8;
    --light-gray: #1e293b;
    --border: #334155;
    --border-light: #475569;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    
    color-scheme: dark;
}

* { box-sizing: border-box; }

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-primary, var(--dark));
    background: var(--bg-primary, #fafbfe);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---- Dark Mode Toggle Button ---- */
/* ═══════════════════════════════════════════════════════════════════════════
   Dark Mode Toggle Button - Logo Colors
   ═══════════════════════════════════════════════════════════════════════════ */
.dark-mode-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 2px solid var(--primary, #0d7377);
    border-radius: 50%;
    color: var(--primary, #0d7377);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    z-index: 1010;
    overflow: hidden;
}

.dark-mode-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary, #0d7377);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.dark-mode-toggle:hover {
    color: #fff;
    border-color: var(--primary, #0d7377);
}

.dark-mode-toggle:hover::before {
    transform: scale(1);
}

/* Dark theme styles */
body.dark-theme .dark-mode-toggle {
    border-color: var(--secondary, #5eead4);
    color: var(--secondary, #5eead4);
}

body.dark-theme .dark-mode-toggle::before {
    background: var(--secondary, #5eead4);
}

body.dark-theme .dark-mode-toggle:hover {
    color: var(--dark, #0f172a);
}

/* ---- Top Bar - Light Theme ---- */
.top-bar {
    background: #ffffff;
    color: var(--text-dark, #0f3a3c);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.top-bar-info a, .top-bar-info span {
    color: var(--text-muted, #64748b);
    text-decoration: none;
    margin-left: 20px;
}
.top-bar-info i { margin-left: 5px; color: var(--primary, #0d7377); }
.top-bar-social a {
    color: var(--text-muted, #64748b);
    margin-right: 12px;
    font-size: 14px;
    transition: var(--transition);
}
.top-bar-social a:hover { color: var(--primary, #0d7377); }

/* ---- Navbar - Light Theme ---- */
.main-navbar {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(13, 115, 119, 0.08);
    padding: 10px 0;
    z-index: 1000;
}
.main-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 25px rgba(13, 115, 119, 0.12);
}
.brand-text {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-dark, #0f3a3c);
}
.brand-text .text-primary { color: var(--primary, #0d7377) !important; }
.main-navbar .nav-link {
    font-weight: 600;
    color: var(--text-dark, #0f3a3c) !important;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 15px;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--primary, #0d7377) !important;
    background: var(--primary-light, #e6f7f7);
}
.main-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
}
.main-navbar .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-dark, #0f3a3c);
}
.main-navbar .dropdown-item:hover {
    background: var(--primary-light, #e6f7f7);
    color: var(--primary, #0d7377);
}
.main-navbar .navbar-toggler {
    border-color: var(--border, #e2e8f0);
}
.main-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2813,115,119,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.main-navbar .btn-outline-secondary {
    border-color: var(--border, #e2e8f0);
    color: var(--text-dark, #0f3a3c);
}
.main-navbar .btn-outline-secondary:hover {
    background: var(--primary-light, #e6f7f7);
    color: var(--primary, #0d7377);
}
/* Nav Icon Button (bell, user icon) - Light Theme */
.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg-hover, #f1f5f9);
    color: var(--text-dark, #0f3a3c);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-size: 16px;
}
.nav-icon-btn:hover { background: var(--primary-light, #e6f7f7); color: var(--primary, #0d7377); }
.nav-icon-btn.dimmed {
    opacity: 0.4;
    pointer-events: none;
}
.nav-badge {
    position: absolute; top: -3px; right: -3px;
    background: #ef4444; color: #fff;
    font-size: 10px; font-weight: 700;
    border-radius: 50%; width: 17px; height: 17px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #ffffff;
}
/* Nav User Button - Light Theme */
.nav-user-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 50%;
    transition: var(--transition);
    outline: 2px solid var(--border, #e2e8f0);
    outline-offset: 2px;
}
.nav-user-btn:hover { outline-color: var(--primary, #0d7377); }
/* Mega Services Dropdown - Light Theme */
.mega-services-menu {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border: 1px solid var(--border, #e2e8f0);
    background: #fff;
}
.mega-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-radius: 12px;
    transition: background .15s;
    text-align: center;
    color: var(--text-dark, #0f3a3c);
    font-size: 13px;
    font-weight: 600;
}
.mega-service-item:hover { background: var(--primary-light, #e6f7f7); }
.mega-service-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
}
/* Dropdown dark theme for main navbar */
.main-navbar .dropdown-menu {
    background: #fff;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 200px;
}
.main-navbar .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-size: 14px;
    color: var(--dark, #0f2440);
    transition: var(--transition);
}
.main-navbar .dropdown-item:hover {
    background: var(--primary-light, rgba(26,58,92,0.07));
    color: var(--primary);
}

/* ---- Hero Section ---- */
.hero-section {
    background: var(--hero-gradient, linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #3b82f6 100%));
    min-height: 580px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; }
.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.7;
}
.hero-image { position: relative; z-index: 2; }
.hero-image img {
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}
.hero-stat-item {
    text-align: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 15px 20px;
}
.hero-stat-item h3 { font-size: 1.8rem; font-weight: 900; margin: 0; }
.hero-stat-item small { font-size: 12px; opacity: 0.85; }

/* ---- Section Styles ---- */
.section-header { margin-bottom: 50px; }
.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 12px;
}
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 0 auto 16px;
}
.section-subtitle { color: var(--gray); font-size: 16px; }

/* ---- Course Card ---- */
.course-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.course-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.course-card:hover .course-thumbnail img { transform: scale(1.05); }
.course-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}
.course-level {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 50px;
}
.course-body { padding: 18px; }
.course-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.course-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.course-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.course-instructor img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}
.course-instructor span { font-size: 13px; color: var(--gray); }
.course-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 14px;
}
.course-meta i { color: var(--primary); margin-left: 4px; }
.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    background: var(--light-gray);
}
.course-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
}
.course-price .old-price {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray);
    text-decoration: line-through;
    margin-right: 8px;
}
.course-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}
.course-rating .stars { color: var(--secondary); }

/* ---- Stats Section ---- */
.stats-section {
    background: var(--stats-gradient, linear-gradient(135deg, var(--primary-dark), var(--primary)));
    padding: 70px 0;
    color: #fff;
}
.stat-item {
    text-align: center;
    padding: 20px;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--secondary);
    display: block;
}
.stat-label {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 5px;
}
.stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 10px;
}

/* ---- Instructor Card ---- */
.instructor-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.instructor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.instructor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
    margin: 0 auto 16px;
    display: block;
}
.instructor-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.instructor-title { font-size: 14px; color: var(--gray); margin-bottom: 12px; }
.instructor-stats { display: flex; justify-content: center; gap: 20px; margin-top: 16px; }
.instructor-stat { text-align: center; }
.instructor-stat strong { display: block; font-weight: 700; }
.instructor-stat small { color: var(--gray); font-size: 11px; }

/* ---- About Section ---- */
.about-section { padding: 80px 0; }
.about-feature {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.about-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 1.3rem;
}
.about-feature h5 { font-weight: 700; margin-bottom: 5px; }
.about-feature p { color: var(--gray); font-size: 14px; margin: 0; }

/* ---- Category Card ---- */
.category-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}
.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}
.category-card:hover .category-icon {
    background: var(--primary);
    color: #fff;
}
.category-name { font-weight: 700; font-size: 16px; margin-bottom: 5px; }
.category-count { font-size: 13px; color: var(--gray); }

/* ---- Testimonial ---- */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.testimonial-quote { color: var(--primary); font-size: 2rem; margin-bottom: 10px; }
.testimonial-text { font-size: 15px; line-height: 1.8; color: var(--gray); margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-size: 15px; }
.testimonial-author small { color: var(--gray); font-size: 12px; }

/* ---- About Page (Dynamic) ---- */
.about-hero { padding: 56px 0; position: relative; overflow: hidden; }
.about-hero .swiper-pagination { bottom: 14px !important; }
.about-hero .swiper-pagination-bullet { background: rgba(255,255,255,0.55); opacity: 1; }
.about-hero .swiper-pagination-bullet-active { background: #fff; }
.about-hero-title { font-weight: 900; font-size: clamp(22px, 3vw, 36px); line-height: 1.35; margin-bottom: 14px; }
.about-hero-sub { font-size: 13px; opacity: 0.9; line-height: 1.8; margin-bottom: 12px; }
.about-hero-text { font-size: 13px; opacity: 0.9; line-height: 1.9; max-width: 820px; }
.about-hero-side-wrap { min-height: 220px; display: flex; align-items: center; justify-content: center; }
.about-hero-side { width: 100%; max-width: 430px; height: auto; object-fit: contain; filter: drop-shadow(0 12px 30px rgba(0,0,0,0.25)); }

.about-number-card { border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px 14px; background: #fff; text-align: center; height: 100%; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04); }
.about-number-value { font-weight: 900; font-size: 22px; color: #22a0c3; margin-bottom: 8px; }
.about-number-label { font-size: 12px; color: #475569; line-height: 1.7; }
.about-numbers-swiper .swiper-slide { height: auto; }
.about-numbers-swiper .swiper-pagination { margin-top: 10px; position: relative; bottom: 0 !important; }

.about-message-box { border-radius: 14px; padding: 22px 18px; background: #5b3fa8; color: #fff; min-height: 180px; display: flex; flex-direction: column; justify-content: center; }
.about-message-icon { font-size: 32px; text-align: center; margin-bottom: 16px; color: rgba(255,255,255,0.9); }
.about-message-title { font-weight: 900; font-size: 18px; margin-bottom: 12px; text-align: center; }
.about-message-text { font-size: 12.5px; line-height: 1.9; opacity: 0.95; text-align: center; }

/* Vision Card */
.vision-card { border-radius: 20px; padding: 32px 24px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; text-align: center; box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3); transition: transform 0.3s ease; }
.vision-card:hover { transform: translateY(-5px); }
.vision-icon { width: 70px; height: 70px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 28px; }
.vision-title { font-weight: 900; font-size: 22px; margin-bottom: 16px; }
.vision-text { font-size: 15px; line-height: 1.8; opacity: 0.95; }

/* Mission Card */
.mission-card { border-radius: 20px; padding: 32px 24px; background: linear-gradient(135deg, #5b3fa8 0%, #7c3aed 100%); color: #fff; text-align: center; box-shadow: 0 10px 30px rgba(91, 63, 168, 0.3); transition: transform 0.3s ease; }
.mission-card:hover { transform: translateY(-5px); }
.mission-icon { width: 80px; height: 80px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 32px; color: #fff; }
.mission-title { font-weight: 900; font-size: 22px; margin-bottom: 16px; }
.mission-text { font-size: 15px; line-height: 1.8; opacity: 0.95; }

/* Goal Card */
.goal-card { border-radius: 20px; padding: 32px 24px; background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); color: #fff; text-align: center; box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3); transition: transform 0.3s ease; }
.goal-card:hover { transform: translateY(-5px); }
.goal-icon { width: 80px; height: 80px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 32px; color: #fff; }
.goal-title { font-weight: 900; font-size: 22px; margin-bottom: 16px; }
.goal-text { font-size: 15px; line-height: 1.8; opacity: 0.95; }

/* Value Cards */
.value-card { border-radius: 16px; padding: 24px 16px; background: #fff; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: all 0.3s ease; border: 1px solid #e5e7eb; }
.value-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.value-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: #fff; font-size: 20px; }
.value-title { font-weight: 900; font-size: 16px; margin-bottom: 12px; color: #1e293b; }
.value-text { font-size: 13px; line-height: 1.7; color: #64748b; margin: 0; }

/* Timeline Styles */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; top: 0; right: 50%; transform: translateX(50%); width: 2px; height: 100%; background: linear-gradient(180deg, var(--primary, #1a56db), var(--secondary, #f59e0b)); }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:nth-child(even) .timeline-content { margin-right: 0; margin-left: 50%; }
.timeline-item:nth-child(even) .timeline-marker { right: 50%; }
.timeline-item:nth-child(odd) .timeline-content { margin-right: 50%; margin-left: 0; }
.timeline-item:nth-child(odd) .timeline-marker { right: 50%; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker { position: absolute; right: 50%; transform: translateX(50%); width: 50px; height: 50px; background: var(--primary, #1a56db); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; z-index: 1; box-shadow: 0 0 0 5px rgba(26, 86, 219, 0.2); }
.timeline-content { background: #fff; border-radius: 14px; padding: 24px; margin-right: 50%; margin-left: 0; border: 1px solid #e5e7eb; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.timeline-year { display: inline-block; background: var(--secondary, #f59e0b); color: #fff; padding: 4px 12px; border-radius: 20px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.timeline-title { font-weight: 900; font-size: 18px; margin-bottom: 8px; color: var(--primary, #1a56db); }
.timeline-text { font-size: 14px; line-height: 1.8; color: #475569; margin: 0; }

.about-testimonial-card { border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px; background: #fff; height: 100%; }
.about-testimonial-text { font-size: 12.5px; line-height: 1.9; color: #334155; min-height: 72px; }
.about-testimonial-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.about-testimonial-name { font-weight: 700; font-size: 13px; color: #5b3fa8; }
.about-testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3e8ff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-testimonial-avatar-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}
.about-testimonial-form { border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: #f8fafc; max-width: 860px; margin: 0 auto; }
.about-testimonial-form .form-label { font-size: 13px; font-weight: 700; color: #334155; }
.about-testimonial-form .form-control { border-radius: 12px; }
.about-testimonial-form textarea.form-control { min-height: 120px; }

/* ---- Home Stats (Our Achievements) ---- */
.home-stats { position: relative; padding: 70px 0; background: #f8fafc; overflow: hidden; }
.home-stats::before { content:''; position:absolute; top:-120px; left:-120px; width:260px; height:260px; border-radius:50%; background: rgba(16,185,129,0.12); filter: blur(1px); }
.home-stats::after  { content:''; position:absolute; bottom:-120px; right:-120px; width:260px; height:260px; border-radius:50%; background: rgba(99,102,241,0.12); filter: blur(1px); }
.home-stats-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom: 20px; position: relative; z-index: 2; }
.home-stats-title { font-weight: 900; font-size: clamp(22px, 3vw, 36px); margin: 0; color: #0f172a; }
.home-stats-subtitle { font-size: 13px; color: #64748b; margin-bottom: 6px; }
.home-stats-card { background:#fff; border:1px solid #e5e7eb; border-radius: 14px; padding: 20px 16px; text-align:center; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04); min-height: 110px; display:flex; flex-direction:column; justify-content:center; }
.home-stats-value { font-weight: 900; font-size: 26px; color: #2563eb; margin-bottom: 8px; }
.home-stats-label { font-size: 12px; color: #475569; line-height: 1.7; }
.home-stats-nav { gap: 10px; position: relative; z-index: 2; }
.home-stats-prev, .home-stats-next { width: 44px; height: 44px; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; color: #475569; display:flex; align-items:center; justify-content:center; transition: var(--transition); }
.home-stats-prev:hover, .home-stats-next:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }

/* ---- Home Newsletter ---- */
.home-newsletter { position: relative; overflow: hidden; padding: 70px 0; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.home-newsletter-shapes::before { content:''; position:absolute; top:-120px; right:-120px; width:260px; height:260px; border-radius:40px; transform: rotate(20deg); background: rgba(255,255,255,0.08); }
.home-newsletter-shapes::after  { content:''; position:absolute; bottom:-120px; left:-120px; width:260px; height:260px; border-radius:50%; background: rgba(0,0,0,0.12); }
.home-newsletter-media { position:absolute; left: 28px; bottom: -10px; width: 220px; height: 220px; opacity: 0.9; z-index: 1; pointer-events:none; }
.home-newsletter-media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.25)); }
.home-newsletter-form { display:flex; gap: 10px; justify-content:center; flex-wrap: wrap; }
.home-newsletter-form .form-control { max-width: 420px; border-radius: 14px; border: 0; }
.home-newsletter-form .btn { border-radius: 14px; }

/* ---- Home Mission Boxes ---- */
.home-message-box { background:#fff; border-radius: 16px; padding: 26px 18px; border: 1px solid var(--border); box-shadow: var(--shadow); height: 100%; text-align: center; }
.home-message-icon { width: 58px; height: 58px; border-radius: 16px; background: rgba(26,86,219,0.08); color: var(--primary); display:flex; align-items:center; justify-content:center; margin: 0 auto 14px; font-size: 22px; }
.home-message-icon img { width: 34px; height: 34px; object-fit: contain; }
.home-message-title { font-weight: 900; font-size: 18px; margin-bottom: 10px; color: #0f172a; }
.home-message-text { font-size: 13px; line-height: 1.9; color: #64748b; margin: 0; }

/* ---- Team Slider ---- */
.team-wrap { position: relative; padding: 10px 0 0; }
.team-card { background:#fff; border:1px solid var(--border); border-radius: 18px; padding: 26px 18px; box-shadow: var(--shadow); height: 100%; }
.team-avatar { width: 96px; height: 96px; border-radius: 50%; overflow:hidden; margin: 0 auto 14px; border: 4px solid var(--primary-light); }
.team-avatar img { width:100%; height:100%; object-fit: cover; }
.team-name { font-weight: 900; margin: 0 0 6px; font-size: 17px; }
.team-title { color: var(--primary); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.team-bio { color: #64748b; font-size: 12.5px; line-height: 1.9; min-height: 72px; }
.team-prev, .team-next { position:absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 2px solid #cbd5e1; background:#fff; color:#475569; z-index: 3; display:flex; align-items:center; justify-content:center; transition: var(--transition); }
.team-prev { right: -6px; }
.team-next { left: -6px; }
.team-prev:hover, .team-next:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-50%) scale(1.02); }
@media (max-width: 576px) {
  .team-prev { right: 6px; }
  .team-next { left: 6px; }
}

/* ---- CTA Section ---- */
.cta-section {
    background: var(--cta-gradient, linear-gradient(135deg, var(--secondary-dark), var(--secondary)));
    padding: 70px 0;
    text-align: center;
    color: #fff;
}
.cta-section h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 15px; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; }

/* ---- Learn CTA (Home) ---- */
.learn-cta { background: #f8fafc; overflow: hidden; }
.learn-cta-top { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 70px 0 140px; position: relative; }
.learn-cta-top::before { content:''; position:absolute; top:-120px; left:-120px; width:260px; height:260px; border-radius:50%; background: rgba(255,255,255,0.10); }
.learn-cta-top::after { content:''; position:absolute; top:40px; right:-90px; width:220px; height:220px; border-radius: 60px; transform: rotate(18deg); background: rgba(0,0,0,0.10); }
.learn-cta-badge { display:inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.14); font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.learn-cta-title { font-weight: 900; font-size: clamp(22px, 3vw, 40px); margin: 0 0 10px; }
.learn-cta-sub { opacity: 0.95; max-width: 820px; margin: 0 auto; line-height: 1.9; font-size: 14px; }

.learn-cta-features { margin-top: 36px; }
.learn-cta-features .row { --bs-gutter-x: 24px; --bs-gutter-y: 20px; }
.learn-cta-features .feature-item { text-align: center; color: #fff; }
.learn-cta-features .feature-item i,
.learn-cta-features .feature-item img { font-size: 34px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content:center; margin-bottom: 12px; opacity: 0.95; }
.learn-cta-features .feature-item h6 { font-weight: 900; margin-bottom: 8px; }
.learn-cta-features .feature-item p { font-size: 12.5px; line-height: 1.9; opacity: 0.9; margin: 0; }

.learn-cta-cards { margin-top: -90px; padding-bottom: 60px; position: relative; z-index: 2; }

.learn-cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.learn-cta-icon-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.learn-cta-icon-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.learn-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px; display:flex; align-items:center; justify-content: space-between; gap: 14px; min-height: 160px; }
.learn-card-body h3 { font-weight: 900; font-size: 22px; margin: 0 0 8px; color: #0f172a; }
.learn-card-body p { margin: 0 0 16px; color: #64748b; line-height: 1.9; font-size: 13px; }
.learn-card-media { width: 170px; flex-shrink: 0; display:flex; align-items:center; justify-content:center; position: relative; }
.learn-card-media img { width: 170px; height: 140px; object-fit: contain; filter: drop-shadow(0 12px 26px rgba(0,0,0,0.18)); }
.learn-card-blob { width: 140px; height: 140px; border-radius: 30px; background: rgba(13,115,119,0.14); transform: rotate(15deg); }

@media (max-width: 768px) {
  .learn-cta-top { padding-bottom: 170px; }
  .learn-card { flex-direction: column; text-align: center; }
  .learn-card-media { width: 100%; }
}

/* ---- Home Courses v2 ---- */
.home-latest-courses .course-card-v2 { border-radius: 18px; overflow: hidden; box-shadow: 0 10px 24px rgba(15,23,42,0.10); border: 1px solid rgba(148,163,184,0.35); }
.home-latest-courses .course-card-v2 .course-thumbnail { position: relative; }
.home-latest-courses .course-card-v2 .course-thumbnail img { height: 210px; object-fit: cover; width: 100%; }
.course-pill { position:absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.95); color: #3b82f6; padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; box-shadow: 0 10px 20px rgba(15,23,42,0.12); }
.home-latest-courses .course-card-v2 .course-body { padding: 18px 18px 10px; }
.home-latest-courses .course-card-v2 .course-title { font-size: 15px; font-weight: 900; line-height: 1.8; min-height: 54px; }
.home-latest-courses .course-card-v2 .course-meta { display:flex; justify-content: space-between; align-items:center; gap: 12px; border-top: 1px solid rgba(148,163,184,0.35); padding-top: 12px; margin-top: 10px; font-size: 12px; color: #64748b; }
.home-latest-courses .course-card-v2 .course-meta i { color: var(--secondary); margin-left: 6px; }
.course-footer-v2 { padding: 12px 18px 16px; }
.course-inst-avatar { width: 26px; height: 26px; border-radius: 999px; object-fit: cover; border: 2px solid rgba(59,130,246,0.25); }

/* ---- Buttons ---- */
.btn {
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}
.btn-secondary-custom {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}
.btn-secondary-custom:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #fff;
}
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-xl { padding: 18px 45px; font-size: 18px; border-radius: var(--radius); }

/* ---- Forms ---- */
.form-control, .form-select {
    font-family: 'Tajawal', sans-serif;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    padding: 10px 15px;
    font-size: 15px;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,86,219,0.1);
}
.form-label { font-weight: 600; margin-bottom: 6px; }

/* ---- Auth Pages ---- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a1e35 0%, #1a3a5c 40%, #7b5ea7 100%);
    padding: 40px 0;
}
.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* ---- Certificate Banner ---- */
.certificate-banner {
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
    border: 1px solid #f0e6c8;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.certificate-img-wrap {
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    padding: 20px;
}
.certificate-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.certificate-placeholder {
    width: 160px;
    height: 120px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f59e0b20, #f59e0b10);
    display: flex;
    align-items: center;
    justify-content: center;
}
.certificate-text {
    font-size: 14px;
    line-height: 1.9;
    color: #64748b;
}

/* ---- Course Sticky Bottom Bar ---- */
.course-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 1030;
}
.course-sticky-bar .btn {
    padding: 10px 24px;
    font-weight: 700;
}

/* ---- Course Objectives Tags ---- */
.course-objective-tag {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    transition: var(--transition);
}
.course-objective-tag:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* ---- Clean Professional Course Page ---- */
.course-clean-wrapper {
    background: #f8f9fa;
    padding: 30px 0 50px;
}

/* Breadcrumb */
.clean-breadcrumb {
    margin-bottom: 20px;
}
.clean-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}
.clean-breadcrumb .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}
.clean-breadcrumb .breadcrumb-item a:hover {
    color: #6f42c1;
}
.clean-breadcrumb .breadcrumb-item.active {
    color: #adb5bd;
    font-size: 14px;
}
.clean-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: #dee2e6;
}

/* Main Card */
.course-clean-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

/* Title */
.clean-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* CTA Section */
.clean-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.clean-cta-btn {
    display: inline-flex;
    align-items: center;
    background: #6f42c1;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.clean-cta-btn:hover {
    background: #5a32a3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111,66,193,0.3);
}
.clean-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e9ecef;
    color: #6c757d;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.clean-badge i {
    color: #6f42c1;
}

/* Description */
.clean-description {
    font-size: 15px;
    line-height: 1.9;
    color: #495057;
    margin-bottom: 24px;
}

/* Separator */
.clean-separator {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 24px 0;
}

/* Meta Info */
.clean-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.clean-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}
.clean-meta-item i {
    color: #6f42c1;
    font-size: 15px;
}

/* Video Wrapper */
.clean-video-wrapper {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    aspect-ratio: 16/9;
}
.clean-video-wrapper video,
.clean-video-wrapper iframe,
.clean-video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 991px) {
    .course-clean-card {
        padding: 24px;
    }
    .clean-title {
        font-size: 1.5rem;
    }
    .clean-cta-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    .clean-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .course-clean-wrapper {
        padding: 20px 0 40px;
    }
    .clean-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ---- Objectives & Highlights Section ---- */
.objectives-box,
.highlights-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    height: 100%;
}

.objectives-title,
.highlights-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.objectives-title i {
    color: #dc3545;
    font-size: 1.2rem;
}

.highlights-title i {
    color: #6f42c1;
    font-size: 1.2rem;
}

/* Objectives List */
.objectives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objectives-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
}

.objectives-list li:last-child {
    border-bottom: none;
}

.objectives-list li i {
    color: #28a745;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Highlights Videos Grid */
.highlights-videos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.highlight-video-item {
    position: relative;
}

.highlight-video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-video-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.highlight-video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(111,66,193,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s;
}

.highlight-video-wrapper:hover .highlight-play-btn {
    background: rgba(111,66,193,1);
    transform: translate(-50%, -50%) scale(1.1);
}

.highlight-video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 30px 12px 12px;
    font-size: 13px;
    font-weight: 500;
}

/* Responsive for Objectives & Highlights */
@media (max-width: 991px) {
    .objectives-box,
    .highlights-box {
        padding: 20px;
    }
    .highlights-videos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .highlights-videos {
        gap: 12px;
    }
    .highlight-play-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* ---- Advanced Curriculum Outline Box ---- */
.outline-box-border {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e4e4e7;
    box-shadow: 0 2px 0 0 rgba(212,212,216,1);
    padding: 24px;
}

.curriculum-main-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #495057;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f4f4f5;
}

/* Course Units */
.units-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.course-unit {
    width: 100%;
}

/* Unit Header */
.unit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: #f3e8ff;
    border-radius: 9px;
    border: 1px solid #d4d4d8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unit-header:hover {
    background: #ede9fe;
    border-color: #6639c6;
}

.unit-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: #6639c6;
    margin: 0;
    line-height: 1.5;
    text-align: right;
}

.unit-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lessons-count {
    font-size: 14px;
    font-weight: 500;
    color: #71717a;
}

.unit-arrow {
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.course-unit.expanded .unit-arrow {
    transform: rotate(180deg);
}

/* Unit Content - Lessons List */
.unit-content {
    list-style: none;
    padding: 16px 0;
    margin: 0;
    background: #fff;
}

.lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    transition: background 0.2s;
}

.lesson-item:hover {
    background: #fafafa;
}

.lesson-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.lesson-icon-wrap {
    width: 42px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-type-icon {
    font-size: 22px;
}

.lesson-type-icon.video {
    color: #6639c6;
}

.lesson-type-icon.pdf,
.lesson-type-icon.doc {
    color: #6b7280;
}

.lesson-type-icon.quiz {
    color: #f59e0b;
}

.lesson-title-text {
    font-size: 14px;
    font-weight: 500;
    color: #18181b;
    flex: 1;
}

.lesson-duration-mobile {
    font-size: 12px;
    font-weight: 500;
    color: #a1a1aa;
    display: none;
}

/* Side Actions */
.lesson-side-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-video-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 31px;
    padding: 0 16px;
    background: #6639c6;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.preview-video-btn:hover {
    background: #5a32a3;
    transform: scale(1.02);
}

.preview-video-btn i {
    font-size: 10px;
}

.lesson-duration-desktop {
    font-size: 12px;
    font-weight: 500;
    color: #a1a1aa;
    min-width: 50px;
    text-align: left;
}

/* Lesson Separator */
.lesson-separator {
    height: 1px;
    background: #f4f4f5;
    margin: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .outline-box-border {
        padding: 16px;
        border-radius: 14px;
    }
    
    .curriculum-main-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    .unit-header {
        padding: 12px 16px;
    }
    
    .unit-title {
        font-size: 14px;
    }
    
    .lesson-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .lesson-side-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .lesson-duration-mobile {
        display: inline;
    }
    
    .lesson-duration-desktop {
        display: none;
    }
    
    .preview-video-btn {
        height: 28px;
        padding: 0 12px;
        font-size: 11px;
    }
    
    .lesson-separator {
        margin: 0 16px;
    }
}

.auth-logo { text-align: center; margin-bottom: 30px; }
.auth-logo h2 { font-size: 28px; font-weight: 900; }
.auth-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    color: var(--gray);
    font-size: 13px;
}

/* ---- Dashboard ---- */
.dashboard-sidebar {
    width: 260px;
    background: #fff;
    border-left: 1px solid var(--border);
    min-height: 100vh;
    padding: 20px 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 999;
    overflow-y: auto;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}
.dashboard-content {
    margin-right: 260px;
    padding: 30px;
    min-height: 100vh;
    background: var(--light-gray);
}
.sidebar-logo {
    padding: 15px 20px 25px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.sidebar-logo h4 { font-size: 20px; font-weight: 900; margin: 0; }
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray) !important;
    font-weight: 500;
    font-size: 14px;
    border-radius: 0;
    transition: var(--transition);
    border-right: 3px solid transparent;
}
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: var(--primary-light);
    color: var(--primary) !important;
    border-right-color: var(--primary);
}
.sidebar-nav .nav-link i { width: 20px; text-align: center; }
.sidebar-section-title {
    padding: 15px 20px 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Admin Dashboard ---- */
.admin-sidebar {
    width: 260px;
    background: var(--dark);
    min-height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1001;
    overflow-y: auto;
    height: 100vh;
}
.admin-content {
    margin-right: 260px;
    min-height: 100vh;
    background: #f0f4f8;
    overflow-x: hidden;
}
.admin-topbar {
    background: #fff;
    padding: 15px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.admin-main { padding: 25px; }
.admin-sidebar .sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .sidebar-logo h4 { color: #fff; }
.admin-sidebar .sidebar-section-title { color: rgba(255,255,255,0.4); }
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7) !important;
    border-right-color: transparent;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-right-color: var(--secondary) !important;
}

.admin-sidebar .sidebar-group-toggle,
.admin-sidebar .sidebar-subgroup-toggle {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: right;
    justify-content: space-between;
    cursor: pointer;
}

.admin-sidebar .sidebar-group-toggle {
    display: flex;
    align-items: center;
}

.admin-sidebar .sidebar-subgroup-toggle {
    display: flex;
    align-items: center;
    padding-right: 34px;
}

.admin-sidebar .sidebar-group-caret {
    font-size: 12px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.admin-sidebar .sidebar-group-toggle[aria-expanded="true"] .sidebar-group-caret,
.admin-sidebar .sidebar-subgroup-toggle[aria-expanded="true"] .sidebar-group-caret {
    transform: rotate(180deg);
}

.admin-sidebar .sidebar-subnav {
    display: none;
}

.admin-sidebar .sidebar-subnav.open {
    display: block;
}

.admin-sidebar .sidebar-subnav .nav-link {
    padding-right: 34px;
}

.admin-sidebar .sidebar-subnav.sidebar-subnav-inner .nav-link {
    padding-right: 48px;
    font-size: 13px;
}

/* ---- Stats Cards (Admin) ---- */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card-icon {
    width: 65px;
    height: 65px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}
.stat-card-body h3 { font-size: 2rem; font-weight: 900; margin: 0; }
.stat-card-body p { color: var(--gray); font-size: 14px; margin: 0; }

/* ---- Data Tables ---- */
.data-table {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}
.data-table-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.data-table-header h5 { font-weight: 700; margin: 0; }
.table { margin: 0; }
.table th {
    background: var(--light-gray);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-top: none;
    color: var(--gray);
}
.table td { padding: 14px 16px; vertical-align: middle; font-size: 14px; }
.table-hover tbody tr:hover { background: var(--primary-light); }

/* ---- Badges ---- */
.badge { font-family: 'Tajawal', sans-serif; font-weight: 600; }
.badge-status-active { background: #d1fae5; color: #065f46; }
.badge-status-inactive { background: #fee2e2; color: #991b1b; }
.badge-status-pending { background: #fef3c7; color: #92400e; }

/* ---- Progress Bar ---- */
.progress-custom {
    height: 8px;
    border-radius: 50px;
    background: var(--light-gray);
    overflow: hidden;
}
.progress-custom .progress-bar {
    background: linear-gradient(90deg, var(--primary), #3b82f6);
    border-radius: 50px;
}

/* ---- Course Detail Page ---- */
.course-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #334155 100%);
    padding: 60px 0;
    color: #fff;
}
.course-hero-title { font-size: 2rem; font-weight: 800; margin-bottom: 15px; }
.course-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin: 20px 0; font-size: 14px; opacity: 0.9; }
.course-hero-meta i { color: var(--secondary); margin-left: 6px; }
.course-sidebar-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    position: sticky;
    top: 80px;
}
.course-sidebar-video { position: relative; }
.course-sidebar-video img { width: 100%; height: 200px; object-fit: cover; }
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.video-overlay i { font-size: 3rem; color: #fff; transition: var(--transition); }
.video-overlay:hover i { transform: scale(1.2); }
.course-sidebar-body { padding: 25px; }
.course-price-big { font-size: 2.5rem; font-weight: 900; color: var(--primary); }
.course-features { list-style: none; padding: 0; margin: 20px 0; }
.course-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.course-features li:last-child { border-bottom: none; }
.course-features li i { color: var(--primary); width: 18px; }

/* ---- Curriculum / Accordion ---- */
.curriculum-section { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.curriculum-header {
    background: var(--light-gray);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 700;
}
.curriculum-header:hover { background: #e8edf5; }
.curriculum-lessons { border-top: 1px solid var(--border); }
.lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    transition: var(--transition);
}
.lesson-item:last-child { border-bottom: none; }
.lesson-item:hover { background: var(--primary-light); }
.lesson-item i { color: var(--primary); width: 20px; }
.lesson-duration { margin-right: auto; color: var(--gray); font-size: 13px; }

/* ---- Certificate ---- */
.certificate-preview {
    background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
    border: 3px solid var(--secondary);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.certificate-preview::before {
    content: '🏆';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    opacity: 0.1;
}
.certificate-title { font-size: 3rem; font-weight: 900; color: var(--secondary-dark); margin-bottom: 10px; }
.certificate-subtitle { font-size: 1.1rem; color: var(--gray); margin-bottom: 30px; }
.certificate-name { font-size: 2rem; font-weight: 700; color: var(--primary-dark); margin: 20px 0; border-bottom: 2px solid var(--secondary); padding-bottom: 10px; display: inline-block; }
.certificate-course { font-size: 1.2rem; color: var(--dark); margin-bottom: 30px; }
.certificate-number { font-size: 13px; color: var(--gray); }

/* ---- Blog ---- */
.blog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-thumbnail { height: 220px; overflow: hidden; }
.blog-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-thumbnail img { transform: scale(1.05); }
.blog-body { padding: 20px; }
.blog-meta { display: flex; gap: 15px; font-size: 12px; color: var(--gray); margin-bottom: 10px; }
.blog-title { font-weight: 700; font-size: 17px; margin-bottom: 10px; color: var(--dark); }
.blog-excerpt { color: var(--gray); font-size: 14px; line-height: 1.7; }

/* ---- Partners ---- */
.partners-section { padding: 60px 0; background: var(--light-gray); }
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}
.partner-logo:hover { filter: none; opacity: 1; }
.partner-logo img { max-height: 60px; max-width: 150px; object-fit: contain; }

/* ---- Footer ---- */
.main-footer { background: var(--dark); color: rgba(255,255,255,0.8); margin-top: 80px; }
.footer-top { padding: 60px 0 40px; }
.footer-brand .brand-logo { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 15px; }
.footer-brand .brand-logo span { color: var(--secondary); }
.footer-brand p { font-size: 14px; line-height: 1.8; opacity: 0.8; }
.footer-social { margin-top: 20px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    margin-left: 8px;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 3px; background: var(--secondary); border-radius: 2px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--secondary); padding-right: 5px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 15px; font-size: 14px; align-items: flex-start; }
.footer-contact i { color: var(--secondary); margin-top: 3px; width: 16px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-contact a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--secondary); }

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 9999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---- Continuous Scrolling Logos Carousel ---- */
.logos-carousel-section {
    padding: 60px 0;
    background: var(--bg-primary, #ffffff);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.logos-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 30px 0;
}

.logos-carousel-container {
    display: flex;
    animation: scrollLogos 20s linear infinite;
    gap: 30px;
    padding: 20px 0;
    will-change: transform;
}

.logos-carousel-container:hover {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

.logo-item {
    flex: 0 0 auto;
    min-width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: var(--radius);
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 15px;
    transition: var(--transition);
    filter: grayscale(50%);
    opacity: 0.7;
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--primary);
    background: var(--bg-secondary, #f8f9fa);
}

.logo-item img {
    max-height: 60px;
    max-width: 130px;
    object-fit: contain;
}

body.dark-theme .logo-item {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .logo-item:hover {
    border-color: var(--secondary);
}

/* ---- Dark Mode Styles for All Components ---- */

body.dark-theme .main-navbar {
    background: #0f172a;
    border-bottom: 1px solid #334155;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
body.dark-theme .top-bar {
    background: #1e293b;
    color: #f1f5f9;
    border-bottom: 1px solid #334155;
}
body.dark-theme .top-bar-info a,
body.dark-theme .top-bar-info span,
body.dark-theme .top-bar-social a {
    color: #94a3b8;
}

body.dark-theme .mega-services-menu {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .mega-service-item {
    color: #f1f5f9;
}

body.dark-theme .mega-service-item:hover {
    background: rgba(var(--primary), 0.1);
}

body.dark-theme .course-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .course-card:hover {
    border-color: var(--secondary);
}

body.dark-theme .course-title,
body.dark-theme .section-title {
    color: #f1f5f9;
}

body.dark-theme .section-subtitle,
body.dark-theme .course-instructor span,
body.dark-theme .course-meta {
    color: #cbd5e1;
}

body.dark-theme .instructor-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .instructor-name {
    color: #f1f5f9;
}

body.dark-theme .category-card {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-theme .category-card:hover {
    border-color: var(--secondary);
}

body.dark-theme .testimonial-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .testimonial-text {
    color: #cbd5e1;
}

body.dark-theme .blog-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .blog-title {
    color: #f1f5f9;
}

body.dark-theme .blog-excerpt {
    color: #cbd5e1;
}

body.dark-theme .form-control,
body.dark-theme .form-select {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus {
    background: #1e293b;
    border-color: var(--primary);
    color: #f1f5f9;
}

body.dark-theme .form-label {
    color: #f1f5f9;
}

body.dark-theme .data-table {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .data-table-header {
    border-bottom-color: #334155;
}

body.dark-theme .table th {
    background: #0f172a;
    border-color: #334155;
}

body.dark-theme .table td {
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-theme .table-hover tbody tr:hover {
    background: rgba(26, 86, 219, 0.1);
}

body.dark-theme .dashboard-sidebar {
    background: #1e293b;
    border-left-color: #334155;
}

body.dark-theme .dashboard-sidebar .nav-link {
    color: #cbd5e1 !important;
}

body.dark-theme .dashboard-sidebar .nav-link:hover,
body.dark-theme .dashboard-sidebar .nav-link.active {
    background: rgba(26, 86, 219, 0.1);
    color: var(--secondary) !important;
}

body.dark-theme .dashboard-content {
    background: #0f172a;
}

body.dark-theme .sidebar-section-title {
    color: #94a3b8;
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 95px;
    left: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---- Page Hero ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 0;
    color: #fff;
    text-align: center;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; }
.breadcrumb { justify-content: center; background: transparent; }
.breadcrumb-item a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,0.6); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- Utilities ---- */
.text-primary { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.bg-primary-light { background: var(--primary-light) !important; }
.rounded-xl { border-radius: var(--radius) !important; }
.shadow-custom { box-shadow: var(--shadow) !important; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .dashboard-sidebar, .admin-sidebar { transform: translateX(260px); }
    .dashboard-sidebar.open, .admin-sidebar.open { transform: translateX(0); }
    .dashboard-content, .admin-content { margin-right: 0; }
    .hero-stats { flex-wrap: wrap; gap: 15px; }
}
@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 60px 0; }
    .hero-title { font-size: 1.7rem; }
    .top-bar { display: none; }
    .stat-number { font-size: 2.5rem; }
    .admin-main { padding: 15px; }
}

/* ---- Slider Hero (Swiper) ---- */
.hero-slider-section {
    position: relative;
    overflow: hidden;
    min-height: 580px;
    background: transparent;
}
.hero-swiper {
    width: 100%;
    height: 100%;
    min-height: 580px;
}
.hero-swiper .swiper-slide {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 6s ease;
    z-index: 0;
}

.slide-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 6s ease;
}

.swiper-slide-active .slide-bg-img {
    transform: scale(1);
}
.swiper-slide-active .slide-bg {
    transform: scale(1);
}
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 100%);
    z-index: 1;
}

/* ---- First Slide (White Mock) ---- */
.hero-swiper .swiper-slide.is-first-slide {
    align-items: stretch;
}

.hero-swiper .swiper-slide.is-first-slide .slide-overlay {
    background: rgba(255,255,255,0.92);
}

.hero-swiper .swiper-slide.is-first-slide.no-bg-image .slide-bg {
    display: none;
}

.hero-swiper .swiper-slide.is-first-slide .slide-content {
    color: var(--dark);
    padding: 30px 0 0;
}

.hero-swiper .swiper-slide.is-first-slide .slide-content h1,
.hero-swiper .swiper-slide.is-first-slide .slide-content .hero-title-text {
    color: #22a0c3;
}

.hero-swiper .swiper-slide.is-first-slide .btn.btn-secondary-custom {
    background: #22a0c3;
    border-color: #22a0c3;
    color: #fff;
}

.hero-swiper .swiper-slide.is-first-slide .btn.btn-secondary-custom:hover,
.hero-swiper .swiper-slide.is-first-slide .btn.btn-secondary-custom:focus {
    background: #1a86a4;
    border-color: #1a86a4;
    color: #fff;
}

.hero-swiper .swiper-slide.is-first-slide .slide-content p,
.hero-swiper .swiper-slide.is-first-slide .slide-content .hero-subtitle-text {
    color: rgba(15, 23, 42, 0.7);
}

.hero-swiper .swiper-slide.is-first-slide .hero-first-decor {
    opacity: 1;
}

.hero-swiper .swiper-slide.is-first-slide .hero-first-circle {
    border-color: rgba(15, 23, 42, 0.08);
}

.hero-swiper .swiper-slide.is-first-slide .hero-side-image-wrap {
    height: 100%;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    align-items: flex-end;
}

.hero-swiper .swiper-slide.is-first-slide .hero-side-image {
    max-height: 560px;
}
.slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 80px 0;
    width: 100%;
}
.slide-content .slide-badge {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.2s;
}
.slide-content h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease 0.35s;
}
.slide-content p {
    font-size: 1.15rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.5s;
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 30px;
}
.slide-content .slide-btns {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.65s;
}
.swiper-slide-active .slide-content .slide-badge,
.swiper-slide-active .slide-content h1,
.swiper-slide-active .slide-content p,
.swiper-slide-active .slide-content .slide-btns {
    opacity: 1;
    transform: translateY(0);
}
.slide-image-wrap {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease 0.4s;
}
.swiper-slide-active .slide-image-wrap {
    opacity: 1;
    transform: translateX(0);
}
.slide-image-wrap img {
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}
.hero-stats-bar {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.hero-stat-pill {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.hero-stat-pill strong { font-size: 1.4rem; font-weight: 900; }
.hero-stat-pill span { font-size: 13px; opacity: 0.85; }
.hero-swiper .swiper-pagination-bullet {
    width: 10px; height: 10px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
    transition: all 0.3s;
}
.hero-swiper .swiper-pagination-bullet-active {
    background: var(--secondary);
    width: 30px;
    border-radius: 5px;
}

.hero-copy {
    text-align: right;
    max-width: 620px;
}

.slide-logo-wrap {
    margin-bottom: 18px;
}

.slide-logo {
    max-height: 54px;
    max-width: 220px;
    object-fit: contain;
    display: inline-block;
    background: rgba(255,255,255,0.92);
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.hero-title-text {
    margin-bottom: 18px;
}

.hero-subtitle-text {
    margin-bottom: 32px;
}

.slide-number-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 3;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: #fff;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}

.hero-first-decor {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
    display: none;
}

@media (min-width: 576px) {
    .hero-first-decor { display: block; }
}

.hero-first-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
}

/* Resized circles to match smaller decor wrapper */
.hero-first-circle.c1 { left: 98px; top: 98px; width: 124px; height: 124px; }
.hero-first-circle.c2 { left: 60px; top: 60px; width: 200px; height: 200px; }
.hero-first-circle.c3 { left: 28px; top: 28px; width: 264px; height: 264px; }
.hero-first-circle.c4 { left: 0; top: 0; width: 320px; height: 320px; }

.hero-side-image-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    min-height: 360px;
    padding-top: 30px;
    padding-bottom: 0;
}

.hero-side-image {
    width: 100%;
    max-width: 520px;
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 28px 60px rgba(0,0,0,0.35));
}

.hero-float-stats {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-float-stat {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 14px 35px rgba(2, 8, 23, 0.18);
    min-width: 170px;
    backdrop-filter: blur(6px);
}

.hero-float-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.14);
    color: var(--secondary);
    flex-shrink: 0;
}

.hero-float-icon i {
    font-size: 18px;
}

.hero-float-number {
    font-weight: 900;
    color: var(--dark);
    line-height: 1.1;
}

.hero-float-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.7);
    line-height: 1.2;
}

.hero-float-stat.pos-1 { top: 10px; left: 10px; }
.hero-float-stat.pos-2 { top: 10px; right: 10px; }
.hero-float-stat.pos-3 { bottom: 90px; right: 10px; }
.hero-float-stat.pos-4 { bottom: 90px; left: 10px; }

@media (max-width: 992px) {
    .hero-float-stats { display: none; }
}

.hero-swiper .swiper-slide.is-first-slide .hero-float-stat {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
}

.hero-swiper .swiper-slide.is-first-slide .hero-float-number {
    color: rgba(15, 23, 42, 0.95);
}

.hero-swiper .swiper-slide.is-first-slide .hero-float-label {
    color: rgba(15, 23, 42, 0.65);
}

@media (max-width: 992px) {
    .hero-side-image-wrap {
        justify-content: center;
        min-height: 220px;
        margin-bottom: 18px;
    }
    .hero-copy { text-align: center; margin: 0 auto; }
    .slide-btns { justify-content: center; }
}
.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    width: 48px !important;
    height: 48px !important;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: 900;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.hero-no-slider {
    background: var(--hero-gradient, linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #3b82f6 100%));
    min-height: 580px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.hero-no-slider::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero-no-slider::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -5%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

/* ---- Floating Animation ---- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-fadeInUp { animation: fadeInUp 0.7s ease forwards; }
.animate-scaleIn { animation: scaleIn 0.5s ease forwards; }

/* ════════════════════════════════════
   Partners New Section
   ════════════════════════════════════ */
.partners-new-section {
    background: #fff;
    border-top: 1px solid var(--border, #e8ecf0);
    border-bottom: 1px solid var(--border, #e8ecf0);
    padding: 18px 0;
    overflow: hidden;
}
.partners-inner {
    display: flex;
    align-items: center;
    gap: 0;
}
/* ── Title column ── */
.partners-title-col {
    flex-shrink: 0;
    padding: 10px 28px 10px 20px;
    border-left: 3px solid var(--secondary, #f59e0b);
    margin-left: 20px;
    position: relative;
    z-index: 3;
    background: #fff;
}
.partners-title-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    font-size: 18px;
    font-weight: 900;
    color: var(--primary, #1a3a5c);
    white-space: nowrap;
}
.partners-title-text .text-secondary {
    color: var(--secondary, #f59e0b) !important;
}
/* ── Track ── */
.partners-track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.partners-track-wrap::before,
.partners-track-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.partners-track-wrap::before {
    right: 0;
    background: linear-gradient(to left, #fff 30%, transparent);
}
.partners-track-wrap::after {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 100%);
}
/* ═══════════════════════════════════════════════════════════════════════════
   Partners Marquee - LEFT TO RIGHT (LTR) Direction
   ═══════════════════════════════════════════════════════════════════════════ */
.partners-track {
    display: flex;
    gap: 14px;
    width: max-content;
    /* LTR direction: start from -50% and go to 0 (left to right) */
    animation: partnersScrollLTR 55s linear infinite;
    align-items: center;
    padding: 6px 0;
}
.partners-track:hover { animation-play-state: paused; }

/* Left to Right animation for RTL sites */
@keyframes partnersScrollLTR {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
/* ── Logo Box ── */
.partner-box {
    flex-shrink: 0;
    width: 160px;
    height: 80px;
    border: 1.5px solid #e8ecf0;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    overflow: hidden;
}
.partner-box:hover {
    border-color: var(--primary-light, rgba(26,58,92,0.25));
    box-shadow: 0 4px 16px rgba(26,58,92,0.08);
    transform: translateY(-2px);
}
.partner-box img {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
    filter: grayscale(80%);
    opacity: 0.75;
    transition: filter 0.25s, opacity 0.25s;
}
.partner-box:hover img { filter: none; opacity: 1; }
.partner-box span {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    word-break: break-word;
}
/* ── Mobile ── */
@media (max-width: 767px) {
    .partners-inner { flex-direction: column; gap: 12px; }
    .partners-title-col {
        border-left: none;
        border-bottom: 3px solid var(--secondary, #f59e0b);
        margin-left: 0;
        padding: 10px 20px 12px;
        text-align: center;
        width: 100%;
    }
    .partners-title-text { flex-direction: row; gap: 6px; justify-content: center; font-size: 16px; }
    .partners-track-wrap { width: 100%; }
    .partner-box { width: 130px; height: 68px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PARTNERS SECTION V2 - Test Carousel Implementation
   ═══════════════════════════════════════════════════════════════════════════ */
.partners-section-v2 {
    background: var(--bg-primary, #ffffff);
    padding: 40px 0;
    overflow: hidden;
    border-top: 1px solid var(--border, #e8ecf0);
    border-bottom: 1px solid var(--border, #e8ecf0);
}
.partners-container {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
/* ── Title Block (Right side in RTL) ── */
.partners-title-block {
    flex-shrink: 0;
    padding: 15px 25px;
    border-left: 4px solid var(--secondary, #14b8a6);
    background: linear-gradient(135deg, var(--primary-light, #e6f7f7) 0%, transparent 100%);
    border-radius: 0 12px 12px 0;
    min-width: 200px;
}
.partners-title-content {
    text-align: right;
}
.partners-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.partners-heading {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.3;
    margin: 0;
}
.partners-heading .word-primary {
    color: var(--primary, #0d7377);
}
.partners-heading .word-secondary {
    color: var(--secondary, #14b8a6);
}
/* ── Carousel Wrapper ── */
.partners-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
/* ═══════════════════════════════════════════════════════════════════════════
   CONTINUOUS SCROLL - LEFT TO RIGHT (18 seconds)
   ═══════════════════════════════════════════════════════════════════════════ */
.partners-carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    /* LEFT TO RIGHT animation - 18 seconds for complete cycle */
    animation: partnersLTR 18s linear infinite;
    will-change: transform;
    padding: 10px 0;
}
.partners-carousel-track:hover {
    animation-play-state: paused;
}
/* Keyframes: Start from -33.33% (one third back) to 0 (left to right) */
@keyframes partnersLTR {
    from { transform: translateX(-33.33%); }
    to   { transform: translateX(0); }
}
/* ── Logo Card ── */
.partner-logo-card {
    flex: 0 0 auto;
    width: 150px;
    height: 85px;
    background: var(--bg-card, #ffffff);
    border: 2px solid var(--border, #e2e8f0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    transition: all 0.3s ease;
    filter: grayscale(60%);
    opacity: 0.8;
}
.partner-logo-card:hover {
    filter: grayscale(0%);
    opacity: 1;
    border-color: var(--primary, #0d7377);
    box-shadow: 0 8px 25px rgba(13, 115, 119, 0.15);
    transform: translateY(-3px) scale(1.02);
}
.partner-logo-card img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}
.partner-name-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary, #0d7377);
    text-align: center;
}
/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    .partners-container {
        flex-direction: column;
        gap: 20px;
    }
    .partners-title-block {
        border-left: none;
        border-bottom: 4px solid var(--secondary, #14b8a6);
        border-radius: 12px 12px 0 0;
        text-align: center;
        width: 100%;
    }
    .partners-title-content {
        text-align: center;
    }
    .partners-heading {
        font-size: 20px;
    }
    .partners-carousel-wrapper {
        width: 100%;
    }
    .partner-logo-card {
        width: 130px;
        height: 75px;
    }
    .partners-carousel-track {
        animation-duration: 15s; /* Faster on mobile */
    }
}

/* ── Keep old marquee CSS for backward compat ── */
.partners-marquee-wrap { overflow: hidden; position: relative; }
.partners-marquee { display: flex; gap: 40px; width: max-content; animation: marquee 25s linear infinite; }
.partners-marquee:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partner-logo-item { display: flex; align-items: center; justify-content: center; height: 70px; min-width: 130px; opacity: 0.65; transition: .3s; }
.partner-logo-item:hover { opacity: 1; }
.partner-logo-item img { max-height: 50px; max-width: 120px; object-fit: contain; }

/* ---- Loading ---- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.spinner-border { color: var(--primary); }

/* ---- Notification ---- */
.notification-menu { width: 320px; max-height: 400px; overflow-y: auto; }

/* ---- Video Player ---- */
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; border-radius: var(--radius); }

/* ---- Rating Stars ---- */
.star-rating { display: flex; gap: 4px; }
.star-rating .star { color: #d1d5db; cursor: pointer; font-size: 1.5rem; transition: var(--transition); }
.star-rating .star.active, .star-rating .star:hover { color: var(--secondary); }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-state i { font-size: 4rem; margin-bottom: 20px; opacity: 0.3; }
.empty-state h4 { font-weight: 700; margin-bottom: 10px; }

/* ---- Search Bar ---- */
.search-bar { position: relative; }
.search-bar input { padding-right: 45px; border-radius: 50px; }
.search-bar i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--gray); }

/* ---- Alert Custom ---- */
.alert { border: none; border-radius: var(--radius-sm); font-size: 14px; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1e40af; }
.alert-warning { background: #fef3c7; color: #92400e; }

/* ---- Filter Bar ---- */
.filter-bar {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

/* ---- Pagination ---- */
.pagination .page-link {
    border: none;
    border-radius: var(--radius-sm);
    margin: 0 3px;
    color: var(--dark);
    font-weight: 600;
    padding: 8px 14px;
}
.pagination .page-link:hover, .pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
}
