:root {
    --navy: #0d1b3e;
    --navy-dark: #09152c;
    --navy-light: #14274e;
    --orange: #ff6d00;
    --orange-dark: #e65100;
    --orange-light: #ff9800;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s ease;
}

* {
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.7;
}

/* أنماط اللغة */
.language-ar {
    display: block;
}

.language-en {
    display: none;
}

body.english {
    direction: ltr;
}

body.english .language-ar {
    display: none !important;
}

body.english .language-en {
    display: block !important;
}

body.english .section-title::after {
    right: auto;
    left: 0;
}

body.english .section-title.center::after {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

body.english .nav-link::after {
    right: auto;
    left: 0;
}

body.english .offline-course {
    border-right: none;
    border-left: 5px solid var(--orange);
}

body.english .offline-course:hover {
    border-left: 5px solid var(--navy);
}

body.english .social-icons a {
    margin-left: 0;
    margin-right: 15px;
}

body.english .carousel-caption {
    right: 10%;
    left: 10%;
}

body.english .search-box button {
    left: auto;
    right: 10px;
}

body.english .cv-item {
    border-right: none;
    border-left: 4px solid var(--navy);
}

body.english .cv-item:hover {
    border-left: 4px solid var(--orange);
}

body.english .cv-list li {
    padding-right: 0;
    padding-left: 25px;
}

body.english .cv-list li::before {
    right: auto;
    left: 0;
}

body.english .categories-list li:hover {
    padding-right: 0;
    padding-left: 10px;
}

body.english .widget-title::after {
    right: auto;
    left: 0;
}

body.english .comment-card {
    border-right: none;
    border-left: 3px solid var(--orange);
}

body.english .consultation-steps::before {
    right: auto;
    left: 0;
}

body.english .process-steps::before {
    right: auto;
    left: 10%;
}

body.english .lecture-card {
    border-right: none;
    border-left: 4px solid var(--navy);
}

body.english .lecture-card:hover {
    border-left: 4px solid var(--orange);
    transform: translateX(5px);
}

/* الأزرار */
.btn-primary {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 28px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(13, 27, 62, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 27, 62, 0.3);
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
}

.btn-accent {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    border: none;
    color: white;
    border-radius: var(--border-radius);
    padding: 14px 32px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 109, 0, 0.2);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--orange-dark), var(--orange));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 109, 0, 0.3);
    color: white;
}

/* العناوين */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 800;
    color: var(--navy);
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, var(--orange), var(--orange-light));
    border-radius: 3px;
}

.section-title.center::after {
    right: 50%;
    transform: translateX(50%);
}

/* البطاقات */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
}

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

.card-img-top {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

/* الهيدر والتنقل */
header {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* منع وميض الهيدر أثناء التحميل */
#header-container {
    min-height: 80px;
    background-color: #fff;
    visibility: visible;
    display: block;
}

.nav-link {
    color: var(--navy);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-nav .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* مبدل اللغة */
.lang-switcher {
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-switcher:hover {
    border-color: var(--orange);
    box-shadow: 0 2px 8px rgba(255, 109, 0, 0.2);
}

.lang-switcher .active {
    color: var(--orange);
}

/* البحث */
.search-box {
    position: relative;
    margin-left: 15px;
}

.search-box input {
    border-radius: 20px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    width: 200px;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(255, 109, 0, 0.2);
    outline: none;
}

.search-box button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
}

/* الهيرو سيكشن */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 27, 62, 0.85), rgba(20, 39, 78, 0.9)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, white);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* الأوسمة والعناوين الفرعية */
.price-tag {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(255, 109, 0, 0.2);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--orange);
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
}

.location-badge {
    background: var(--navy);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.date-badge {
    background: var(--navy);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* الأيقونات الاجتماعية */
.social-icons a {
    color: white;
    font-size: 1.3rem;
    margin-left: 15px;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: var(--orange);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* الفوتر */
footer {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: white;
    padding: 60px 0 20px;
}

/* الكاروسيل */
.banner-carousel {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.carousel-item img {
    height: 450px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(13, 27, 62, 0.7);
    border-radius: var(--border-radius);
    padding: 20px;
    right: 10%;
    left: 10%;
    bottom: 20%;
}

/* الأقسام الخاصة - كروت مربعة */
.category-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 4px solid var(--navy);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    flex-shrink: 0;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-top: 4px solid var(--orange);
}

.category-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    -webkit-background-clip: text;
}

.category-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--navy);
}

.category-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Container للتمرير الأفقي للأقسام - دائماً تمرير أفقي */
.categories-scroll-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) var(--light-bg);
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.categories-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.categories-scroll-container::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}

.categories-scroll-container::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 10px;
}

.categories-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--orange-dark);
}

.categories-scroll-wrapper {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    min-width: fit-content;
    flex-wrap: nowrap;
}

/* على الشاشات الصغيرة - كروت أصغر قليلاً */
@media (max-width: 576px) {
    .category-card {
        width: 180px;
        min-width: 180px;
        max-width: 180px;
        padding: 25px 15px;
    }
    
    .category-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .category-card h5 {
        font-size: 1rem;
    }
    
    .category-card p {
        font-size: 0.85rem;
    }
}

/* Container للتمرير الأفقي للدورات - دائماً تمرير أفقي */
.courses-scroll-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) var(--light-bg);
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.courses-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.courses-scroll-container::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}

.courses-scroll-container::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 10px;
}

.courses-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--orange-dark);
}

.courses-scroll-wrapper {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    min-width: fit-content;
    flex-wrap: nowrap;
}

.course-card-item {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
}

.course-card-item .card {
    height: 100%;
    transition: var(--transition);
}

.course-card-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.course-card-item .card-img-top {
    height: 200px;
    object-fit: cover;
}

.course-card-item .card-body {
    display: flex;
    flex-direction: column;
}

.course-card-item .card-text {
    flex-grow: 1;
    min-height: 60px;
}

/* على الشاشات الصغيرة - كروت أصغر */
@media (max-width: 576px) {
    .course-card-item {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
    }
    
    .course-card-item .card-img-top {
        height: 180px;
    }
}

/* قسم المدربين */
.instructor-section {
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.instructor-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.instructor-content {
    position: relative;
    z-index: 2;
}

/* الكورسات الأوفلاين */
.offline-course {
    border-right: 5px solid var(--orange);
    transition: var(--transition);
}

.offline-course:hover {
    border-right: 5px solid var(--navy);
}

/* Container للتمرير الأفقي للدورات الحضورية */
.offline-courses-scroll-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) var(--light-bg);
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.offline-courses-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.offline-courses-scroll-container::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}

.offline-courses-scroll-container::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 10px;
}

.offline-courses-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--orange-dark);
}

.offline-courses-scroll-wrapper {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    min-width: fit-content;
    flex-wrap: nowrap;
}

.offline-course-card-item {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
}

.offline-courses-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.offline-course-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-right: 4px solid var(--orange);
    height: 100%;
}

.offline-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* الفلاتر والبحث */
.filter-section {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
}

.filter-title {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h6 {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 15px;
}

.form-check-label {
    cursor: pointer;
    transition: var(--transition);
}

.form-check-label:hover {
    color: var(--orange);
}

.form-check-input:checked {
    background-color: var(--orange);
    border-color: var(--orange);
}

.sort-bar {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

/* التقدم */
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
}

/* صفحة الكورس */
.course-hero {
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: white;
    padding: 60px 0 30px;
}

.course-sidebar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    position: sticky;
    top: 100px;
}

.instructor-card {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
}

.instructor-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--orange);
}

.feature-list li {
    margin-bottom: 10px;
    padding-right: 25px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--orange);
    font-weight: bold;
}

.curriculum-item {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.curriculum-header {
    background: var(--light-bg);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.curriculum-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.curriculum-item.active .curriculum-content {
    padding: 20px;
    max-height: 1000px;
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

.lesson-item:last-child {
    border-bottom: none;
}

.review-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 20px;
}

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

/* player الكورس */
.lessons-sidebar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: calc(100vh - 140px);
    position: sticky;
    top: 100px;
    overflow-y: auto;
}

.lesson-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lesson-item:hover {
    background: var(--light-bg);
}

.lesson-item.active {
    background: var(--orange-light);
    color: white;
    border-right: 4px solid var(--orange);
}

.lesson-item.completed .lesson-title {
    text-decoration: line-through;
    color: var(--text-light);
}

.lesson-duration {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-right: auto;
}

.section-header {
    background: var(--navy-light);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.video-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-container video {
    object-fit: contain;
}

.note-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
}

.resources-list {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 30px;
}

.resource-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: #fff;
    border-color: var(--orange);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.resource-item:last-child {
    margin-bottom: 0;
}

.resource-item .resource-icon {
    font-size: 2rem;
    margin-left: 15px;
    min-width: 50px;
    text-align: center;
}

.resource-item .btn {
    white-space: nowrap;
}

.quiz-section {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 25px 0;
}

.discussion-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
}

.code-example {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* المدونة */
.blog-hero {
    background: linear-gradient(135deg, rgba(13, 27, 62, 0.85), rgba(20, 39, 78, 0.9)), url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, white);
}

.blog-content {
    position: relative;
    z-index: 2;
}

.blog-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-img {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-card-body {
    padding: 25px;
}

.blog-card-title {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog-card-text {
    color: var(--text-light);
    margin-bottom: 20px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta-item i {
    color: var(--orange);
}

.blog-tag {
    background: rgba(255, 109, 0, 0.1);
    color: var(--orange);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-left: 8px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.blog-tag:hover {
    background: var(--orange);
    color: white;
    transform: translateY(-2px);
}

/* السايدبار */
.sidebar-widget {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--orange), var(--orange-light));
    border-radius: 3px;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
    transition: var(--transition);
}

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

.categories-list li:hover {
    padding-right: 10px;
}

.categories-list li a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.categories-list li:hover a {
    color: var(--orange);
}

.categories-list li span {
    background: var(--light-bg);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.recent-post {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-img {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-content h6 {
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-post-content h6 a {
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}

.recent-post-content h6 a:hover {
    color: var(--orange);
}

.recent-post-content .blog-meta {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* صفحة المقال */
.article-hero {
    background: linear-gradient(135deg, rgba(13, 27, 62, 0.85), rgba(20, 39, 78, 0.9)), url('https://images.unsplash.com/photo-1553877522-43269d4ea984?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, white);
}

.article-content {
    position: relative;
    z-index: 2;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 1rem;
}

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

.article-meta-item i {
    color: var(--orange-light);
}

.article-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-left: 10px;
    backdrop-filter: blur(10px);
}

.article-body {
    padding: 60px 0;
}

.article-content-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    margin-top: -80px;
    position: relative;
    z-index: 3;
}

.article-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
}

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

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

.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-text h3 {
    color: var(--navy);
    margin: 30px 0 20px;
    font-weight: 700;
}

.article-text p {
    margin-bottom: 20px;
}

.article-text blockquote {
    border-right: 4px solid var(--orange);
    padding: 20px 30px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    margin: 30px 0;
    font-style: italic;
}

.article-text ul, .article-text ol {
    margin: 20px 0;
    padding-right: 20px;
}

.article-text li {
    margin-bottom: 10px;
}

.author-card {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}

.author-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--orange);
    margin-bottom: 20px;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }

.comments-section {
    margin: 60px 0;
}

.comment-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 20px;
    border-right: 3px solid var(--orange);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-meta h6 {
    margin-bottom: 5px;
    font-weight: 600;
}

.comment-meta span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.related-articles {
    background: var(--light-bg);
    padding: 60px 0;
}

/* صفحة من نحن */
.about-hero {
    background: linear-gradient(135deg, rgba(13, 27, 62, 0.85), rgba(20, 39, 78, 0.9)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, white);
}

.about-content {
    position: relative;
    z-index: 2;
}

.mission-vision-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.mission-card, .vision-card, .goals-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid var(--navy);
}

.mission-card:hover, .vision-card:hover, .goals-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-top: 4px solid var(--orange);
}

.mission-icon, .vision-icon, .goals-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    transition: var(--transition);
}

.mission-card:hover .mission-icon, .vision-card:hover .vision-icon, .goals-card:hover .goals-icon {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    -webkit-background-clip: text;
}

/* السيرة الذاتية */
.cv-section {
    padding: 80px 0;
}

.cv-header {
    text-align: center;
    margin-bottom: 50px;
}

.cv-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--orange);
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cv-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition);
    border-right: 4px solid var(--navy);
    position: relative;
    overflow: hidden;
}

.cv-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to left, var(--orange), var(--orange-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.cv-item:hover::before {
    transform: scaleX(1);
}

.cv-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-right: 4px solid var(--orange);
}

.cv-item-title {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cv-item-title i {
    color: var(--orange);
    background: rgba(255, 109, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-list {
    list-style: none;
    padding: 0;
}

.cv-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
    position: relative;
    padding-right: 25px;
}

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

.cv-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--orange);
    font-weight: bold;
}

.achievement-badge {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-left: 8px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.achievement-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(255, 109, 0, 0.3);
}

/* التجاوب للشاشات الصغيرة */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-section, .about-hero, .blog-hero, .article-hero, .my-courses-hero, .publications-hero, .consultation-hero {
        padding: 100px 0 60px;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-nav {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .header-actions {
        order: 1;
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        width: 100% !important;
        margin: 10px 0;
    }
    
    .search-box input {
        width: 100% !important;
    }
    
    .course-sidebar, .lessons-sidebar {
        position: static;
        margin-bottom: 30px;
        height: auto;
    }
    
    .article-content-card {
        padding: 25px;
        margin-top: -60px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }
    
    .consultation-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .consultation-steps::before {
        display: none;
    }
    
    .cv-photo {
        width: 150px;
        height: 150px;
    }
    
    .lecture-header {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem !important;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .requirement-item {
        flex-direction: column;
        text-align: center;
    }
}

/* منع التمرير الأفقي */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
.offline-hero {
            background: linear-gradient(135deg, var(--navy), var(--navy-dark));
            color: white;
            padding: 100px 0 60px;
            text-align: center;
        }

        .offline-card {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            overflow: hidden;
            height: 100%;
            border: 1px solid #e9ecef;
        }

        .offline-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .location-badge {
            background: var(--orange);
            color: white;
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .date-badge {
            background: var(--navy);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .seats-info {
            background: #e8f5e8;
            color: #2e7d32;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .seats-warning {
            background: #ffebee;
            color: #c62828;
        }

        .features-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .features-list li {
            padding: 8px 0;
            border-bottom: 1px solid #f1f1f1;
            display: flex;
            align-items: center;
            gap: 10px;
        }

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

        .features-list li i {
            color: var(--orange);
            width: 20px;
        }

        .filter-section {
            background: var(--light-bg);
            border-radius: var(--border-radius);
            padding: 25px;
            margin-bottom: 30px;
        }

        .stats-section {
            background: linear-gradient(135deg, var(--navy-light), var(--navy));
            color: white;
            padding: 60px 0;
            border-radius: var(--border-radius);
            margin: 40px 0;
        }

        .stat-item {
            text-align: center;
            padding: 20px;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 10px;
        }

        .stat-label {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        .lang-switcher {
            background: white;
            border: 1px solid #ddd;
            border-radius: 20px;
            padding: 5px 10px;
            cursor: pointer;
            font-weight: 600;
            color: var(--navy);
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .lang-switcher:hover {
            border-color: var(--orange);
            box-shadow: 0 2px 8px rgba(255, 109, 0, 0.2);
        }

        .lang-switcher .active {
            color: var(--orange);
        }

        .nav-link {
            color: var(--navy);
            font-weight: 600;
            transition: var(--transition);
            position: relative;
        }
         .filter-section .row {
                margin-bottom: 15px;
            }
        

        .city-filter {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
        }

        .city-btn {
            padding: 8px 20px;
            border: 2px solid #dee2e6;
            border-radius: 25px;
            background: white;
            color: var(--text-dark);
            transition: var(--transition);
            cursor: pointer;
        }

        .city-btn:hover,
        .city-btn.active {
            background: var(--orange);
            color: white;
            border-color: var(--orange);
        }
        /* محتوى الكورس */
        .progress-section {
            background: white;
            border-radius: var(--border-radius);
            padding: 20px;
            margin: 20px 0;
            box-shadow: var(--box-shadow);
        }

        .progress {
            height: 8px;
            background-color: #e9ecef;
            border-radius: 10px;
        }

        .progress-bar {
            background: linear-gradient(135deg, var(--orange), var(--orange-light));
        }

        .lessons-sidebar {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            height: calc(100vh - 140px);
            position: sticky;
            top: 100px;
            overflow-y: auto;
        }

        @media (max-width: 991px) {
            .lessons-sidebar {
                height: auto;
                position: static;
                margin-bottom: 20px;
            }
        }

        .lesson-item {
            padding: 15px 20px;
            border-bottom: 1px solid #f1f1f1;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .lesson-item:hover {
            background: var(--light-bg);
        }

        .lesson-item.active {
            background: var(--orange-light);
            color: white;
            border-right: 4px solid var(--orange);
        }

        .lesson-item.completed .lesson-title {
            text-decoration: line-through;
            color: var(--text-light);
        }

        .lesson-duration {
            font-size: 0.8rem;
            color: var(--text-light);
            margin-right: auto;
        }

        .section-header {
            background: var(--navy-light);
            color: white;
            padding: 15px 20px;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .course-content {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 30px;
        }

        .video-container {
            background: #000;
            border-radius: var(--border-radius);
            overflow: hidden;
            position: relative;
            padding-top: 56.25%;
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        .note-box {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: var(--border-radius);
            padding: 20px;
            margin: 20px 0;
        }

        .resources-list {
            background: var(--light-bg);
            border-radius: var(--border-radius);
            padding: 20px;
            margin-top: 30px;
        }

        .resource-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #dee2e6;
        }

        .resource-item:last-child {
            border-bottom: none;
        }

        .quiz-section {
            background: var(--light-bg);
            border-radius: var(--border-radius);
            padding: 25px;
            margin: 25px 0;
        }

        .discussion-section {
            background: white;
            border-radius: var(--border-radius);
            padding: 25px;
            margin-top: 30px;
            box-shadow: var(--box-shadow);
        }

        .code-example {
            background: #1e1e1e;
            color: #d4d4d4;
            border-radius: var(--border-radius);
            padding: 20px;
            margin: 20px 0;
            overflow-x: auto;
        }

        .navigation-buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #dee2e6;
        }
        .nav-link {
            color: var(--navy);
            font-weight: 600;
            transition: var(--transition);
            position: relative;
        }

        .nav-link:hover {
            color: var(--orange);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 2px;
            background: var(--orange);
            transition: var(--transition);
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .course-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--orange);
            color: white;
            padding: 5px 12px;
            border-radius: 30px;
            font-size: 0.8rem;
            font-weight: 600;
            z-index: 3;
        }

        /* فلترات الكورسات */
        .filter-section {
            background: var(--light-bg);
            border-radius: var(--border-radius);
            padding: 25px;
            margin-bottom: 30px;
        }

        .filter-title {
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 20px;
            font-size: 1.2rem;
        }

        .filter-group {
            margin-bottom: 25px;
        }

        .filter-group h6 {
            font-weight: 600;
            color: var(--navy);
            margin-bottom: 15px;
        }

        .form-check-label {
            cursor: pointer;
            transition: var(--transition);
        }

        .form-check-label:hover {
            color: var(--orange);
        }

        .form-check-input:checked {
            background-color: var(--orange);
            border-color: var(--orange);
        }
         .card {
            border: none;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            height: 100%;
            overflow: hidden;
        }

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

        .card-img-top {
            border-top-left-radius: var(--border-radius);
            border-top-right-radius: var(--border-radius);
            height: 200px;
            object-fit: cover;
            transition: var(--transition);
        }

        .card:hover .card-img-top {
            transform: scale(1.05);
        }
         .course-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--orange);
            color: white;
            padding: 5px 12px;
            border-radius: 30px;
            font-size: 0.8rem;
            font-weight: 600;
            z-index: 3;
        }

        /* فلترات الكورسات */
        .filter-section {
            background: var(--light-bg);
            border-radius: var(--border-radius);
            padding: 25px;
            margin-bottom: 30px;
        }

        .filter-title {
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 20px;
            font-size: 1.2rem;
        }

        .filter-group {
            margin-bottom: 25px;
        }

        .filter-group h6 {
            font-weight: 600;
            color: var(--navy);
            margin-bottom: 15px;
        }

        .form-check-label {
            cursor: pointer;
            transition: var(--transition);
        }

        .form-check-label:hover {
            color: var(--orange);
        }

        .form-check-input:checked {
            background-color: var(--orange);
            border-color: var(--orange);
        }

        /* شريط الترتيب والبحث */
        .sort-bar {
            background: white;
            border-radius: var(--border-radius);
            padding: 20px;
            margin-bottom: 30px;
            box-shadow: var(--box-shadow);
        }

        .breadcrumb {
            background: none;
            padding: 0;
            margin-bottom: 20px;
        }

        .breadcrumb-item a {
            color: var(--navy);
            text-decoration: none;
            transition: var(--transition);
        }

        .breadcrumb-item a:hover {
            color: var(--orange);
        }

        .breadcrumb-item.active {
            color: var(--orange);
        }

        /* تقدم الكورس */
        .progress-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .progress {
            height: 8px;
            background-color: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
        }

        .progress-bar {
            background: linear-gradient(135deg, var(--orange), var(--orange-light));
        }

        /* تاج الكورس */
        .course-tag {
            display: inline-block;
            background: rgba(13, 27, 62, 0.1);
            color: var(--navy);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            margin-left: 8px;
            margin-bottom: 8px;
        }

        /* Pagination */
        .pagination .page-link {
            color: var(--navy);
            border: 1px solid #dee2e6;
            padding: 8px 16px;
        }

        .pagination .page-link:hover {
            background-color: var(--navy);
            color: white;
            border-color: var(--navy);
        }

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

        /* قسم الهيدر */
        .category-header {
            background: linear-gradient(135deg, var(--navy), var(--navy-dark));
            color: white;
            padding: 80px 0 40px;
            margin-bottom: 40px;
        }

        .category-icon {
            font-size: 4rem;
            margin-bottom: 20px;
            opacity: 0.8;
        }

        .stats {
            display: flex;
            gap: 30px;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* تعديلات للغة الإنجليزية */
        body.english .section-title::after {
            right: auto;
            left: 0;
        }

        body.english .nav-link::after {
            right: auto;
            left: 0;
        }

        body.english .search-box button {
            left: auto;
            right: 10px;
        }
         .section-title.center::after {
            right: 50%;
            transform: translateX(50%);
        }

        .card {
            border: none;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            height: 100%;
            overflow: hidden;
        }

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

        .lang-switcher {
            background: white;
            border: 1px solid #ddd;
            border-radius: 20px;
            padding: 5px 10px;
            cursor: pointer;
            font-weight: 600;
            color: var(--navy);
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .lang-switcher:hover {
            border-color: var(--orange);
            box-shadow: 0 2px 8px rgba(255, 109, 0, 0.2);
        }

        .lang-switcher .active {
            color: var(--orange);
        }

        .nav-link {
            color: var(--navy);
            font-weight: 600;
            transition: var(--transition);
            position: relative;
        }

        .nav-link:hover {
            color: var(--orange);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 2px;
            background: var(--orange);
            transition: var(--transition);
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .my-courses-hero {
            background: linear-gradient(135deg, rgba(13, 27, 62, 0.85), rgba(20, 39, 78, 0.9)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 140px 0 100px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .my-courses-hero::before {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 100px;
            background: linear-gradient(transparent, white);
        }

        .my-courses-content {
            position: relative;
            z-index: 2;
        }

        .progress-card {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 30px;
            margin-bottom: 30px;
        }

        .progress-section {
            margin: 40px 0;
        }

        .progress-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .progress {
            height: 10px;
            background-color: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
        }

        .progress-bar {
            background: linear-gradient(135deg, var(--orange), var(--orange-light));
        }

        .course-card {
            border: none;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            overflow: hidden;
            height: 100%;
        }

        .course-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .course-card-img {
            height: 200px;
            object-fit: cover;
            transition: var(--transition);
        }

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

        .course-card-body {
            padding: 25px;
        }

        .course-card-title {
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 15px;
            font-size: 1.3rem;
            line-height: 1.4;
        }

        .course-card-text {
            color: var(--text-light);
            margin-bottom: 20px;
        }

        .course-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
            font-size: 0.9rem;
            color: var(--text-light);
        }
.course-meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .course-meta-item i {
            color: var(--orange);
        }

        .course-badge {
            background: rgba(255, 109, 0, 0.1);
            color: var(--orange);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            display: inline-block;
            margin-left: 8px;
            margin-bottom: 8px;
        }

        .status-badge {
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            display: inline-block;
        }

        .status-completed {
            background: #e8f5e8;
            color: #2e7d32;
        }

        .status-in-progress {
            background: #e3f2fd;
            color: #1565c0;
        }

        .status-not-started {
            background: #fff3e0;
            color: #ef6c00;
        }

        .filter-section {
            background: var(--light-bg);
            border-radius: var(--border-radius);
            padding: 25px;
            margin-bottom: 30px;
        }

        .filter-title {
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 20px;
            font-size: 1.2rem;
        }

        .filter-group {
            margin-bottom: 25px;
        }

        .filter-group h6 {
            font-weight: 600;
            color: var(--navy);
            margin-bottom: 15px;
        }

        .form-check-label {
            cursor: pointer;
            transition: var(--transition);
        }

        .form-check-label:hover {
            color: var(--orange);
        }

        .form-check-input:checked {
            background-color: var(--orange);
            border-color: var(--orange);
        }
 .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin: 30px 0;
        }

        .stat-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 25px;
            text-align: center;
            box-shadow: var(--box-shadow);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--orange);
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 0.9rem;
            color: var(--text-light);
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
        }

        .empty-state-icon {
            font-size: 4rem;
            color: var(--text-light);
            margin-bottom: 20px;
        }

        .social-icons a {
            color: var(--navy);
            font-size: 1.3rem;
            margin-left: 15px;
            transition: var(--transition);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(13, 27, 62, 0.1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
 .publications-hero {
            background: linear-gradient(135deg, rgba(13, 27, 62, 0.85), rgba(20, 39, 78, 0.9)), url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 140px 0 100px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .publications-hero::before {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 100px;
            background: linear-gradient(transparent, white);
        }

        .publications-content {
            position: relative;
            z-index: 2;
        }

        .author-profile {
            text-align: center;
            margin-bottom: 50px;
        }

        .author-img {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            border: 5px solid var(--orange);
            margin-bottom: 20px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .book-card {
            border: none;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            overflow: hidden;
            height: 100%;
        }

        .book-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .book-card-img {
            height: 300px;
            object-fit: cover;
            transition: var(--transition);
        }

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

        .book-card-body {
            padding: 25px;
        }

        .book-card-title {
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 15px;
            font-size: 1.3rem;
            line-height: 1.4;
        }

        .book-card-text {
            color: var(--text-light);
            margin-bottom: 20px;
        }

        .book-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
            font-size: 0.9rem;
            color: var(--text-light);
        }

        .book-meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .book-meta-item i {
            color: var(--orange);
        }

        .book-badge {
            background: rgba(255, 109, 0, 0.1);
            color: var(--orange);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            display: inline-block;
            margin-left: 8px;
            margin-bottom: 8px;
        }
          .lecture-card {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 25px;
            margin-bottom: 25px;
            transition: var(--transition);
            border-right: 4px solid var(--navy);
        }

        .lecture-card:hover {
            transform: translateX(-5px);
            border-right: 4px solid var(--orange);
        }

        .lecture-header {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            margin-bottom: 15px;
        }

        .lecture-icon {
            font-size: 2rem;
            color: var(--orange);
            background: rgba(255, 109, 0, 0.1);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .lecture-title {
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 10px;
            font-size: 1.2rem;
        }

        .lecture-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
            font-size: 0.9rem;
            color: var(--text-light);
        }

        .lecture-meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
           .author-profile {
            text-align: center;
            margin-bottom: 50px;
        }

        .author-img {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            border: 5px solid var(--orange);
            margin-bottom: 20px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .book-card {
            border: none;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            overflow: hidden;
            height: 100%;
        }

        .book-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .book-card-img {
            height: 300px;
            object-fit: cover;
            transition: var(--transition);
        }

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

        .book-card-body {
            padding: 25px;
        }

        .book-card-title {
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 15px;
            font-size: 1.3rem;
            line-height: 1.4;
        }

        .book-card-text {
            color: var(--text-light);
            margin-bottom: 20px;
        }

        .book-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
            font-size: 0.9rem;
            color: var(--text-light);
        }

        .book-meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .book-meta-item i {
            color: var(--orange);
        }

        .book-badge {
            background: rgba(255, 109, 0, 0.1);
            color: var(--orange);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            display: inline-block;
            margin-left: 8px;
            margin-bottom: 8px;
        }

        .lecture-card {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 25px;
            margin-bottom: 25px;
            transition: var(--transition);
            border-right: 4px solid var(--navy);
        }

        .lecture-card:hover {
            transform: translateX(-5px);
            border-right: 4px solid var(--orange);
        }

        .lecture-header {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            margin-bottom: 15px;
        }

        .lecture-icon {
            font-size: 2rem;
            color: var(--orange);
            background: rgba(255, 109, 0, 0.1);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .lecture-title {
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 10px;
            font-size: 1.2rem;
        }

        .lecture-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
            font-size: 0.9rem;
            color: var(--text-light);
        }

        .lecture-meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
         .consultation-hero {
            background: linear-gradient(135deg, rgba(13, 27, 62, 0.85), rgba(20, 39, 78, 0.9)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 140px 0 100px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .consultation-hero::before {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 100px;
            background: linear-gradient(transparent, white);
        }

        .consultation-content {
            position: relative;
            z-index: 2;
        }

        .consultation-steps {
            display: flex;
            justify-content: space-between;
            margin: 60px 0;
            position: relative;
        }

        .consultation-steps::before {
            content: '';
            position: absolute;
            top: 30px;
            right: 0;
            width: 100%;
            height: 3px;
            background: var(--orange);
            z-index: 1;
        }

        .step {
            text-align: center;
            position: relative;
            z-index: 2;
            flex: 1;
        }

        .step-icon {
            width: 60px;
            height: 60px;
            background: var(--orange);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin: 0 auto 15px;
            position: relative;
            z-index: 2;
        }

        .step-title {
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 10px;
        }

        .form-section {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 40px;
            margin-bottom: 30px;
        }

        .form-title {
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 25px;
            font-size: 1.5rem;
        }

        .form-label {
            font-weight: 600;
            color: var(--navy);
            margin-bottom: 8px;
        }

        .form-control, .form-select {
            border-radius: var(--border-radius);
            padding: 12px 15px;
            border: 1px solid #ddd;
            transition: var(--transition);
        }

        .form-control:focus, .form-select:focus {
            border-color: var(--orange);
            box-shadow: 0 0 0 2px rgba(255, 109, 0, 0.2);
        }

        .file-upload {
            border: 2px dashed #ddd;
            border-radius: var(--border-radius);
            padding: 30px;
            text-align: center;
            transition: var(--transition);
            cursor: pointer;
        }

        .file-upload:hover {
            border-color: var(--orange);
        }

        .file-upload i {
            font-size: 3rem;
            color: var(--text-light);
            margin-bottom: 15px;
        }

        .consultation-package {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 30px;
            text-align: center;
            transition: var(--transition);
            border: 2px solid transparent;
        }

        .consultation-package:hover {
            transform: translateY(-5px);
            border-color: var(--orange);
        }

        .package-price {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--orange);
            margin: 20px 0;
        }

        .package-features {
            list-style: none;
            padding: 0;
            margin: 20px 0;
        }

        .package-features li {
            padding: 8px 0;
            border-bottom: 1px solid #f1f1f1;
        }

        .package-features li:last-child {
            border-bottom: none;
        }

        .consultation-status {
            background: var(--light-bg);
            border-radius: var(--border-radius);
            padding: 25px;
            margin-bottom: 20px;
        }

        .status-badge {
            padding: 8px 20px;
            border-radius: 20px;
            font-weight: 600;
            display: inline-block;
            margin-bottom: 15px;
        }

        .status-pending {
            background: #fff3cd;
            color: #856404;
        }

        .status-evaluated {
            background: #d1ecf1;
            color: #0c5460;
        }

        .status-in-progress {
            background: #d1ecf1;
            color: #0c5460;
        }

        .status-completed {
            background: #d4edda;
            color: #155724;
        }
         .instructor-hero {
            background: linear-gradient(135deg, rgba(13, 27, 62, 0.85), rgba(20, 39, 78, 0.9)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 140px 0 100px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .instructor-hero::before {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 100px;
            background: linear-gradient(transparent, white);
        }

        .instructor-content {
            position: relative;
            z-index: 2;
        }

        .benefits-section {
            padding: 80px 0;
            background: var(--light-bg);
        }

        .benefit-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 30px;
            text-align: center;
            box-shadow: var(--box-shadow);
            height: 100%;
            transition: var(--transition);
            border-top: 4px solid var(--navy);
        }

        .benefit-card:hover {
            transform: translateY(-5px);
            border-top: 4px solid var(--orange);
        }

        .benefit-icon {
            font-size: 3rem;
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 20px;
            transition: var(--transition);
        }

        .benefit-card:hover .benefit-icon {
            background: linear-gradient(135deg, var(--orange), var(--orange-light));
            -webkit-background-clip: text;
        }

        .form-section {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 40px;
            margin-bottom: 30px;
        }

        .form-title {
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 25px;
            font-size: 1.5rem;
        }

        .form-label {
            font-weight: 600;
            color: var(--navy);
            margin-bottom: 8px;
        }

        .form-control, .form-select, .form-textarea {
            border-radius: var(--border-radius);
            padding: 12px 15px;
            border: 1px solid #ddd;
            transition: var(--transition);
        }

        .form-control:focus, .form-select:focus, .form-textarea:focus {
            border-color: var(--orange);
            box-shadow: 0 0 0 2px rgba(255, 109, 0, 0.2);
        }

        .form-textarea {
            min-height: 120px;
            resize: vertical;
        }

        .file-upload {
            border: 2px dashed #ddd;
            border-radius: var(--border-radius);
            padding: 30px;
            text-align: center;
            transition: var(--transition);
            cursor: pointer;
        }

        .file-upload:hover {
            border-color: var(--orange);
        }

        .file-upload i {
            font-size: 3rem;
            color: var(--text-light);
            margin-bottom: 15px;
        }

        .requirements-section {
            padding: 60px 0;
        }

        .requirement-item {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            margin-bottom: 20px;
            padding: 20px;
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
        }

        .requirement-icon {
            font-size: 1.5rem;
            color: var(--orange);
            background: rgba(255, 109, 0, 0.1);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }