/* General styles */
/* إزالة حدود التركيز والنقر لجميع العناصر */
*,
*:focus,
*:active,
a:focus,
button:focus,
input:focus {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important; /* للموبايل */
}

/* كود إخفاء الـ x */
#header-search-input::-webkit-search-cancel-button {
    display: none;
}

/* إزالة زر الإلغاء (X) من حقول البحث في متصفحات WebKit (Chrome, Safari, Edge) */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
}

/* إزالة زر الإلغاء في متصفحات IE ومتصفحات Edge القديمة */
input[type="search"]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

/* =========================================
   CSS-Only Skeleton Loader (Shimmer Effect)
   ========================================= */

/* #primary,     */
/* .the_archive, .single-post
{
    padding-top: 50px;
} */

body {
    padding-top: 120px; 
}
@media (max-width: 768px) {
    body {
        padding-top: 110px !important; 
    }
}

/* 1. الطبقة الأساسية (الخلفية والمربعات الرمادية الثابتة) */
main::before {
    content: "";
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 59;
    
    /* رسم المربعات الرمادية الثابتة */
    background-image: 
        /* --- المجموعة 1 --- */
        linear-gradient(#f3f4f6 100%, transparent 0), /* صورة */
        linear-gradient(#f3f4f6 100%, transparent 0), /* عنوان */
        
        /* --- المجموعة 2 --- */
        linear-gradient(#f3f4f6 100%, transparent 0),
        linear-gradient(#f3f4f6 100%, transparent 0),

        /* --- المجموعة 3 --- */
        linear-gradient(#f3f4f6 100%, transparent 0),
        linear-gradient(#f3f4f6 100%, transparent 0);

    background-size: 
        90% 200px, 60% 20px,  /* أحجام المجموعة 1 */
        90% 200px, 60% 20px,  /* أحجام المجموعة 2 */
        90% 200px, 60% 20px;  /* أحجام المجموعة 3 */

    background-position: 
        center 20px, center 230px,   /* مواقع المجموعة 1 */
        center 300px, center 510px,  /* مواقع المجموعة 2 */
        center 580px, center 790px;  /* مواقع المجموعة 3 */

    background-repeat: no-repeat;
    
    /* إخفاء افتراضي */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* 2. طبقة اللمعان المتحركة (Shimmer) */
main::after {
    content: "";
    position: fixed;
    top: 125px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 60; /* فوق الطبقة الرمادية */
    
    /* تدرج لوني شفاف -> أبيض لامع -> شفاف */
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    
    /* إخفاء افتراضي */
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%); /* البداية خارج الشاشة من اليسار */
}



/* =========================================
   إخفاء المحتوى الحقيقي أثناء التحميل
   ========================================= */

/* عندما يبدأ التحميل (is-changing):
   نستهدف كل العناصر المباشرة (>) داخل الـ main
   ونجعلها شفافة تماماً
*/
html.is-changing main > * {
    opacity: 0 !important;
    transition: opacity 0.1s ease-out;
}

html.is-changing body {
    overflow: hidden !important;
}





/* =========================================
   عند تفعيل Swup (Is-Changing)
   ========================================= */

/* إظهار الطبقة الرمادية الثابتة */
html.is-changing main::before {
    opacity: 1;
    pointer-events: auto;
}

/* تشغيل حركة اللمعان */
html.is-changing main::after {
    opacity: 1;
    pointer-events: auto;
    animation: shimmer 1.5s infinite;
}

/* تعريف الحركة: من اليسار لليمين */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}











/* Header styles */
header .top-bar , .site-info{
    background-image: linear-gradient(320deg, var(--c-header-start) 0%, var(--c-header-end) 100%);
}


#nav-slider {
    background-color: #04a0a4;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
#nav-slider::-webkit-scrollbar {
    display: none;
}
#nav-slider ul{
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
#nav-slider::-webkit-scrollbar ul{
    display: none;
}
#nav-slider li {
    padding: 10px;
    display: inline-block; 
}
#nav-slider li ul {
    display: none;
}



/* Hero Section */

/* 1. ضبط الحاوية */
.swiper-pagination-custom {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    bottom: 1.5rem !important; /* مكانها من الأسفل */
    z-index: 20 !important;
}

.swiper-pagination-custom span{
    padding-top: 5px;
}

/* 2. ضبط شكل الرقم (الرصاصة) */
.swiper-pagination-custom .swiper-pagination-bullet {
    width: 32px !important;       /* عرض ثابت */
    height: 32px !important;      /* ارتفاع ثابت */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    background-color: #003756 !important; /* خلفية شفافة */
    backdrop-filter: blur(4px) !important; /* تأثير زجاجي جميل */
    
    color: #ffffff !important;    /* لون الرقم أبيض */
    font-size: 16px !important;
    font-weight: 700 !important;
    
    border-radius: 10px 2px 2px 2px !important; /* حواف دائرية قليلاً */
    opacity: 1 !important;        /* إلغاء الشفافية الموروثة */
    margin: 0 !important;         /* إلغاء أي مارجن خارجي */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    
    /* إلغاء أي فلاتر قديمة قد تسبب المشكلة */
    filter: none !important; 
    box-shadow: none !important;
}

/* 3. حالة الهوفر (عند مرور الماوس) */
.swiper-pagination-custom .swiper-pagination-bullet:hover {
    background-color: #04a6aa !important; /* لون الموقع */
    color: #fff !important;
}

/* 4. الرقم النشط (Current Active Slide) */
.swiper-pagination-custom .swiper-pagination-bullet-active {
    background-color: #04a6aa !important; /* خلفية بيضاء كاملة للنشط */
    color: #000000 !important; /* لون الرقم داكن */
    /* transform: scale(1.1); تكبير بسيط للتميز */
}



/* =======================================================
   تنسيق القائمة العلوية (Desktop Menu Fix)
   ======================================================= */

/* =======================================================
   تنسيق القائمة العلوية - الكود النهائي النظيف
   ======================================================= */

:root{
    --c-primary-menu: #003756;      
    --c-primary-menu-hover: #d31129;  
    --c-primary-menu-active: #d31129;    
}

#desktop-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#desktop-menu li {
    position: relative; 
}

#desktop-menu > ul > li > a {
    position: relative; 
    display: block;    
    text-decoration: none;
    transition: color 0.3s ease;
    color: var(--c-primary-menu);
    font-weight: 600;
}

#desktop-menu > ul > li > a:hover {
    color: var(--c-primary-menu-hover);
}

#desktop-menu > ul > li.current-menu-item > a,
#desktop-menu > ul > li.current-menu-parent > a,
#desktop-menu > ul > li.current_page_ancestor > a {
    color: var( --c-primary-menu-active);
    font-weight: 700; 
}

#desktop-menu .menu-item-has-children > a::after {
    content: '';
    display: block;
    
    width: 10px;  /* العرض */
    height: 8px;  /* الارتفاع */
    
    background-color: black;
    
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    
    position: absolute;
    left: -15px;     
    top: 50%;      
    transform: translateY(-50%);
    
    opacity: 0.8;
    transition: transform 0.3s ease, background-color 0.3s;
}

#desktop-menu .menu-item-has-children:hover > a::after {
    /* transform: rotate(90deg);
    margin-top: -5px; */
}

#desktop-menu .menu-item-has-children
{
    padding-left: 15px; /* إفساح مجال للسهم */
}

/* =======================================================
   تنسيق القائمة المنسدلة (Sub Menu)
   ======================================================= */

#desktop-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 100;
}

#desktop-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* تنسيق الروابط الداخلية */
#desktop-menu .sub-menu li {
    border-bottom: 1px solid #eee;
}
#desktop-menu .sub-menu li:last-child {
    border-bottom: none;
}

#desktop-menu .sub-menu a {
    display: block !important;
    padding: 12px 15px;
    color: var(--c-primary-menu);
    font-size: 14px;
    text-align: right;
    transition: 0.3s;
}

#desktop-menu .sub-menu > a:first-child {
    border-radius: 5px 5px 0 0;   
}

#desktop-menu .sub-menu a:hover {
    background-color: #f8f9fa;
    color: var(--c-primary-menu-hover);
    padding-right: 20px;
}

/* إخفاء السهم من القوائم الداخلية */
#desktop-menu .sub-menu a::after {
    display: none;
}

/* =======================================================
   تنسيق قائمة الموبايل (Mobile Menu Styles) - محدث
   ======================================================= */

/* 1. تنسيق الروابط (نفس ألوان الديسكتوب) */
.mobile-nav li {
    border-bottom: 1px solid #f3f4f6;
    position: relative; /* لتموضع زر السهم */
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    display: block;
    padding: 6px 0; /* مساحة جيدة للنقر */
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    
    /* تطبيق الألوان والمتغيرات */
    color: var(--c-primary-menu); 
    transition: color 0.3s ease, padding 0.3s ease;
}

/* هوفر الرابط في الموبايل */
.mobile-nav a:hover {
    color: var(--c-primary-menu-hover);
    padding-right: 5px; /* حركة بسيطة جمالية */
}

/* العنصر النشط (الصفحة الحالية) */
.mobile-nav .current-menu-item > a,
.mobile-nav .current-menu-parent > a,
.mobile-nav .current_page_ancestor > a {
    color: var(--c-primary-menu-active);
    font-weight: 700;
}

/* 2. تنسيق القائمة الفرعية */
.mobile-nav .sub-menu {
    display: none; 
    padding-right: 15px; 
    background-color: #f9fafb;
    border-radius: 4px;
    margin-bottom: 10px;
    margin-left: 0;
    border-right: 2px solid #f9fafb; /* خط جانبي لتمييز الفرعي */
}

.mobile-nav .sub-menu a {
    font-size: 14px;
    padding: 6px 0;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    color: var(--c-text-body); /* لون مختلف قليلاً للفرعي لتمييزه */
}

.mobile-nav .sub-menu a:hover {
    color: var(--c-primary-menu-hover);
    background-color: transparent;
}

/* كلاس مساعد لإظهار القائمة عند الفتح */
.mobile-nav .menu-item-has-children.is-open > .sub-menu {
    display: block;
    animation: slideDown 0.3s ease-out;
}

/* 3. تنسيق "زر السهم" (ليأخذ نفس ألوان الروابط) */
.mobile-submenu-toggle {
    position: absolute;
    top: -5px; 
    left: 0; 
    width: 45px; /* مساحة نقر مريحة */
    height: 45px; /* مربع متناسق */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* رسم السهم */
.mobile-submenu-toggle::after {
    content: '';
    display: block;
    width: 12px;
    height: 10px;
    
    /* اللون الافتراضي للسهم (نفس لون الرابط) */
    background-color: var(--c-primary-menu); 
    
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    opacity: 0.8;
    transition: transform 0.3s ease, background-color 0.3s;
}

/* هوفر على زر السهم نفسه */
.mobile-submenu-toggle:hover::after {
    background-color: var(--c-primary-menu-hover);
}

/* 4. حالة الفتح (تدوير وتلوين السهم) */
.mobile-nav .menu-item-has-children.is-open > .mobile-submenu-toggle::after {
    transform: rotate(180deg);
    background-color: var(--c-primary-menu-active); /* يصبح أحمر عند الفتح */
}

/* أنيميشن */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}







/* تنسيق حاوية الترقيم */
.custom-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px; /* مسافة بين المربعات */
    flex-wrap: wrap;
}

/* تنسيق المربعات (الأرقام والأسهم) */
.custom-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;   
    gap: 8px;    
    height: 30px;      
    color: #003756;    
    font-weight: 500; 
    font-size: 13px;
    background-color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
    padding-top: 2px;
    border-radius: 4px;
}

.custom-pagination .prev  , .custom-pagination .next{
    width: fit-content;
}
.custom-pagination .next {
    padding: 2px 5px 0px 3px;
}
.custom-pagination .prev {
    padding: 2px 3px 0px 5px;
}


/* حالة التحويم (Hover) والصفحة الحالية (Current) */
.custom-pagination .page-numbers:hover,
.custom-pagination .page-numbers.current {
    background-color: #003756; /* خلفية زرقاء */
    color: #ffffff;            /* نص أبيض */
    border-color: #003756;
}

/* تنسيق النقاط (...) */
.custom-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    width: auto;
    color: #6b7280;
}











.single-post .most-read-widget ul li
{
    margin: 10px 0;
}