/* ==========================================
   الستايلات العامة والهيرو سيكشن
========================================== */
.page-header { 
    position: relative; 
    height: 350px; 
    width: 100%; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
    padding-top: 80px; 
}

.page-header::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.6); 
}

.page-header-content { 
    position: relative; 
    z-index: 2; 
}

.breadcrumb { 
    background: transparent; 
    padding: 0; 
    justify-content: center; 
    margin-bottom: 0; 
}

.breadcrumb-item a { 
    color: #ccc; 
    text-decoration: none; 
    transition: 0.3s; 
}

.breadcrumb-item a:hover { 
    color: #fff; 
}

.breadcrumb-item.active { 
    color: #fff; 
}

/* ==========================================
   إعدادات الفيديوهات
========================================== */
.video-card { 
    border: 1px solid #f0f0f0; 
    border-radius: 12px; 
    overflow: hidden; 
    height: 100%; 
    transition: 0.3s; 
    background: #fff;
}

.video-card:hover { 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08); 
    transform: translateY(-5px); 
}

.video-wrapper { 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    background: #000; 
}

.video-wrapper iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}

.video-info { 
    padding: 20px; 
    text-align: center; 
}

.video-title { 
    font-size: 1rem; 
    font-weight: 700; 
    margin: 0; 
    color: #333; 
}

/* ==========================================
   السايد بار والودجات
========================================== */
.sidebar-widget { 
    background: #fff; 
    padding: 20px; 
    border-radius: 12px; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.03); 
    margin-bottom: 25px; 
    border: 1px solid #eee; 
}

.widget-title { 
    font-weight: 700; 
    margin-bottom: 20px; 
    padding-bottom: 10px; 
    border-bottom: 2px solid #f1f1f1; 
    position: relative; 
}

/* افتراضي الـ RTL للغة العربية */
.widget-title::after { 
    content: ''; 
    position: absolute; 
    bottom: -2px; 
    right: 0; 
    width: 50px; 
    height: 2px; 
    background: var(--bs-primary); 
}

/* تعديل الاتجاه للغة الإنجليزية (LTR) */
html[dir="ltr"] .widget-title::after { 
    right: auto;
    left: 0; 
}

/* ==========================================
   كروت أقسام المساعدة
========================================== */
.help-cat-card { 
    background: #fff; 
    padding: 25px; 
    border-radius: 12px; 
    border: 1px solid #eee; 
    text-align: center; 
    transition: all 0.3s ease; 
    height: 100%; 
    cursor: pointer; 
    display: block; 
    text-decoration: none; 
    color: inherit; 
}

.help-cat-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--bs-primary); 
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.1); 
    color: var(--bs-primary); 
}

.help-cat-icon { 
    font-size: 2.5rem; 
    color: var(--bs-primary); 
    margin-bottom: 15px; 
    opacity: 0.8; 
}

/* ==========================================
   تفاصيل القسم النشط 
========================================== */
.section-detail-container { 
    background: #fff; 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid #eee; 
    position: relative; 
}

.close-section-btn { 
    position: absolute; 
    top: 20px; 
    left: 20px; /* للغة العربية (RTL) */
    font-size: 1.2rem; 
    color: #999; 
    transition: 0.3s; 
}

html[dir="ltr"] .close-section-btn {
    left: auto;
    right: 20px;
}

.close-section-btn:hover { 
    color: #dc3545; 
    transform: rotate(90deg); 
}

/* بديل الـ Inline Style لتعديل ارتفاع السطور */
.custom-line-height {
    line-height: 1.8;
}

/* ==========================================
   الأسئلة الشائعة (Accordion)
========================================== */
.accordion-item { 
    border: 1px solid #eee; 
    margin-bottom: 10px; 
    border-radius: 8px !important; 
    overflow: hidden; 
}

.accordion-button { 
    font-weight: 600; 
    background-color: #fff; 
}

.accordion-button:not(.collapsed) { 
    color: var(--bs-primary); 
    background-color: rgba(13, 110, 253, 0.05); 
    box-shadow: none; 
}

.accordion-button:focus { 
    box-shadow: none; 
    border-color: rgba(13, 110, 253, 0.1); 
}