/**
 * index-page.css
 * ملف التنسيق الشامل للصفحة الرئيسية
 * بوابة الوحدة العربية للأخبار
 * =========================================
 * الألوان الرئيسية:
 *   --red      : #CC0000  (أحمر الموقع)
 *   --red-dark : #960000  (أحمر داكن)
 *   --gold     : #d4af37  (ذهبي)
 *   --black    : #111111
 *   --gray     : #f4f4f4
 * =========================================
 * الأقسام:
 *  1. المتغيرات العامة
 *  2. الشبكة الرئيسية (Layout)
 *  3. السلايدر الرئيسي
 *  4. الشريط الجانبي (Sidebar)
 *  5. ويدجت رؤوس الأخبار
 *  6. ويدجت الوثائق
 *  7. ويدجت في مثل هذا اليوم
 *  8. ويدجت الطقس
 *  9. ويدجت الشكاوى
 * 10. قسم الإحصائيات
 * 11. ويدجت استطلاع الرأي
 * 12. القائمة الجانبية (Sidebar Nav - موبايل)
 * 13. الموبايل — media queries شاملة
 * =========================================
 */


/* =========================================
   1. المتغيرات العامة
   ========================================= */
   :root {
    --red:        #CC0000;
    --red-dark:   #960000;
    --red-light:  rgba(204, 0, 0, 0.08);
    --gold:       #d4af37;
    --gold-light: #fff8dc;
    --black:      #111111;
    --text:       #333333;
    --text-light: #666666;
    --border:     #e8e8e8;
    --bg:         #f5f5f5;
    --white:      #ffffff;
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:  0 8px 30px rgba(0,0,0,0.13);
    --radius:     10px;
    --radius-lg:  16px;
    --transition: 0.3s ease;
}


/* =========================================
   2. الشبكة الرئيسية (Layout)
   ========================================= */
.main-content-area {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.main-column {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 20px;
}

/* ويدجت عام في السايدبار */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-md);
}

/* رأس ويدجت موحّد */
.widget-header {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--gold);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.widget-title i {
    font-size: 15px;
    opacity: 0.9;
}

.widget-content {
    padding: 16px;
}


/* =========================================
   3. السلايدر الرئيسي
   ========================================= */
.hero-slider {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 28px;
    position: relative;
}

.hero-slider__item {
    height: 460px;
    position: relative;
    overflow: hidden;
}

.hero-slider__image {
    position: absolute;
    inset: 0;
}

.hero-slider__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}

.slick-active .hero-slider__image img {
    transform: scale(1.05);
}

.hero-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.40) 50%,
        rgba(0,0,0,0.08) 100%
    );
    z-index: 1;
}

.hero-slider__content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 32px 36px;
    z-index: 2;
    color: var(--white);
}

.hero-slider__category {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-slider__title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 14px;
    max-width: 750px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-slider__title a {
    color: var(--white);
    text-decoration: none;
}

.hero-slider__title a:hover {
    color: var(--gold);
}

.hero-slider__meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    opacity: 0.88;
}

.hero-slider__meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* أسهم السلايدر */
.slick-prev,
.slick-next {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    z-index: 5;
    transition: background var(--transition);
}

.slick-prev:hover,
.slick-next:hover {
    background: var(--red);
    border-color: var(--red);
}

.slick-dots li button:before {
    color: var(--white);
    font-size: 8px;
}

.slick-dots li.slick-active button:before {
    color: var(--gold);
}


/* =========================================
   4. ويدجت رؤوس الأخبار (Latest News)
   ========================================= */
.news-widget-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.news-widget-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-widget-item:hover {
    background: var(--red-light);
    margin: 0 -16px;
    padding-right: 16px;
    padding-left: 16px;
    border-radius: 6px;
}

.news-widget-thumb {
    width: 70px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-widget-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-widget-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--black);
    margin-bottom: 4px;
}

.news-widget-title a {
    color: inherit;
    text-decoration: none;
}

.news-widget-title a:hover {
    color: var(--red);
}

.news-widget-meta {
    font-size: 11px;
    color: var(--text-light);
}


/* =========================================
   5. ويدجت الوثائق
   ========================================= */
.widget-document-item {
    margin-bottom: 14px;
}

.widget-document-item:last-child {
    margin-bottom: 0;
}

.document-widget-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    background: var(--white);
}

.document-widget-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-sm);
    transform: translateX(-3px);
}

.document-widget-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--bg);
}

.document-widget-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.document-type {
    position: absolute;
    bottom: 3px;
    left: 3px;
    background: var(--red);
    color: var(--white);
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
}

.document-widget-content {
    flex: 1;
    min-width: 0;
}

.document-widget-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 5px;
    color: var(--black);
}

.document-widget-title a {
    color: inherit;
    text-decoration: none;
}

.document-widget-title a:hover {
    color: var(--red);
}

.document-widget-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.document-widget-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}


/* =========================================
   6. ويدجت في مثل هذا اليوم
   ========================================= */
.today-events-widget {
    background: var(--gold-light);
    border-radius: var(--radius);
    border: 2px solid var(--gold);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.today-events-widget .widget-header {
    background: linear-gradient(135deg, #7b2d00 0%, #a83200 50%, #cc4400 100%);
    border-bottom: 3px solid var(--gold);
    text-align: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
}

.today-events-widget .widget-title {
    font-size: 17px;
    justify-content: center;
}

.today-events-widget .today-date {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    margin-top: 2px;
}

.today-events-widget .events-list {
    padding: 8px;
}

.today-events-widget .event-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 12px;
    margin: 6px 0;
    background: var(--white);
    border-radius: 8px;
    border-right: 3px solid var(--gold);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.today-events-widget .event-item:hover {
    border-right-color: var(--red);
    transform: translateX(-3px);
    box-shadow: var(--shadow-md);
}

.today-events-widget .event-year {
    min-width: 54px;
    height: 34px;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(204,0,0,0.2);
}

.today-events-widget .birthday-event .event-year {
    background: linear-gradient(135deg, #1e8449 0%, #27ae60 100%);
    box-shadow: 0 2px 8px rgba(39,174,96,0.2);
}

.today-events-widget .death-event .event-year {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6278 100%);
    box-shadow: 0 2px 8px rgba(44,62,80,0.2);
}

.today-events-widget .event-content {
    flex: 1;
    min-width: 0;
}

.today-events-widget .event-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.5;
    margin-bottom: 2px;
}

.today-events-widget .event-description {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.today-events-widget .no-events {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 13px;
}

.today-events-widget .widget-footer {
    padding: 12px 16px;
    text-align: center;
    background: rgba(212,175,55,0.08);
    border-top: 1px solid rgba(212,175,55,0.3);
}

.today-events-widget .view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 22px;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 3px 10px rgba(204,0,0,0.2);
}

.today-events-widget .view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204,0,0,0.3);
    color: var(--white);
}


/* =========================================
   7. ويدجت الطقس
   ========================================= */
.weather-section {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.weather-title {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    padding: 14px 18px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid var(--gold);
}

.weather-cities {
    display: flex;
    gap: 10px;
    padding: 14px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--red) #f1f1f1;
}

.weather-cities::-webkit-scrollbar {
    height: 4px;
}

.weather-cities::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 4px;
}

.weather-card {
    flex: 0 0 105px;
    background: var(--bg);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.weather-card:hover {
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.weather-city {
    font-size: 12px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weather-icon img {
    width: 44px;
    height: 44px;
}

.weather-temp {
    font-size: 19px;
    font-weight: 800;
    color: var(--red);
    margin: 4px 0;
}

.weather-desc {
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weather-update-time {
    font-size: 10.5px;
    color: #aaa;
    text-align: center;
    padding: 8px 14px;
    border-top: 1px dashed var(--border);
}


/* =========================================
   8. ويدجت الشكاوى
   ========================================= */
.complaints-section {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.complaints-section:hover {
    box-shadow: var(--shadow-md);
}

.complaints-section .widget-header {
    background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
    border-bottom: 3px solid #f39c12;
}

.complaints-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.animated-icon {
    animation: shake 2.5s ease infinite;
    color: #f39c12;
}

.complaint-widget {
    padding: 18px;
}

.complaint-icon-wrapper {
    text-align: center;
    margin-bottom: 16px;
}

.complaint-icon-container {
    position: relative;
    display: inline-block;
}

.complaint-icon {
    font-size: 36px;
    color: var(--white);
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 5px 18px rgba(192,57,43,0.3);
    animation: float-icon 3s ease-in-out infinite;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #e74c3c;
    opacity: 0;
    animation: pulse-ring 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.complaint-text {
    text-align: center;
    margin-bottom: 16px;
}

.complaint-text h4 {
    color: #1a5276;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
}

.complaint-text p {
    color: var(--text-light);
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 0;
}

.complaints-egypt-note {
    font-size: 12px;
    color: #922b21;
    font-weight: 600;
    background: rgba(192,57,43,0.07);
    border: 1px solid rgba(192,57,43,0.18);
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.complaint-instructions {
    background: #fff8e1;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-right: 3px solid #e67e22;
}

.complaint-instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.complaint-instructions li {
    padding: 7px 0;
    font-size: 13px;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.complaint-instructions li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.complaint-instructions li i {
    color: #e67e22;
    margin-top: 2px;
    flex-shrink: 0;
}

.btn-complaint {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 25px;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(192,57,43,0.3);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-complaint:hover {
    background: linear-gradient(135deg, #a93226 0%, #c0392b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(192,57,43,0.4);
    color: var(--white);
}


/* =========================================
   9. قسم الإحصائيات
   ========================================= */
.stats-section {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2e45 50%, #0d1b2a 100%);
    padding: 50px 0;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23CC0000' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-header {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
}

.stats-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stats-title i {
    color: var(--gold);
}

.stats-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
}

/* بطاقات الإحصاء الرئيسية */
.stats-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}

.stats-item:hover {
    background: rgba(204,0,0,0.15);
    border-color: var(--red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(204,0,0,0.2);
}

.stats-icon {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(212,175,55,0.12);
    border-radius: 50%;
    margin: 0 auto 10px;
}

.stats-number {
    font-size: 30px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.stats-text {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}

/* الإحصاء الثانوي */
.stats-row.enhanced {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stats-card.enlarged {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.stats-card.enlarged:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.2);
}

.stats-card.enlarged .stats-card-header {
    font-size: 16px;
    font-weight: 700;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0b5394 0%, #1565c0 100%);
    color: var(--white);
    border-bottom: 2px solid var(--gold);
}

.stats-card.enlarged .stats-card-body {
    padding: 16px 20px;
}

.stats-card.enlarged .stats-mini-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all var(--transition);
}

.stats-card.enlarged .stats-mini-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stats-card.enlarged .stats-mini-item:hover {
    padding-right: 8px;
}

.colored-icon {
    font-size: 22px;
    color: var(--red);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(204,0,0,0.1);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all var(--transition);
}

.stats-card.enlarged .stats-mini-item:hover .colored-icon {
    background: var(--red);
    color: var(--white);
    transform: scale(1.1);
}

.enlarged-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.label-text {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}


/* =========================================
   10. ويدجت استطلاع الرأي
   ========================================= */
.poll-widget {
    padding: 4px;
}

.poll-question {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.6;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: var(--red-light);
    border-right: 3px solid var(--red);
    border-radius: 0 6px 6px 0;
}

.poll-options .form-check {
    padding: 9px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
    transition: all var(--transition);
    cursor: pointer;
}

.poll-options .form-check:hover {
    border-color: var(--red);
    background: var(--red-light);
}

.poll-options .form-check-input:checked + .form-check-label {
    color: var(--red);
    font-weight: 600;
}

.btn-vote {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    border: none;
    padding: 9px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    transition: all var(--transition);
    box-shadow: 0 3px 10px rgba(204,0,0,0.2);
    margin-top: 4px;
}

.btn-vote:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204,0,0,0.3);
    color: var(--white);
}

.poll-result-item {
    margin-bottom: 12px;
}

.poll-result-item .small {
    font-size: 13px;
    font-weight: 500;
}

.progress {
    border-radius: 10px;
    background: var(--bg);
    margin-top: 5px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}


/* =========================================
   11. القائمة الجانبية (موبايل)
   ========================================= */
.nav-overlay {
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(5px);
}

.nav-close {
    display: none;
}

@media (max-width: 768px) {
    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 14px;
        left: 14px;
        background: var(--red);
        border: none;
        color: var(--white);
        width: 38px;
        height: 38px;
        border-radius: 50%;
        font-size: 17px;
        cursor: pointer;
        z-index: 999;
        box-shadow: var(--shadow-sm);
        transition: all var(--transition);
    }

    .nav-close:hover {
        background: var(--black);
        transform: scale(1.05);
    }

    #mainNav {
        background: rgba(13, 27, 42, 0.97);
        backdrop-filter: blur(12px);
        padding-top: 72px;
    }

    #mainNav .nav-link {
        color: rgba(255,255,255,0.88);
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        padding: 14px 20px;
        transition: all var(--transition);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    #mainNav .nav-link:hover {
        background: rgba(204,0,0,0.2);
        color: var(--gold);
        padding-right: 28px;
    }

    #mainNav .nav-item.active .nav-link {
        background: rgba(204,0,0,0.3);
        color: var(--white);
        border-right: 3px solid var(--red);
    }

    /* القائمة الفرعية */
    #mainNav .dropdown-menu {
        background: rgba(0,0,0,0.4);
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
    }

    #mainNav .dropdown-item {
        color: rgba(255,255,255,0.75);
        padding: 11px 30px;
        font-size: 13.5px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        transition: all var(--transition);
    }

    #mainNav .dropdown-item:hover {
        background: rgba(204,0,0,0.15);
        color: var(--gold);
        padding-right: 38px;
    }
}


/* =========================================
   12. الأنيميشن
   ========================================= */
@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
}

@keyframes pulse-ring {
    0%   { transform: scale(0.85); opacity: 0.35; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes shake {
    0%, 100%                         { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90%          { transform: translateX(-2px); }
    20%, 40%, 60%, 80%               { transform: translateX(2px); }
}

@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* =========================================
   13. الموبايل — Media Queries شاملة
   ========================================= */

/* ── تابلت (768px - 991px) ───────────────────── */
@media (max-width: 991px) {
    .main-content-area {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    /* السايدبار يصبح شبكة 2 عمود */
    .sidebar-widgets-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .sidebar-widget.full-width-tablet {
        grid-column: span 2;
    }

    .hero-slider__item {
        height: 380px;
    }

    .hero-slider__title {
        font-size: 20px;
    }

    .hero-slider__content {
        padding: 22px 24px;
    }

    .stats-row.enhanced {
        flex-direction: row;
        gap: 14px;
    }

    .stats-card.enlarged {
        flex: 1;
        min-width: 0;
    }

    .stats-title {
        font-size: 22px;
    }
}

/* ── موبايل كبير (576px - 767px) ─────────────── */
@media (max-width: 767px) {
    /* layout */
    .main-content-area {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sidebar-widgets-grid {
        grid-template-columns: 1fr;
    }

    /* السلايدر */
    .hero-slider__item {
        height: 260px;
    }

    .hero-slider__title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .hero-slider__content {
        padding: 14px 16px;
    }

    .hero-slider__category {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 8px;
    }

    .hero-slider__meta {
        gap: 10px;
        font-size: 11px;
    }

    /* الويدجتات العامة */
    .widget-header {
        padding: 11px 14px;
    }

    .widget-title {
        font-size: 14px;
    }

    .widget-content {
        padding: 12px;
    }

    /* الوثائق */
    .document-widget-card {
        padding: 8px;
    }

    .document-widget-thumb {
        width: 52px;
        height: 52px;
    }

    .document-widget-title {
        font-size: 12px;
    }

    /* في مثل هذا اليوم */
    .today-events-widget .event-item {
        gap: 8px;
        padding: 9px 10px;
    }

    .today-events-widget .event-year {
        min-width: 46px;
        height: 30px;
        font-size: 11px;
    }

    .today-events-widget .event-title {
        font-size: 12.5px;
    }

    /* الطقس */
    .weather-card {
        flex: 0 0 95px;
        padding: 8px 6px;
    }

    .weather-temp {
        font-size: 17px;
    }

    .weather-icon img {
        width: 38px;
        height: 38px;
    }

    /* الشكاوى */
    .complaint-icon {
        width: 62px;
        height: 62px;
        font-size: 30px;
    }

    .complaint-text h4 {
        font-size: 17px;
    }

    /* الإحصائيات */
    .stats-section {
        padding: 32px 0;
    }

    .stats-title {
        font-size: 18px;
        flex-direction: column;
        gap: 5px;
    }

    .stats-number {
        font-size: 24px;
    }

    .stats-icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .stats-row.enhanced {
        flex-direction: row;
        gap: 12px;
    }

    .stats-card.enlarged {
        flex: 1;
        min-width: 0;
    }

    .enlarged-text {
        font-size: 19px;
    }

    .label-text {
        font-size: 12px;
    }

    .colored-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    /* الاستطلاع */
    .poll-question {
        font-size: 13px;
    }

    /* شريط العملات */
    .ticker-label {
        min-width: 70px;
        font-size: 12px;
        padding: 0 10px;
    }

    .ticker-item {
        font-size: 12px;
        padding: 0 9px;
    }
}

/* ── موبايل صغير (أقل من 480px) ─────────────── */
@media (max-width: 480px) {
    .hero-slider__item {
        height: 220px;
    }

    /* البطاقتين جنب بعض حتى على الموبايل الصغير */
    .stats-row.enhanced {
        flex-direction: row;
        gap: 8px;
    }

    .stats-card.enlarged .stats-card-header {
        font-size: 13px;
        padding: 10px 12px;
    }

    .stats-card.enlarged .stats-mini-item {
        gap: 8px;
        padding: 9px 0;
    }

    .colored-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .enlarged-text {
        font-size: 16px;
    }

    .label-text {
        font-size: 11px;
    }

    .hero-slider__title {
        font-size: 14px;
        line-height: 1.4;
    }

    .hero-slider__meta {
        display: none;
    }

    .stats-item {
        padding: 16px 10px;
    }

    .stats-number {
        font-size: 21px;
    }

    .weather-card {
        flex: 0 0 85px;
    }

    .today-events-widget .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .today-events-widget .event-year {
        min-width: auto;
        padding: 3px 12px;
        height: auto;
    }

    .complaint-widget {
        padding: 14px;
    }

    .complaint-icon-wrapper {
        margin-bottom: 12px;
    }

    .stats-card.enlarged .stats-card-header {
        font-size: 14px;
        padding: 11px 14px;
    }

    .stats-card.enlarged .stats-card-body {
        padding: 12px 14px;
    }
}


/* =========================================
   14. فواصل أقسام الأخبار (Section Dividers)
   ========================================= */

/* الفاصل الأساسي */
.section-header {
    position: relative;
    margin-bottom: 28px;
    margin-top: 10px;
}

/* شريط الفاصل الكامل العرض */
.section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 52px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2e45 40%, #1a0000 70%, #0d1b2a 100%);
    border-radius: 10px;
    z-index: 0;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
    overflow: hidden;
}

/* نقش داخل الشريط */
.section-header::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 52px;
    transform: translateY(-50%);
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 18px,
        rgba(212,175,55,0.06) 18px,
        rgba(212,175,55,0.06) 19px
    );
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
}

/* العنوان فوق الشريط */
.section-header h2,
.section-header-title,
.section-title {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    padding: 12px 22px 12px 16px;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* خط ذهبي على اليمين */
.section-header h2::before,
.section-header-title::before,
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, var(--gold), #f0c040);
    border-radius: 2px;
    flex-shrink: 0;
}

/* حاوية العنوان + زر "عرض المزيد" */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* زر عرض المزيد على يسار الشريط */
.section-header .btn {
    position: relative;
    z-index: 2;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 5px 16px;
    margin-left: 14px;
    transition: all var(--transition);
    white-space: nowrap;
}

.section-header .btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

/* ── إصلاح ألوان النص على خلفية حمراء ──────────── */
.widget-header,
.widget-header *,
.weather-title,
.weather-title *,
.complaints-section .widget-header,
.complaints-section .widget-header * {
    color: #ffffff;
}

.widget-header a,
.weather-title a {
    color: rgba(255,255,255,0.85);
}

.widget-header a:hover,
.weather-title a:hover {
    color: var(--gold);
}

/* ── إصلاح صور الوثائق والدراسات (stretch) ─────── */
.document-widget-thumb img,
.document-widget-thumb,
.study-widget-thumb img,
.study-widget-thumb,
.widget-document-item img,
.news-widget-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── موبايل — section divider ────────────────── */
@media (max-width: 767px) {
    .section-header::before,
    .section-header::after {
        height: 44px;
    }

    .section-header h2,
    .section-header-title,
    .section-title {
        font-size: 14px;
        padding: 10px 14px 10px 12px;
    }

    .section-header h2::before,
    .section-header-title::before,
    .section-title::before {
        height: 16px;
        width: 3px;
    }

    .section-header .btn {
        font-size: 11px;
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .section-header::before,
    .section-header::after {
        height: 40px;
    }

    .section-header h2,
    .section-header-title,
    .section-title {
        font-size: 13px;
        padding: 9px 12px;
    }
}

/* ── إصلاح عرض البطاقات على الموبايل ────────────
   نلغي padding الـ container على الموبايل عشان
   البطاقات تاخد نفس عرض بانر الإعلان بالظبط
   ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .container {
        padding-left: 0;
        padding-right: 0;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .col-12,
    .col-md-6,
    .col-12.col-md-6,
    .col-lg-8,
    .col-lg-4 {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* البطاقة الإعلانية كمرجع */
    .full-width-ad {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}