/* =====================================================
   همَّة الأسنان — ملف الأنماط الكامل
   Part 2/3: الصفحات والمكونات
   ===================================================== */

/* =====================================================
   29. سلايدر الهيرو (Hero Slider)
   ===================================================== */
.hero-slider {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-slider .slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-slider .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-slider .slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 84, 83, 0.15);
}

.hero-slider .slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-slider .slide-content h1 {
    font-size: clamp(3.2rem, 5vw, 5rem);
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.8s ease-out;
    font-weight: 800;
}

.hero-slider .slide-content h1 span {
    color: var(--accent-color);
}

.hero-slider .slide-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.6;
}

.hero-slider .slide-content .btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.slider-nav {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-nav button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.slider-nav button.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.2);
}

.slider-nav button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    pointer-events: none;
}

.slider-arrows button {
    pointer-events: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrows button:hover {
    background: var(--accent-color);
    color: var(--ink-color);
    transform: scale(1.08);
}

/* =====================================================
   30. سلايدر الإعلانات (Announcement Slider)
   ===================================================== */
.announcement-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 320px;
    background: white;
    border: 1px solid var(--border-color);
}

.announcement-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.5fr);
}

[dir="rtl"] .announcement-slide {
    grid-template-columns: minmax(320px, 1.5fr) minmax(280px, 1fr);
}

.announcement-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.announcement-slide-image {
    position: relative;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 280px;
    background-color: var(--lightBlue-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .announcement-slide-image {
    order: 2;
}

.announcement-slide-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 70%, rgba(255, 255, 255, 0.9) 100%);
}

[dir="rtl"] .announcement-slide-image::before {
    background: linear-gradient(270deg, transparent 70%, rgba(255, 255, 255, 0.9) 100%);
}

.announcement-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.announcement-slide-content {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    position: relative;
}

[dir="rtl"] .announcement-slide-content {
    order: 1;
}

.announcement-slide-content h3 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.announcement-slide-content p {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    line-height: 1.6;
    display: -webkit-box;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-slide-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.announcement-slider-nav {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 0.6rem 1rem;
}

.announcement-slider-nav button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.announcement-slider-nav button.active {
    background: var(--primary-color);
    width: 24px;
}

/* =====================================================
   31. بطاقة الإعلان (Announcement Card)
   ===================================================== */
.announcement-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.announcement-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.announcement-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-tint);
}

.announcement-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.announcement-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.announcement-card-text {
    color: var(--grey-color);
    font-size: 1.4rem;
    line-height: 1.5;
    flex: 1;
}

.announcement-card-footer {
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid var(--lightGrey-color);
    font-size: 1.2rem;
    color: var(--grey-light);
}

/* =====================================================
   32. Modal (النوافذ المنبثقة)
   ===================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(19, 28, 31, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.modal-content-lg {
    max-width: 800px;
}

.modal-content-sm {
    max-width: 400px;
}

.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.modal-header p {
    font-size: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.modal-actions .btn {
    flex: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background: var(--lightGrey-color);
    color: var(--grey-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all var(--transition);
    z-index: 2;
}

.modal-close:hover {
    background: var(--red-color);
    color: white;
    transform: rotate(90deg);
}

/* =====================================================
   33. Modal الصور (Image Modal)
   ===================================================== */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(19, 28, 31, 0.92);
    z-index: 9999;
    padding: 2rem;
    overflow: auto;
}

.image-modal-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.image-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    color: var(--primary-color);
    border: none;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.image-modal-close:hover {
    background: var(--red-color);
    color: white;
    transform: rotate(90deg);
}

.image-modal img {
    width: 100%;
    max-height: 85vh;
    height: auto;
    border-radius: var(--radius-sm);
    object-fit: contain;
    margin: 0 auto;
}

/* =====================================================
   34. بانر التفضيلات (Preferences Banner)
   ===================================================== */
.preferences-banner {
    background: var(--primary-tint);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.preferences-banner-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preferences-banner-info i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.preferences-banner-info span {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.preferences-banner-actions {
    display: flex;
    gap: 1rem;
}

.preferences-banner-actions .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.3rem;
}

/* =====================================================
   35. بطاقة المادة (Course Card)
   ===================================================== */
.course-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.course-card-image {
    width: 100%;
    height: 180px;
    background: var(--primary-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-card-image i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.4;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.course-card-desc {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--grey-color);
    flex: 1;
    font-size: 1.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.course-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: var(--lightGrey-color);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.course-card-stat {
    text-align: center;
}

.course-card-stat-label {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--grey-color);
}

.course-card-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.course-card-footer {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* =====================================================
   36. بطاقة الطبيب (Doctor Card)
   ===================================================== */
.doctor-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.doctor-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.doctor-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--primary-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    overflow: hidden;
    flex-shrink: 0;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-name {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.doctor-title {
    font-size: 1.3rem;
    color: var(--grey-light);
    margin-bottom: 0.5rem;
}

.doctor-department {
    color: var(--grey-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.doctor-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-tint);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    word-break: break-all;
    justify-content: center;
}

.doctor-email:hover {
    background: var(--primary-color);
    color: white;
}

/* =====================================================
   37. بطاقة الخطة الدراسية (Plan Card)
   ===================================================== */
.plan-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.plan-card-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    background: var(--lightGrey-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.plan-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.plan-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

[dir="rtl"] .plan-card-badge {
    left: auto;
    right: 1rem;
}

.plan-card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.plan-card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.plan-card-desc {
    margin-bottom: 1.5rem;
    color: var(--grey-color);
    font-size: 1.4rem;
    flex: 1;
}

.plan-card-cohorts {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.plan-card-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: auto;
}

/* =====================================================
   38. بطاقة الاختبار (Quiz Card)
   ===================================================== */
.quiz-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quiz-answer {
    display: block;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: white;
    transition: all var(--transition);
    text-align: right;
    font-size: 1.5rem;
}

.quiz-answer:hover {
    border-color: var(--primary-color);
    background: var(--primary-tint);
}

.quiz-answer.selected {
    border-color: var(--primary-color);
    background: var(--primary-tint);
    font-weight: 600;
}

.quiz-answer.correct {
    border-color: var(--green-color);
    background: var(--green-light);
    color: #155724;
}

.quiz-answer.wrong {
    border-color: var(--red-color);
    background: var(--red-light);
    color: #721c24;
}

.quiz-progress {
    background: var(--lightGrey-color);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.quiz-progress-bar {
    background: var(--primary-color);
    height: 100%;
    width: 0%;
    transition: width var(--transition);
    border-radius: 4px;
}

.quiz-timer {
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =====================================================
   39. بطاقة الإحصائيات (Stat Card)
   ===================================================== */
.stat-card {
    transition: transform var(--transition);
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-8px);
}

.counter {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.6rem;
    font-weight: 500;
}

/* =====================================================
   40. حاسبة المعدل (GPA Calculator)
   ===================================================== */
.gpa-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: end;
}

.gpa-row .form-group {
    margin-bottom: 0;
}

.gpa-result {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    color: white;
}

.gpa-result-label {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* =====================================================
   41. صفحة تسجيل الدخول / التسجيل (Auth Pages)
   ===================================================== */
.auth-wrapper {
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 0;
}

.auth-card {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.auth-card-lg {
    max-width: 520px;
}

.auth-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-md);
    background: var(--primary-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    color: var(--primary-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: var(--grey-light);
    font-size: 1.3rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.5rem;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* =====================================================
   42. الملف الشخصي (Profile Page)
   ===================================================== */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: var(--primary-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-color);
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.profile-name {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.profile-email {
    color: var(--grey-color);
    font-size: 1.5rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.profile-stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--lightGrey-color);
    border-radius: var(--radius-sm);
}

.profile-stat-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.profile-stat-label {
    font-size: 1.3rem;
    color: var(--grey-color);
}

/* =====================================================
   43. صفحة التواصل (Contact Page)
   ===================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.contact-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.contact-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.7rem;
}

.contact-item p {
    font-size: 1.5rem;
    color: var(--grey-color);
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 600;
}

/* =====================================================
   44. الأسئلة الشائعة (FAQ)
   ===================================================== */
.faq-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--ink-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--primary-color);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition);
    padding: 0 2rem;
    color: var(--grey-color);
    font-size: 1.5rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

/* =====================================================
   45. بطاقة الخدمة (Service Card)
   ===================================================== */
.service-card {
    text-align: center;
    padding: 2.5rem 2rem;
    transition: all var(--transition);
}

.service-card h2,
.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* =====================================================
   46. Featured Course Card (Home)
   ===================================================== */
.featured-course {
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding: 0;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    background: white;
}

.featured-course:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.featured-course-image {
    width: 100%;
    height: 160px;
    background: var(--primary-tint);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-course-image i {
    font-size: 3.5rem;
    color: var(--primary-color);
    opacity: 0.4;
}

.featured-course-body {
    padding: 1.5rem;
}

.featured-course-title {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.7rem;
    font-weight: 700;
}

.featured-course-badges {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* =====================================================
   47. CTA Section
   ===================================================== */
.cta-section {
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 5rem 3rem;
    border: none;
    border-radius: var(--radius-lg);
}

.cta-section h2 {
    color: white;
    font-size: clamp(2.6rem, 4.5vw, 3.5rem);
    margin-bottom: 2rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* =====================================================
   48. Statistics Section
   ===================================================== */
.stats-section {
    margin-bottom: 4rem;
}

.stats-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stats-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: clamp(2.4rem, 4vw, 3rem);
}

.stats-header p {
    font-size: 1.6rem;
}

/* =====================================================
   49. Section Header
   ===================================================== */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: clamp(2.6rem, 4.5vw, 3.5rem);
}

.section-header p {
    font-size: 1.8rem;
    max-width: 800px;
    margin: 0 auto;
}

/* =====================================================
   50. Course Detail Page
   ===================================================== */
.course-detail-header {
    text-align: center;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.course-detail-header h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
}

.course-detail-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.8rem;
}

.course-detail-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.course-detail-meta .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.course-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-stat-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.course-stat-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.course-stat-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.course-stat-box h3 {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.course-stat-box p {
    color: var(--grey-color);
    font-size: 1.4rem;
}

/* =====================================================
   51. Download Card
   ===================================================== */
.download-card {
    text-align: center;
    padding: 5rem 3rem;
}

.download-icon {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.download-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.download-desc {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--grey-color);
}

/* =====================================================
   52. Pagination Numbers
   ===================================================== */
.page-numbers {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* =====================================================
   53. Sort/Filter Dropdown
   ===================================================== */
.filter-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.filter-bar select,
.filter-bar input {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    background: white;
    color: var(--ink-color);
    transition: all var(--transition);
}

.filter-bar select:focus,
.filter-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-tint-strong);
}

/* =====================================================
   54. Tab Navigation
   ===================================================== */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.tab {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--grey-color);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* =====================================================
   55. Timeline
   ===================================================== */
.timeline {
    position: relative;
    padding-right: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: 4px;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    z-index: 1;
}

.timeline-item.completed::before {
    background: var(--primary-color);
}

/* =====================================================
   56. Rating Stars
   ===================================================== */
.rating {
    display: inline-flex;
    gap: 0.3rem;
    color: var(--accent-color);
    font-size: 1.6rem;
}

.rating-star {
    color: var(--border-color);
}

.rating-star.filled {
    color: var(--accent-color);
}

/* =====================================================
   57. Notification Bell
   ===================================================== */
.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: transparent;
    color: var(--grey-color);
    cursor: pointer;
    transition: all var(--transition);
}

.notification-bell:hover {
    background: var(--primary-tint);
    color: var(--primary-color);
}

.notification-bell .dot {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 1rem;
    height: 1rem;
    background: var(--red-color);
    border-radius: 50%;
    border: 2px solid white;
}

/* =====================================================
   58. Card Header
   ===================================================== */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
    flex-wrap: wrap;
}

.card-header h2,
.card-header h3 {
    margin-bottom: 0;
}

.card-body {
    padding: 1rem 0;
}

.card-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* =====================================================
   59. Info List
   ===================================================== */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: var(--lightGrey-color);
}

.info-list-item i {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-list-item-content {
    flex: 1;
}

.info-list-item-label {
    font-weight: 600;
    color: var(--ink-color);
    font-size: 1.5rem;
}

.info-list-item-value {
    color: var(--grey-color);
    font-size: 1.4rem;
    margin-top: 0.2rem;
}

/* =====================================================
   60. Badge Group
   ===================================================== */
.badge-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* =====================================================
   نهاية الدفعة 2 من 3
   ===================================================== */