a {
  color: inherit; /* Matches the color of the parent element */
  text-decoration: none; /* Removes the blue underline */
}

.news-container { max-width: 1280px; margin: 40px auto; font-family: 'Tajawal', sans-serif; padding: 0 20px; }
        
        /* عنوان القسم */
        .section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; border-bottom: 2px solid #e2e8f0; padding-bottom: 15px; }
        .section-header h2 { font-size: 2rem; font-weight: 800; color: var(--text-main); margin: 0; }
        .section-header h2 span { color: var(--primary); }
        .view-all { color: var(--primary); font-weight: 700; text-decoration: none; font-size: 1.1rem; transition: var(--transition); }
        .view-all:hover { color: var(--primary-dark); padding-left: 5px; }

        /* الشبكة الرئيسية */
        .news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
        
        /* 1. الخبر الرئيسي */
        .hero-news { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 450px; display: block; text-decoration: none; box-shadow: var(--shadow-md); }
        .hero-news img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
        .hero-news:hover img { transform: scale(1.05); }
        .hero-news::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 70%; background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%); pointer-events: none; }
        .hero-content { position: absolute; bottom: 0; right: 0; left: 0; padding: 40px; z-index: 2; }
        .category-badge { display: inline-block; background: var(--primary); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; margin-bottom: 15px; }
        .hero-title { color: white; font-size: 1.8rem; font-weight: 800; line-height: 1.4; margin: 0 0 10px 0; }
        .news-meta { color: #cbd5e1; font-size: 0.9rem; font-weight: 500; display: flex; gap: 15px; }

        /* 2. الأخبار الجانبية */
        .side-news-wrapper { display: flex; flex-direction: column; gap: 20px; }
        .side-news-item { display: flex; background: var(--surface); border-radius: var(--radius-md); padding: 12px; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: var(--transition); gap: 15px; align-items: center; }
        .side-news-item:hover { transform: translateX(-5px); box-shadow: var(--shadow-md); }
        .side-news-img { width: 110px; height: 90px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
        .side-news-img img { width: 100%; height: 100%; object-fit: cover; }
        .side-news-text { display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; }
        .side-news-title { color: var(--text-main); font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin: 0 0 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.3s; }
        .side-news-item:hover .side-news-title { color: var(--primary); }

        /* 3. المربع الوردي (المقولات/الاقتباسات) */
        .quote-box { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius-md); padding: 25px; color: white; position: relative; overflow: hidden; margin-top: auto; box-shadow: 0 8px 15px rgba(216, 27, 96, 0.3); }
        .quote-box::before { content: '❝'; position: absolute; top: -10px; left: 10px; font-size: 100px; color: rgba(255,255,255,0.1); line-height: 1; }
        .quote-text { font-size: 1.1rem; font-weight: 700; line-height: 1.6; margin: 0 0 15px 0; position: relative; z-index: 1; }
        .quote-author { font-size: 0.9rem; font-weight: 500; opacity: 0.9; }
        .quote-badge { background: white; color: var(--primary); padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 800; float: left; }
        
        /* تجاوب الشاشات الصغيرة */
        @media (max-width: 992px) { .news-grid { grid-template-columns: 1fr; } .hero-news { height: 350px; } .hero-title { font-size: 1.4rem; } }









                /* المتغيرات الأساسية (تتكامل مع الكود السابق) */
        :root {
            --primary: #0b62af;
            --primary-dark: #ad1457;
            --secondary: #1e293b;
            --light-bg: #f8fafc;
            --border-color: #e2e8f0;
            --transition: all 0.3s ease;
        }

        body { margin: 0; font-family: 'Tajawal', sans-serif; background: #c6185c; color: --text=main; }
        
        /* ==============================
           1. الشريط العلوي (Top Bar)
           ============================== */
        .top-bar {
            background-color: var(--secondary);
            color: var(--secondary);
            padding: 8px 5%;
            font-size: 0.85rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .top-bar a { color: var(--secondary); text-decoration: none; margin-left: 15px; transition: var(--transition); }
        .top-bar a:hover { color: var(--secondary); }

        /* ==============================
           2. الترويسة الرئيسية (Main Header)
           ============================== */
        .main-header {
            background-color: #ffffff;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            padding: 15px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky; /* لجعل الترويسة تلاحق الزائر عند النزول */
            top: 0;
            z-index: 1000;
        }

        /* الشعار */
        .logo img { height: 60px; width: auto; /* ضع مسار اللوجو الخاص بك هنا */ }
        .logo span { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-right: 10px; vertical-align: middle;}

        /* القائمة الرئيسية */
        .main-nav { display: flex; list-style: none; margin: 0; padding: 0; gap: 25px; }
        .main-nav > li { position: relative; padding: 10px 0; }
        .main-nav a { 
            text-decoration: none; 
            color: var(--secondary); 
            font-weight: 700; 
            font-size: 1.05rem;
            transition: var(--transition);
        }
        .main-nav > li > a:hover { color: #c6185c; }

        /* القائمة المنسدلة (Dropdown) */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: #ffffff;
            min-width: 200px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            border-radius: 8px;
            border-top: 3px solid var(--primary);
            list-style: none;
            padding: 10px 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(15px);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* تأثير ظهور ناعم جداً */
            z-index: 1001;
        }
        .main-nav > li:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .dropdown-menu li a {
            display: block;
            padding: 10px 20px;
            color: #475569;
            font-size: 0.95rem;
            font-weight: 500;
        }
        .dropdown-menu li a:hover { background-color: var(--light-bg); color: var(--primary); padding-right: 25px; /* تأثير حركة النص عند التمرير */ }

        /* أزرار الإجراءات (اليسار) */
        .header-actions { display: flex; gap: 10px; align-items: center; }
        .btn-outline {
            border: 2px solid var(--primary); color: var(--primary); padding: 8px 20px;
            border-radius: 25px; text-decoration: none; font-weight: 700; transition: var(--transition);
        }
        .btn-outline:hover { background: var(--primary); color: white; }
        
        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white; padding: 8px 25px; border-radius: 25px; text-decoration: none;
            font-weight: 700; box-shadow: 0 4px 10px rgba(216, 27, 96, 0.2); transition: var(--transition);
        }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(216, 27, 96, 0.3); }

        /* ==============================
           3. شريط الأخبار المتحرك
           ============================== */
        .news-ticker-wrapper {
            background-color: var(--light-bg);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            overflow: hidden;
            padding: 8px 5%;
        }
        .ticker-title {
            background: var(--primary); color: white; padding: 5px 15px;
            border-radius: 4px; font-weight: 700; font-size: 0.9rem; z-index: 2; margin-left: 15px;
            white-space: nowrap;
        }
        .ticker-content {
            flex-grow: 1; overflow: hidden; white-space: nowrap;
        }
        .ticker-text {
            display: inline-block;
            padding-right: 100%; /* يبدأ من خارج الشاشة */
            animation: ticker-move 35s linear infinite;
            color: var(--secondary); font-weight: 500; font-size: 0.95rem;
        }
        .ticker-text a { color: var(--primary); text-decoration: none; margin: 0 15px; }
        .ticker-text a:hover { text-decoration: underline; }

        @keyframes ticker-move {
            0% { transform: translateX(0); }
            100% { transform: translateX(100%); /* للحركة من اليمين لليسار */ }
        }
        
        /* التجاوب مع الجوال (مبسط) */
        @media (max-width: 992px) {
            .main-nav { display: none; /* يتم إخفاؤها في الجوال واستبدالها بزر همبرجر عادة */ }
            .header-actions { display: none; }
        }
        .container { max-width: 1280px; margin: 0 auto; }

        .page-header { text-align: center; margin-bottom: 50px; }
        .page-header h2 { font-size: 2.2rem; font-weight: 800; color: var(--text-main); }
        .page-header h2 span { color: var(--primary); }

        /* --- شريط الأعلام الاحترافي --- */
        .flags-wrapper { position: relative; //margin-bottom: 50px; display: flex; align-items: center; }
        .flags-container {
            display: flex; overflow-x: auto; gap: 15px; padding: 20px 10px;
            scroll-behavior: smooth; scrollbar-width: none; flex-grow: 1;
        }
        .flags-container::-webkit-scrollbar { display: none; }

        .scroll-btn {
            background: var(--surface); border: none; color: var(--primary);
            width: 45px; height: 45px; border-radius: 50%; font-size: 1.2rem;
            cursor: pointer; box-shadow: var(--shadow-sm); z-index: 10;
            transition: var(--transition); display: flex; justify-content: center; align-items: center;
        }
        .scroll-btn:hover { background: var(--primary); color: white; transform: scale(1.1); }
        .scroll-btn.right { margin-left: 15px; }
        .scroll-btn.left { margin-right: 15px; }

        .flag-item {
            background: var(--surface); min-width: 120px; padding: 12px;
            border-radius: var(--radius-md); text-align: center; cursor: pointer;
            box-shadow: var(--shadow-sm); transition: var(--transition);
            border: 2px solid transparent; display: flex; flex-direction: column; align-items: center; gap: 10px;
        }
        .flag-item:hover, .flag-item.active { 
            transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--shadow-lg);
        }
        .flag-item img { width: 55px; height: 38px; border-radius: 6px; object-fit: cover; }
        .flag-name { font-size: 0.9rem; font-weight: 700; color: var(--text-main); }
        .badge { background: #fce4ec; color: var(--secondary ); border-radius: 20px; padding: 3px 8px; font-size: 0.75rem; font-weight: 800; }




        /* --- الشبكة (Grid) الصارمة --- */
        #pioneers-list { 
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 30px; 
            align-items: stretch; /* يجبر جميع الكروت في نفس الصف أن تكون بنفس الطول */
        }

        /* --- تصميم البطاقة الموحد (السر هنا) --- */
        .card {
            background: var(--surface);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            height: 100%; /* يجبر البطاقة على أخذ الارتفاع الكامل */
            position: relative;

        }
        .card a:link, .card a:visited, .card a:hover, .card a:active {
  text-decoration: none;
  border: none;
}

        .card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

        /* حاوية الصورة (بمقاس ثابت صارم) */
        .card-img-wrapper {
            width: 100%;
            height: 400px; /* طول ثابت وموحد لجميع الصور */
            overflow: hidden;
            position: relative;
        }
        
        .card-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* يملأ الفراغ بدون تمطيط أو تشويه */
            object-position: top; /* يركز على الوجه */
            transition: transform 0.6s ease;
        }
        .card:hover .card-img-wrapper img { transform: scale(1.08); /* تأثير زووم خفيف عند التمرير */ }

        /* حاوية النصوص والأزرار (مرنة لتدفع الزر للأسفل) */
        .card-body {
            padding: 25px 20px;
            display: flex;
            flex-direction: column;
            flex-grow: 1; /* تأخذ المساحة المتبقية */
            justify-content: space-between; /* تبعد النصوص عن الزر ليصبح الزر دائماً بالأسفل */
            text-align: center;
        }

        .card-title { font-size: 1.15rem; font-weight: 800; color: var(--text-main); margin-bottom: 5px; line-height: 1.4; }
        .card-subtitle { font-size: 0.9rem; color: var(--text-light); font-weight: 500; margin-bottom: 20px; }

        .card-btn {
            display: block;
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            text-decoration: none;
            border-radius: var(--radius-md);
            font-weight: 700;
            font-size: 0.95rem;
            transition: var(--transition);
            border: none;
            cursor: pointer;
        }
        .card-btn:hover { box-shadow: 0 5px 15px rgba(216, 27, 96, 0.4); transform: translateY(-2px); }

        /* --- حالات التحميل والفراغ --- */
        .state-container { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
        .loader { border: 4px solid #f3f3f3; border-top: 4px solid var(--primary); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 15px auto; }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }






