@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

@font-face {
    font-family: 'AbdoMaster';
    src: url('../font/abdomaster-bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

.font-abdo {
    font-family: 'AbdoMaster', 'Tajawal', sans-serif !important;
}

:root {
    --primary-green: #0C934E;
    --primary-green-hover: #0a7a41;
    --primary-green-light: rgba(12, 147, 78, 0.08);
    --secondary-orange: #ED7D2B;
    --secondary-orange-hover: #db6c1e;
    --dark-navy: #1D1D1D;
    --text-muted: #6c757d;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

body {
    font-family: 'Tajawal', sans-serif !important;
    background-color: var(--white);
    color: var(--dark-navy);
}
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 700;
}

/* =========================================
   NAVBAR V2
   ========================================= */
.header-redesign {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}
.header-redesign.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: transparent;
}
.navbar-redesign {
    padding: 12px 0;
}
.navbar-redesign .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-name {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 800;
    font-size: 22px;
    color: var(--primary-green);
}
.nav-links-center {
    background: transparent !important;
    padding-left: 0 !important;
}
.nav-links-center .nav-item {
    margin: 0 4px;
    position: relative;
}
.nav-links-center .nav-item::before { display: none; }
.nav-links-center .nav-link {
    color: var(--dark-navy) !important;
    font-weight: 500 !important;
    font-size: 15px;
    padding: 8px 14px !important;
    background: transparent !important;
    border-radius: var(--radius-sm) !important;
    transition: all 0.3s ease;
    position: relative;
}
.nav-links-center .nav-item.active .nav-link {
    color: var(--primary-green) !important;
    font-weight: 700 !important;
    background: var(--primary-green-light) !important;
}
.nav-links-center .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-green);
    border-radius: 50%;
}
.nav-links-center .nav-link:hover {
    color: var(--primary-green) !important;
    background: var(--primary-green-light) !important;
}

/* Nav Actions */
.nav-actions-right { gap: 12px; }
.nav-search-btn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    color: var(--dark-navy) !important;
    font-size: 14px;
    cursor: pointer;
}
.nav-search-btn i { font-size: 16px; }
.search-label { font-weight: 500; }

/* User Dropdown */
.user-profile-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 12px !important;
    border-radius: 50px !important;
    border: 1px solid #e8e8e8 !important;
    background: var(--light-bg) !important;
    transition: all 0.3s ease;
}
.user-profile-btn:hover { border-color: var(--primary-green) !important; }
.user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary-green);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 14px;
}
.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-navy);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-dropdown-menu {
    border: none !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: var(--radius-md) !important;
    padding: 10px !important;
    min-width: 200px;
    top: 50px !important;
}
.user-dropdown-menu .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.user-dropdown-menu .dropdown-item:hover {
    background: var(--primary-green-light);
    color: var(--primary-green);
}

/* Nav Buttons */
.btn-nav-outline {
    border: 1.5px solid #ddd !important;
    color: var(--dark-navy) !important;
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}
.btn-nav-outline:hover {
    border-color: var(--primary-green) !important;
    color: var(--primary-green) !important;
}
.btn-nav-primary {
    background: var(--primary-green) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}
.btn-nav-primary:hover {
    background: var(--primary-green-hover) !important;
    transform: translateY(-1px);
}

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}
.search-overlay.active {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.search-overlay-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}
.search-overlay-inner form {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--light-bg);
    border-radius: 50px;
    padding: 5px 20px;
    position: relative;
}
.search-input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    outline: none;
    color: var(--dark-navy);
}
.search-submit-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-submit-btn:hover { background: var(--primary-green-hover); }
.search-close-btn {
    background: none; border: none;
    font-size: 20px; color: var(--text-muted);
    cursor: pointer; padding: 10px;
    transition: all 0.3s ease;
}
.search-close-btn:hover { color: var(--dark-navy); }

/* =========================================
   HERO SECTION V2
   ========================================= */
.hero-section-v2 {
    padding: 20px 0 40px;
}
.hero-card-v2 {
    background: var(--primary-green);
    border-radius: var(--radius-lg);
    padding: 50px 50px 50px 30px;
    position: relative;
    overflow: hidden;
    color: var(--white);
}
.hero-card-v2::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}
.hero-card-v2::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -100px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}
.hero-content-v2 { position: relative; z-index: 2; }
.hero-content-v2 h1 {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 20px;
    color: var(--white);
}
.text-orange { color: var(--secondary-orange); }
.hero-description {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 550px;
    color: rgba(255,255,255,0.9);
}

/* Hero Stats */
.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.hero-avatars {
    display: flex;
    align-items: center;
    gap: 12px;
}
.avatar-stack {
    display: flex;
    direction: ltr;
}
.avatar-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 3px solid var(--primary-green);
    display: flex; align-items: center; justify-content: center;
    margin-left: -10px;
    position: relative;
}
.avatar-circle:first-child { margin-left: 0; }
.stat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat-label { font-size: 12px; opacity: 0.85; }
.stat-number { font-size: 16px; font-weight: 800; color: var(--white); }

/* Hero Buttons */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.btn-hero-primary {
    background: var(--secondary-orange);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}
.btn-hero-primary:hover {
    background: var(--secondary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(237,125,43,0.4);
    color: var(--white);
    text-decoration: none;
}
.btn-hero-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-sm);
    padding: 11px 28px;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
    text-decoration: none;
}

/* Hero Image */
.hero-image-v2 {
    position: relative;
    z-index: 2;
}
.hero-main-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-main-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* Floating Badges */
.hero-floating-badge {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    box-shadow: var(--shadow-lg);
    z-index: 5;
    animation: floatBadge 3s ease-in-out infinite;
}
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.badge-rating {
    top: -15px;
    right: 20px;
    text-align: center;
    animation-delay: 0s;
}
.badge-rating .badge-stars {
    color: #f59e0b;
    font-size: 12px;
    margin-bottom: 2px;
    display: flex;
    gap: 2px;
    justify-content: center;
}
.badge-rating .badge-score {
    font-size: 22px;
    font-weight: 900;
    color: var(--dark-navy);
    line-height: 1;
}
.badge-rating .badge-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}
.badge-courses {
    top: 40%;
    left: -30px;
    text-align: center;
    animation-delay: 0.5s;
}
.badge-courses .badge-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-green);
    line-height: 1;
}
.badge-courses .badge-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}
.badge-success {
    bottom: -15px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation-delay: 1s;
}
.badge-success .badge-icon {
    color: var(--primary-green);
    font-size: 24px;
}
.badge-success .badge-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark-navy);
}
.badge-success .badge-sublabel {
    font-size: 10px;
    color: var(--text-muted);
}

/* =========================================
   Buttons (reusable)
   ========================================= */
.btn-redesign-primary {
    background-color: var(--primary-green) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-redesign-primary:hover {
    background-color: var(--primary-green-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.btn-redesign-secondary {
    background-color: var(--secondary-orange) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-redesign-secondary:hover {
    background-color: var(--secondary-orange-hover) !important;
    transform: translateY(-2px);
}
.btn-redesign-outline {
    background-color: transparent !important;
    color: var(--white) !important;
    border: 1px solid var(--white) !important;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-redesign-outline:hover {
    background-color: rgba(255,255,255,0.1) !important;
}

/* =========================================
   Course Cards
   ========================================= */
.course-card-redesign {
    background: var(--white);
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.course-card-redesign:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.course-card-img { position: relative; height: 200px; }
.course-card-img img { width: 100%; height: 100%; object-fit: cover; }
.course-badge {
    position: absolute; top: 15px; right: 15px;
    background: var(--secondary-orange); color: var(--white);
    padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 700;
}
.course-card-body {
    padding: 20px; flex-grow: 1;
    display: flex; flex-direction: column;
}
.course-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--dark-navy); }
.course-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; line-height: 1.6; }
.course-features { list-style: none; padding: 0; margin: 0 0 20px 0; }
.course-features li {
    font-size: 13px; color: var(--text-muted);
    margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.course-features li i { color: var(--primary-green); }
.course-footer {
    margin-top: auto; display: flex; align-items: center;
    justify-content: space-between; padding-top: 15px; border-top: 1px solid #eee;
}
.course-price { font-size: 20px; font-weight: 800; color: var(--primary-green); }
.course-price del { font-size: 14px; color: var(--text-muted); font-weight: 400; margin-right: 5px; }

/* =========================================
   CTA Banner
   ========================================= */
.cta-banner-redesign {
    background: var(--primary-green);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    color: var(--white);
    margin: 60px 0;
    box-shadow: var(--shadow-md);
}
.cta-banner-redesign h2 { font-weight: 800; margin-bottom: 20px; }

/* =========================================
   Exams Section
   ========================================= */
.exam-card-redesign {
    background: #1e293b; border-radius: var(--radius-md);
    padding: 30px; color: var(--white); text-align: center;
    transition: all 0.3s ease; height: 100%;
    position: relative; overflow: hidden;
}
.exam-card-redesign:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.exam-card-redesign::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}
.exam-icon { font-size: 40px; color: #fbbf24; margin-bottom: 20px; }
.exam-title { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.exam-subtitle { font-size: 14px; opacity: 0.8; margin-bottom: 25px; }
.exam-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-exam-link {
    background: rgba(255,255,255,0.1); color: var(--white);
    padding: 10px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    transition: all 0.3s ease; text-decoration: none !important;
}
.btn-exam-link:hover { background: var(--primary-green); color: var(--white); }

/* =========================================
   Single Course Details V2
   ========================================= */
.course-banner-v2 {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding: 60px 50px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}
.course-banner-overlay-v2 {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to left, rgba(16,185,129,0.85) 0%, rgba(15,23,42,0.9) 100%);
    z-index: 1;
}
.course-banner-content-v2 {
    position: relative;
    z-index: 2;
}
.course-banner-title-v2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--white);
}
.course-banner-desc-v2 {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.9);
}
.course-banner-meta-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 15px;
    font-weight: 600;
}
.course-banner-meta-v2 span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Sidebar Pricing Box */
.course-sidebar-box-v2 {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 100px;
}
.course-price-v2 {
    text-align: center;
    margin-bottom: 25px;
}
.course-price-v2 h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-navy);
    margin: 0;
}
.course-price-v2 del {
    font-size: 18px;
    color: var(--text-muted);
}
.btn-subscribe-v2 {
    background: var(--secondary-orange);
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    display: block;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
}
.btn-subscribe-v2:hover {
    background: #e67e22;
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}
.sidebar-features-v2 {
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
}
.sidebar-features-v2 li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-navy);
}
.sidebar-features-v2 li:last-child {
    border-bottom: none;
}
.sidebar-features-v2 i {
    color: var(--text-muted);
    font-size: 18px;
}

/* Tabs */
.course-tabs-v2 {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}
.course-tabs-v2 .nav-link {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 700;
    padding: 15px 25px;
    position: relative;
    border-radius: 0;
}
.course-tabs-v2 .nav-link.active {
    color: var(--primary-green);
    background: transparent;
}
.course-tabs-v2 .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-green);
    border-radius: 3px;
}

.course-content-v2 h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-navy);
    margin-bottom: 20px;
}
.course-content-v2 p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}
.what-you-learn-v2 {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.what-you-learn-v2 li {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.what-you-learn-v2 li i {
    color: var(--secondary-orange);
    font-size: 18px;
}

/* Comments Design */
.comment-box-v2 {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    width: 100%;
}
.comment-box-v2:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.comment-avatar-v2 img {
    border: 2px solid #eee;
    object-fit: cover;
}
.comment-content-v2 {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f9f9f9;
}

/* =========================================
   Lesson Watch UI V2
   ========================================= */
.lesson-header-v2 {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}
.video-wrapper-v2 {
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    padding: 20px;
    min-height: 400px;
}
.video-wrapper-v2 #ytplayer {
    aspect-ratio: 16 / 9;
    width: 100%;
}
.video-wrapper-v2 .nav-pills {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}
.video-wrapper-v2 .nav-pills .nav-link {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-left: 10px;
}
.video-wrapper-v2 .nav-pills .nav-link.active {
    background: var(--primary-green);
}
.lesson-rate-v2 {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}
.playlist-sidebar-v2 {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
}
.playlist-category button {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #eee;
    color: var(--dark-navy);
}
.playlist-item-v2 {
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.playlist-item-v2:hover {
    border-color: var(--primary-green);
    transform: translateX(-5px);
}
.playlist-item-v2.active {
    border-color: var(--primary-green);
    box-shadow: 0 4px 10px rgba(16,185,129,0.1);
}

/* =========================================
   Responsive Adjustments V2
   ========================================= */
@media (max-width: 991px) {
    .course-banner-v2 {
        padding: 40px 20px;
        text-align: center;
    }
    .course-banner-meta-v2 {
        justify-content: center;
    }
    .course-sidebar-box-v2 {
        margin-top: 0;
        position: static;
    }
    .course-tabs-v2 {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    .playlist-sidebar-v2 {
        margin-top: 30px;
    }
}
@media (max-width: 768px) {
    .section-header-v2 h2 {
        font-size: 28px !important;
    }
    .course-banner-title-v2 {
        font-size: 28px;
    }
    .footer-redesign {
        text-align: center;
    }
    .footer-redesign .text-right {
        text-align: center !important;
    }
    .footer-contact-v2 li {
        justify-content: center;
    }
}

/* =========================================
   Pagination V2
   ========================================= */
.pagination-v2 .pagination {
    gap: 15px;
    align-items: center;
}
.pagination-v2 .page-item .page-link {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    box-shadow: none !important;
}
.pagination-v2 .page-item.active .page-link {
    background: transparent;
    color: var(--primary-green);
    font-weight: 800;
}
.pagination-v2 .page-item:first-child .page-link,
.pagination-v2 .page-item:last-child .page-link {
    background: var(--primary-green);
    color: #fff;
}
.pagination-v2 .page-item.disabled .page-link {
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary-green);
}

/* =========================================
   Single Blog V2
   ========================================= */
.single-blog-box-v2 {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f5f5f5;
    overflow: hidden;
    margin-bottom: 40px;
}
.single-blog-image-v2 img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}
.single-blog-header-v2 {
    padding: 30px 40px 10px 40px;
}
.single-blog-title-v2 {
    font-weight: 800;
    font-size: 32px;
    color: var(--dark-navy);
    margin: 0;
}
.single-blog-body-v2 {
    padding: 10px 40px 40px 40px;
    font-size: 18px;
    line-height: 1.9;
    color: #444;
}
.single-blog-body-v2 img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}
.single-blog-body-v2 h1,
.single-blog-body-v2 h2,
.single-blog-body-v2 h3,
.single-blog-body-v2 h4 {
    color: var(--dark-navy);
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}
.single-blog-body-v2 ul {
    list-style-type: disc;
    padding-right: 20px;
    margin-bottom: 20px;
}
.single-blog-body-v2 ol {
    list-style-type: decimal;
    padding-right: 20px;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .single-blog-image-v2 img {
        height: 250px;
    }
    .single-blog-header-v2,
    .single-blog-body-v2 {
        padding: 20px;
    }
    .single-blog-title-v2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
}

/* =========================================
   Footer V2
   ========================================= */
.footer-redesign {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    padding: 70px 0 30px;
    margin-top: 60px;
}
.footer-redesign a { color: rgba(255,255,255,0.9); transition: all 0.3s ease; text-decoration: none; }
.footer-redesign a:hover { color: var(--secondary-orange); }

.footer-title-v2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-title-v2::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 22px;
    background: var(--secondary-orange);
    border-radius: 3px;
}

.footer-links-v2 { padding: 0; margin: 0; list-style: none; }
.footer-links-v2 li { margin-bottom: 18px; }
.footer-links-v2 a {
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
}
.footer-links-v2 a:hover {
    transform: translateX(-5px); /* Move left in RTL */
}

.footer-contact-v2 { padding: 0; margin: 0; list-style: none; }
.footer-contact-v2 li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.contact-icon-v2 {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    margin-left: 15px; /* Margin to the left of the icon in RTL */
    font-size: 16px;
}
.contact-text-v2 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.social-icons-redesign { display: flex; gap: 12px; margin-top: 25px; }
.social-icons-redesign a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 18px;
}
.social-icons-redesign a:hover { 
    background: var(--secondary-orange); 
    color: var(--white); 
    transform: translateY(-3px); 
}

.copyright-redesign {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 50px; padding-top: 25px;
    text-align: center; font-size: 15px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* =========================================
   Section Headers V2
   ========================================= */
.section-header-v2 {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
.section-header-v2 .pill-badge {
    display: inline-block;
    background: #e6f4ed;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 14px;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 15px;
}
.section-header-v2 h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-navy);
    margin-bottom: 10px;
}
.section-header-v2 p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}
.sparkle-icon {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 0L13.5 8.5L22 10L13.5 11.5L12 20L10.5 11.5L2 10L10.5 8.5L12 0Z" fill="%23fcd3a1"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}
.sparkle-1 { top: -20px; right: 10%; transform: scale(1.2); }
.sparkle-2 { top: 20px; right: 5%; transform: scale(0.8); }
.sparkle-3 { top: -20px; left: 10%; transform: scale(1.2); }
.sparkle-4 { top: 20px; left: 5%; transform: scale(0.8); }

/* =========================================
   Course Cards V2
   ========================================= */
.course-card-v2 {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}
.course-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.course-card-img-v2 {
    position: relative;
    height: 180px;
}
.course-card-img-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.course-badge-v2 {
    position: absolute;
    top: 15px;
    left: 15px; /* Moved to left as per image */
    background: var(--secondary-orange);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.course-card-body-v2 {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.course-title-v2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-navy);
    margin-bottom: 15px;
    text-align: center;
}
.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: center;
}
.course-tags span {
    background: #f5f5f5;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}
.course-features-v2 {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.course-features-v2 li {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.course-features-v2 li i {
    color: #6b7280;
    font-size: 14px;
}
.course-progress {
    margin-top: auto;
    margin-bottom: 15px;
}
.course-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 5px;
}
.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--primary-green);
    border-radius: 10px;
}
.btn-course-v2 {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}
.btn-course-v2:hover {
    background: var(--primary-green-hover);
    color: var(--white);
    text-decoration: none;
}

/* =========================================
   Blog Cards V2
   ========================================= */
.blog-card-v2 {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}
.blog-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.blog-card-img-v2 {
    height: 200px;
}
.blog-card-img-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-body-v2 {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-title-v2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark-navy);
    margin-bottom: 10px;
    line-height: 1.5;
}
.blog-desc-v2 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}
.blog-read-more {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}
.blog-read-more:hover {
    color: var(--primary-green-hover);
    text-decoration: none;
}

/* =========================================
   Trainer Cards V2
   ========================================= */
.trainer-card-v2 {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}
.trainer-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.trainer-img-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    padding: 5px;
    position: relative;
    overflow: hidden;
}
.trainer-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.trainer-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-navy);
    margin-bottom: 5px;
}
.trainer-subject {
    font-size: 14px;
    color: var(--secondary-orange);
    font-weight: 600;
}

/* =========================================
   OLD CSS OVERRIDES
   ========================================= */
.header-redesign .navigation {
    background-image: none !important;
    background: transparent !important;
}
.header-redesign .navbar-nav {
    background: transparent !important;
    padding-left: 0 !important;
}
.header-redesign .nav-item::before {
    display: none !important;
}
.header-redesign .nav-item {
    margin: 0 4px;
}
.header-redesign .navbar-light .navbar-nav .nav-link {
    color: var(--dark-navy) !important;
}
.hero-section-v2 .hero-content-v2,
.hero-section-v2 .hero-image-v2 {
    position: relative;
    z-index: 2;
}
.hero-section-v2 .hero-card-v2::before,
.hero-section-v2 .hero-card-v2::after {
    z-index: 0;
}
.hero-section-v2 .hero-content-v2 h1,
.hero-section-v2 .hero-content-v2 p,
.hero-section-v2 .hero-content-v2 .hero-stats-row,
.hero-section-v2 .hero-content-v2 .hero-buttons {
    color: var(--white) !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.z-index-1 { z-index: 1 !important; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (min-width: 1200px) {
    .container {
        max-width: 1420px;
    }
}

@media (max-width: 991px) {
    .nav-links-center { padding: 15px 0 !important; }
    .nav-links-center .nav-item { margin: 2px 0; }
    .nav-links-center .nav-link { padding: 10px 15px !important; }
    .nav-actions-right {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 15px 0;
    }
    .nav-search-item { text-align: center; }
    .user-profile-btn { justify-content: center; }
    .hero-card-v2 { padding: 30px 20px; }
    .hero-content-v2 h1 { font-size: 30px; }
    .hero-image-col { margin-top: 30px; }
    .badge-courses { left: 0; }
}
@media (max-width: 575px) {
    .hero-content-v2 h1 { font-size: 26px; }
    .hero-main-image img { height: 250px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-hero-primary, .btn-hero-outline { width: 100%; justify-content: center; }
    .hero-floating-badge { padding: 8px 12px; }
    .badge-rating .badge-score { font-size: 18px; }
    .badge-courses .badge-number { font-size: 18px; }
}
