/* --- إعدادات عامة --- */
:root {
    --primary-color: #0047bb;
    --secondary-color: #f0f0f0;
    --text-color: #333;
}
body {
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; 
    color: var(--text-color);
    line-height: 1.6;
}
.page-wrapper {
    max-width: 1100px;
    margin: 30px auto; 
    background-color: #ffffff; 
    box-shadow: 0 0 15px rgba(0,0,0,0.1); 
    border-radius: 8px;
    overflow: hidden;
}
.container {
    width: 100%;
    padding: 0 25px;
    box-sizing: border-box;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- 1. تصميم الهيدر --- */
.site-header {
    width: 100%;
    border-bottom: 1px solid var(--secondary-color);
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--secondary-color);
}
.social-media-icons a {
    margin-left: 15px;
    font-size: 16px;
    color: #555;
    transition: color 0.3s ease;
}
.social-media-icons a:hover {
    color: var(--primary-color);
}
.search-bar form {
    position: relative;
}
.search-bar input {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    font-family: 'Tajawal', sans-serif;
    width: 200px;
}
.search-bar button {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
}
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo img {
    max-width: 250px;
    height: auto;
}
.main-nav ul {
    display: flex;
    align-items: center;
}
.main-nav li {
    margin-right: 35px;
}
.main-nav a {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.main-nav a.highlight {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 5px 30px;
    border-radius: 5px;
    border-bottom: 2px solid transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.main-nav a.highlight:hover {
    background-color: #00338e;
    color: #ffffff;
    border-bottom-color: transparent;
}

/* --- 2. تصميم المحتوى الرئيسي --- */
.site-content {
    padding: 25px 0;
}

/* --- 3. تصميم سلايدر الأخبار الرئيسي --- */
.hero-slider {
    width: 100%;
}
.slide {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    line-height: 0;
    height: 550px; /* <<-- 1. تحديد ارتفاع ثابت ومناسب للسلايدر */
}

.slide img {
    width: 100%;
    height: 100%; /* <<-- 2. جعل الصورة تملأ الارتفاع المحدد بالكامل */
    display: block;
    object-fit: cover; /* <<-- 3. قص الأجزاء الزائدة من الصورة للحفاظ على أبعادها */
}
.slide-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 20px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
    color: #ffffff;
    line-height: 1.6;
}
/* --- تعديل نهائي لعنوان السلايدر --- */
/* إزالة كل التنسيقات تقريبًا من h2 */
.slide-caption h2 {
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1;
    font-size: 1em; /* إعادة التعيين */
    font-weight: normal; /* إعادة التعيين */
}
/* وضع كل التنسيقات على الرابط مباشرة */
.slide-caption h2 a {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 22px; /* حجم الخط المطلوب */
    font-weight: 700; /* وزن الخط المطلوب */
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.slide-caption h2 a:hover {
    background-color: #00338e;
}
.slide-caption p {
    font-size: 15px;
    margin: 0 0 15px 0;
}
.slide-caption .read-more {
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.slide-caption .read-more:hover {
    text-decoration: underline;
}

/* --- 4. تخصيص تصميم SwiperJS --- */
.hero-slider .swiper {
    border-radius: 5px;
}
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 1);
}
.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 20px;
    font-weight: 700;
}
.hero-slider .swiper-pagination-bullet {
    background-color: #ffffff;
    opacity: 0.7;
}
.hero-slider .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    opacity: 1;
}

/* --- 5. قسم الفعاليات والبطولات القادمة --- */
.upcoming-events {
    padding-top: 40px;
}
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 8px auto 0;
    border-radius: 2px;
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.event-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.event-image {
    height: 200px;
}
.event-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.event-details {
    padding: 20px;
}
.event-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}
.event-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.5;
    min-height: 54px;
}
.event-location {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: var(--primary-color);
}
.event-location i {
    color: var(--primary-color);
    margin-left: 8px;
}

/* --- 6. قسم آخر أخبارنا --- */
.latest-news {
    padding-top: 40px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.news-card {
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
/* استبدل القواعد القديمة بهذه */

.news-card .news-image {
    height: 200px;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}
.news-meta span {
    display: flex;
    align-items: center;
}
.news-meta i {
    margin-left: 6px;
}
.news-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 10px 0;
}
.news-title a {
    transition: color 0.3s ease;
}
.news-title a:hover {
    color: var(--primary-color);
}
.news-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex-grow: 1;
}
.news-read-more {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.news-read-more:hover {
    text-decoration: underline;
}

/* --- 7. قسم أبطال الكويت --- */
.kuwaiti-champions {
    margin-top: 40px;
    padding: 40px 25px;
    background-color: #f9f9f9;
    border-radius: 5px;
}
.champion-card {
    text-align: center;
    padding: 20px;
}
.champion-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px auto;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.champion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.champion-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
}
.champion-achievement {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}
.champions-slider .swiper-button-next,
.champions-slider .swiper-button-prev {
    color: var(--primary-color);
}

/* --- 8. تصميم الفوتر --- */
.site-footer {
    background-color: var(--primary-color); /* تم التغيير إلى لون الثيم الرئيسي */
    color: #e0e0e0; /* تفتيح لون الخط قليلاً ليتناسب مع الخلفية الزرقاء */
    padding-top: 50px;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}
/* هذه هي خدعة الخلفية الشفافة */
.site-footer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-image: url('logo-w.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1; /* زدنا الشفافية قليلاً لتظهر بشكل أفضل على الأزرق */
    z-index: 0;
}
/* نجعل المحتوى يظهر فوق الخلفية الشفافة */
.footer-content {
    position: relative;
    z-index: 1;
}
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}
.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5); /* تغيير لون الخط الفاصل للأبيض الشفاف */
    padding-bottom: 10px;
    display: inline-block;
}
.contact-list {
    padding: 0;
    list-style: none;
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}
.contact-list i {
    color: #ffffff; /* تغيير لون الأيقونة للأبيض */
    margin-left: 10px;
    margin-top: 4px;
}
.contact-list a {
    color: #e0e0e0;
    transition: color 0.3s ease;
}
.contact-list a:hover {
    color: #ffffff;
}
.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1); /* تغيير الخلفية للأبيض الشفاف */
    color: #ffffff;
    border-radius: 5px;
    font-size: 18px;
    margin-left: 8px;
    transition: background-color 0.3s ease;
}
.footer-social a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.map-container {
    border-radius: 5px;
    overflow: hidden;
}
.map-container iframe {
    vertical-align: middle; /* يحل مشاكل عرض بسيطة في بعض المتصفحات */
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* تغيير لون الخط الفاصل للأبيض الشفاف */
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.copyright, .developer {
    margin: 0;
}
.developer a {
    color: #e0e0e0;
    transition: color 0.3s ease;
}
.developer a:hover {
    color: #ffffff;
}
/* --- 9. التجاوبية (Responsive Design) --- */

/* ===== إعدادات الديسكتوب (الحالة الافتراضية) ===== */
.mobile-nav-toggle {
    display: none;
}
.main-nav ul {
    display: flex;
    align-items: center;
}

/* ===== إعدادات الموبايل (عندما يكون عرض الشاشة 768px أو أقل) ===== */
/* --- 9. التجاوبية (Responsive Design) --- */


/* --- 10. زر العودة للأعلى --- */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px; /* سيظهر في أسفل اليسار */
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    
    /* إخفاء الزر بشكل افتراضي */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* كلاس يتم إضافته بالجافاسكريبت لإظهار الزر */
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #00338e; /* درجة أغمق عند المرور */
    color: #ffffff;
}
/* --- 11. تصميم الصفحات الداخلية --- */

/* تصميم شريط عنوان الصفحة */
.page-header {
    background-color: var(--primary-color); /* لون رمادي فاتح */
    padding: 25px 0;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    margin: 0;
    font-size: 32px;
    color: var(--secondary-color);
}

/* تصميم منطقة المحتوى */
.page-content {
    padding: 40px 0;
}

/* تنسيقات أساسية للمحتوى داخل الصفحة */
.page-content p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 20px 0;
}

.page-content h2 {
    font-size: 26px;
    margin: 30px 0 15px 0;
}

.page-content ul {
    list-style: disc;
    padding-right: 20px;
    margin-bottom: 20px;
}

.page-content li {
    margin-bottom: 10px;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0 20px 0;
}
/* --- 12. تصميم صفحة ألبوم الصور --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 200px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-grid a:hover img {
    transform: scale(1.1); /* تأثير تقريب بسيط عند المرور */
}

/* تأثير تظليل بسيط فوق الصورة */
.gallery-grid a::after {
    content: '\f00e'; /* أيقونة البحث (عدسة مكبرة) من Font Awesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 71, 187, 0.6); /* لون الثيم مع شفافية */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-grid a:hover::after {
    opacity: 1;
}
/* --- 13. تصميم ترقيم الصفحات (Pagination) --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-numbers {
    display: inline-block; /* تغيير بسيط هنا */
    padding: 8px 15px; /* <<-- الحل هنا، استخدام الحشو */
    min-width: 40px; /* ضمان أن الأرقام المفردة تحتفظ بحجمها */
    box-sizing: border-box; /* لتوحيد حساب الأبعاد */
    text-align: center; /* توسيط النص */
    border: 1px solid #ddd;
    border-radius: 5px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.5; /* تحسين المحاذاة العمودية */
    transition: all 0.3s ease;
}

.page-numbers:hover {
    background-color: var(--secondary-color);
    border-color: #ccc;
}

.page-numbers.current {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}
@media (max-width: 768px) {
    /* تعديل هوامش الحاوية الرئيسية للموبايل */
    .page-wrapper {
        margin: 15px 10px;
    }

    /* ضمان محاذاة اللوجو وأيقونة القائمة */
    .main-header {
        justify-content: space-between;
    }

    /* إظهار زر الهمبرجر على الموبايل */
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: 1px solid #ddd;
        color: var(--text-color);
        font-size: 24px;
        padding: 5px 10px;
        border-radius: 5px;
        cursor: pointer;
        z-index: 9999; 
    }
    
    /* إخفاء حاوية القائمة الرئيسية افتراضياً على الموبايل */
    .main-nav {
        display: none;
        position: absolute;
        top: 85px; 
        right: 10px;
        left: 10px;
        z-index: 9998;
    }

    /* إظهار الحاوية عند تفعيلها بالجافاسكريبت */
    .main-nav.active {
        display: block;
    }
    
    /* تصميم القائمة المنسدلة بداخل الحاوية */
    .main-nav ul {
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        padding: 15px;
        border-radius: 5px;
    }

    /* تنسيقات عناصر القائمة في الموبايل */
    .main-nav li { margin-right: 0; width: 100%; }
    .main-nav a { display: block; padding: 12px 15px; text-align: center; border-bottom: 1px solid var(--secondary-color); }
    .main-nav li:last-child a { border-bottom: none; }
    .main-nav a.highlight { padding: 12px 15px; }
    .main-nav a:hover { background-color: #f0f2f5; color: var(--primary-color); }

    /* تصغير اللوجو */
    .logo img {
        max-width: 180px;
    }

    /* تعديل مقاسات شريط السلايدر الرئيسي */
    .slide-caption p,
    .slide-caption .read-more {
        display: none;
    }
    .slide-caption { padding: 12px 15px; }
    .slide-caption h2 { font-size: 15px; padding: 3px 8px; margin: 0; }

    /* تصغير أسهم السلايدر الرئيسي على الموبايل */
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        width: 28px;
        height: 28px;
    }
    .hero-slider .swiper-button-next::after,
    .hero-slider .swiper-button-prev::after {
        font-size: 14px;
    }

    /* تعديل قسم الفعاليات القادمة للموبايل */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* تعديل قسم آخر أخبارنا للموبايل */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .news-title {
        font-size: 16px;
    }

    /* --- تعديل معرض الصور للموبايل (الإصلاح الجديد هنا) --- */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* عرض عمودين */
        gap: 10px;
    }
    .gallery-grid a {
        height: 160px;
    }

    /* تعديل محاذاة الفوتر السفلي للموبايل */
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}
/* --- 14. تصميم صفحة تفاصيل الخبر --- */

.single-article {
    max-width: 800px; /* تحديد عرض مناسب للقراءة */
    margin: 40px auto; /* توسيط المقال في الصفحة */
}

.article-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 25px;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #888;
}
.article-meta span {
    display: flex;
    align-items: center;
}
.article-meta i {
    margin-left: 6px;
}

.featured-image {
    margin: 0 0 30px 0;
}
.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.article-body p {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 25px;
}
.article-body h2 {
    font-size: 28px;
    margin: 40px 0 20px 0;
}
.article-body blockquote {
    background-color: var(--secondary-color);
    border-right: 4px solid var(--primary-color);
    padding: 20px 25px;
    margin: 30px 0;
    font-size: 18px;
    font-style: italic;
}
.article-body blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
}

.article-footer {
    border-top: 1px solid var(--secondary-color);
    padding-top: 25px;
    margin-top: 30px;
}

.share-buttons span {
    font-weight: 700;
    margin-left: 15px;
}
.share-buttons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: 16px;
    margin: 0 4px;
    transition: all 0.3s ease;
}
.share-buttons a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* تعديلات للموبايل */
@media (max-width: 768px) {
    .article-title {
        font-size: 28px;
    }
    .article-body p {
        font-size: 16px;
    }
}
/* --- 15. تصميم صفحات النتائج والأزرار العامة --- */

/* تصميم عام للزر الرئيسي */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #00338e; /* درجة أغمق من اللون الرئيسي */
    color: #ffffff;
}

/* حاوية أزرار الاختيار */
.results-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* للتجاوب على الموبايل */
}
/* --- إضافة عنصر جمالي لصفحة النتائج --- */
.decorative-icon {
    margin-top: 60px; /* مسافة علوية لدفع الفوتر للأسفل */
    font-size: 150px; /* حجم الأيقونة الكبير */
    color: var(--secondary-color); /* لون رمادي فاتح جدًا */
    text-align: center;
    padding-bottom: 40px; /* مسافة سفلية إضافية */
}
/* --- 16. تصميم صفحة اتصل بنا --- */

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr; /* تقسيم الصفحة لعمودين (ثلثين بثلث) */
    gap: 40px;
}

.contact-form h2, .contact-info h2 {
    font-size: 24px;
    margin: 0 0 25px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    box-sizing: border-box; /* يضمن أن padding لا يزيد من العرض */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 71, 187, 0.3);
}

/* --- تعديل على معلومات التواصل في صفحة اتصل بنا --- */
.contact-info .contact-list {
    padding: 0;
    list-style: none;
    margin-bottom: 30px;
}
.contact-info .contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contact-info .contact-list i {
    color: var(--primary-color);
    font-size: 18px;
    margin-left: 15px;
    margin-top: 4px;
}
.contact-info .contact-list a,
.contact-info .contact-list span {
    font-size: 17px;
    color: #555; /* لون رمادي أغمق وأوضح */
    font-weight: 500;
    transition: color 0.3s ease;
}
.contact-info .contact-list a:hover {
    color: var(--primary-color); /* لون أزرق عند مرور الماوس */
}

/* --- تعديلات الموبايل لصفحة اتصل بنا --- */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* تحويل الشبكة إلى عمود واحد */
    }
    /* تعديل ارتفاع السلايدر الرئيسي للموبايل */
    /* تعديل السلايدر الرئيسي للموبايل (الحل الاحترافي) */
    .slide {
        height: 250px; /* يمكنك التحكم بالارتفاع الموحد من هنا */
        position: relative;
        border-radius: 5px;
        overflow: hidden;
        background-color: #000;
    }
    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* <<-- قص احترافي للصورة لتملأ المساحة */
    }
/* تعديل نهائي لعنوان السلايدر في الموبايل */
    .slide-caption h2 {
        margin: 0;
    }
    .slide-caption h2 a {
        font-size: 15px;
        padding: 5px 10px;
    }
}
/* --- إصلاح تنسيق القوائم في نص المقال --- */
.article-body ul,
.article-body ol {
    padding-right: 20px; /* تعديل بسيط للمسافة البادئة */
    margin: 0 20px 25px 0;
    list-style-position: inside; /* <<-- هذا السطر يضمن ظهور النقطة */
}

/* تحديد شكل نقاط القائمة النقطية */
.article-body ul {
    list-style-type: disc; 
}

/* تحديد شكل أرقام القائمة الرقمية */
.article-body ol {
    list-style-type: decimal;
}

.article-body li {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.9;
}
/* --- 17. تصميم صفحة البحث --- */
.page-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
}
.page-content h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}
.page-content ul {
    list-style: disc;
    padding-right: 20px;
}
.page-content ul li {
    margin-bottom: 10px;
}
.page-content ul a {
    text-decoration: underline;
    color: var(--primary-color);
}