:root {

    --primary-color: #000000;
    --accent-color: #e6ff00;
    --accent: #e6ff00;
    --accent-rgb: 230, 255, 0;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #495057;
    --border-radius: 16px;
    --shadow-light: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --r: 16px;
    --shadow1: 0 8px 24px rgba(17, 24, 39, 0.08);
    --shadow2: 0 12px 30px rgba(17, 24, 39, 0.12);
    --t: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    /* old color */
    /* --primary: #e6ff00; */
    --primary: #000000;
    --dark: #1a1a1a;
    --muted: #6c757d;
}

/* Override Bootstrap primary colors with our brand colors */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    /* old color */
    /* background-color: #5a23b8 !important;
        border-color: #5a23b8 !important; */
    color: #000000 !important;
    background-color: #e6ff00 !important;
    border-color: #e6ff00 !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.alert-primary {
    background-color: rgba(108, 43, 217, 0.1) !important;
    border-color: rgba(108, 43, 217, 0.2) !important;
    color: var(--primary-color) !important;
}

* {
    font-family: 'Tajawal', sans-serif;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Ensure content is visible */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== STUDENT HERO SECTION ===== */
.student-hero-section {
    position: relative;
    overflow: hidden;
    min-height: 40vh;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0;
}

.student-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.student-hero-section .container {
    position: relative;
    padding-top: 45px;
    z-index: 2;
}

.student-content {
    padding: 0;
    position: relative;
    background: url('../heo.png') no-repeat center bottom;
    background-size: cover;
    background-position: center bottom;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

/* العنوان الرئيسي */
.student-title-bg {
    position: relative;
    z-index: 3;
    margin-bottom: 2.5rem;
    color: #000000 !important;
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.8), -2px -2px 8px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

/* حاوية البحث */
.search-container {
    position: relative;
    z-index: 3;
    margin: 2rem 0;
    max-width: 500px;
    width: 100%;
}

.search-container .input-group {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.search-container .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: #333;
}

.search-container .form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: none;
    border: none;
}

.search-container .btn {
    border-radius: 0 50px 50px 0;
    padding: 1rem 2rem;
    font-weight: 600;
    background: var(--accent-color);
    border: none;
    color: #000;
    transition: all 0.3s ease;
}

.search-container .btn:hover {
    background: #d4e600;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.student-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.student-image-container {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.student-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.student-image:hover {
    transform: scale(1.05);
}

/* Responsive Design for Student Hero Section */
@media (max-width: 991.98px) {
    .student-hero-section {
        min-height: 35vh;
        padding: 0;
        margin: 0;
        background-size: cover;
        background-position: center;
    }

    .student-image-wrapper {
        min-height: 50vh;
        margin-top: 3rem;
    }

    .student-content {
        text-align: center;
    }

    .student-title-bg {
        font-size: 3rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .student-hero-section {
        min-height: 35vh;
        padding: 0;
        margin: 0;
        background-size: cover;
        background-position: center;
    }

    .student-content h2 {
        font-size: 2.5rem;
    }

    .student-title-bg {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .search-container {
        margin: 1.5rem 0;
    }
}

/* ===== LARGE SCREEN OPTIMIZATION ===== */
/* تحسين العرض للشاشات الكبيرة جداً */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: 1800px;
    }
}

/* تحسين المسافات للشاشات الكبيرة */
@media (min-width: 1400px) {
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .mb-5 {
        margin-bottom: 3.5rem !important;
    }

    .mt-5 {
        margin-top: 3.5rem !important;
    }
}

@media (min-width: 1920px) {
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }

    .mb-5 {
        margin-bottom: 4rem !important;
    }

    .mt-5 {
        margin-top: 4rem !important;
    }
}

/* ===== HERO SECTION ===== */
.bg-primary-hero {
    background: linear-gradient(rgba(108, 43, 217, 0.7), rgba(59, 10, 118, 0.8)), url('hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* تحسين Hero Section للشاشات الكبيرة */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }

    .hero-subtitle {
        font-size: 1.3rem !important;
    }

    .hero-card {
        max-width: 500px;
    }

    .hero-plane {
        max-width: 400px;
    }
}

@media (min-width: 1920px) {
    .hero-title {
        font-size: 4.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.4rem !important;
    }

    .hero-card {
        max-width: 550px;
    }

    .hero-plane {
        max-width: 450px;
    }
}

/* Responsive background for mobile */
@media (max-width: 768px) {
    .bg-primary-hero {
        background-position: center center;
    }

    /* Mobile layout adjustments */
    .bg-primary-hero .col-lg-3:first-child {
        display: none;
    }

    .bg-primary-hero .col-lg-5 {
        order: 1;
        margin-bottom: 2rem;
    }

    .bg-primary-hero .col-lg-4:last-child {
        order: 2;
    }
}

/* Tablet layout adjustments */
@media (min-width: 769px) and (max-width: 1023px) {
    .bg-primary-hero .col-lg-3:first-child {
        display: none;
    }

    .bg-primary-hero .col-lg-5 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .bg-primary-hero .col-lg-4:last-child {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Ensure text readability over background */
.bg-primary-hero .text-white {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-primary-hero .btn {
    text-shadow: none;
}

/* توحيد أحجام الأزرار في Hero Section */
.bg-primary-hero .course-actions .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 0;
    white-space: nowrap;
}

.bg-primary-hero .course-actions .btn.flex-fill {
    flex: 1 1 0;
}

/* Section titles consistency */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Consistent section spacing */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Consistent text colors */
.text-muted {
    color: var(--gray-600) !important;
}

.text-dark {
    color: var(--dark-color) !important;
}

/* Typewriter text styles */
.animated-text {
    display: inline-block;
    background: linear-gradient(to right, #ff7800, #ffc600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 3.8rem;
    position: relative;
    min-width: 280px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

/* Typewriter cursor */
.animated-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: var(--cursor-position, 0);
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, #ff7800, #ffc600);
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animated-text {
    animation: fadeInUp 0.5s ease forwards;
}

/* Responsive typewriter text */
@media (max-width: 768px) {
    .animated-text {
        min-width: 220px;
        font-size: 3.5rem;
    }

    .animated-text::after {
        width: 2px;
    }
}

@media (max-width: 576px) {
    .animated-text {
        min-width: 200px;
        font-size: 3.3rem;
    }

    .animated-text::after {
        width: 2px;
    }

    .display-6 {
        font-size: 1.8rem;
    }
}









/* ===== COURSE CARD COMPONENT ===== */
.course-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    height: 100%;
    border: none;
    margin: 0;
    flex: 1;
}

/* Hero section course card specific styles */
.bg-primary-hero .course-card {
    max-width: 100%;
    margin: 0 auto;
}

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

/* Course hover overlay styles */
.course-hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    z-index: 10;
}

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

.overlay-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.overlay-category {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overlay-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.overlay-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0.5rem 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.overlay-instructor .instructor-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.overlay-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.overlay-rating .stars {
    color: #ffd700;
}

.overlay-rating .rating-number {
    color: white;
    font-weight: 600;
}

.overlay-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.overlay-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.overlay-meta-item i {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.overlay-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.overlay-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.overlay-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.overlay-actions .btn-outline-primary {
    background: white;
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.overlay-actions .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.overlay-actions .btn-primary {
    background: var(--accent-color) !important;
    color: var(--dark-color);
    border: none;
}

.overlay-actions .btn-primary:hover {
    background: #d4d700;
    transform: translateY(-1px);
}

.course-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.course-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.wish-heart {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.wish-heart:hover,
.wish-heart.active {
    background: transparent;
    color: #ff0000;
}

.course-content {
    padding: 1.5rem;
}

.course-category {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.course-instructor {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructor-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.stars {
    color: #ffd700;
    font-size: 0.9rem;
    display: flex;
    gap: 1px;
}

.rating-number {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.course-rating .text-muted {
    font-size: 0.8rem;
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.course-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

/* Update any remaining blue colors to use our brand color */
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

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

/* Ensure all primary elements use our brand color */
.pagination .page-link {
    color: var(--primary) !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Update any remaining blue colors in the site */
.slider-arrow {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.slider-arrow:hover {
    background: var(--primary) !important;
    color: white !important;
}

.course-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.course-actions .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 0;
    white-space: nowrap;
}

.course-actions .btn.flex-fill {
    flex: 1 1 0;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-primary:hover {
    background-color: #5a23b8;
    border-color: #5a23b8;
}

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

.btn-accent:hover {
    background-color: var(--accent-color);
    border-color: var(--primary);
    color: black;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 0 0 4rem 0;
    background: var(--light-color);
}

.feature-item {
    text-align: center;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
}

.feature-icon {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-svg-icon {
    width: 80px;
    height: 80px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

/* Responsive icons */
@media (max-width: 768px) {
    .feature-svg-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .feature-svg-icon {
        width: 50px;
        height: 50px;
    }
}

.feature-item:hover .feature-svg-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.feature-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
}

/* ===== CATEGORIES CHIPS ===== */
.categories-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    background: white;
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: center;
}

.category-chip:hover,
.category-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    background: var(--gray-100);
    padding: 3rem 0;
}

.partner-logo {
    max-height: 150px;
    max-width: 150px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition);
    object-fit: contain;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Responsive partners */
@media (max-width: 768px) {
    .partner-logo {
        max-height: 120px;
        max-width: 120px;
    }
}


/* Subtitle Styles */
.subtitle.bg-primary-opacity {
    background: rgba(108, 43, 217, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}


/* ===== PAGINATION ===== */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--gray-200);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Loading animation for course cards */
.course-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.course-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Section animations */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image loading animation - Optional fade effect */
.lazy-fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-fade.loaded {
    opacity: 1;
}

/* Hero section should be visible by default */
header {
    opacity: 1 !important;
    transform: none !important;
}

/* Smooth transitions for all interactive elements */
.btn,
.wish-heart,
.category-chip {
    transition: all 0.3s ease;
}

/* Hover effects for better UX */
.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

/* تنسيق عام لحقول البريد الإلكتروني */
input[type="email"] {
    direction: rtl !important;
    text-align: right !important;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.trainer-card:hover {
    transform: translateY(-8px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a23b8;
}

/* ===== SWIPER STYLES ===== */

/* ====== سلايدر الدورات المميزة في HERO SECTION ====== */
.center-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.feat-wrap {
    position: relative;
    width: min(480px, 94vw);
    padding-inline: 60px;
    margin: 0 auto;
}

.featured-stack {
    position: relative;
    width: 100%;
    perspective: 1200px;
}

.stack-layer {
    position: absolute;
    inset: 0;
    border-radius: var(--r);
    background: #fff;
    /* box-shadow: var(--shadow1); */
    transform-origin: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--t);
    z-index: 1;
}

.stack-layer.layer-1 {
    transform: translateY(10px) scale(0.985);
    z-index: 1;
}

.stack-layer.layer-2 {
    transform: translateY(20px) scale(0.97);
    z-index: 0;
}

.swiper-slide-active .featured-stack .stack-layer {
    opacity: 1;
}

.swiper-slide-prev .featured-stack .stack-layer,
.swiper-slide-next .featured-stack .stack-layer {
    opacity: 0;
    transform: translateY(0) scale(1);
}

.hero-course-card {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: var(--r);
    background: #fff;
    /* box-shadow: var(--shadow2); */
    transition: var(--t);
    margin: 0 auto;
    max-width: 100%;
}

.swiper-slide-active .hero-course-card {
    transform: translateY(0) scale(1.015);
}

.hero-course-card:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-course-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.hero-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.badge-feature {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: #ffd54a;
    color: #fff;
    border: 1px solid #ffd54a;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
}

.wish-heart {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    color: #000;
    border-radius: 999px;
    box-shadow: none;
    transition: var(--t);
}

.wish-heart.active {
    background: transparent;
    color: #ff0000;
}

.hero-course-content {
    padding: 1.1rem 1.1rem 1.25rem;
}

.chip {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-weight: 600;
    background: var(--accent-color) !important;
    color: black !important;
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
}

.hero-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 0.4rem;
}

.teacher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.teacher img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.stars {
    color: #ffd54a;
    font-size: 0.95rem;
}

.muted {
    color: var(--muted);
    font-size: 0.88rem;
}

.meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.price {
    color: var(--primary);
    font-weight: 800;
}

.actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.hero-swiper {
    padding: 10px 4px;
    overflow: hidden;
}

.hero-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    width: 100% !important;
}

.hero-swiper .swiper-wrapper {
    align-items: center;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.15);
    cursor: pointer;
    transition: var(--t);
    z-index: 10;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.btn-prev {
    right: 8px;
}

.btn-next {
    left: 8px;
}

@media (max-width: 768px) {
    .student-hero-section {
        min-height: 35vh;
        padding: 0;
        margin: 0;
    }

    .student-content {
        padding: 0;
        min-height: 50vh;
        margin: 0;
    }

    .student-title-bg {
        padding: 1rem 1.5rem;
        margin-bottom: 2rem;
        font-size: 1.5rem;
    }

    .search-container {
        margin: 1.5rem 0;
    }

    .feat-wrap {
        width: min(420px, 96vw);
        padding-inline: 44px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-course-image {
        height: 200px;
    }

    .actions {
        flex-direction: column;
    }
}

/* ===== إعدادات خاصة لسلايدر HERO ===== */
#heroFeaturedSwiper {
    overflow: hidden !important;
    width: 100% !important;
}

#heroFeaturedSwiper .swiper-slide {
    width: 100% !important;
    flex-shrink: 0;
    margin-right: 0 !important;
    /* تجاوز الإعدادات العامة */
    max-width: 100% !important;
}

#heroFeaturedSwiper .swiper-wrapper {
    display: flex;
    align-items: center;
    width: 100% !important;
}

#heroFeaturedSwiper .featured-stack {
    width: 100% !important;
    max-width: 100% !important;
}

#heroFeaturedSwiper .hero-course-card {
    width: 100% !important;
    max-width: 100% !important;
}

/* تجاوز إعدادات Grid layout لسلايدر HERO */
@media (min-width: 1024px) {
    .student-hero-section {
        min-height: 40vh;
        margin: 0;
    }

    .student-content {
        padding: 0;
        min-height: 60vh;
    }

    .student-title-bg {
        padding: 2rem 2.5rem;
        font-size: 2.5rem;
    }

    .search-container {
        max-width: 600px;
    }

    #heroFeaturedSwiper .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #heroFeaturedSwiper .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 767px) {
    #heroFeaturedSwiper .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }
}

/* الغلاف الذي يضم الأسهم */
.slider-shell {
    position: relative;
    padding-inline: 12px;
    /* هام: مساحة بسيطة لعدم قصّ الظلال */
}

/* إبقاء بطاقات الظلال مرئية خارج الحاوية */
.swiper-container-wrapper {
    overflow: visible;
}

.topCoursesSwiper,
.categoryCoursesSwiper,
.booksSwiper,
.categoriesSwiper,
.eventsSwiper {
    overflow: hidden;
}

.swiper-container-wrapper {
    position: relative;
    width: 100%;
}

.swiper {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.swiper-slide .course-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.swiper-slide .event-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.swiper-slide .event-card .event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.swiper-slide .event-card .event-actions {
    margin-top: auto;
}

/* ===== إعدادات خاصة لسلايدر الفعاليات ===== */
.eventsSwiper {
    overflow: hidden !important;
}

.eventsSwiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.eventsSwiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Grid layout for desktop */
@media (min-width: 1024px) {
    .swiper-slide {
        width: calc(25% - 30px) !important;
        margin-right: 30px;
    }
}

/* Tablet layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .swiper-slide {
        width: calc(50% - 20px) !important;
        margin-right: 20px;
    }
}

/* Mobile layout */
@media (max-width: 767px) {
    .swiper-slide {
        width: 100% !important;
        margin-right: 0;
    }
}

/* تجاوز إعدادات Grid layout لسلايدر الفعاليات */
@media (min-width: 1024px) {
    .eventsSwiper .swiper-slide {
        width: calc(25%) !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .eventsSwiper .swiper-slide {
        width: calc(50%) !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 767px) {
    .eventsSwiper .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }
}

/* ===== NEWS SECTION STYLES ===== */
.news-section-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.news-main-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0;
    direction: rtl;
    text-align: right;
}

.news-accent-line {
    width: 60px;
    height: 4px;
    background: #e74c3c;
    border-radius: 2px;
    margin-top: 0.5rem;
}

.news-nav-arrows {
    gap: 0.5rem;
}

.news-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-nav-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.news-tabs .nav-pills {
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-tabs .nav-link {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: var(--gray-600);
    background: transparent;
    border: 1px solid var(--gray-300);
    transition: all 0.3s ease;
    font-weight: 600;
}

.news-tabs .nav-link.active,
.news-tabs .nav-link:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

/* Featured News Card */
.featured-news-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.featured-news-card:hover {
    transform: translateY(-5px);
}

.featured-news-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
}

.featured-news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-news-card:hover .featured-news-image img {
    transform: scale(1.05);
}

.featured-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: #fff;
}

.featured-news-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e74c3c;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.featured-news-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.featured-news-meta i {
    margin-left: 0.25rem;
}

.trending-badge {
    background: #e74c3c;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* News List */
.news-list-container {
    height: 400px;
    overflow: hidden;
}

.news-list {
    transition: all 0.3s ease;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 120px;
}

.news-item:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.news-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    flex: 1;
    direction: rtl;
    text-align: right;
}

.news-item-date {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.news-item-meta i {
    margin-left: 0.25rem;
}

.news-rating {
    color: #e74c3c;
    font-size: 0.9rem;
}

.news-navigation-info {
    text-align: center;
    padding: 0.5rem;
    margin-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: #6c757d;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Mobile Navigation */
.news-mobile-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
    .news-section-wrapper {
        padding: 1.5rem;
    }

    .news-main-title {
        font-size: 1.5rem;
    }

    .featured-news-title {
        font-size: 1.25rem;
    }

    .news-list-container {
        height: auto;
        overflow: visible;
    }
}

@media (max-width: 767px) {
    .news-section-wrapper {
        padding: 1rem;
    }

    .news-tabs .nav-pills {
        justify-content: center;
    }

    .news-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* زرّ سهم عام */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--primary);
    display: grid;
    place-items: center;
    box-shadow: none;
    cursor: pointer;
    z-index: 10;
    transition: .25s ease;
}

/* اليسار/اليمين خارج المسار - للعربية */
.slider-arrow--prev {
    right: 70px;
}

/* السابق في اليمين */
.slider-arrow--next {
    left: 70px;
}

/* التالي في اليسار */

.slider-arrow:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-50%) scale(1.2);
    opacity: 0.8;
}

/* إخفاء أسهم Swiper الافتراضية (إن وجدت) */
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

/* أيقونات Bootstrap داخل الأزرار */
.slider-arrow::before {
    font-family: 'bootstrap-icons';
    font-size: 22px;
    line-height: 1;
    content: '\f284';
    /* chevron-left افتراضي للزر next (يُنقّح بالأسفل) */
}

/* اجعل كل زر يحمل الأيقونة المناسبة */
.slider-arrow--prev::before {
    content: '\f285';
}

/* chevron-right */
.slider-arrow--next::before {
    content: '\f284';
}

/* chevron-left */





/* على الشاشات الصغيرة: قرّبها قليلًا أو أخفِها */
@media (max-width: 992px) {
    .slider-arrow--prev {
        right: -14px;
    }

    .slider-arrow--next {
        left: -14px;
    }
}

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

    .swiper-section-wrapper {
        padding: 0 20px;
    }

    .swiper-slide .course-card {
        max-width: 100%;
    }

    .partner-logo {
        max-height: 120px;
        max-width: 120px;
    }
}

/* ===== CATEGORIES SLIDER STYLES ===== */
.categories-slider-shell {
    margin-bottom: 2rem;
}

.categoriesSwiper {
    padding: 0;
}

.categoriesSwiper .swiper-slide {
    width: auto !important;
    margin-right: 0;
}

.categoriesSwiper .category-chip {
    white-space: nowrap;
    margin: 0;
}

/* تعديل حجم الأسهم للفئات */
.categories-arrow {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.categories-arrow--prev {
    right: -20px;
}

.categories-arrow--next {
    left: -20px;
}

.categories-arrow::before {
    font-size: 18px;
}

/* ===== EVENTS SECTION ===== */

/* Events Calendar Styles */
.events-calendar-wrapper {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* Full Calendar Styles */
.full-calendar-wrapper {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.full-calendar-grid {
    width: 100%;
}

.full-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    min-height: 500px;
}

.full-calendar-day {
    background: white;
    padding: 1rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #f8f9fa;
}

.full-calendar-day:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.full-calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.full-calendar-day.today {
    background: #c2c0c0;
    color: black;
}

.full-calendar-day.today .day-number {
    color: black;
    font-weight: bold;
}

.full-calendar-day.selected {
    background: var(--accent);
    color: white;
}

.full-calendar-day.selected .day-number {
    color: white;
    font-weight: bold;
}

.day-number {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.day-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-item {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.event-item:hover {
    background: var(--accent-color);
    color: black;
    transform: scale(1.05);
}

/* Event item color variations */
.event-item-black {
    background: #2c3e50 !important;
    color: white !important;
}

.event-item-black:hover {
    background: #34495e !important;
    color: white !important;
    transform: scale(1.05);
}

.event-item-accent {
    background: var(--accent) !important;
    color: black !important;
}

.event-item-accent:hover {
    background: var(--accent-color) !important;
    color: black !important;
    transform: scale(1.05);
}

.full-calendar-day.today .event-item-black {
    background: rgba(44, 62, 80, 0.8) !important;
    color: white !important;
}

.full-calendar-day.today .event-item-black:hover {
    background: rgba(52, 73, 94, 0.9) !important;
    color: white !important;
}

.full-calendar-day.today .event-item-accent {
    background: rgba(var(--accent-rgb), 0.8) !important;
    color: black !important;
}

.full-calendar-day.today .event-item-accent:hover {
    background: rgba(var(--accent-rgb), 0.9) !important;
    color: black !important;
}

.full-calendar-day.selected .event-item-black {
    background: rgba(44, 62, 80, 0.9) !important;
    color: white !important;
}

.full-calendar-day.selected .event-item-black:hover {
    background: rgba(52, 73, 94, 1) !important;
    color: white !important;
}

.full-calendar-day.selected .event-item-accent {
    background: rgba(var(--accent-rgb), 0.9) !important;
    color: white !important;
}

.full-calendar-day.selected .event-item-accent:hover {
    background: rgba(var(--accent-rgb), 1) !important;
    color: white !important;
}

.event-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.full-calendar-day.today .event-indicator {
    background: black;
}

.full-calendar-day.selected .event-indicator {
    background: white;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.calendar-nav-btn {
    background: transparent;
    color: black;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.calendar-nav-btn:hover {
    background: transparent;
    transform: scale(1.1);
}

.calendar-nav-btn:hover i {
    color: black !important;
}

.calendar-grid {
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.weekday {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0.5rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.today {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.calendar-day.selected {
    background: var(--accent-color);
    color: black;
    font-weight: 600;
}

.calendar-day.has-events::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.calendar-day.today.has-events::after,
.calendar-day.selected.has-events::after {
    background: white;
}

/* Events Cards Styles */
.events-cards-wrapper {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    min-height: 500px;
}

.events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.events-date-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.events-count {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.events-list {
    min-height: 300px;
    width: 100%;
    overflow: visible;
}

.no-events-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.no-events-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-events-message p {
    font-size: 1.1rem;
    margin: 0;
}

.event-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 200px;
    width: 100%;
    max-width: none;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.event-image-container {
    position: relative;
    overflow: hidden;
    width: 300px;
    min-width: 300px;
    flex-shrink: 0;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-header {
    margin-bottom: 1rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.event-date {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
}

.event-location {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

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

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

.event-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(108, 43, 217, 0.1) 0%, rgba(255, 122, 0, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
}

.event-card:hover .event-image-overlay {
    opacity: 1;
}


.event-wish-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    color: var(--gray-600);
}

.event-wish-btn:hover {
    background: white;
    color: var(--accent);
    transform: scale(1.1);
}

.event-wish-btn.active {
    color: var(--accent);
}

.event-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-status.available {
    background: #d4edda;
    color: #155724;
}

.event-status.selling-fast {
    background: #fff3cd;
    color: #856404;
}

.event-status.sold-out {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive Design for Events */
@media (max-width: 991px) {
    .events-calendar-wrapper {
        position: static;
        margin-bottom: 2rem;
    }

    /* Full calendar responsive */
    .full-calendar-wrapper {
        padding: 1.5rem;
    }

    .full-calendar-day {
        min-height: 100px;
        padding: 0.75rem;
    }

    .day-number {
        font-size: 1rem;
    }

    .event-item {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
        min-height: auto;
    }

    /* Full calendar mobile */
    .full-calendar-wrapper {
        padding: 1rem;
    }

    .full-calendar-day {
        min-height: 80px;
        padding: 0.5rem;
    }

    .day-number {
        font-size: 0.9rem;
    }

    .event-item {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .event-image-container {
        width: 100%;
        min-width: auto;
        height: 200px;
    }

    .event-content {
        padding: 1rem;
    }

    .event-title {
        font-size: 1.1rem;
    }

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

    .event-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .event-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {

    .events-calendar-wrapper,
    .events-cards-wrapper {
        padding: 1rem;
    }

    /* Full calendar small screens */
    .full-calendar-day {
        min-height: 60px;
        padding: 0.25rem;
    }

    .day-number {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .event-item {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }

    .calendar-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .calendar-title {
        font-size: 1.1rem;
    }

    .calendar-nav-btn {
        width: 35px;
        height: 35px;
    }

    .weekday {
        font-size: 0.8rem;
        padding: 0.25rem 0;
    }

    .calendar-day {
        font-size: 0.8rem;
    }

    .events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .events-date-title {
        font-size: 1.1rem;
    }

    .events-count {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .no-events-message {
        padding: 2rem 1rem;
    }

    .no-events-message i {
        font-size: 2.5rem;
    }

    .no-events-message p {
        font-size: 1rem;
    }
}

.event-image {
    transition: transform 0.3s ease;
}

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

.event-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(108, 43, 217, 0.1), rgba(255, 122, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover .event-image-overlay {
    opacity: 1;
}

.event-wish-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.event-wish-btn:hover {
    background: #fff;
    color: #e74c3c;
    transform: scale(1.1);
}

.event-wish-btn.active {
    color: #e74c3c;
}

.event-exclusive-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-color);
    color: black;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.event-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.event-date {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-date i {
    color: var(--primary);
}

.event-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(108, 43, 217, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(108, 43, 217, 0.2);
}

.event-status.selling-fast {
    background: rgba(255, 122, 0, 0.1);
    color: var(--primary);
    border-color: rgba(255, 122, 0, 0.2);
}

.event-status.available {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.2);
}

.event-status.sold-out {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

/* Event actions buttons */
.event-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-actions .btn {
    flex: 1;
    min-width: 120px;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.event-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 43, 217, 0.2);
}

@media (max-width: 576px) {
    .event-actions {
        flex-direction: column;
    }

    .event-actions .btn {
        min-width: auto;
        width: 100%;
    }
}

/* ===== EMPTY STATE MESSAGE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    border: 2px dashed var(--gray-300);
    margin: 2rem 0;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state h3 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.empty-state .btn {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.empty-state .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 43, 217, 0.3);
}

/* ===== RESPONSIVE ===== */

/* تحسين العناصر الداخلية للشاشات الكبيرة */
@media (min-width: 1400px) {

    /* تحسين أحجام العناوين */
    .display-6 {
        font-size: 2.5rem !important;
    }

    /* تحسين المسافات بين العناصر */
    .g-4 {
        --bs-gutter-x: 2rem !important;
        --bs-gutter-y: 2rem !important;
    }

    /* تحسين أحجام البطاقات */
    .course-card,
    .book-card {
        max-width: 400px;
        margin: 0 auto;
    }

    /* تحسين أحجام الصور */
    .course-image,
    .book-cover,
    .event-image {
        max-height: 250px;
    }

    /* تحسين أحجام الأزرار */
    .btn-lg {
        padding: 0.875rem 2rem !important;
        font-size: 1.1rem !important;
    }
}

@media (min-width: 1920px) {

    /* تحسين أكبر للشاشات الكبيرة جداً */
    .display-6 {
        font-size: 3rem !important;
    }

    .g-4 {
        --bs-gutter-x: 2.5rem !important;
        --bs-gutter-y: 2.5rem !important;
    }

    .course-card,
    .book-card,
    .event-card {
        max-width: 450px;
    }

    .course-image,
    .book-cover,
    .event-image {
        max-height: 280px;
    }

    .btn-lg {
        padding: 1rem 2.5rem !important;
        font-size: 1.2rem !important;
    }

    /* تحسين السلايدرات للشاشات الكبيرة */
    .swiper-slide {
        max-width: 350px !important;
    }

    /* تحسين الأسهم */
    .slider-arrow {
        width: 64px;
        height: 64px;
    }

    .slider-arrow::before {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.1rem;
    }

    .hero-card,
    .hero-plane {
        position: static;
        transform: none;
        margin: 2rem auto;
        text-align: center;
    }

    .course-actions {
        flex-direction: column;
    }

    .swiper-slide .course-card {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.1rem;
    }

    .course-actions .btn {
        font-size: 0.9rem;
    }

    /* Course hover overlay responsive */
    .course-hover-overlay {
        padding: 1rem;
    }

    .overlay-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .overlay-actions .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

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

    .overlay-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .overlay-meta {
        gap: 0.5rem;
    }

    .overlay-meta-item {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ===== NEW SECTIONS STYLES ===== */

/* Section title enhancements */
.section-title {
    font-weight: 800;
    letter-spacing: 0.2px;
}

/* ===== BOOKS LIBRARY SECTION ===== */
.book-card {
    border: 1px solid #eef2ff;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.05);
    transition: 0.18s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 280px;
    margin: 0 auto;
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.10);
}

.book-cover {
    aspect-ratio: 2/3;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    max-height: 200px;
}

.book-card:hover .book-cover {
    transform: scale(1.02);
}

.book-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.4;
    word-break: break-word;
    hyphens: auto;
}


.tabs-rounded .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tabs-rounded .btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.tabs-rounded .btn:hover {
    background-color: var(--accent-color);
    color: black;
    transform: translateY(-2px);

}


/* ===== CTA FOR TRAINERS SECTION ===== */
.cta-block {
    border-radius: 24px;
    background: var(--accent-color);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(108, 43, 217, 0.1) 0%, rgba(255, 122, 0, 0.1) 100%);
    pointer-events: none;
}

.cta-block .row {
    position: relative;
    z-index: 2;
}

.cta-block img {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.cta-block:hover img {
    transform: scale(1.02);
}

.cta-block h3 {
    color: black;
}

.cta-block p {
    color: black;
}

.cta-block .btn-accent {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(227, 224, 222, 0.3);
}

.cta-block .btn-accent:hover {
    background: var(--accent-color);
    border-color: var(--primary);
    color: black !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 122, 0, 0.4);
}

/* Ensure all primary colored elements use our brand color */
.course-instructor-stat i,
.lesson-number,
.section-title i,
.review-rating i,
.course-info-item i,
.course-modal-header {
    color: var(--primary-color) !important;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {

    .cta-block {
        text-align: center;
    }

    .tabs-rounded .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .book-card {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .book-title {
        font-size: 0.95rem;
    }

    .tabs-rounded .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}




/* تحسين المسافات في Modal */
.course-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* تحسين مظهر التنبيهات في Modal */
.course-modal-body .alert {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* تحسين مظهر مربعات الإحصائيات */
.course-modal-body .bg-light {
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.course-modal-body .bg-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== COURSE MODAL ===== */
.course-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.course-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.course-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.course-modal-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a23b8 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-modal-header h3 {
    color: white !important;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    padding: 0 3rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.course-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    z-index: 10;
}

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

/* Responsive design for modal header */
@media (max-width: 768px) {
    .course-modal-header h3 {
        font-size: 1.5rem;
        padding: 0 2rem;
    }
}

.course-modal-body {
    padding: 2rem;
}

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

.course-info-item {
    background: var(--gray-100);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.course-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Ensure all primary colored elements use our brand color */
.course-instructor-stat i,
.lesson-number,
.section-title i,
.review-rating i,
.course-info-item i,
.course-modal-header {
    color: var(--primary-color) !important;
}

.course-info-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.course-info-value {
    font-weight: 600;
    color: var(--dark-color);
}

.course-instructor-section {
    background: var(--gray-100);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.course-instructor-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.course-instructor-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.course-instructor-info h4 {
    margin: 0;
    color: var(--dark-color);
}

.course-instructor-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.course-instructor-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.course-description {
    margin-bottom: 2rem;
}

.course-description h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.course-description p {
    color: var(--gray-600);
    line-height: 1.7;
}

.course-lessons {
    margin-bottom: 2rem;
}

.course-lessons h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.course-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.section-header {
    background: var(--gray-100);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.section-duration {
    font-size: 0.85rem;
    color: var(--gray-600);
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
}

.lessons-list {
    padding: 1rem 1.5rem;
}

.lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: var(--gray-100);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.lesson-item:hover {
    background: var(--gray-200);
    transform: translateX(5px);
}

.lesson-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.lesson-number {
    background: #dcd2ec;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

.lesson-details {
    flex: 1;
}

.lesson-title {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.lesson-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.lesson-duration,
.lesson-type {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.preview-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 43, 217, 0.2);
}

.course-reviews {
    margin-bottom: 2rem;
}

.course-reviews h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.review-item {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.reviewer-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-name {
    font-weight: 600;
    color: var(--dark-color);
}

.review-rating {
    display: flex;
    gap: 2px;
    color: #ffd700;
}

.review-text {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
}

.course-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .course-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .course-modal-header {
        padding: 1.5rem;
    }

    .course-modal-body {
        padding: 1.5rem;
    }

    .course-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .course-modal-footer {
        flex-direction: column;
        text-align: center;
    }

    .course-actions {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }

    .course-actions .btn {
        width: 100%;
        flex: none;
    }


    /* تحسين Modal للشاشات الصغيرة */

    .course-modal-body .row {
        margin-bottom: 1rem !important;
    }

    .course-modal-body .alert {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

}

/* ===== NEWS AND BLOG SECTION ===== */
.news-blog-section {
    background: #f8f9fa;
    direction: rtl;
}

.news-blog-section .section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 3rem;
}

.news-blog-section .title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

.news-blog-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-card-large {
    height: 500px;
}

.news-card-small {
    height: 300px;
}

.news-image {
    position: relative;
    height: 60%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    overflow: hidden;
}

.news-card-small .news-image {
    height: 50%;
}

.news-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.news-category-badge.category-math {
    background: #e3f2fd;
    color: #1976d2;
}

.news-category-badge.category-geometry {
    background: #e8f5e8;
    color: #388e3c;
}

.news-category-badge.category-mentor {
    background: #fff3e0;
    color: #f57c00;
}

.news-category-badge.category-database {
    background: #f3e5f5;
    color: #7b1fa2;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    color: white;
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-overlay .news-title {
    color: white;
    font-size: 1.6rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.news-overlay .news-date {
    color: rgba(255, 255, 255, 0.9);
}

.news-date i {
    color: var(--accent-color);
}

/* ===== INSTRUCTORS SECTION ===== */
.instructors-section {
    background: white;
    direction: rtl;
}

.instructors-section .section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 3rem;
}

.instructors-section .title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

.instructors-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.instructor-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.instructor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.instructor-card-large {
    height: 500px;
}

.instructor-card-small {
    height: 350px;
}

.instructor-image {
    position: relative;
    height: 70%;
    overflow: hidden;
}

.instructor-card-small .instructor-image {
    height: 60%;
}

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

.instructor-card:hover .instructor-image img {
    transform: scale(1.05);
}

.instructor-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    color: white;
}

.instructor-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.instructor-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000 !important;
    margin-bottom: 0;
}

.instructor-overlay .instructor-name {
    color: white;
    font-size: 1.6rem;
}

.instructor-title {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

.instructor-overlay .instructor-title {
    color: rgba(255, 255, 255, 0.9);
}

.instructor-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    color: white;
}

.instructor-overlay .social-link {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.instructor-overlay .social-link:hover {
    background: var(--accent-color);
}

/* Instructor Bio */
.instructor-bio {
    margin-top: 15px;
}

.instructor-bio p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    text-align: justify;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {

    .news-card-large,
    .instructor-card-large {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {

    .news-blog-section .section-title,
    .instructors-section .section-title {
        font-size: 2rem;
    }

    .news-card-large,
    .instructor-card-large {
        height: 400px;
    }

    .news-card-small,
    .instructor-card-small {
        height: 280px;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .news-overlay .news-title {
        font-size: 1.4rem;
    }

    .instructor-name {
        font-size: 1.2rem;
    }

    .instructor-overlay .instructor-name {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {

    .news-blog-section .section-title,
    .instructors-section .section-title {
        font-size: 1.8rem;
    }

    .news-blog-section .title-line,
    .instructors-section .title-line {
        width: 40px;
    }

    .news-card-large,
    .instructor-card-large {
        height: 350px;
    }

    .news-card-small,
    .instructor-card-small {
        height: 250px;
    }

    .news-content,
    .instructor-info {
        padding: 15px;
    }
}

/* ====== NEWS: image fills card, content overlays ====== */
.news-card {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.news-image {
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0 */
    height: 100% !important;
    /* تلغي تقسيم الارتفاع القديم */
    background-size: cover;
    background-position: center;
}

/* تدرّج سفلي لتحسين قراءة النص */
.news-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .65) 100%);
    pointer-events: none;
    z-index: 1;
}

/* المحتوى فوق الصورة */
.news-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    z-index: 2;
    color: #fff;
}

.news-title {
    color: #fff;
}

.news-date {
    color: rgba(255, 255, 255, .9);
}

.news-date i {
    color: var(--accent-color);
}

/* شارة التصنيف تبقى أعلى الصورة */
.news-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
}

/* أحجام البطاقات - الكرت الكبير بنفس ارتفاع الكروت الصغيرة المجتمعة */
.news-card-large {
    height: 620px;
}

/* 300px + 300px + 20px gap */
.news-card-small {
    height: 300px;
}

/* موبايل */
@media (max-width: 768px) {
    .news-card-large {
        height: 580px;
    }

    /* 280px + 280px + 20px gap */
    .news-card-small {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .news-card-large {
        height: 520px;
    }

    /* 250px + 250px + 20px gap */
    .news-card-small {
        height: 250px;
    }
}

/* ====== INSTRUCTORS: image fills card, info overlays ====== */
.instructor-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.instructor-card-small {
    filter: grayscale(100%);
    opacity: 0.7;
    background: rgba(230, 255, 0, 0.1);
    border: 2px solid rgba(230, 255, 0, 0.3);
}

.instructor-card-small:hover,
.instructor-card-small.active {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.02);
}

.instructor-image {
    position: absolute;
    inset: 0;
    height: 100% !important;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.instructor-card:hover .instructor-image img {
    transform: scale(1.05);
}

/* معلومات المدرّب فوق الصورة */
.instructor-info {
    position: absolute;
    bottom: 0;
    padding: 20px;
    z-index: 2;
    color: #333;
}

/* الكروت الصغيرة - خلفية بيضاء بحواف في الأسفل */
.instructor-card-small .instructor-info {
    left: 20px;
    right: 20px;
    border-radius: 0 0 20px 20px;
    background: white;
    margin: 20px;
}

/* الكرت الكبير - خلفية صفراء في الأسفل اليمين */
.instructor-card-large .instructor-info {
    right: 30px;
    bottom: 0;
    margin-bottom: 20px;
    padding: 25px 20px 20px 120px;
    border-radius: 30px 0 0px 30px;
    max-width: 78%;
    background: #FFD700;
    color: #333;
}

.instructor-name {
    color: #333;
    font-weight: 700;
    margin-bottom: 8px;
}

.instructor-title {
    color: #666;
    margin-bottom: 15px;
}

/* أحجام الخطوط للكروت الصغيرة */
.instructor-card-small .instructor-name {
    font-size: 1.3rem;
}

.instructor-card-small .instructor-title {
    font-size: 1rem;
}

/* أحجام الخطوط للكرت الكبير */
.instructor-card-large .instructor-name {
    font-size: 2rem;
}

.instructor-card-large .instructor-title {
    font-size: 1.3rem;
}

/* أزرار السوشيال بدون خلفية ولا حواف */
.instructor-social {
    display: flex;
    gap: 12px;
}

.instructor-social .social-link {
    border-radius: 50%;
    background: transparent;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    transition: all .3s ease;
}

/* أحجام الأيقونات للكروت الصغيرة */
.instructor-card-small .instructor-social .social-link {
    width: 35px;
    height: 35px;
    font-size: 1rem;
}

/* أحجام الأيقونات للكرت الكبير */
.instructor-card-large .instructor-social .social-link {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
}

.instructor-social .social-link:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* أحجام البطاقات - الكرت الكبير بنفس ارتفاع الكروت الصغيرة المجتمعة */
.instructor-card-large {
    height: 720px;
}

/* 350px + 350px + 20px gap */
.instructor-card-small {
    height: 350px;
}

@media (max-width: 768px) {
    .instructor-card-large {
        height: 580px;
    }

    /* 280px + 280px + 20px gap */
    .instructor-card-small {
        height: 280px;
    }

    .instructor-card-large .instructor-info {
        max-width: 80%;
    }

    /* أحجام خطوط متجاوبة للشاشات المتوسطة */
    .instructor-card-small .instructor-name {
        font-size: 1.2rem;
    }

    .instructor-card-small .instructor-title {
        font-size: 0.9rem;
    }

    .instructor-card-large .instructor-name {
        font-size: 1.8rem;
    }

    .instructor-card-large .instructor-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .instructor-card-large {
        height: 520px;
    }

    /* 250px + 250px + 20px gap */
    .instructor-card-small {
        height: 250px;
    }

    .instructor-card-large .instructor-info {
        max-width: 90%;
    }

    /* أحجام خطوط متجاوبة للشاشات الصغيرة */
    .instructor-card-small .instructor-name {
        font-size: 1.1rem;
    }

    .instructor-card-small .instructor-title {
        font-size: 0.85rem;
    }

    .instructor-card-large .instructor-name {
        font-size: 1.6rem;
    }

    .instructor-card-large .instructor-title {
        font-size: 1.1rem;
    }
}

/* New Sections Styles */

/* Stats Section */
/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Stats Items (without cards) */
.stats-item {
    text-align: center;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stats-item:hover {
    transform: translateY(-4px);
}

.stats-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-svg-icon {
    width: 50px;
    height: 50px;
}

.stats-number {
    margin-bottom: 0.5rem;
}

.stats-number .counter {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.stats-label {
    font-size: 0.9rem;
    color: var(--dark-color);
    font-weight: 500;
    line-height: 1.3;
}

#stats .counter {
    transition: all 0.3s ease;
}

#stats .text-center:hover {
    transform: translateY(-6px);
    transition: transform 0.3s ease;
}

/* Stats Section Layout */
#stats .row.align-items-center {
    min-height: 200px;
}

#stats .text-center.text-lg-start h2 {
    margin-bottom: 1rem;
}

#stats .text-center.text-lg-start p {
    margin-bottom: 0;
}




/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-card {
        padding: 1.25rem 0.75rem;
    }

    .stats-item {
        padding: 0.75rem 0.25rem;
    }

    .stats-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.75rem;
    }

    .stats-svg-icon {
        width: 45px;
        height: 45px;
    }

    .stats-number .counter {
        font-size: 1.75rem;
    }

    .stats-label {
        font-size: 0.85rem;
    }

    #stats .display-3 {
        font-size: 2rem;
    }

    /* Mobile adjustments for stats layout */
    #stats .text-center.text-lg-start {
        text-align: center !important;
        margin-bottom: 2rem;
    }

    #stats .row.align-items-center {
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .stats-card {
        padding: 1rem 0.5rem;
    }

    .stats-item {
        padding: 0.5rem 0.25rem;
    }

    .stats-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }

    .stats-svg-icon {
        width: 40px;
        height: 40px;
    }

    .stats-number .counter {
        font-size: 1.5rem;
    }

    .stats-label {
        font-size: 0.8rem;
    }

    #stats .display-3 {
        font-size: 1.5rem;
    }
}

/* ===== FAQ SECTION STYLES ===== */
#faq-section {
    direction: rtl;
    font-family: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.faq-content {
    padding: 2rem 0;
}

.faq-header .faq-icon {
    font-size: 1.5rem;
}

.faq-header h2 {
    color: #1f2937;
    font-weight: 700;
    line-height: 1.2;
}

.faq-header p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* FAQ Accordion Styles */
.faq-accordion {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.faq-question {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: right;
}

.faq-question:hover {
    color: white;
    background: var(--primary);
}

.faq-question:not(.collapsed) {
    background: var(--primary);
    color: white;
}

.faq-question:not(.collapsed):hover {
    background: var(--primary) !important;
}

.faq-question h5 {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
    padding-left: 1rem;
}

.faq-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: #6b7280;
}

.faq-question:not(.collapsed) .faq-arrow {
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    background: white;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.faq-answer p {
    color: #374151;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Updated FAQ Images Styles */
.faq-images-container {
    position: relative;
    height: 100%;
    min-height: 500px;
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Images Grid Layout */
.faq-images-grid {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    padding: 1rem;
}

.faq-image-item {
    position: relative;
}

.faq-image-item img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.faq-image-item img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Top Image Styling */
.top-image {
    max-width: 80%;
    margin-right: auto;
}

/* Bottom Image Styling */
.bottom-image {
    max-width: 90%;
    margin-left: auto;
    margin-top: -1rem;
}

/* Updated Statistics Overlay */
.faq-stats-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: black;
    padding: 1.25rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    min-width: 120px;
    text-align: center;
    z-index: 3;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    }

    50% {
        box-shadow: 0 12px 35px rgba(79, 70, 229, 0.6);
    }
}

.stats-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for Images */
@media (max-width: 991.98px) {
    .faq-content {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }

    .faq-header h2 {
        font-size: 2rem;
    }

    .faq-question {
        padding: 1.25rem;
    }

    .faq-question h5 {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 1.25rem;
    }

    .faq-images-container {
        min-height: 400px;
        margin-top: 3rem;
    }

    .faq-images-grid {
        gap: 1.5rem;
    }


    .top-image,
    .bottom-image {
        max-width: 100%;
        margin: 0;
    }

    .bottom-image {
        margin-top: 0;
    }

    .faq-stats-overlay {
        top: 15px;
        right: 15px;
        padding: 1rem;
        min-width: 100px;
    }

    .stats-number {
        font-size: 1.5rem;
    }

    .stats-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    #faq-section {
        padding: 3rem 0;
    }

    .faq-header h2 {
        font-size: 1.75rem;
    }

    .faq-header p {
        font-size: 1rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-question h5 {
        font-size: 0.95rem;
        padding-left: 0.75rem;
    }

    .faq-answer {
        padding: 1rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }

    .faq-images-container {
        min-height: 350px;
    }

    .faq-images-grid {
        gap: 1rem;
        padding: 0.5rem;
    }



    .faq-stats-overlay {
        top: 10px;
        right: 10px;
        padding: 0.75rem;
        min-width: 80px;
    }

    .stats-number {
        font-size: 1.25rem;
    }

    .stats-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .faq-question h5 {
        font-size: 0.9rem;
        padding-left: 0.5rem;
    }

    .faq-arrow {
        font-size: 1rem;
    }

    .faq-images-grid {
        grid-template-rows: auto;
        gap: 1.5rem;
    }

    .bottom-image {
        margin-top: 0;
    }

    .faq-stats-overlay {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 1rem;
        display: inline-block;
    }
}

/* Animation for smooth transitions */
.collapse {
    transition: height 0.35s ease;
}

.collapsing {
    transition: height 0.35s ease;
}

/* Focus styles for accessibility */
.faq-question:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .faq-question:not(.collapsed) {
        background: #000;
        color: #fff;
    }

    .faq-answer {
        border-top: 2px solid #000;
    }
}

/* Animation enhancements */
.faq-image-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.top-image {
    animation-delay: 0.2s;
}

.bottom-image {
    animation-delay: 0.4s;
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .faq-item,
    .faq-question,
    .faq-arrow,
    .faq-image-item img,
    .collapse,
    .collapsing,
    .circle,
    .faq-stats-overlay,
    .faq-image-item {
        transition: none !important;
        animation: none !important;
    }
}

/* ===== CTA SECTION STYLES ===== */
.cta-section {
    direction: rtl;
    font-family: 'Tajawal', 'Cairo', 'Segoe UI', sans-serif;
    overflow: hidden;
}

.cta-container {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    border-radius: 0;
    min-height: 400px;
}


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

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Content Styling */
.cta-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.cta-title .highlight {
    color: var(--primary);
    position: relative;
}

.cta-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    animation: expand 2s ease-out;
}

@keyframes expand {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.cta-description {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* CTA Button Container */
.cta-button-container {
    position: relative;
    display: inline-block;
}

.cta-btn {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
    background: var(--accent-color);
    text-decoration: none;
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.cta-btn:hover .cta-arrow {
    transform: translateX(-5px);
}

/* Decorative Arrow */
.decorative-arrow {
    position: absolute;
    top: -30px;
    left: -60px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-10px);
    }
}

/* Image Container */
.cta-image-container {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-main-image {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.cta-main-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.cta-main-image:hover img {
    transform: scale(1.02);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-book,
.floating-star,
.floating-trophy {
    position: absolute;
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: floatUpDown 4s ease-in-out infinite;
}

.floating-book {
    top: 10%;
    right: 10%;
    color: #3b82f6;
    animation-delay: 0s;
}

.floating-star {
    top: 60%;
    right: -10px;
    color: #f59e0b;
    animation-delay: 1s;
}

.floating-trophy {
    bottom: 20%;
    left: 10%;
    color: var(--primary);
    animation-delay: 2s;
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .cta-content {
        padding: 2rem 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .cta-description {
        max-width: 100%;
    }

    .decorative-arrow {
        display: none;
    }

    .cta-image-container {
        padding: 1rem;
    }

    .floating-book,
    .floating-star,
    .floating-trophy {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .cta-container {
        min-height: auto;
    }

    .cta-content {
        padding: 2rem 1rem;
    }

    .cta-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .cta-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }


    .floating-book,
    .floating-star,
    .floating-trophy {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .cta-title {
        font-size: 1.5rem;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .floating-elements {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .shape,
    .decorative-arrow,
    .floating-book,
    .floating-star,
    .floating-trophy,
    .cta-btn::before {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus styles for accessibility */
.cta-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ===== TOP CATEGORIES SECTION STYLES ===== */





/* Background Image */
.card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cta-card:hover .bg-img {
    transform: scale(1.1);
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

.instructor-card .card-overlay {
    background: linear-gradient(135deg,
            rgba(251, 191, 36, 0.9) 0%,
            rgba(245, 158, 11, 0.8) 50%,
            rgba(217, 119, 6, 0.7) 100%);
}

.courses-card .card-overlay {
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.9) 0%,
            rgba(37, 99, 235, 0.8) 50%,
            rgba(29, 78, 216, 0.7) 100%);
}

/* Card Text */
.card-text {
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.cta-btn-instructor,
.cta-btn-courses {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn-instructor {
    background: #fbbf24;
    color: #92400e;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

.cta-btn-instructor:hover {
    background: #f59e0b;
    color: #92400e;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.5);
    text-decoration: none;
}

.cta-btn-courses {
    background: white;
    color: #1d4ed8;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

.cta-btn-courses:hover {
    background: #f8fafc;
    color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

/* Button Shine Effect */
.cta-btn-instructor::before,
.cta-btn-courses::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.cta-btn-instructor:hover::before,
.cta-btn-courses:hover::before {
    left: 100%;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    animation: floatIcon 6s ease-in-out infinite;
}

.icon-1 {
    top: 15%;
    right: 15%;
    animation-delay: 0s;
}

.icon-2 {
    top: 45%;
    right: 8%;
    animation-delay: 2s;
}

.icon-3 {
    bottom: 25%;
    left: 12%;
    animation-delay: 4s;
}

.icon-4 {
    top: 20%;
    left: 15%;
    animation-delay: 1s;
}

.icon-5 {
    top: 50%;
    left: 8%;
    animation-delay: 3s;
}

.icon-6 {
    bottom: 20%;
    right: 15%;
    animation-delay: 5s;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0px);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .cta-card {
        height: 400px;
        margin-bottom: 2rem;
    }

    .card-title {
        font-size: 1.8rem;
    }

    .card-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .card-content {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .cta-card {
        height: 350px;
    }

    .card-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .card-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-btn-instructor,
    .cta-btn-courses {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .cta-card {
        height: 300px;
    }

    .card-content {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .card-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .cta-btn-instructor,
    .cta-btn-courses {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
    }

    .floating-icons {
        display: none;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .card-overlay {
        background: rgba(0, 0, 0, 0.8) !important;
    }

    .card-title,
    .card-description {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .cta-card,
    .bg-img,
    .floating-icon,
    .cta-btn-instructor::before,
    .cta-btn-courses::before {
        animation: none !important;
        transition: none !important;
    }

    .cta-card:hover {
        transform: none;
    }

    .cta-card:hover .bg-img {
        transform: none;
    }
}

/* Focus Styles for Accessibility */
.cta-btn-instructor:focus,
.cta-btn-courses:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Loading Animation */
.cta-card {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.instructor-card {
    animation-delay: 0.2s;
}

.courses-card {
    animation-delay: 0.4s;
}

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

/* ===== TOP CATEGORIES SECTION STYLES ===== */
.top-categories-section {
    direction: rtl;
    font-family: 'Tajawal', 'Cairo', 'Segoe UI', sans-serif;
    background: #f8f9fa;
    position: relative;
}

/* Categories Title */
.categories-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Category Card */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card.active {
    border-bottom: 3px solid var(--primary);
}

/* Category Icon */
.category-icon {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    flex-shrink: 0;
}

.category-icon i {
    font-size: 1.5rem;
    color: #6b7280;
}


/* Category Name */
.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

/* Active State Styling */
.category-card.active .category-icon {
    background: var(--primary);
}

.category-card.active .category-icon i {
    color: white;
}

.category-card.active .category-name {
    color: var(--primary);
    font-weight: 700;
}

/* Hover Effects */
.category-card:hover {
    background: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon i {
    color: #000;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: #000;
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .categories-title h2 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1rem;
    }

    .category-card {
        padding: 1.25rem;
    }

    .category-icon {
        width: 45px;
        height: 45px;
    }

    .category-icon i {
        font-size: 1.3rem;
    }

    .category-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 767.98px) {
    .categories-title h2 {
        font-size: 1.8rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 0.75rem;
    }

    .category-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .category-icon {
        width: 40px;
        height: 40px;
    }

    .category-icon i {
        font-size: 1.2rem;
    }

    .category-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .categories-title h2 {
        font-size: 1.5rem;
    }

    .category-card {
        padding: 0.875rem;
        gap: 0.5rem;
    }

    .category-icon {
        width: 35px;
        height: 35px;
    }

    .category-icon i {
        font-size: 1.1rem;
    }

    .category-name {
        font-size: 0.85rem;
    }
}

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

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

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

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

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

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

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

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

/* Focus styles for accessibility */
.category-card:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .category-card {
        animation: none !important;
        transition: none !important;
    }

    .category-card:hover {
        transform: none;
    }
}

/* ====== تنسيقات احترافية محسنة ====== */

/* ===== سكشن الهيرو الرئيسي ===== */
.tech-hero-section {
    position: relative;
    overflow: hidden;
}






/* ===== المحتوى النصي ===== */
.hero-content {
    padding: 2rem 0;
    z-index: 2;
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    background: black;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(108, 43, 217, 0.2);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.highlight-text {
    background: black;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* ===== التبويبات المحسنة ===== */
.tabs-container {
    margin-top: 2rem;
}

.custom-tabs {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.custom-tabs .nav-link {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
}

.custom-tabs .nav-link:hover {
    border-color: #e6ff00;
    color: black;
    transform: translateY(-2px);
}

.custom-tabs .nav-link.active {
    background: #e6ff00;
    border-color: #e6ff00;
    color: black;
    box-shadow: 0 8px 25px rgba(108, 43, 217, 0.3);
}

/* زر اختيار نوع الاستشارة */
.consultation-category-btn {
    background: black !important;
    border-color: black !important;
    color: white !important;
}

.consultation-category-btn:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: black !important;
}

.consultation-category-btn:focus {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: black !important;
}

.consultation-category-menu .dropdown-item:hover {
    color: black !important;
    font-weight: 700 !important;
}

/* ===== بطاقات الاستشارات ===== */
.consultation-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.consultation-card:hover {
    transform: translateY(-5px);
}

/* صورة الاستشارة */
.consultation-image {
    height: 230px;
    overflow: hidden;
    position: relative;
}

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

.consultation-card:hover .consultation-image img {
    transform: scale(1.05);
}

/* معلومات المدرب */
.consultant-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    height: 240px;
    justify-content: space-between;
}

/* الصف الأول: صورة المدرب مع الاسم والمسمى */
.consultant-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.consultant-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e6ff00;
    box-shadow: 0 8px 25px rgba(108, 43, 217, 0.2);
}

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

.consultant-basic-info {
    flex: 1;
}

.consultant-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.3rem;
}

.consultant-title {
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    background: black;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    display: inline-block;
    margin: 0;
}

/* الصف الثاني: الوصف */
.consultant-bio-section {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.consultant-bio {
    color: #64748b;
    line-height: 1.5;
    font-size: 0.85rem;
    margin: 0;
}

/* الصف الثالث: الزر */
.consultant-button-section {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.btn-consultation {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.btn-consultation:hover {
    transform: translateY(-2px);
    color: white;
}

/* ===== الاستجابة ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }


    .consultant-info {
        height: auto;
        padding: 1.5rem;
    }

    .consultant-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .consultant-bio-section {
        justify-content: center;
        text-align: center;
    }

    .consultant-button-section {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }


    .consultation-image {
        height: 180px;
    }

    .consultant-info {
        padding: 1.5rem;
        height: auto;
    }

    .consultant-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .consultant-bio-section {
        justify-content: center;
        text-align: center;
    }

    .consultant-button-section {
        justify-content: center;
    }

    .consultant-avatar {
        width: 75px;
        height: 75px;
    }

    .consultant-name {
        font-size: 1.2rem;
    }

    .consultant-bio {
        font-size: 0.85rem;
    }

    .custom-tabs .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .custom-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }



    .consultation-image {
        height: 150px;
    }

    .consultant-info {
        padding: 1rem;
        height: auto;
    }

    .consultant-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .consultant-bio-section {
        justify-content: center;
        text-align: center;
    }

    .consultant-button-section {
        justify-content: center;
    }

    .consultant-avatar {
        width: 65px;
        height: 65px;
    }

    .consultant-name {
        font-size: 1.1rem;
    }

    .consultant-title {
        font-size: 0.85rem;
        padding: 0.2rem 0.6rem;
    }

    .consultant-bio {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .btn-consultation {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .custom-tabs .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        margin-left: 0.3rem;
    }
}

/* ===== CALL TO ACTION SECTION ===== */
.cta-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.cta-section .container {
    padding-left: 0;
    padding-right: 0;
}

.cta-section .row {
    margin-left: 0;
    margin-right: 0;
}

.cta-section .col-12,
.cta-section .col-lg-6 {
    padding-left: 0;
    padding-right: 0;
}

.cta-card {
    position: relative;
    height: 350px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cta-instructor-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.cta-instructor-card:hover::before {
    background: linear-gradient(135deg, rgba(245, 245, 220, 0.6) 0%, rgba(240, 240, 230, 0.5) 100%);
}

.courses-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.courses-card:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(248, 249, 250, 0.6) 100%);
}

/* CTA Instructor Card */
.cta-instructor-card {
    background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.cta-instructor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 245, 220, 0.85) 0%, rgba(240, 240, 230, 0.75) 100%);
    z-index: 1;
}

/* Courses Card */
.courses-card {
    background-image: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.courses-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.85) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 40px 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;

}

.cta-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 100px;
    max-width: 120px;
}

.instructor-btn {
    background-color: transparent;
    color: var(--primary);
    border-radius: 8px;
    border: 1px solid var(--primary);

}

.instructor-btn:hover {
    background-color: var(--accent-color);
    color: black;
    transform: translateY(-2px);
}

.courses-btn {
    background-color: var(--primary);
    color: #ffffff;
}

.courses-btn:hover {
    background-color: var(--accent-color);
    color: black;
    transform: translateY(-2px);
}

/* Pattern Background */
.cta-pattern {
    position: absolute;
    bottom: 0;
    width: 200px;
    height: 200px;
    opacity: 0.1;
    z-index: 1;
}

.instructor-pattern {
    right: 0;
    background: radial-gradient(circle, #6c757d 2px, transparent 2px);
    background-size: 20px 20px;
}

.courses-pattern {
    left: 0;
    background: radial-gradient(circle, #6c757d 2px, transparent 2px);
    background-size: 20px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }

    .cta-card {
        height: 300px;
        margin-bottom: 0;
    }

    .cta-instructor-card,
    .courses-card {
        background-size: cover;
        background-position: center;
    }

    .cta-content {
        padding: 30px 25px;
    }

    .cta-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .cta-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .cta-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        min-width: 90px;
        max-width: 110px;
    }

    .cta-pattern {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .cta-card {
        height: 280px;
        margin-bottom: 0;
    }

    .cta-content {
        padding: 25px 20px;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-description {
        font-size: 0.85rem;
    }
}