*, *::before, *::after { box-sizing: border-box; }

/* قسم الأخبار - خلفية بيضاء عصرية وفخمة */
.news-section {
    background-color: #FFFFFF;
    background-image: radial-gradient(circle at 50% 10%, #F8FAFC 0%, #FFFFFF 70%);
    padding: 6rem 5%;
    font-family: 'Tajawal', sans-serif;
    overflow: hidden;
}

.news-section .news-container { max-width: 1280px; margin: 0 auto; }

/* حماية GSAP ضد FOUC */
.news-section .sub-title, 
.news-section .main-title, 
.news-section .title-line, 
.news-section .news-swiper,
.news-section .news-more-action {
    opacity: 0;
    visibility: hidden;
}

/* --- تنسيق العناوين --- */
.news-section .section-header { text-align: center; margin-bottom: 4rem; }
.news-section .sub-title { color: var(--gold, #D4AF37); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; display: block; }
.news-section .main-title { color: #0A1128; font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.news-section .title-line { width: 60px; height: 3px; background-color: var(--gold, #D4AF37); margin: 0 auto; border-radius: 3px; }

/* --- Wrapper للسلايدر لحل مشكلة الأسهم --- */
.news-slider-wrapper {
    position: relative;
    padding: 0 45px;
}

.news-section .news-swiper {
    padding-bottom: 50px !important; /* مساحة بالأسفل للشُرط فقط */
}

/* --- كروت الأخبار (كحلية ملكية بلون الهوية) --- */
.news-section .news-card {
    background-color: #0A1128; /* لون الهوية الكحلي الفخم */
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: auto; /* ضروري لتماثل الارتفاع في السلايدر */
    box-shadow: 0 10px 30px rgba(10, 17, 40, 0.08);
}

.news-section .news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.6);
    background-color: #0D1736;
    box-shadow: 0 20px 40px rgba(10, 17, 40, 0.22);
}

/* الصورة البارزة والتاريخ */
.news-section .news-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-section .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-section .news-card:hover .news-thumb img {
    transform: scale(1.08);
}

.news-section .news-date {
    position: absolute;
    bottom: 12px;
    right: 16px;
    background-color: var(--gold, #D4AF37);
    color: #0A1128;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* المحتوى */
.news-section .news-content {
    padding: 2rem 1.8rem 1.8rem 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-section .news-title { margin: 0 0 1rem 0; line-height: 1.5; }
.news-section .news-title a {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-section .news-title a:hover { color: var(--gold, #D4AF37); }

.news-section .news-excerpt {
    color: #CBD5E1;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* زر اقرأ المزيد */
.news-section .read-more-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold, #D4AF37);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.news-section .read-more-btn:hover {
    gap: 0.8rem;
    border-bottom-color: var(--gold, #D4AF37);
}

/* --- الأسهم المخصصة خارج السلايدر (مطابقة لسلايدر الفيديوهات) --- */
.news-section .pe-news-nav-next,
.news-section .pe-news-nav-prev {
    color: var(--gold, #D4AF37) !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
}

/* دفع الأسهم لأطراف الشاشة */
.news-section .pe-news-nav-next { right: 0 !important; }
.news-section .pe-news-nav-prev { left: 0 !important; }

.news-section .pe-news-nav-next:hover {
    transform: translate(5px, -50%) !important;
    color: #0A1128 !important;
}
.news-section .pe-news-nav-prev:hover {
    transform: translate(-5px, -50%) !important;
    color: #0A1128 !important;
}

/* --- باجينيشن الشُرط الأنيق لسلايدر الأخبار --- */
.news-section .swiper-pagination-bullet {
    width: 30px !important;
    height: 4px !important;
    background-color: rgba(10, 17, 40, 0.2) !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    margin: 0 5px !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.news-section .swiper-pagination-bullet-active {
    background-color: var(--gold, #D4AF37) !important;
    width: 45px !important;
}

/* زر عرض كل الأخبار */
.news-section .news-more-action { text-align: center; margin-top: 3.5rem; }
.news-section .view-all-news-btn {
    display: inline-block;
    background-color: transparent;
    color: #0A1128;
    border: 2px solid #0A1128;
    padding: 0.9rem 2.8rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}
.news-section .view-all-news-btn:hover {
    background-color: #0A1128;
    color: var(--gold, #D4AF37);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 17, 40, 0.15);
}

/* --- التجاوب مع الجوال والأجهزة اللوحية --- */
@media (max-width: 768px) {
    .news-section {
        padding: 3.5rem 1.2rem;
    }
    .news-section .section-header {
        margin-bottom: 2.5rem;
    }
    .news-section .main-title {
        font-size: 1.85rem;
    }
    .news-slider-wrapper {
        padding: 0 25px !important;
    }
    .news-section .pe-news-nav-next {
        right: -5px !important;
    }
    .news-section .pe-news-nav-prev {
        left: -5px !important;
    }
    .news-section .pe-news-nav-next::after,
    .news-section .pe-news-nav-prev::after {
        font-size: 18px !important;
    }
    .news-section .news-thumb {
        height: 190px;
    }
    .news-section .news-content {
        padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    }
    .news-section .news-title a {
        font-size: 1.1rem;
    }
    .news-section .news-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    .news-section .view-all-news-btn {
        padding: 0.85rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
}

/* ==========================================================================
   LTR / English Mode Support
   ========================================================================== */
.news-section[dir="ltr"],
.news-section.pe-ltr {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: ltr;
}

.news-section[dir="ltr"] .news-date,
.news-section.pe-ltr .news-date {
    right: auto;
    left: 16px;
}

.news-section[dir="ltr"] .news-content,
.news-section.pe-ltr .news-content {
    text-align: left;
}

.news-section[dir="ltr"] .read-more-btn,
.news-section.pe-ltr .read-more-btn {
    align-self: flex-start;
}