/* --- Preloader Styles --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 99999;
    /* أعلى من كل شيء */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
    position: relative;
}

.loader-logo {
    width: 80px;
    margin-bottom: 20px;
    animation: pulse-logo 1.5s infinite ease-in-out;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary-color);
    /* اللون الذهبي */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-logo {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.9);
        opacity: 0.8;
    }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* =========================================================
   Scroll To Top Button - Final Approved Version
   زر الرجوع للأعلى - نسخة نهائية معتمدة
========================================================= */

#scrollToTopBtn {
    position: fixed !important;
    right: 24px !important;
    bottom: 28px !important;
    width: 50px !important;
    height: 50px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--site-gradient, var(--site-primary, var(--primary-color))) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .18) !important;
    z-index: 9996 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(18px) !important;

    transition:
        opacity .22s ease,
        visibility .22s ease,
        transform .22s ease,
        box-shadow .22s ease !important;
}

#scrollToTopBtn i {
    font-size: 18px !important;
    line-height: 1 !important;
}

#scrollToTopBtn.show-btn {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

#scrollToTopBtn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .24) !important;
}

/* =========================================================
   Mobile + Tablet
   عند ظهور شريط التنقل السفلي نرفع السهم فوقه
========================================================= */

@media (max-width: 1199.98px) {
    #scrollToTopBtn {
        width: 42px !important;
        height: 42px !important;
        right: 14px !important;
        bottom: calc(78px + env(safe-area-inset-bottom)) !important;
        z-index: 9996 !important;
    }

    #scrollToTopBtn i {
        font-size: 15px !important;
    }
}

/* iPad / Fold / Tablet */
@media (min-width: 768px) and (max-width: 1199.98px) {
    #scrollToTopBtn {
        width: 42px !important;
        height: 42px !important;
        right: 18px !important;
        bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    }
}

/* الجوال */
@media (max-width: 575.98px) {
    #scrollToTopBtn {
        width: 40px !important;
        height: 40px !important;
        right: 12px !important;
        bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    }

    #scrollToTopBtn i {
        font-size: 14px !important;
    }
}

/* الأجهزة الصغيرة جدًا */
@media (max-width: 390px) {
    #scrollToTopBtn {
        width: 38px !important;
        height: 38px !important;
        right: 10px !important;
        bottom: calc(74px + env(safe-area-inset-bottom)) !important;
    }
}

/* أجهزة عريضة وقصيرة مثل Nest Hub */
@media (min-width: 900px) and (max-width: 1199.98px) and (max-height: 700px) {
    #scrollToTopBtn {
        width: 38px !important;
        height: 38px !important;
        right: 12px !important;
        bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    }

    #scrollToTopBtn i {
        font-size: 14px !important;
    }
}

/* --- Header Styles --- */
/* الشريط العلوي */
.top-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo img {
    height: 60px;
    /* تحكم بحجم اللوجو */
    transition: transform 0.3s;
}

.brand-logo:hover img {
    transform: scale(1.05);
}

.brand-text h1 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: var(--text-color);
}

.brand-text p {
    font-size: 13px;
    margin: 0;
    color: #777;
}

/* أزرار الإجراءات (دخول، سلة) */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: var(--text-color);
    margin-left: 10px;
}

.action-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.action-btn i,
.action-btn svg {
    font-size: 18px;
}

/* شارة عدد السلة */
.cart-badge {
    background-color: var(--secondary-color, #ff4757);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* القائمة الرئيسية Navbar */
.main-navbar {
    background-color: var(--primary-color) !important;
    /* لون بترولي */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    /* أبيض شفاف قليلاً */
    font-weight: 500;
    padding: 20px 15px !important;
    font-size: 16px;
    position: relative;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
    /* يتحول للذهبي عند اللمس */
}

/* خط يتحرك تحت الروابط */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    left: 50%;
    height: 4px;
    /* سمك الخط */
    background-color: var(--secondary-color);
    /* الخط ذهبي */
    transition: all 0.3s ease;
    opacity: 0;
}

.navbar-nav .nav-link:hover::after {
    right: 15px;
    left: 15px;
    opacity: 1;
}

/* زر التبرع المميز في القائمة */
.donate-nav-btn {
    background: var(--secondary-color) !important;
    /* خلفية ذهبية */
    color: #fff !important;
    border-radius: 5px;
    padding: 10px 25px !important;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: bold;

}

.donate-nav-btn:hover {
    background: #fff !important;
    /* عند التحويم يصير أبيض */
    color: var(--primary-color) !important;
}

.donate-nav-btn::after {
    display: none;
}

/* إخفاء الخط السفلي للزر */

/* القوائم المنسدلة Dropdown */
.dropdown-menu {
    background-color: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
    border-top: 3px solid var(--secondary-color);
    margin-top: 0;
    animation: fadeInUp 0.3s ease forwards;
}

.dropdown-item {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    color: var(--primary-color);
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--secondary-color);
    transform: translateX(-5px);
    /* حركة بسيطة لليسار */
}

/* Offcanvas (موبايل) */
.offcanvas-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.offcanvas-title {
    /* font-family: 'El Messiri', serif; */
}

.btn-close-white {
    filter: invert(1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav .dropdown-toggle::after {
    display: none !important;
}

@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .nav-item.dropdown:hover .fa-angle-down {
        transform: rotate(180deg);
    }
}

.navbar-nav .dropdown-toggle::after {
    margin-right: 0.255em;
    vertical-align: 0.255em;
}

.dropdown>.dropdown-menu.show {
    display: none;
}

.dropdown:hover>.dropdown-menu.show {
    display: block;
}

.nav-item.dropdown .fa-angle-down {
    transition: transform 0.3s ease;
    /* سرعة الدوران */
}

.nav-item.dropdown .nav-link[aria-expanded="true"] .fa-angle-down {
    transform: rotate(180deg);
}

/* =========================================================
   Main Footer - Final Clean Version
   نسخة الفوتر النهائية
========================================================= */

.main-footer {
    position: relative;
    padding: 56px 0 0 !important;
    overflow: hidden;
    color: rgba(255, 255, 255, .88) !important;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .06), transparent 28%),
        radial-gradient(circle at 88% 76%, rgba(255, 255, 255, .05), transparent 26%),
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 94%, #000 6%) 0%,
            var(--site-primary, var(--primary-color)) 50%,
            color-mix(in srgb, var(--site-secondary, var(--secondary-color)) 70%, var(--site-primary, var(--primary-color))) 100%) !important;
}

.main-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .10));
    pointer-events: none;
}

.main-footer::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    left: -120px;
    bottom: -150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    pointer-events: none;
}

.main-footer .container {
    position: relative;
    z-index: 2;
}

.main-footer .row {
    row-gap: 22px;
}

/* إلغاء الكاردات حول الأقسام */
.main-footer .footer-widget {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 8px 6px 18px !important;
    border-radius: 0 !important;
    height: auto !important;
}

/* عناوين الفوتر */
.main-footer .footer-title {
    position: relative;
    margin-bottom: 18px !important;
    padding-bottom: 10px;
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
}

.main-footer .footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 38px !important;
    height: 3px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
}

/* النصوص */
.main-footer .footer-widget p {
    color: rgba(255, 255, 255, .84) !important;
    font-size: 14px !important;
    line-height: 2 !important;
    margin-bottom: 0;
}

/* روابط الفوتر */
.main-footer .footer-links {
    margin-bottom: 0;
    padding: 0;
}

.main-footer .footer-links li {
    margin-bottom: 10px;
}

.main-footer .footer-links a {
    color: rgba(255, 255, 255, .84) !important;
    text-decoration: none;
    font-size: 15px !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all .22s ease;
}

.main-footer .footer-links a:hover {
    color: #fff !important;
    transform: translateX(-4px);
}

.main-footer .footer-links i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background: rgba(255, 255, 255, .10);
    color: #fff !important;
}

/* عناوين صغيرة مثل: تابعنا على */
.main-footer h6.text-white {
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 14px;
}

/* معلومات التواصل */
.main-footer .footer-widget .d-flex.align-items-center.mb-3,
.main-footer .footer-widget .d-flex.align-items-center.mb-2 {
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    font-weight: 700;
}

.main-footer .footer-widget .d-flex.align-items-center.mb-3 i,
.main-footer .footer-widget .d-flex.align-items-center.mb-2 i {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* أيقونات التواصل */
.main-footer .social-icons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px !important;
}

.main-footer .social-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    color: #fff !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .14) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all .25s ease !important;
}

.main-footer .social-btn i {
    font-size: 17px !important;
}

.main-footer .social-btn:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 14px 26px rgba(0, 0, 0, .18) !important;
}

/* ألوان المنصات حسب الترتيب الظاهر عندك:
   1 يوتيوب
   2 انستغرام
   3 X
   4 فيسبوك
   5 سناب
*/

.main-footer .social-icons-wrapper .social-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    color: #fff !important;
    text-decoration: none !important;
    border: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .14) !important;
    transition: all .22s ease !important;
}

.main-footer .social-icons-wrapper .social-btn i {
    color: inherit !important;
    font-size: 17px !important;
    line-height: 1 !important;
}

.main-footer .social-icons-wrapper .social-btn:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 14px 26px rgba(0, 0, 0, .18) !important;
}

/* Facebook */
.main-footer .social-icons-wrapper .sb-facebook {
    background: #1877F2 !important;
    color: #fff !important;
}

/* X / Twitter */
.main-footer .social-icons-wrapper .sb-twitter {
    background: #000000 !important;
    color: #fff !important;
}

/* Instagram */
.main-footer .social-icons-wrapper .sb-instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 38%, #8134af 70%, #515bd4 100%) !important;
    color: #fff !important;
}

/* YouTube */
.main-footer .social-icons-wrapper .sb-youtube {
    background: #FF0000 !important;
    color: #fff !important;
}

/* Snapchat */
.main-footer .social-icons-wrapper .sb-snapchat {
    background: #FFFC00 !important;
    color: #111 !important;
}

.main-footer .social-icons-wrapper .sb-snapchat i {
    color: #111 !important;
}

/* Telegram */
.main-footer .social-icons-wrapper .sb-telegram {
    background: #229ED9 !important;
    color: #fff !important;
}

/* TikTok */
.main-footer .social-icons-wrapper .sb-tiktok {
    background: linear-gradient(135deg, #000000 0%, #111111 55%, #25F4EE 56%, #FE2C55 100%) !important;
    color: #fff !important;
}

/* الجوال */
@media (max-width: 575.98px) {
    .main-footer .social-icons-wrapper .social-btn {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
    }

    .main-footer .social-icons-wrapper .social-btn i {
        font-size: 15px !important;
    }
}

/* الخريطة */
.main-footer .footer-map {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}

.main-footer .footer-map iframe {
    width: 100% !important;
    height: 170px !important;
    border: 0 !important;
    display: block;
    border-radius: 18px !important;
}

/* ترخيص التبرع */
.main-footer .donation-license {
    margin-top: 16px !important;
}

.main-footer .donation-license p {
    color: rgba(255, 255, 255, .86) !important;
    font-size: 13px !important;
    font-weight: 800;
    margin-bottom: 8px;
}

.main-footer .donation-license button {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.main-footer .donation-license img {
    width: 100%;
    max-width: 260px;
    max-height: 88px !important;
    object-fit: contain;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    background: rgba(255, 255, 255, .05);
    transition: all .22s ease;
}

.main-footer .donation-license img:hover {
    transform: translateY(-2px);
}

/* شريط الحقوق */
.main-footer .copyright-area {
    position: relative;
    z-index: 2;
    margin-top: 28px !important;
    padding: 14px 0 !important;
    background: rgba(0, 0, 0, .18) !important;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.main-footer .copyright-area p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .88) !important;
    font-size: 13.5px;
    line-height: 1.8;
}

.main-footer .copyright-area a,
.main-footer .copyright-area strong {
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
}

.main-footer .copyright-area a:hover {
    color: rgba(255, 255, 255, .85) !important;
}

/* مودال الترخيص */
#donationLicenseModal .modal-body img {
    max-height: 86vh;
    object-fit: contain;
}

/* =========================================================
   Footer Responsive
========================================================= */

@media (max-width: 991.98px) {
    .main-footer {
        padding-top: 46px !important;
    }

    .main-footer .footer-widget {
        padding: 8px 4px 16px !important;
        text-align: center;
    }

    .main-footer .footer-title {
        font-size: 20px !important;
    }

    .main-footer .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .main-footer .footer-links a {
        justify-content: center;
    }

    .main-footer .social-icons-wrapper {
        justify-content: center;
    }

    .main-footer .footer-widget .d-flex.align-items-center.mb-3,
    .main-footer .footer-widget .d-flex.align-items-center.mb-2 {
        justify-content: center;
    }

    .main-footer .footer-map iframe {
        height: 160px !important;
    }
}

/* =========================================================
   Footer Mobile Final Fix
   تحسين شكل الفوتر في الجوال
========================================================= */

@media (max-width: 575.98px) {
    .main-footer {
        padding-top: 28px !important;
        padding-bottom: 0 !important;
    }

    .main-footer .container {
        padding-inline: 14px !important;
    }

    .main-footer .row {
        display: flex !important;
        row-gap: 18px !important;
    }

    /* كل الأعمدة بعرض كامل في الجوال */
    .main-footer .row>[class*="col-"] {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .main-footer .footer-widget {
        padding: 0 !important;
        text-align: center !important;
    }

    .main-footer .footer-title {
        font-size: 17px !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
        line-height: 1.4 !important;
    }

    .main-footer .footer-title::after {
        right: 50% !important;
        transform: translateX(50%) !important;
        width: 34px !important;
        height: 2px !important;
    }

    .main-footer .footer-widget p {
        font-size: 11.5px !important;
        line-height: 1.8 !important;
        max-width: 290px;
        margin-inline: auto;
    }

    .main-footer .footer-links li {
        margin-bottom: 5px !important;
    }

    .main-footer .footer-links a {
        font-size: 11.5px !important;
        min-height: 22px !important;
        gap: 6px !important;
        justify-content: center !important;
    }

    .main-footer .footer-links i {
        width: 18px !important;
        height: 18px !important;
        flex: 0 0 18px !important;
        font-size: 7px !important;
    }

    .main-footer .footer-widget .d-flex.align-items-center.mb-3,
    .main-footer .footer-widget .d-flex.align-items-center.mb-2 {
        justify-content: center !important;
        margin-bottom: 6px !important;
        font-size: 11.5px !important;
    }

    .main-footer .footer-widget .d-flex.align-items-center.mb-3 i,
    .main-footer .footer-widget .d-flex.align-items-center.mb-2 i {
        width: 22px !important;
        height: 22px !important;
        margin-right: 5px !important;
        font-size: 9px !important;
    }

    .main-footer h6.text-white {
        font-size: 12px !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }

    .main-footer .social-icons-wrapper {
        justify-content: center !important;
        gap: 7px !important;
        margin-top: 8px !important;
    }

    .main-footer .social-btn {
        width: 32px !important;
        height: 32px !important;
        border-radius: 9px !important;
    }

    .main-footer .social-btn i {
        font-size: 13px !important;
    }

    .main-footer .footer-map {
        max-width: 280px;
        margin-inline: auto;
        border-radius: 14px !important;
    }

    .main-footer .footer-map iframe {
        height: 130px !important;
        border-radius: 14px !important;
    }

    .main-footer .donation-license {
        margin-top: 10px !important;
    }

    .main-footer .donation-license p {
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }

    .main-footer .donation-license img {
        max-width: 220px !important;
        max-height: 74px !important;
        border-radius: 12px !important;
    }

    .main-footer .copyright-area {
        margin-top: 18px !important;
        padding: 10px 12px !important;
    }

    .main-footer .copyright-area p {
        font-size: 10.5px !important;
        line-height: 1.7 !important;
        max-width: 300px;
        margin-inline: auto;
    }

    .main-footer .footer-widget {
        margin-bottom: 0 !important;
    }

    .main-footer .row>[class*="col-"]:not(:last-child) {
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
}

/* --- Home Page Styles --- */
/* =========================================================
   Hero Slider - Final Responsive
   المقاس المعتمد للصور: 1920x600
   النسبة: 16:5
========================================================= */

.hero-section {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0 0 0px;
    overflow: hidden;
    background: #fff;
}

/* نعتمد نفس نسبة الصورة 16:5 */
.main-hero-swiper {
    width: 100%;
    aspect-ratio: 16 / 5;
    height: auto;
    max-height: 600px;
    min-height: 0;
    overflow: hidden;
    background: #fff;
}

.main-hero-swiper .swiper-wrapper,
.main-hero-swiper .swiper-slide,
.hero-slide-item {
    width: 100%;
    height: 100%;
}

.hero-slide-item {
    position: relative;
    overflow: hidden;
    background: #fff;
}

/* الديسكتوب: تغطية كاملة بشكل جميل */
.hero-bg-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transition: transform 7s ease;
}

.main-hero-swiper .swiper-slide-active .hero-bg-img {
    transform: scale(1.035);
}

/* طبقة النص */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-inline: clamp(28px, 7vw, 96px);
    background: linear-gradient(90deg,
            rgba(0, 0, 0, .56) 0%,
            rgba(0, 0, 0, .30) 48%,
            rgba(0, 0, 0, .08) 100%);
}

.hero-content {
    width: min(100%, 620px);
    max-width: 620px;
    margin-left: auto;
    text-align: right;
    color: #fff;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s ease, transform .8s ease;
    transition-delay: .2s;
}

.main-hero-swiper .swiper-slide-active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    margin: 0 0 10px;
    color: #fff;
    /* font-family: 'Tajawal', sans-serif; */
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 900;
    line-height: 1.35;
    text-shadow: 0 3px 16px rgba(0, 0, 0, .30);
}

.hero-desc {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .95);
    font-size: clamp(14px, 1.1vw, 18px);
    line-height: 1.75;
    max-width: 540px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .25);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 24px;
    border-radius: 999px;
    background: var(--site-primary, var(--primary-color));
    color: #fff;
    border: 1px solid var(--site-primary, var(--primary-color));
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
    transition: .25s ease;
}

.btn-hero:hover,
.btn-hero:focus {
    color: #fff;
    background: var(--site-secondary, var(--secondary-color));
    border-color: var(--site-secondary, var(--secondary-color));
    transform: translateY(-2px);
}

/* إلغاء أسهم التنقل نهائيًا */
.main-hero-swiper .swiper-button-next,
.main-hero-swiper .swiper-button-prev,
.main-hero-swiper .hero-nav-btn {
    display: none !important;
}

/* نقاط السلايدر */
.main-hero-swiper .swiper-pagination {
    bottom: 10px !important;
}

.main-hero-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #fff;
    opacity: .55;
    transition: .25s ease;
}

.main-hero-swiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 999px;
    opacity: 1;
    background: var(--site-primary, var(--primary-color));
}

.hero-section .hero-content h1,
.hero-section .hero-content h2,
.hero-section .hero-content .hero-title,
.hero-slider .hero-content h1,
.hero-slider .hero-content h2,
.hero-slider .hero-title {
    color: #fff !important;
    text-shadow:
        0 3px 10px rgba(0, 0, 0, .45),
        0 1px 2px rgba(0, 0, 0, .35);
}

/* الوصف */
.hero-section .hero-content p,
.hero-section .hero-content .hero-subtitle,
.hero-slider .hero-content p,
.hero-slider .hero-subtitle {
    color: rgba(255, 255, 255, .94) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .38);
}

/* زر السلايدر */
.hero-section .hero-content .btn,
.hero-slider .hero-content .btn {
    position: relative;
    z-index: 3;
}

/* =========================================================
   التابلت والآيباد
========================================================= */

@media (min-width: 768px) and (max-width: 1199.98px) {
    .main-hero-swiper {
        aspect-ratio: 16 / 6.3;
        height: auto;
        min-height: 300px;
        max-height: 460px;
    }

    .hero-bg-img {
        object-fit: cover;
        object-position: center center;
    }

    .hero-overlay {
        padding-inline: 34px;
        background: linear-gradient(90deg,
                rgba(0, 0, 0, .50) 0%,
                rgba(0, 0, 0, .28) 52%,
                rgba(0, 0, 0, .08) 100%);
    }

    .hero-content {
        max-width: 520px;
    }

    .hero-title {
        font-size: clamp(26px, 3.4vw, 38px);
        margin-bottom: 7px;
    }

    .hero-desc {
        font-size: clamp(14px, 1.6vw, 16px);
        line-height: 1.65;
        margin-bottom: 15px;
        max-width: 460px;
        -webkit-line-clamp: 2;
    }

    .btn-hero {
        min-height: 40px;
        padding: 8px 22px;
        font-size: 13px;
    }
}

/* =========================================================
   الجوال الطولي
========================================================= */

/* =========================================================
   الجوال الطولي - ضبط نهائي للسلايدر بدون تشويه الصور
========================================================= */

@media (max-width: 767.98px) {
    .main-hero-swiper {
        aspect-ratio: 16 / 5.8 !important;
        height: auto !important;
        min-height: 155px !important;
        max-height: 185px !important;
    }

    .hero-bg-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        background: #fff !important;
    }

    .hero-overlay {
        align-items: center !important;
        justify-content: center !important;
        padding-inline: 12px !important;
        background: linear-gradient(90deg,
                rgba(0, 0, 0, .24) 0%,
                rgba(0, 0, 0, .18) 50%,
                rgba(0, 0, 0, .10) 100%) !important;
    }

    .hero-content {
        width: min(84%, 310px) !important;
        max-width: 310px !important;
        margin-left: auto !important;
        text-align: right !important;
    }

    .hero-title {
        font-size: clamp(15px, 4.4vw, 20px) !important;
        line-height: 1.35 !important;
        margin-bottom: 4px !important;
    }

    .hero-desc {
        display: -webkit-box !important;
        font-size: clamp(9.5px, 2.8vw, 12px) !important;
        line-height: 1.4 !important;
        margin-bottom: 6px !important;
        max-width: 100% !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .btn-hero {
        min-height: 29px !important;
        padding: 5px 12px !important;
        font-size: 10.5px !important;
    }

    .main-hero-swiper .swiper-pagination {
        bottom: 5px !important;
    }
}

/* الجوال الصغير جدًا */
@media (max-width: 390px) {
    .main-hero-swiper {
        aspect-ratio: 16 / 6 !important;
        min-height: 150px !important;
        max-height: 175px !important;
    }

    .hero-bg-img {
        object-position: center top !important;
    }

    .hero-title {
        font-size: 15px !important;
    }

    .hero-desc {
        font-size: 9.5px !important;
        -webkit-line-clamp: 1 !important;
    }

    .btn-hero {
        min-height: 28px !important;
        padding: 4px 11px !important;
        font-size: 10px !important;
    }
}

/* =========================================================
   الجوال العرضي
========================================================= */

@media (max-height: 500px) and (orientation: landscape) {
    .main-hero-swiper {
        aspect-ratio: 16 / 6;
        height: auto;
        min-height: 230px;
    }

    .hero-bg-img {
        object-fit: cover;
    }

    .hero-overlay {
        justify-content: flex-start;
        text-align: right;
        padding-inline: 18px;
        background: linear-gradient(90deg,
                rgba(0, 0, 0, .32) 0%,
                rgba(0, 0, 0, .22) 48%,
                rgba(0, 0, 0, .08) 100%);
    }

    .hero-content {
        width: min(55%, 360px);
        max-width: 360px;
        margin-left: auto;
    }

    .hero-title {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .hero-desc {
        display: -webkit-box !important;
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 6px;
        -webkit-line-clamp: 1;
    }

    .btn-hero {
        min-height: 30px;
        padding: 5px 14px;
        font-size: 11px;
    }
}

/* =========================================================
   أجهزة صغيرة جدًا
========================================================= */

@media (max-width: 390px) {
    .main-hero-swiper {
        aspect-ratio: 16 / 8.8;
        min-height: 205px;
    }

    .hero-content {
        width: min(90%, 310px);
        max-width: 310px;
    }

    .hero-title {
        font-size: 17px;
        margin-bottom: 4px;
    }

    .hero-desc {
        display: -webkit-box !important;
        font-size: 11px;
        line-height: 1.45;
        margin-bottom: 7px;
        -webkit-line-clamp: 2;
    }

    .btn-hero {
        min-height: 32px;
        padding: 5px 14px;
        font-size: 11.5px;
    }
}

/* =========================================================
   Hero Slider Wide Screen / Zoom Out Fix
   عند تصغير المتصفح Ctrl + - السلايدر يدخل حاوية
   بدون التأثير على شكل الديسكتوب الطبيعي
========================================================= */
/* 
@media (min-width: 1600px) {
    .hero-section {
        width: min(1180px, calc(100% - 96px)) !important;
        max-width: 1180px !important;
        margin-inline: auto !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    .main-hero-swiper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-slide-item,
    .hero-bg-img {
        width: 100% !important;
        max-width: 100% !important;
    }
} */


/* 2. Section Titles (عناوين الأقسام) */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    font-weight: bold;
    color: var(--primary-color);
    /* بترولي */
    /* font-family: 'El Messiri', sans-serif; */
}

/* الخط تحت العنوان */
.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: var(--secondary-color);
    /* ذهبي */
    margin: 10px auto 0;
    border-radius: 2px;
}

/* 3. Donation Tabs (Filters) */
.donation-tabs .nav-link {
    border: 1px solid #eee;
    margin: 0 5px;
    border-radius: 30px;
    color: #555;
    background: #fff;
    padding: 10px 25px;
    transition: all 0.3s;
    font-weight: 600;
}

.donation-tabs .nav-link.active,
.donation-tabs .nav-link:hover {
    background-color: var(--primary-color);
    /* بترولي */
    color: #fff;
    border-color: var(--secondary-color);
    /* حدود ذهبية */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 4. Project Card (بطاقة المشروع) */
.project-card {
    border: none;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--secondary-color);
    /* خط علوي ذهبي */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}

.project-title:hover {
    color: var(--primary-color);
}

/* =========================================================
   Project Progress - النسبة داخل الشريط
========================================================= */

.projects-section .project-progress-box {
    margin: 0px 0 15px;
}

.projects-section .progress-style-pill .project-progress-track {
    position: relative;
    width: 100%;
    height: 20px;
    border-radius: 999px;
    background: #eef3f7;
    overflow: visible;
    box-shadow:
        inset 0 2px 5px rgba(15, 23, 42, .08),
        0 1px 0 rgba(255, 255, 255, .9);
}

.projects-section .progress-style-pill .project-progress-fill {
    position: absolute;
    top: 3px;
    right: 3px;
    height: calc(100% - 6px);
    min-width: 12px;
    max-width: calc(100% - 6px);
    border-radius: 999px;
    background: var(--site-gradient);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--site-primary) 22%, transparent);
    overflow: hidden;
}

.projects-section .progress-style-pill .project-progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .45),
            transparent);
    transform: translateX(100%);
    animation: projectProgressShine 2.4s ease-in-out infinite;
}

.projects-section .progress-percent-badge {
    position: absolute;
    top: 50%;
    transform: translate(50%, -50%);
    z-index: 3;
    min-width: 44px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fff;
    color: var(--site-primary);
    border: 1px solid color-mix(in srgb, var(--site-primary) 18%, #ffffff);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 900;
    direction: ltr;
}

/* حماية للنسب الصغيرة جدًا حتى لا تلتصق بالطرف */
.projects-section .progress-percent-badge[style*="right: 0"],
.projects-section .progress-percent-badge[style*="right: 0."] {
    right: 18px !important;
}

/* حماية عند 100% حتى لا تخرج الفقاعة من الطرف */
.projects-section .progress-percent-badge[style*="right: 100"] {
    right: calc(100% - 24px) !important;
}

@keyframes projectProgressShine {
    0% {
        transform: translateX(120%);
    }

    55% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(-120%);
    }
}

@media (max-width: 575.98px) {
    .projects-section .project-progress-box {
        margin: 0px 0 13px;
    }

    .projects-section .progress-style-pill .project-progress-track {
        height: 18px;
    }

    .projects-section .progress-percent-badge {
        min-width: 40px;
        height: 25px;
        font-size: 11px;
    }
}

/* =========================================================
   Progress / Stats
========================================================= */

.projects-section .donation-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}

.projects-section .donation-stats span {
    color: var(--site-primary, var(--primary-color));
    font-weight: 900;
}

/* Donation Inputs & Buttons */
.quick-amounts {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    justify-content: center;
}

.amount-btn {
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.input-group-custom {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.cart-input {
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 0 15px;
    height: 40px;
    flex-grow: 1;
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
}

/* زر التبرع (أهم زر) */
.btn-donate {
    background: var(--secondary-color);
    /* ذهبي للتميز */
    color: #fff;
    border: 1px solid var(--secondary-color);
    border-radius: 50px;
    padding: 0 20px;
    height: 40px;
    font-weight: bold;
    flex-grow: 2;
    transition: 0.3s;
}

.btn-donate:hover {
    background: #fff;
    color: var(--secondary-color);
}

/* زر السلة */
.btn-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-cart:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =========================================================
   Statistics Section - Final Approved
   بدون تغيير أي كلاسات HTML
========================================================= */

.stats-section {
    position: relative;
    padding: clamp(48px, 6vw, 78px) 0;
    text-align: center;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 92%, #000000 8%) 0%,
            var(--site-primary, var(--primary-color)) 45%,
            var(--site-secondary, var(--secondary-color)) 100%);
}

/* طبقة جمالية خفيفة */
.stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .08), transparent 26%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .06), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    pointer-events: none;
}

/* زخرفة خفيفة */
.stats-section::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    left: -120px;
    bottom: -140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    pointer-events: none;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stats-section h3 {
    position: relative;
    display: inline-block;
    margin-bottom: 40px !important;
    color: #fff;
    /* font-family: 'El Messiri', sans-serif; */
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
}

.stats-section h3::after {
    content: "";
    display: block;
    width: 88px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
}

/* الأعمدة */
.stats-section .row {
    row-gap: 18px;
}

/* الكارد */
.stat-box {
    position: relative;
    height: 100%;
    min-height: 180px;
    padding: 24px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    margin-top: 30px;
}

.stat-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, .08),
            rgba(255, 255, 255, .02));
    pointer-events: none;
}

.stat-box>* {
    position: relative;
    z-index: 2;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.14);
}

/* الأيقونة */
.stat-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon img {
    width: 26px !important;
    height: 26px !important;
    object-fit: contain;
    filter: brightness(0) invert(1) !important;
}

/* الرقم */
.stat-number {
    margin-bottom: 8px;
    color: #fff;
    font-size: clamp(26px, 2.3vw, 36px);
    font-weight: 900;
    line-height: 1.2;
    direction: rtl;
    white-space: normal;
}

/* الوصف */
.stat-label {
    max-width: 200px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .92);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

/* تابلت */
@media (max-width: 991.98px) {
    .stats-section {
        padding: 42px 0 50px;
    }

    .stats-section h3 {
        margin-bottom: 28px !important;
    }

    .stat-box {
        min-height: 165px;
        padding: 20px 14px;
        border-radius: 20px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        margin-bottom: 12px;
    }

    .stat-icon img {
        width: 23px !important;
        height: 23px !important;
    }

    .stat-number {
        font-size: 31px;
    }

    .stat-label {
        font-size: 13px;
    }
}

/* جوال */
@media (max-width: 575.98px) {
    .stats-section {
        padding: 34px 0 40px;
    }

    .stats-section h3 {
        margin-bottom: 22px !important;
        font-size: 23px;
    }

    .stats-section h3::after {
        width: 68px;
        margin-top: 9px;
    }

    .stats-section .row {
        --bs-gutter-x: 10px;
        row-gap: 10px;
    }

    .stat-box {
        min-height: 132px;
        padding: 16px 10px;
        border-radius: 18px;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    }

    .stat-box:hover {
        transform: none;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
        border-radius: 13px;
    }

    .stat-icon img {
        width: 18px !important;
        height: 18px !important;
    }

    .stat-number {
        font-size: 19px;
        line-height: 1.25;
    }

    .stat-label {
        font-size: 10.8px;
        line-height: 1.45;
    }
}

/* Dynamic statistics layout */
.stats-section .row.justify-content-center {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    justify-content: center;
}

.stats-section .row.justify-content-center>[class*="col-"] {
    width: 100%;
    max-width: none;
    padding: 0;
    margin-bottom: 0 !important;
}

@media (max-width: 991.98px) {
    .stats-section .row.justify-content-center {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 575.98px) {
    .stats-section .row.justify-content-center {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 340px) {
    .stats-section .row.justify-content-center {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Dynamic About Section - Works with any cards count
========================================================= */

.about-section {
    position: relative;
    padding: 44px 0 56px !important;
    background:
        radial-gradient(circle at 18% 22%,
            color-mix(in srgb, var(--site-primary) 4%, transparent),
            transparent 34%),
        linear-gradient(180deg,
            #ffffff 0%,
            color-mix(in srgb, var(--site-primary) 2%, #ffffff) 55%,
            #ffffff 100%) !important;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    inset: auto -70px -120px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--site-secondary) 5%, transparent);
    pointer-events: none;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-section .text-center.mb-5 {
    margin-bottom: 30px !important;
}

.about-section .section-title {
    color: var(--site-primary, var(--primary-color));
    font-weight: 900;
}

/* Layout */
.about-dynamic-layout {
    display: grid;
    gap: 34px;
    align-items: center;
    direction: rtl;
}

.about-dynamic-layout.has-main-and-cards {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.about-dynamic-layout.has-main-only {
    grid-template-columns: minmax(0, 850px);
    justify-content: center;
}

.about-dynamic-layout.has-cards-only {
    grid-template-columns: 1fr;
}

.about-main-box,
.about-cards-box {
    min-width: 0;
}

.about-main-content {
    max-width: 680px;
    margin-inline: auto;
    text-align: start;
}

.about-dynamic-layout.has-main-only .about-main-content {
    text-align: center;
    padding: 36px 34px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

.about-section .about-main-content h3 {
    color: var(--site-primary, var(--primary-color)) !important;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 900 !important;
    margin-bottom: 14px !important;
    line-height: 1.5;
}

.about-section .about-main-content p {
    color: #667085 !important;
    font-size: 16px;
    line-height: 2.1;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.about-section .btn-primary {
    min-width: 128px;
    height: 42px;
    padding: 0 22px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: var(--site-gradient) !important;
    color: #fff !important;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--site-primary) 16%, transparent);
    transition: all .22s ease;
}

.about-section .btn-primary:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--site-primary) 18%, transparent);
}

/* Cards Grid - Auto responsive */
.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* لو الكروت قليلة خليها متوازنة */
.about-cards-grid.cards-count-1 {
    grid-template-columns: minmax(260px, 520px);
    justify-content: center;
}

.about-cards-grid.cards-count-2 {
    grid-template-columns: repeat(2, minmax(230px, 1fr));
}

.about-cards-grid.cards-count-3 {
    grid-template-columns: repeat(2, minmax(230px, 1fr));
}

.about-cards-grid.cards-count-3 .about-card:nth-child(3) {
    grid-column: 1 / -1;
}

/* Cards */
.about-section .about-card {
    position: relative;
    height: 100%;
    min-height: 178px;
    padding: 25px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(15, 23, 42, .05);
    border-inline-start: 4px solid var(--site-secondary, var(--secondary-color));
    box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
    overflow: hidden;
    text-align: center;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    word-break: break-word;
    overflow-wrap: anywhere;
}

.about-section .about-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center,
            color-mix(in srgb, var(--site-primary) 3%, transparent),
            transparent 45%);
    pointer-events: none;
}

.about-section .about-card>* {
    position: relative;
    z-index: 2;
}

.about-section .about-card:hover {
    transform: translateY(-3px);
    border-inline-start-color: var(--site-primary, var(--primary-color));
    box-shadow: 0 12px 24px rgba(15, 23, 42, .055);
}

.about-section .about-card i {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    margin: 0 auto 16px !important;
    border-radius: 18px;
    background: color-mix(in srgb, var(--site-primary) 8%, #ffffff);
    color: var(--site-primary, var(--primary-color)) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .045);
}

.about-section .about-card h5 {
    margin-bottom: 10px;
    color: #111827;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 900 !important;
}

.about-section .about-card p {
    margin: 0;
    color: #667085 !important;
    font-size: 14px;
    line-height: 1.9;
}

/* لو النص طويل جدًا لا يخرب ارتفاع الكرت */
.about-section .about-card p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* عند مرور الماوس يظهر النص الطويل لو العميل دخل نص كبير */
.about-section .about-card:hover p {
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* Tablet */
@media (max-width: 991.98px) {
    .about-section {
        padding-top: 34px !important;
        padding-bottom: 42px !important;
    }

    .about-section .text-center.mb-5 {
        margin-bottom: 20px !important;
    }

    .about-dynamic-layout.has-main-and-cards,
    .about-dynamic-layout.has-main-only,
    .about-dynamic-layout.has-cards-only {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-main-content {
        max-width: 100%;
        text-align: center;
    }

    .about-dynamic-layout.has-main-only .about-main-content {
        padding: 28px 22px;
    }

    .about-cards-grid,
    .about-cards-grid.cards-count-2,
    .about-cards-grid.cards-count-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-cards-grid.cards-count-1 {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-cards-grid.cards-count-3 .about-card:nth-child(3) {
        grid-column: 1 / -1;
    }

    .about-section .about-card {
        min-height: 165px;
        padding: 20px 16px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .about-section {
        padding-top: 28px !important;
        padding-bottom: 36px !important;
    }

    .about-section .text-center.mb-5 {
        margin-bottom: 16px !important;
    }

    .about-section .about-main-content h3 {
        font-size: 22px;
    }

    .about-section .about-main-content p {
        font-size: 15px;
        line-height: 2;
    }

    .about-dynamic-layout {
        gap: 18px;
    }

    .about-cards-grid,
    .about-cards-grid.cards-count-1,
    .about-cards-grid.cards-count-2,
    .about-cards-grid.cards-count-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-cards-grid.cards-count-3 .about-card:nth-child(3) {
        grid-column: auto;
    }

    .about-section .about-card {
        min-height: auto;
        padding: 18px 14px;
        border-radius: 18px;
    }

    .about-section .about-card i {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 21px !important;
        margin-bottom: 10px !important;
    }

    .about-section .about-card h5 {
        font-size: 16px;
    }

    .about-section .about-card p {
        font-size: 13px;
        line-height: 1.85;
        -webkit-line-clamp: 4;
    }
}



/* Mobile Fixes */
@media (max-width: 576px) {
    .quick-amounts {
        flex-wrap: wrap;
    }

    .amount-btn {
        flex: 1 0 30%;
    }
}

/* --- Gallery 3D Coverflow Styles --- */

.gallery-3d-section {
    padding: 80px 0;
    background-color: #fcfcfc;
    /* خلفية فاتحة نظيفة */
    overflow: hidden;
    position: relative;
}

/* عنوان القسم (يعتمد على التنسيق العام الموحد) */
.gallery-3d-section .section-title {
    margin-bottom: 50px;
}

.gallery-3d-swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 60px;
    /* مساحة للإنعكاس والظل */
}

/* الكرت (الشريحة) */
.gallery-3d-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    /* عرض ثابت ضروري للـ 3D */
    height: 420px;
    border-radius: 15px;
    background-color: #fff;
    /* ظل بترولي خفيف جداً */
    box-shadow: 0 15px 50px rgba(56, 95, 88, 0.2);
    /* إطار ذهبي رفيع يعطي فخامة */
    border: 1px solid var(--secondary-color);
    overflow: hidden;
    /* خاصية الانعكاس */
    -webkit-box-reflect: below 1px linear-gradient(transparent, transparent, rgba(0, 0, 0, 0.2));
}

.gallery-card-3d {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

/* الصورة */
.gallery-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* تكبير الصورة عند التحويم */
.gallery-3d-swiper .swiper-slide:hover .gallery-img-bg {
    transform: scale(1.1);
}

/* الطبقة الشفافة للنص */
.gallery-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px;
    /* تدرج من البترولي الغامق إلى الشفاف */
    background: linear-gradient(to top, var(--primary-color) 0%, rgba(56, 95, 88, 0.8) 40%, transparent 100%);
    color: #fff;
    text-align: center;
    border-bottom: 4px solid var(--secondary-color);
    /* خط ذهبي في الأسفل */
}

.gallery-title-3d {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
    /* font-family: 'El Messiri', sans-serif; */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* تنسيق التاريخ */
.gallery-info-overlay small {
    color: var(--secondary-color);
    /* التاريخ بالذهبي */
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* --- أزرار التنقل (الأسهم) --- */
.swiper-button-next,
.swiper-button-prev {
    color: var(--secondary-color) !important;
    /* أسهم ذهبية */
    background: rgba(255, 255, 255, 0.8);
    /* خلفية بيضاء شفافة خلف السهم */
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    color: #fff !important;
}

/* --- نقاط التنقل (Pagination) --- */
.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.4;
    width: 10px;
    height: 10px;
    transition: 0.3s;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 25px;
    /* النقطة النشطة تصبح مستطيلة */
    border-radius: 5px;
    background: var(--secondary-color) !important;
    /* لون ذهبي للنقطة النشطة */
}

/* --- Video Section Style --- */

.video-section {
    padding: 100px 0;
    /* خلفية داكنة جداً لتركيز العين على الفيديوهات */
    background-color: #111;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* إضافة زخرفة خفيفة في الخلفية (اختياري) */
.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 95, 88, 0.2) 0%, transparent 70%);
    /* لمعة بترولية */
    pointer-events: none;
}

/* النص الجانبي */
.video-intro h2 {
    /* font-family: 'El Messiri', sans-serif; */
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: bold;
}

.video-intro p {
    color: #ccc;
    /* رمادي فاتح للقراءة المريحة */
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
}

/* الخط الجانبي الصغير */
.video-intro span[style*="background: var(--primary-color)"] {
    background: var(--secondary-color) !important;
    /* نجعله ذهبي للتميز */
}

.video-intro .text-uppercase {
    color: var(--secondary-color);
    /* "المكتبة المرئية" باللون الذهبي */
    font-weight: bold;
    letter-spacing: 1px;
}

/* كرت الفيديو */
.video-card {
    display: block;
    background: #1f1f1f;
    /* رمادي داكن للكارد */
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #333;
    /* إطار خفيف جداً */
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--secondary-color);
    /* الإطار يصبح ذهبي عند التحويم */
}

.video-thumbnail-wrapper {
    position: relative;
    height: 220px;
    /* زيادة الارتفاع قليلاً */
    overflow: hidden;
}

.video-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.8;
    /* تغميق الصورة قليلاً لبروز زر التشغيل */
}

.video-card:hover .video-thumbnail-wrapper img {
    transform: scale(1.1);
    /* زووم */
    opacity: 1;
    /* إرجاع سطوع الصورة */
}

/* زر التشغيل */
.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    /* خلفية سوداء شفافة */
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.play-btn-overlay i {
    color: #fff;
    font-size: 24px;
    margin-left: 4px;
    /* توسيط بصري */
}

.video-card:hover .play-btn-overlay {
    background: var(--secondary-color);
    /* الزر يصبح ذهبي */
    border-color: var(--secondary-color);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.4);
    /* وهج ذهبي */
}

/* معلومات الفيديو */
.video-info {
    padding: 20px;
}

.video-title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.video-card:hover .video-title {
    color: var(--secondary-color);
    /* العنوان يصبح ذهبي */
}

.video-date {
    color: #888;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-date i {
    color: var(--secondary-color);
    /* أيقونة الساعة ذهبية */
}

/* أزرار السوايب (التنقل) */
.video-nav-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-nav-btn:hover {
    background: var(--secondary-color);
    /* ذهبي */
    border-color: var(--secondary-color);
    color: #fff;
}

.video-nav-btn::after {
    font-size: 18px;
    font-weight: bold;
}

/* =========================================================
   News Style 2 - المركز الإعلامي / تحسين نهائي
   بدون تغيير HTML أو أسماء الكلاسات
========================================================= */

.news-section-style2 {
    position: relative;
    padding: clamp(42px, 6vw, 76px) 0;
    background:
        radial-gradient(circle at 85% 18%,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 4%, transparent),
            transparent 34%),
        linear-gradient(180deg,
            #ffffff 0%,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 2%, #ffffff) 55%,
            #ffffff 100%);
    overflow: hidden;
}

.news-section-style2::before {
    content: "";
    position: absolute;
    inset: auto auto -120px -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--site-secondary, var(--secondary-color)) 5%, transparent);
    pointer-events: none;
}

.news-section-style2 .container {
    position: relative;
    z-index: 2;
}

/* Header */
.news-section-style2 .section-title {
    color: var(--site-primary, var(--primary-color));
    font-weight: 900;
    margin-bottom: 0 !important;
}

.news-section-style2 .text-muted {
    color: #667085 !important;
}

/* زر عرض الكل */
.news-section-style2 .btn-more-news {
    min-width: 132px;
    height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1.5px solid var(--site-primary, var(--primary-color));
    background: rgba(255, 255, 255, .88);
    color: var(--site-primary, var(--primary-color));
    font-size: 14px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
    transition: all .22s ease;
}

.news-section-style2 .btn-more-news:hover {
    background: var(--site-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--site-primary, var(--primary-color)) 18%, transparent);
}

/* الخبر الرئيسي */
.news-section-style2 .main-news-card {
    position: relative;
    display: block;
    height: 100%;
    min-height: 360px;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, .07);
    border-bottom: 4px solid var(--site-secondary, var(--secondary-color));
    box-shadow: 0 12px 30px rgba(15, 23, 42, .075);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.news-section-style2 .main-news-card:hover {
    transform: translateY(-4px);
    border-bottom-color: var(--site-primary, var(--primary-color));
    box-shadow: 0 16px 34px rgba(15, 23, 42, .095);
}

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

.news-section-style2 .main-news-card:hover .main-news-img {
    transform: scale(1.045);
}

.news-section-style2 .main-news-overlay {
    position: absolute;
    inset: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, .05) 0%,
            rgba(0, 0, 0, .28) 42%,
            rgba(0, 0, 0, .78) 100%);
}

.news-section-style2 .main-news-date {
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--site-gradient);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.news-section-style2 .main-news-title {
    color: #fff;
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 900;
    line-height: 1.55;
    margin-bottom: 10px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .32);
}

.news-section-style2 .main-news-excerpt {
    color: rgba(255, 255, 255, .90);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    max-width: 92%;
}

/* الأخبار الجانبية */
.news-section-style2 .side-news-item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.news-section-style2 .side-news-item:hover {
    transform: translateX(-4px);
    border-color: color-mix(in srgb, var(--site-primary, var(--primary-color)) 18%, #ffffff);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.news-section-style2 .side-news-thumb {
    width: 118px;
    height: 84px;
    flex: 0 0 118px;
    margin-left: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #eef2f6;
}

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

.news-section-style2 .side-news-item:hover .side-news-thumb img {
    transform: scale(1.06);
}

.news-section-style2 .side-news-content {
    flex: 1;
    min-width: 0;
}

.news-section-style2 .side-news-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.news-section-style2 .side-news-date i {
    color: var(--site-primary, var(--primary-color));
}

.news-section-style2 .side-news-title {
    margin-bottom: 6px;
    color: #111827;
    font-size: 15.5px;
    font-weight: 900;
    line-height: 1.55;
    transition: color .22s ease;
}

.news-section-style2 .side-news-item:hover .side-news-title {
    color: var(--site-primary, var(--primary-color));
}

.news-section-style2 .side-news-content p {
    color: #667085 !important;
    font-size: 13px;
    line-height: 1.6;
}

.news-section-style2 .row.mb-5 {
    align-items: center !important;
    margin-bottom: 34px !important;
}

.news-section-style2 .row.mb-5 .col-md-8 {
    text-align: right;
}

.news-section-style2 .row.mb-5 .col-md-4 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.news-section-style2 .btn-more-news {
    margin-top: 0 !important;
}

/* Tablet */
@media (max-width: 991.98px) {
    .news-section-style2 {
        padding: 38px 0 46px;
    }

    .news-section-style2 .main-news-card {
        min-height: 320px;
    }

    .news-section-style2 .main-news-overlay {
        padding: 22px;
    }

    .news-section-style2 .side-news-item {
        min-height: 104px;
    }
}

/* الجوال */
@media (max-width: 767.98px) {
    .news-section-style2 .row.mb-5 {
        margin-bottom: 18px !important;
        row-gap: 8px !important;
    }

    .news-section-style2 .row.mb-5 .col-md-8 {
        text-align: center !important;
        margin-bottom: 0 !important;
    }

    .news-section-style2 .row.mb-5 .col-md-4 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .news-section-style2 .btn-more-news {
        margin-top: 0 !important;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .news-section-style2 {
        padding: 28px 0 36px !important;
    }

    .news-section-style2 .row.mb-5 {
        margin-bottom: 14px !important;
        row-gap: 6px !important;
    }

    .news-section-style2 .col-md-4.text-md-start {
        text-align: center !important;
        margin-top: 14px;
    }

    .news-section-style2 .section-title {
        margin-bottom: 6px !important;
    }

    .news-section-style2 .text-muted {
        margin-bottom: 8px !important;
        font-size: 12px;
    }

    .news-section-style2 .btn-more-news {
        height: 34px;
        min-width: 108px;
        font-size: 11.5px;
        padding: 0 14px;
    }

    .news-section-style2 .main-news-card {
        min-height: 270px;
        border-radius: 20px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
    }

    .news-section-style2 .main-news-overlay {
        padding: 18px;
    }

    .news-section-style2 .main-news-date {
        padding: 6px 11px;
        font-size: 10.5px;
        margin-bottom: 9px;
    }

    .news-section-style2 .main-news-excerpt {
        font-size: 12px;
        line-height: 1.6;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-section-style2 .side-news-item {
        gap: 11px;
        min-height: 96px;
        padding: 11px;
        border-radius: 16px;
        box-shadow: 0 5px 13px rgba(15, 23, 42, .035);
    }

    .news-section-style2 .side-news-item:hover {
        transform: none;
        box-shadow: 0 5px 13px rgba(15, 23, 42, .035);
    }

    .news-section-style2 .side-news-thumb {
        width: 88px;
        height: 68px;
        flex-basis: 88px;
        border-radius: 12px;
    }

    .news-section-style2 .side-news-date {
        font-size: 10.5px;
        margin-bottom: 4px;
    }

    .news-section-style2 .side-news-title {
        font-size: 12.8px;
        line-height: 1.45;
        margin-bottom: 3px;
    }

    .news-section-style2 .side-news-content p {
        font-size: 11px;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* زر عرض جميع المشاريع */
.projects-section .btn-more-news {
    min-width: 260px;
    height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1.5px solid var(--site-primary);
    background: rgba(255, 255, 255, .86);
    color: var(--site-primary);
    font-size: 16px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
    transition: all .22s ease;
}

.projects-section .btn-more-news i {
    transition: transform .22s ease;
}

.projects-section .btn-more-news:hover {
    background: var(--site-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px color-mix(in srgb, var(--site-primary) 22%, transparent);
}

.projects-section .btn-more-news:hover i {
    transform: translateX(4px);
}

@media (max-width: 575.98px) {
    .projects-section .text-center.mt-5 {
        margin-top: 28px !important;
    }

    .projects-section .btn-more-news {
        min-width: 220px;
        height: 46px;
        padding: 0 22px;
        font-size: 14px;
    }
}

/* =========================================================
   News Listing Page - Modern Dynamic Design
   صفحة الأخبار / المركز الإعلامي - تصميم عصري متجاوب
========================================================= */

.news-listing-section {
    position: relative;
    padding-top: 46px !important;
    padding-bottom: 70px !important;
    background:
        radial-gradient(circle at 12% 10%,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 5%, transparent),
            transparent 30%),
        radial-gradient(circle at 88% 90%,
            color-mix(in srgb, var(--site-secondary, var(--secondary-color)) 5%, transparent),
            transparent 28%),
        linear-gradient(180deg, #f8fbfc 0%, #ffffff 55%, #f8fbfc 100%);
}

/* شبكة الأخبار */
.news-listing-section .row {
    align-items: stretch;
}

/* =========================================================
   News Card
========================================================= */

.news-grid-card {
    position: relative;
    height: 100%;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, #e7eef3);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .055);
    transition: .28s ease;
    display: flex;
    flex-direction: column;
}

.news-grid-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--site-gradient,
            linear-gradient(135deg,
                var(--site-primary, var(--primary-color)),
                var(--site-secondary, var(--secondary-color))));
    opacity: .95;
    z-index: 3;
}

.news-grid-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, .10);
    border-color: color-mix(in srgb, var(--site-primary, var(--primary-color)) 22%, #e7eef3);
}

/* =========================================================
   News Image - 800x500 Ratio
   صورة الخبر بنسبة 16:10
========================================================= */

.news-grid-img-wrapper {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    overflow: hidden;
    background: #eef2f6;
    text-decoration: none;
}

.news-grid-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transition: transform .55s ease, filter .35s ease;
}

.news-grid-card:hover .news-grid-img {
    transform: scale(1.065);
    filter: saturate(1.04) contrast(1.02);
}

/* طبقة خفيفة فوق الصورة */
.news-grid-img-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(15, 23, 42, 0) 55%,
            rgba(15, 23, 42, .14) 100%);
    pointer-events: none;
}

/* =========================================================
   Date Badge
========================================================= */

.news-date-badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 4;
    min-width: 52px;
    min-height: 52px;
    padding: 6px 9px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    color: var(--site-primary, var(--primary-color));
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 18%, #ffffff);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
    text-align: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.news-date-badge span {
    display: block;
    font-size: 19px;
    font-weight: 1000;
    color: var(--site-primary, var(--primary-color));
}

.news-date-badge small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 900;
    color: #667085;
}

/* =========================================================
   News Body
========================================================= */

.news-grid-body {
    padding: 20px 20px 18px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.news-grid-title {
    margin: 0 0 10px;
    color: var(--site-text, #111827);
    font-size: 17px;
    font-weight: 1000;
    line-height: 1.65;
    min-height: 56px;
    transition: .22s ease;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid-card:hover .news-grid-title {
    color: var(--site-primary, var(--primary-color));
}

.news-grid-text {
    color: #667085;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.85;
    margin-bottom: 16px;
    min-height: 74px;
    flex: 1 1 auto;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid-body .border-top {
    border-top-color: #edf2f5 !important;
}

/* =========================================================
   Read More Button
========================================================= */

.news-read-more {
    width: fit-content;
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--site-primary, var(--primary-color));
    background: color-mix(in srgb, var(--site-primary, var(--primary-color)) 6%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 14%, #ffffff);
    font-size: 12.5px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: .22s ease;
}

.news-read-more i {
    font-size: 12px;
    transition: transform .22s ease;
}

.news-read-more:hover {
    color: #fff;
    background: var(--site-gradient,
            linear-gradient(135deg,
                var(--site-primary, var(--primary-color)),
                var(--site-secondary, var(--secondary-color))));
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--site-primary, var(--primary-color)) 20%, transparent);
}

.news-read-more:hover i {
    transform: translateX(-4px);
}

/* =========================================================
   Empty News State
========================================================= */

.news-listing-section .text-center.py-5 {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 24px !important;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #edf2f5;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.news-listing-section .text-center.py-5 img {
    max-width: 190px !important;
    opacity: .62 !important;
}

.news-listing-section .text-center.py-5 h5 {
    color: #667085 !important;
    font-weight: 900 !important;
}

/* =========================================================
   Pagination
========================================================= */

.custom-pagination {
    margin-top: 42px;
    display: flex;
    justify-content: center;
}

.custom-pagination .pagination {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.custom-pagination .page-item {
    margin: 0;
}

.custom-pagination .page-link {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 14px !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 12%, #e5e7eb);
    background: #fff;
    color: var(--site-primary, var(--primary-color));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .045);
    transition: .22s ease;
}

.custom-pagination .page-link:hover {
    color: #fff;
    background: var(--site-gradient,
            linear-gradient(135deg,
                var(--site-primary, var(--primary-color)),
                var(--site-secondary, var(--secondary-color))));
    border-color: transparent;
    transform: translateY(-2px);
}

.custom-pagination .page-item.active .page-link {
    color: #fff;
    background: var(--site-gradient,
            linear-gradient(135deg,
                var(--site-primary, var(--primary-color)),
                var(--site-secondary, var(--secondary-color))));
    border-color: transparent;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--site-primary, var(--primary-color)) 20%, transparent);
}

.custom-pagination .page-item.disabled .page-link {
    opacity: .45;
    background: #f8fafc;
    color: #98a2b3;
    box-shadow: none;
}

/* =========================================================
   Responsive - Tablet
========================================================= */

@media (max-width: 991.98px) {
    .news-listing-section {
        padding-top: 34px !important;
        padding-bottom: 110px !important;
    }

    .news-grid-body {
        padding: 20px;
    }

    .news-grid-title {
        font-size: 16.5px;
    }

    .news-date-badge {
        min-width: 50px;
        min-height: 50px;
        border-radius: 15px;
    }
}

/* =========================================================
   Responsive - Mobile
========================================================= */

@media (max-width: 575.98px) {
    .news-listing-section {
        padding-top: 24px !important;
        padding-bottom: 105px !important;
    }

    .news-listing-section .container {
        width: calc(100% - 24px);
        padding-inline: 0;
    }

    .news-listing-section .row {
        --bs-gutter-y: 16px;
    }

    .news-grid-card {
        border-radius: 20px;
        box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
    }

    .news-grid-img-wrapper {
        aspect-ratio: 16 / 10;
    }

    .news-date-badge {
        top: 12px;
        inset-inline-start: 12px;
        min-width: 46px;
        min-height: 46px;
        padding: 6px 8px;
        border-radius: 14px;
    }

    .news-date-badge span {
        font-size: 17px;
    }

    .news-date-badge small {
        font-size: 9.5px;
    }

    .news-grid-body {
        padding: 16px;
    }

    .news-grid-title {
        font-size: 15px;
        line-height: 1.65;
        margin-bottom: 8px;
        min-height: auto;
        -webkit-line-clamp: 2;
    }

    .news-grid-text {
        font-size: 12.5px;
        line-height: 1.8;
        margin-bottom: 12px;
        min-height: auto;
        -webkit-line-clamp: 2;
    }

    .news-read-more {
        min-height: 34px;
        padding: 7px 13px;
        font-size: 12px;
    }

    .custom-pagination {
        margin-top: 28px;
    }

    .custom-pagination .pagination {
        gap: 6px;
    }

    .custom-pagination .page-link {
        min-width: 36px;
        height: 36px;
        border-radius: 12px !important;
        font-size: 12.5px;
    }

    .news-listing-section .text-center.py-5 {
        padding: 38px 18px !important;
        border-radius: 22px;
    }

    .news-listing-section .text-center.py-5 img {
        max-width: 155px !important;
    }
}

/* =========================================================
   News Pagination - Use Same Projects Pagination Style
========================================================= */

.news-pagination {
    display: flex !important;
    justify-content: center !important;
}

.news-pagination .pagination {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0;
}

.news-pagination .page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px !important;
    border: 1px solid #e5e7eb;
    color: var(--site-primary, var(--primary-color));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: none;
}

.news-pagination .page-item.active .page-link {
    background: var(--site-gradient, var(--site-primary, var(--primary-color)));
    border-color: transparent;
    color: #fff;
}

.news-pagination .page-link:hover {
    background: var(--site-primary, var(--primary-color));
    color: #fff;
}

@media (max-width: 575.98px) {
    .news-pagination {
        margin-top: 28px !important;
    }

    .news-pagination .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 12.5px;
    }
}


/* =========================================================
   News Details Page - Modern Dynamic Design
   صفحة تفاصيل الخبر - تصميم عصري متجاوب
========================================================= */

.news-details-section {
    position: relative;
    padding: 46px 0 80px !important;
    background:
        radial-gradient(circle at 12% 12%,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 5%, transparent),
            transparent 30%),
        radial-gradient(circle at 88% 88%,
            color-mix(in srgb, var(--site-secondary, var(--secondary-color)) 5%, transparent),
            transparent 28%),
        linear-gradient(180deg, #f8fbfc 0%, #ffffff 55%, #f8fbfc 100%);
}

.news-details-section .container {
    position: relative;
    z-index: 2;
}

.news-details-row {
    align-items: flex-start;
    row-gap: 24px;
}

/* =========================================================
   Article Card
========================================================= */

.article-card-modern {
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, #e7eef3);
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .075);
    overflow: hidden;
}

.article-main-content {
    padding: 26px;
}

/* =========================================================
   News Details Image Size
   صورة تفاصيل الخبر بنسبة 800x500 - 16:10
========================================================= */

.article-hero-img-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 800px !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    margin: 0 auto 26px !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    background: #eef2f6 !important;
    border: 1px solid #e7eef3 !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07) !important;
}

.article-hero-img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 24px !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* حماية لو الصورة بقيت مباشرة بدون wrapper */
.article-main-content>.article-hero-img,
.article-card-modern>.article-hero-img {
    width: 100% !important;
    max-width: 800px !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 auto 26px !important;
    border-radius: 24px !important;
    border: 1px solid #e7eef3 !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07) !important;
}

/* =========================================================
   Article Header Inside Content
========================================================= */

.article-category-badge {
    width: fit-content;
    min-height: 34px;
    padding: 7px 16px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-primary, var(--primary-color)) 9%, #ffffff) !important;
    color: var(--site-primary, var(--primary-color)) !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 18%, #ffffff);
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}

.article-category-badge::before {
    content: "\f1ea";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
}

.article-main-title {
    color: var(--site-text, #111827) !important;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 1000;
    line-height: 1.55;
    margin-bottom: 14px;
}

.article-meta {
    color: #667085;
    font-size: 13.5px;
    font-weight: 700;
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-meta i {
    color: var(--site-primary, var(--primary-color)) !important;
}

/* =========================================================
   Article Body
========================================================= */

.article-body {
    color: #475467;
    font-size: 17px;
    font-weight: 500;
    line-height: 2.15;
    text-align: justify;
    margin-bottom: 30px;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    margin: 14px 0;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: var(--site-primary, var(--primary-color));
    font-weight: 1000;
    line-height: 1.6;
    margin: 22px 0 12px;
}

.article-body ul,
.article-body ol {
    padding-right: 22px;
    margin-bottom: 18px;
}

.article-body li {
    margin-bottom: 8px;
}

/* =========================================================
   Share Box
========================================================= */

.share-box {
    margin: 8px 0 0;
    padding: 20px;
    border-radius: 22px;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 4%, #ffffff),
            #ffffff);
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 12%, #e7eef3);
    text-align: center;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}

.share-box h5,
.share-box h6 {
    color: #111827;
    font-size: 16px;
    font-weight: 1000;
    margin-bottom: 14px;
}

.social-share-btn {
    width: 42px;
    height: 42px;
    margin: 0 4px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: .22s ease;
    box-shadow: 0 9px 20px rgba(15, 23, 42, .10);
    border: 0;
}

.social-share-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, .16);
}

.btn-tw {
    background: #111827;
}

.btn-fb {
    background: #1877f2;
}

.btn-wa {
    background: #25d366;
}

.btn-copy {
    background: var(--site-primary, var(--primary-color));
}

/* =========================================================
   Sidebar - Latest News
========================================================= */

.news-details-sidebar {
    position: sticky;
    top: 105px;
}

.sidebar-widget {
    background: #fff;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, #e7eef3);
    margin-bottom: 22px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .065);
}

.widget-title {
    position: relative;
    color: var(--site-primary, var(--primary-color)) !important;
    font-size: 18px;
    font-weight: 1000;
    margin-bottom: 18px;
    padding-right: 15px;
    border-right: 4px solid var(--site-secondary, var(--secondary-color));
    line-height: 1.5;
}

.mini-news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #edf2f5;
    text-decoration: none;
    transition: .22s ease;
}

.mini-news-item:last-child {
    margin-bottom: 0;
}

.mini-news-item:hover {
    background: color-mix(in srgb, var(--site-primary, var(--primary-color)) 5%, #ffffff);
    border-color: color-mix(in srgb, var(--site-primary, var(--primary-color)) 14%, #e7eef3);
    transform: translateX(-4px);
}

.mini-news-img {
    width: 76px;
    height: 58px;
    flex: 0 0 76px;
    border-radius: 14px;
    object-fit: cover;
    object-position: center center;
    margin-left: 0;
    background: #eef2f6;
}

.mini-news-content {
    flex: 1 1 auto;
    min-width: 0;
}

.mini-news-content h6 {
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.55;
    margin: 0 0 5px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-news-item:hover h6 {
    color: var(--site-primary, var(--primary-color));
}

.mini-news-content span {
    color: #667085;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mini-news-content i {
    color: var(--site-secondary, var(--secondary-color));
    margin-left: 0;
}

/* =========================================================
   Sidebar Donate Widget
========================================================= */

.sidebar-donate-widget {
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 8%, transparent),
            transparent 48%),
        #fff !important;
}

.donate-widget-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 20px;
    background: var(--site-gradient,
            linear-gradient(135deg, var(--site-primary, var(--primary-color)), var(--site-secondary, var(--secondary-color))));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--site-primary, var(--primary-color)) 22%, transparent);
}

.donate-widget-icon i {
    font-size: 26px;
}

.sidebar-donate-widget h5 {
    color: #111827;
    font-size: 18px;
    font-weight: 1000;
    margin-bottom: 7px;
}

.sidebar-donate-widget p {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 14px;
}

/* زر كل الأخبار / زر التبرع */
.btn-allnews {
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    border: 0 !important;
    background: var(--site-gradient,
            linear-gradient(135deg, var(--site-primary, var(--primary-color)), var(--site-secondary, var(--secondary-color)))) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--site-primary, var(--primary-color)) 20%, transparent);
    transition: .22s ease;
}

.btn-allnews:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px color-mix(in srgb, var(--site-primary, var(--primary-color)) 26%, transparent);
}

/* =========================================================
   Related News
========================================================= */

.related-news-section {
    margin-top: 52px;
    padding-top: 42px;
    border-top: 1px solid #edf2f5;
}

.related-news-head {
    margin-bottom: 22px;
}

.related-news-head h3 {
    position: relative;
    color: var(--site-text, #111827);
    font-size: 24px;
    font-weight: 1000;
    margin: 0;
    padding-right: 15px;
    border-right: 4px solid var(--site-secondary, var(--secondary-color));
}

.related-news-card {
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, #e7eef3);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .055);
    transition: .25s ease;
}

.related-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .09);
}

.related-news-img-wrapper {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef2f6;
}

.related-news-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transition: .45s ease;
}

.related-news-card:hover .related-news-img {
    transform: scale(1.055);
}

.related-news-body {
    padding: 16px;
}

.related-news-body small {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.related-news-body small i {
    color: var(--site-primary, var(--primary-color));
}

.related-news-body h6 {
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.65;
    margin: 0;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-card:hover .related-news-body h6 {
    color: var(--site-primary, var(--primary-color));
}

/* =========================================================
   Responsive - Tablet
========================================================= */

@media (max-width: 991.98px) {
    .news-details-section {
        padding: 34px 0 110px !important;
    }

    .news-details-section .container {
        width: calc(100% - 24px);
        max-width: 100%;
        padding-inline: 0;
    }

    .news-details-sidebar {
        position: relative;
        top: auto;
    }

    .article-main-content {
        padding: 20px;
    }

    .article-hero-img-wrapper,
    .article-main-content>.article-hero-img,
    .article-card-modern>.article-hero-img {
        max-width: 100% !important;
        border-radius: 20px !important;
        margin-bottom: 22px !important;
    }

    .article-hero-img {
        border-radius: 20px !important;
    }

    .article-main-title {
        font-size: 25px;
    }

    .article-body {
        font-size: 15.5px;
        line-height: 2;
    }

    .related-news-section {
        margin-top: 40px;
        padding-top: 34px;
    }
}

/* =========================================================
   Responsive - Mobile
========================================================= */

@media (max-width: 575.98px) {
    .news-details-section {
        padding: 24px 0 105px !important;
    }

    .article-card-modern {
        border-radius: 20px;
        box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
    }

    .article-main-content {
        padding: 15px;
    }

    .article-hero-img-wrapper,
    .article-main-content>.article-hero-img,
    .article-card-modern>.article-hero-img {
        aspect-ratio: 16 / 10 !important;
        border-radius: 16px !important;
        margin-bottom: 18px !important;
    }

    .article-hero-img {
        border-radius: 16px !important;
    }

    .article-category-badge {
        min-height: 30px;
        padding: 6px 12px;
        font-size: 11.5px;
        margin-bottom: 10px;
    }

    .article-main-title {
        font-size: 20px;
        line-height: 1.65;
        margin-bottom: 10px;
    }

    .article-meta {
        font-size: 11.5px;
        gap: 8px 12px;
        margin-bottom: 16px;
    }

    .article-body {
        font-size: 13px;
        line-height: 2;
        text-align: right;
        margin-bottom: 22px;
    }

    .share-box {
        padding: 16px;
        border-radius: 18px;
    }

    .social-share-btn {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 15px;
    }

    .sidebar-widget {
        padding: 16px;
        border-radius: 20px;
    }

    .widget-title {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .mini-news-item {
        gap: 10px;
        padding: 8px;
        border-radius: 14px;
    }

    .mini-news-img {
        width: 68px;
        height: 52px;
        flex-basis: 68px;
        border-radius: 12px;
    }

    .mini-news-content h6 {
        font-size: 12px;
    }

    .mini-news-content span {
        font-size: 10.5px;
    }

    .donate-widget-icon {
        width: 52px;
        height: 52px;
        border-radius: 17px;
    }

    .donate-widget-icon i {
        font-size: 21px;
    }

    .sidebar-donate-widget h5 {
        font-size: 16px;
    }

    .sidebar-donate-widget p {
        font-size: 12px;
    }

    .btn-allnews {
        min-height: 40px;
        font-size: 12.5px;
    }

    .related-news-section {
        margin-top: 34px;
        padding-top: 28px;
    }

    .related-news-head h3 {
        font-size: 19px;
    }

    .related-news-card {
        border-radius: 18px;
    }

    .related-news-body {
        padding: 13px;
    }

    .related-news-body h6 {
        font-size: 12.5px;
    }
}

/* =========================================================
   News Details Header Gap Fix
   إزالة الفراغ الأبيض بين هيدر تفاصيل الخبر والمحتوى
========================================================= */

main .main-page-header+.news-details-section {
    margin-top: 0 !important;
    padding-top: 34px !important;
}

main .main-page-header:has(+ .news-details-section) {
    margin-bottom: 0 !important;
}

/* للمتصفحات التي لا تدعم :has */
.news-details-section {
    margin-top: 0 !important;
}

/* تابلت */
@media (max-width: 991.98px) {
    main .main-page-header+.news-details-section {
        padding-top: 26px !important;
    }
}

/* جوال */
@media (max-width: 575.98px) {
    main .main-page-header+.news-details-section {
        padding-top: 18px !important;
    }
}

/* --- Projects Page Specific Styles --- */

.projects-page-header {
    background: #fff;
    padding: 40px 0;
    text-align: center;
}

/* تعديل السلايدر الداخلي لصفحة المشاريع */
.project-banner-swiper {
    padding-bottom: 40px;
}

.project-banner-slide {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-banner-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.project-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* تدرج لوني داكن ليبرز النص */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px;
    color: #fff;
}

@media (max-width: 768px) {
    .project-banner-img {
        height: 200px;
    }

    .project-banner-overlay {
        padding: 15px;
    }

    .project-banner-overlay h3 {
        font-size: 18px;
    }
}

/* تحسين شكل الفلتر (Tabs) */
.custom-pills .nav-link {
    background: #fff;
    border: 1px solid #eee;
    color: #555;
    margin: 0 5px 10px;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.custom-pills .nav-link.active,
.custom-pills .nav-link:hover {
    background: var(--primary-color);
    /* خلفية بترولي */
    color: #fff;
    border-color: var(--secondary-color);
    /* إطار ذهبي */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* --- Project Slider Fixed Style --- */

.project-slider-section {
    padding: 30px 0;
    position: relative;
}

.projectMainSwiper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.slider-item {
    position: relative;
    width: 100%;
    height: 450px;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    /* تدرج لوني متوافق مع الهوية */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: #fff;
    text-align: right;
    z-index: 10;
}

.slider-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
    /* font-family: 'El Messiri', sans-serif; */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.slider-desc {
    font-size: 16px;
    opacity: 0.9;
    max-width: 700px;
    margin-bottom: 0;
}

/* تنسيق أزرار التنقل */
.custom-nav-btn {
    background-color: rgba(255, 255, 255, 0.9);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    color: var(--primary-color) !important;
    /* السهم لونه بترولي */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.custom-nav-btn:after {
    font-size: 20px !important;
    font-weight: bold;
}

.custom-nav-btn:hover {
    background-color: var(--secondary-color);
    color: #fff !important;
}

/* تنسيق نقاط التنقل (Pagination) */
.custom-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: 0.3s;
}

.custom-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
    width: 30px;
    border-radius: 10px;
}

/* --- تجاوب الموبايل --- */
@media (max-width: 768px) {
    .slider-item {
        height: 250px;
    }

    .slider-caption {
        padding: 20px;
    }

    .slider-title {
        font-size: 18px;
    }

    .slider-desc {
        display: none;
    }

    .custom-nav-btn {
        width: 35px !important;
        height: 35px !important;
    }

    .custom-nav-btn:after {
        font-size: 14px !important;
    }
}

/* --- Project Details Page --- */

.project-details-header {
    background-color: #f9f9f9;
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.project-hero-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-bottom: 5px solid var(--secondary-color);
    /* لمسة ذهبية */
}

.project-hero-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

/* شريط التقدم الكبير */
.project-progress-container {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.big-progress-bar {
    height: 15px;
    background: #f0f0f0;
    border-radius: 50px;
    overflow: hidden;
    margin: 15px 0;
}

.big-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    /* تدرج بترولي وذهبي */
    border-radius: 50px;
    transition: width 1s ease-in-out;
}

/* الصندوق الجانبي للتبرع (Sticky) */
.donation-sidebar {
    position: sticky;
    top: 100px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    border-top: 5px solid var(--primary-color);
}

.amount-option-btn {
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.2s;
}

.amount-option-btn:hover,
.amount-option-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-amount-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
    color: var(--primary-color);
}

.custom-amount-input:focus {
    border-color: var(--secondary-color);
    /* ذهبي عند التركيز */
    outline: none;
}

.btn-donate-lg {
    width: 100%;
    background: var(--secondary-color);
    /* زر التبرع ذهبي */
    color: #fff;
    padding: 15px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    transition: 0.3s;
    margin-bottom: 10px;
}

.btn-donate-lg:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-cart-lg {
    width: 100%;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-cart-lg:hover {
    background: var(--primary-color);
    color: #fff;
}

/* إحصائيات إضافية */
.stats-box {
    background: #fcfcfc;
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h4 {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item span {
    color: #777;
    font-size: 14px;
}

@media (max-width: 992px) {
    .donation-sidebar {
        position: static;
        margin-top: 30px;
    }

    .project-hero-img {
        height: 300px;
    }
}

/* --- View Albums Page (صفحة عرض الألبومات) --- */

.albums-page-header {
    background: #fcfcfc;
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 50px;
}

/* =========================================================
   Albums Grid Spacing
   ضبط مسافات شبكة الألبومات بدون إضافة كلاسات جديدة
========================================================= */

/* مهم: هذا selector يتغلب على أي row عام داخل main */
main.bg-white.pb-5>.container>.row.g-4:has(.album-card-luxury),
.row.g-4:has(.album-card-luxury) {
    --bs-gutter-x: 30px !important;
    --bs-gutter-y: 34px !important;
    align-items: stretch !important;
}

/* نضمن أن أعمدة Bootstrap تأخذ المسافة فعليًا */
main.bg-white.pb-5>.container>.row.g-4:has(.album-card-luxury)>[class*="col-"],
.row.g-4:has(.album-card-luxury)>[class*="col-"] {
    padding-right: calc(var(--bs-gutter-x) * .5) !important;
    padding-left: calc(var(--bs-gutter-x) * .5) !important;
    margin-bottom: 0 !important;
}

/* الكرت */
.album-card-luxury {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
    transition: all 0.3s ease;
    height: 100% !important;
    border-bottom: 4px solid transparent;
}

.album-card-luxury:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.11);
    border-bottom-color: var(--secondary-color);
    text-decoration: none !important;
}

/* غلاف الألبوم - النسبة المعتمدة 800x500 */
.album-cover-wrapper {
    position: relative;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    overflow: hidden !important;
    background: #eef2f6;
}

/* الصورة */
.album-cover-img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.album-card-luxury:hover .album-cover-img {
    transform: scale(1.055);
    filter: saturate(1.03) contrast(1.02);
}

/* شارة عدد الصور */
.album-count-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.20);
}

.album-count-badge i {
    color: #fff;
    font-size: 12px;
}

/* طبقة أيقونة العرض */
.album-overlay-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.16));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.album-card-luxury:hover .album-overlay-icon {
    opacity: 1;
}

.album-overlay-icon i {
    font-size: 20px;
    color: #fff;
    transform: scale(0.75);
    transition: transform 0.3s ease;
    background: var(--secondary-color);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.28);
}

.album-card-luxury:hover .album-overlay-icon i {
    transform: scale(1);
}

/* جسم الكرت */
.album-body {
    padding: 18px 18px 16px;
    background: #fff;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.album-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    transition: color 0.3s;
    /* font-family: 'El Messiri', sans-serif; */

    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card-luxury:hover .album-title {
    color: var(--primary-color);
}

.album-body .d-flex.justify-content-between.align-items-center.mt-3 {
    margin-top: auto !important;
    padding-top: 12px;
    border-top: 1px solid #edf2f5;
}

.album-date {
    font-size: 13px;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 0;
    white-space: nowrap;
}

.album-date i {
    color: var(--secondary-color);
    margin-left: 5px;
}

/* زر عرض داخل الكرت */
.album-body .text-primary.small.fw-bold {
    color: var(--primary-color) !important;
    font-size: 12px;
    font-weight: 900 !important;
    white-space: nowrap;
}

/* Pagination لو موجود */
.pagination {
    gap: 6px;
}

.page-link {
    border-radius: 999px !important;
}

/* =========================================================
   Tablet / iPad
========================================================= */

@media (min-width: 768px) and (max-width: 991.98px) {
    main.bg-white.pb-5>.container {
        width: calc(100% - 46px) !important;
        max-width: 100% !important;
        padding-inline: 0 !important;
        padding-bottom: 130px !important;
    }

    main.bg-white.pb-5>.container>.row.g-4:has(.album-card-luxury),
    .row.g-4:has(.album-card-luxury) {
        --bs-gutter-x: 26px !important;
        --bs-gutter-y: 30px !important;
    }

    .album-card-luxury {
        border-radius: 17px;
    }

    .album-body {
        padding: 14px 15px 13px;
    }

    .album-title {
        font-size: 14.5px;
    }

    .album-date,
    .album-body .text-primary.small.fw-bold {
        font-size: 11px;
    }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 575.98px) {
    main.bg-white.pb-5>.container {
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        padding-inline: 0 !important;
        padding-top: 24px !important;
        padding-bottom: 115px !important;
    }

    main.bg-white.pb-5>.container>.row.g-4:has(.album-card-luxury),
    .row.g-4:has(.album-card-luxury) {
        --bs-gutter-x: 14px !important;
        --bs-gutter-y: 18px !important;
    }

    .album-card-luxury {
        border-radius: 15px;
    }

    .album-card-luxury:hover {
        transform: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    }

    .album-card-luxury:hover .album-cover-img {
        transform: none;
        filter: none;
    }

    .album-count-badge {
        top: 9px;
        right: 9px;
        padding: 4px 9px;
        font-size: 10.5px;
    }

    .album-overlay-icon {
        opacity: 1;
        align-items: flex-end;
        justify-content: flex-start;
        padding: 10px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent);
    }

    .album-overlay-icon i {
        width: 34px;
        height: 34px;
        font-size: 13px;
        transform: none;
        background: rgba(255, 255, 255, 0.22);
    }

    .album-card-luxury:hover .album-overlay-icon i {
        transform: none;
    }

    .album-body {
        padding: 12px;
    }

    .album-title {
        font-size: 13px;
        line-height: 1.45;
    }

    .album-body .d-flex.justify-content-between.align-items-center.mt-3 {
        padding-top: 9px;
    }

    .album-date,
    .album-body .text-primary.small.fw-bold {
        font-size: 10.5px;
    }
}

/* =========================================================
   Mobile Landscape / Fold
   وضع التدوير والأجهزة القابلة للطي
========================================================= */

@media (min-width: 576px) and (max-width: 991.98px) and (max-height: 520px) {
    main.bg-white.pb-5>.container {
        width: calc(100% - 56px) !important;
        max-width: 100% !important;
        padding-inline: 0 !important;
        padding-top: 28px !important;
        padding-bottom: 125px !important;
    }

    main.bg-white.pb-5>.container>.row.g-4:has(.album-card-luxury),
    .row.g-4:has(.album-card-luxury) {
        --bs-gutter-x: 32px !important;
        --bs-gutter-y: 32px !important;
    }

    .album-card-luxury {
        border-radius: 17px;
    }

    .album-body {
        padding: 12px 13px 11px !important;
    }

    .album-title {
        font-size: 13.5px !important;
        line-height: 1.45 !important;
    }

    .album-date,
    .album-body .text-primary.small.fw-bold {
        font-size: 10.5px !important;
    }
}

/* --- General Helpers (مساعدات عامة) --- */

/* تغيير لون الروابط النشطة */
.text-primary {
    color: var(--primary-color) !important;
}

/* تغيير لون الأزرار الأساسية */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

/* تغيير لون الحدود */
.border-primary {
    border-color: var(--primary-color) !important;
}


/* =========================================================
   Gallery Grid Images - Unified 800x500 Ratio
========================================================= */

.gallery-grid-item {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    background: #eef2f6 !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, #e7eef3) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06) !important;
    text-decoration: none !important;
    isolation: isolate !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

.gallery-grid-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    z-index: 4;
    background: var(--site-gradient,
            linear-gradient(135deg,
                var(--site-primary, var(--primary-color)),
                var(--site-secondary, var(--secondary-color))));
    opacity: .92;
}

.gallery-grid-img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform .55s ease, filter .35s ease !important;
}

.gallery-grid-item:hover {
    transform: translateY(-5px) !important;
    border-color: color-mix(in srgb, var(--site-primary, var(--primary-color)) 26%, #e7eef3) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .11) !important;
}

.gallery-grid-item:hover .gallery-grid-img {
    transform: scale(1.065) !important;
    filter: saturate(1.05) contrast(1.02) !important;
}

.gallery-grid-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    background:
        linear-gradient(180deg,
            rgba(15, 23, 42, 0) 35%,
            rgba(15, 23, 42, .38) 100%),
        rgba(15, 23, 42, .10) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity .25s ease !important;
}

.gallery-grid-item:hover .gallery-grid-overlay {
    opacity: 1 !important;
}

.gallery-zoom-icon {
    width: 54px !important;
    height: 54px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .20) !important;
    border: 1px solid rgba(255, 255, 255, .34) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #fff !important;
    font-size: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: scale(.82) translateY(8px) !important;
    opacity: 0 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18) !important;
    transition: all .25s ease !important;
}

.gallery-grid-item:hover .gallery-zoom-icon {
    transform: scale(1) translateY(0) !important;
    opacity: 1 !important;
    background: var(--site-gradient,
            linear-gradient(135deg,
                var(--site-primary, var(--primary-color)),
                var(--site-secondary, var(--secondary-color)))) !important;
    border-color: transparent !important;
}

/* التابلت */
@media (max-width: 991.98px) {
    .gallery-grid-item {
        border-radius: 20px !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .055) !important;
    }

    .gallery-grid-item:hover {
        transform: none !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .055) !important;
    }
}

/* الجوال */
@media (max-width: 575.98px) {
    .gallery-grid-item {
        aspect-ratio: 16 / 10 !important;
        border-radius: 16px !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, .045) !important;
    }

    .gallery-grid-item::before {
        height: 3px !important;
    }

    .gallery-grid-overlay {
        opacity: 1 !important;
        background:
            linear-gradient(180deg,
                rgba(15, 23, 42, 0) 55%,
                rgba(15, 23, 42, .20) 100%) !important;
    }

    .gallery-zoom-icon {
        width: 38px !important;
        height: 38px !important;
        border-radius: 13px !important;
        font-size: 14px !important;
        transform: none !important;
        opacity: 1 !important;
        background: rgba(255, 255, 255, .18) !important;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .12) !important;
    }

    .gallery-grid-item:hover .gallery-grid-img {
        transform: none !important;
    }
}

/* الجوال الصغير جداً */
@media (max-width: 390px) {
    .gallery-grid-item {
        border-radius: 14px !important;
    }

    .gallery-zoom-icon {
        width: 34px !important;
        height: 34px !important;
        border-radius: 11px !important;
        font-size: 13px !important;
    }
}

/* =========================================================
   Gallery Details Final Fix
   إصلاح نهائي لصفحة استعراض الصور بدون إضافة كلاسات جديدة
========================================================= */

/* إلغاء padding-bottom الكبير القادم من تنسيق الألبومات */
main.bg-white.pb-5>.container:has(.gallery-grid-item) {
    padding-bottom: 18px !important;
}

/* ضبط المسافة تحت الصور قبل الفوتر */
main.bg-white.pb-5:has(.gallery-grid-item) {
    padding-bottom: 18px !important;
}

/* شبكة الصور */
main.bg-white.pb-5>.container:has(.gallery-grid-item)>.row.g-3 {
    --bs-gutter-x: 22px !important;
    --bs-gutter-y: 22px !important;
    margin-right: calc(-.5 * var(--bs-gutter-x)) !important;
    margin-left: calc(-.5 * var(--bs-gutter-x)) !important;
}

/* نضمن أن المسافات تطبق فعلياً على الأعمدة */
main.bg-white.pb-5>.container:has(.gallery-grid-item)>.row.g-3>[class*="col-"] {
    padding-right: calc(var(--bs-gutter-x) * .5) !important;
    padding-left: calc(var(--bs-gutter-x) * .5) !important;
    margin-bottom: 0 !important;
}

/* =========================================================
   iPad / Tablet
   نخليها عمودين بدل 3 حتى يكون في راحة ومسافة للعين
========================================================= */

@media (min-width: 768px) and (max-width: 991.98px) {
    main.bg-white.pb-5>.container:has(.gallery-grid-item) {
        width: calc(100% - 56px) !important;
        max-width: 820px !important;
        padding-inline: 0 !important;
        padding-top: 26px !important;
        padding-bottom: 22px !important;
    }

    main.bg-white.pb-5>.container:has(.gallery-grid-item)>.row.g-3 {
        --bs-gutter-x: 28px !important;
        --bs-gutter-y: 26px !important;
    }

    main.bg-white.pb-5>.container:has(.gallery-grid-item)>.row.g-3>[class*="col-"] {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 575.98px) {
    main.bg-white.pb-5>.container:has(.gallery-grid-item) {
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        padding-inline: 0 !important;
        padding-top: 20px !important;
        padding-bottom: 12px !important;
    }

    main.bg-white.pb-5:has(.gallery-grid-item) {
        padding-bottom: 12px !important;
    }

    main.bg-white.pb-5>.container:has(.gallery-grid-item)>.row.g-3 {
        --bs-gutter-x: 12px !important;
        --bs-gutter-y: 12px !important;
    }

    main.bg-white.pb-5>.container:has(.gallery-grid-item)>.row.g-3>[class*="col-"] {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* الجوال العرضي / الأجهزة الصغيرة العريضة */
@media (min-width: 576px) and (max-width: 767.98px) {
    main.bg-white.pb-5>.container:has(.gallery-grid-item) {
        width: calc(100% - 46px) !important;
        max-width: 100% !important;
        padding-inline: 0 !important;
        padding-bottom: 14px !important;
    }

    main.bg-white.pb-5>.container:has(.gallery-grid-item)>.row.g-3 {
        --bs-gutter-x: 22px !important;
        --bs-gutter-y: 20px !important;
    }
}

/* الجوال الصغير جداً */
@media (max-width: 390px) {
    main.bg-white.pb-5>.container:has(.gallery-grid-item) {
        width: calc(100% - 20px) !important;
        padding-bottom: 10px !important;
    }

    main.bg-white.pb-5>.container:has(.gallery-grid-item)>.row.g-3 {
        --bs-gutter-x: 10px !important;
        --bs-gutter-y: 10px !important;
    }
}

/* =========================================================
   Video Album Details Page
   صفحة تفاصيل ألبوم الفيديو - تصميم متجاوب بدون تغيير HTML
========================================================= */

/* الصفحة نفسها */
main.bg-white.pb-5:has(.video-grid-card) {
    position: relative;
    padding-bottom: 42px !important;
    background:
        radial-gradient(circle at 12% 12%,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 4%, transparent),
            transparent 30%),
        radial-gradient(circle at 88% 88%,
            color-mix(in srgb, var(--site-secondary, var(--secondary-color)) 4%, transparent),
            transparent 28%),
        linear-gradient(180deg, #f8fbfc 0%, #ffffff 55%, #f8fbfc 100%) !important;
    overflow: hidden;
}

/* الحاوية */
main.bg-white.pb-5:has(.video-grid-card)>.container {
    position: relative;
    z-index: 2;
    padding-top: 38px;
    padding-bottom: 26px !important;
}

/* عنوان قائمة الفيديوهات */
main.bg-white.pb-5:has(.video-grid-card) h5.border-end {
    position: relative;
    margin-bottom: 0 !important;
    color: var(--site-primary, var(--primary-color)) !important;
    /* font-family: 'El Messiri', 'Tajawal', sans-serif !important; */
    font-size: 20px;
    font-weight: 900 !important;
    line-height: 1.5;
}

/* لون الخط الجانبي للعنوان */
main.bg-white.pb-5:has(.video-grid-card) .border-primary {
    border-color: var(--site-secondary, var(--secondary-color)) !important;
}

/* زر الرجوع */
main.bg-white.pb-5:has(.video-grid-card) .btn-outline-secondary {
    min-height: 38px;
    padding: 7px 17px !important;
    border-radius: 999px !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 16%, #e5e7eb) !important;
    background: #fff !important;
    color: var(--site-primary, var(--primary-color)) !important;
    font-size: 13px;
    font-weight: 900 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
    transition: all .22s ease;
}

main.bg-white.pb-5:has(.video-grid-card) .btn-outline-secondary i {
    font-size: 12px;
    transition: transform .22s ease;
}

main.bg-white.pb-5:has(.video-grid-card) .btn-outline-secondary:hover {
    color: #fff !important;
    background: var(--site-gradient,
            linear-gradient(135deg,
                var(--site-primary, var(--primary-color)),
                var(--site-secondary, var(--secondary-color)))) !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--site-primary, var(--primary-color)) 18%, transparent);
}

main.bg-white.pb-5:has(.video-grid-card) .btn-outline-secondary:hover i {
    transform: translateX(3px);
}

/* رأس القائمة: العنوان + زر الرجوع */
main.bg-white.pb-5:has(.video-grid-card) .d-flex.justify-content-between.align-items-center.mb-4 {
    padding: 18px 20px;
    margin-bottom: 24px !important;
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, #e7eef3);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}

/* شبكة الفيديوهات */
main.bg-white.pb-5:has(.video-grid-card) .row.g-4 {
    --bs-gutter-x: 26px;
    --bs-gutter-y: 26px;
    align-items: stretch;
}

/* كرت الفيديو */
.video-grid-card {
    position: relative;
    display: flex !important;
    flex-direction: column;
    height: 100% !important;
    background: #fff !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, #e7eef3) !important;
    border-top: 4px solid var(--site-secondary, var(--secondary-color)) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .055) !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

.video-grid-card:hover {
    transform: translateY(-6px) !important;
    border-top-color: var(--site-primary, var(--primary-color)) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .10) !important;
}

/* صورة الفيديو - نفس نسبة المشاريع والأخبار 800x500 */
.video-thumb-wrapper {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    overflow: hidden !important;
    background: #0f172a !important;
}

.video-thumb-img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: .88 !important;
    transition: transform .55s ease, opacity .35s ease, filter .35s ease !important;
}

.video-grid-card:hover .video-thumb-img {
    transform: scale(1.065) !important;
    opacity: 1 !important;
    filter: saturate(1.06) contrast(1.03) !important;
}

/* تدرج خفيف فوق الصورة */
.video-thumb-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg,
            rgba(15, 23, 42, 0) 40%,
            rgba(15, 23, 42, .34) 100%);
    pointer-events: none;
}

/* زر التشغيل */
.video-play-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 4 !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 20px !important;
    transform: translate(-50%, -50%) scale(.92) !important;
    background: rgba(255, 255, 255, .18) !important;
    border: 1px solid rgba(255, 255, 255, .34) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .20) !important;
    transition: all .25s ease !important;
}

.video-play-icon i {
    color: #fff !important;
    font-size: 22px !important;
    margin-left: 3px;
}

.video-grid-card:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.04) !important;
    background: var(--site-gradient,
            linear-gradient(135deg,
                var(--site-primary, var(--primary-color)),
                var(--site-secondary, var(--secondary-color)))) !important;
    border-color: transparent !important;
    box-shadow: 0 16px 34px color-mix(in srgb, var(--site-primary, var(--primary-color)) 24%, transparent) !important;
}

/* جسم الكرت */
.video-card-body {
    flex: 1 1 auto !important;
    padding: 18px 18px 17px !important;
    text-align: center !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* عنوان الفيديو */
.video-card-title {
    color: var(--site-text, #111827) !important;
    /* font-family: 'El Messiri', 'Tajawal', sans-serif !important; */
    font-size: 15.5px !important;
    font-weight: 900 !important;
    line-height: 1.55 !important;
    margin-bottom: 9px !important;
    transition: color .22s ease !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: unset !important;
    min-height: 48px;
}

.video-grid-card:hover .video-card-title {
    color: var(--site-primary, var(--primary-color)) !important;
}

/* التاريخ */
.video-card-date {
    width: fit-content;
    margin: auto auto 0;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-primary, var(--primary-color)) 7%, #ffffff);
    color: #667085 !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 12%, #ffffff);
    font-size: 12px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.video-card-date i {
    color: var(--site-secondary, var(--secondary-color)) !important;
    font-size: 12px;
}

/* حالة عدم وجود فيديوهات */
main.bg-white.pb-5:has(.video-grid-card) .text-center.py-5,
main.bg-white.pb-5:has(.video-card-title) .text-center.py-5 {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 24px !important;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #edf2f5;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

main.bg-white.pb-5:has(.video-grid-card) .text-center.py-5 img,
main.bg-white.pb-5:has(.video-card-title) .text-center.py-5 img {
    max-width: 155px !important;
    opacity: .58 !important;
}

main.bg-white.pb-5:has(.video-grid-card) .text-center.py-5 h5,
main.bg-white.pb-5:has(.video-card-title) .text-center.py-5 h5 {
    color: #667085 !important;
    font-weight: 900 !important;
}

/* =========================================================
   Tablet / iPad
========================================================= */

@media (min-width: 768px) and (max-width: 991.98px) {
    main.bg-white.pb-5:has(.video-grid-card)>.container {
        width: calc(100% - 56px) !important;
        max-width: 860px !important;
        padding-inline: 0 !important;
        padding-top: 30px !important;
        padding-bottom: 26px !important;
    }

    main.bg-white.pb-5:has(.video-grid-card) .row.g-4 {
        --bs-gutter-x: 26px !important;
        --bs-gutter-y: 26px !important;
    }

    main.bg-white.pb-5:has(.video-grid-card) .row.g-4>[class*="col-"] {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .video-grid-card {
        border-radius: 22px !important;
    }

    .video-card-title {
        font-size: 15px !important;
    }
}

/* =========================================================
   Mobile Landscape / Small Tablets
========================================================= */

@media (min-width: 576px) and (max-width: 767.98px) {
    main.bg-white.pb-5:has(.video-grid-card)>.container {
        width: calc(100% - 44px) !important;
        max-width: 100% !important;
        padding-inline: 0 !important;
        padding-top: 26px !important;
        padding-bottom: 18px !important;
    }

    main.bg-white.pb-5:has(.video-grid-card) .row.g-4 {
        --bs-gutter-x: 22px !important;
        --bs-gutter-y: 22px !important;
    }

    main.bg-white.pb-5:has(.video-grid-card) .row.g-4>[class*="col-"] {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 575.98px) {
    main.bg-white.pb-5:has(.video-grid-card) {
        padding-bottom: 12px !important;
    }

    main.bg-white.pb-5:has(.video-grid-card)>.container {
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        padding-inline: 0 !important;
        padding-top: 22px !important;
        padding-bottom: 12px !important;
    }

    main.bg-white.pb-5:has(.video-grid-card) .d-flex.justify-content-between.align-items-center.mb-4 {
        padding: 14px 14px;
        margin-bottom: 16px !important;
        border-radius: 18px;
        gap: 12px;
    }

    main.bg-white.pb-5:has(.video-grid-card) h5.border-end {
        font-size: 15px;
        padding-right: 10px !important;
    }

    main.bg-white.pb-5:has(.video-grid-card) .btn-outline-secondary {
        min-height: 34px;
        padding: 6px 12px !important;
        font-size: 11.5px;
        box-shadow: none;
    }

    main.bg-white.pb-5:has(.video-grid-card) .row.g-4 {
        --bs-gutter-x: 12px !important;
        --bs-gutter-y: 12px !important;
    }

    main.bg-white.pb-5:has(.video-grid-card) .row.g-4>[class*="col-"] {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .video-grid-card {
        border-radius: 17px !important;
        border-top-width: 3px !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, .045) !important;
    }

    .video-grid-card:hover {
        transform: none !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, .045) !important;
    }

    .video-grid-card:hover .video-thumb-img {
        transform: none !important;
        filter: none !important;
    }

    .video-play-icon {
        width: 40px !important;
        height: 40px !important;
        border-radius: 14px !important;
        transform: translate(-50%, -50%) !important;
    }

    .video-play-icon i {
        font-size: 15px !important;
    }

    .video-card-body {
        padding: 11px 9px 12px !important;
    }

    .video-card-title {
        min-height: 36px;
        font-size: 11.8px !important;
        line-height: 1.5 !important;
        margin-bottom: 7px !important;
        -webkit-line-clamp: 2 !important;
    }

    .video-card-date {
        min-height: 23px;
        padding: 4px 8px;
        font-size: 9.8px !important;
        gap: 4px !important;
    }

    .video-card-date i {
        font-size: 10px;
    }

    main.bg-white.pb-5:has(.video-grid-card) .text-center.py-5,
    main.bg-white.pb-5:has(.video-card-title) .text-center.py-5 {
        padding: 38px 18px !important;
        border-radius: 22px;
    }
}

/* الجوال الصغير جداً */
@media (max-width: 390px) {
    main.bg-white.pb-5:has(.video-grid-card)>.container {
        width: calc(100% - 20px) !important;
    }

    main.bg-white.pb-5:has(.video-grid-card) .row.g-4 {
        --bs-gutter-x: 10px !important;
        --bs-gutter-y: 10px !important;
    }

    .video-grid-card {
        border-radius: 15px !important;
    }

    .video-card-title {
        font-size: 11.2px !important;
    }

    .video-card-date {
        font-size: 9.4px !important;
    }
}

/* =========================================================
   Gift Page - Final Fixed Design
   صفحة الإهداءات - ضبط نهائي للمعاينة والكروت
========================================================= */

/* الصفحة */
main.bg-white.pb-5:has(#giftForm) {
    position: relative;
    padding-bottom: 58px !important;
    background:
        radial-gradient(circle at 10% 12%,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 5%, transparent),
            transparent 30%),
        radial-gradient(circle at 88% 88%,
            color-mix(in srgb, var(--site-secondary, var(--secondary-color)) 5%, transparent),
            transparent 30%),
        linear-gradient(180deg, #f8fbfc 0%, #ffffff 52%, #f8fbfc 100%) !important;
    overflow: hidden;
}

main.bg-white.pb-5:has(#giftForm)>form>.container {
    position: relative;
    z-index: 2;
    padding-top: 24px !important;
}

#giftForm>.container>.row {
    align-items: flex-start !important;
    row-gap: 28px !important;
}

/* =========================================================
   General Step Cards
========================================================= */

#giftForm .card {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, #e7eef3) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .045) !important;
    overflow: hidden;
}

#giftForm .card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--site-gradient,
            linear-gradient(135deg,
                var(--site-primary, var(--primary-color)),
                var(--site-secondary, var(--secondary-color))));
    opacity: .95;
}

#giftForm .card-body {
    padding: 22px !important;
}

#giftForm .card h5.fw-bold.text-primary {
    color: var(--site-primary, var(--primary-color)) !important;
    /* font-family: 'El Messiri', 'Tajawal', sans-serif !important; */
    font-size: 18px !important;
    font-weight: 1000 !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
    display: flex;
    align-items: center;
    gap: 9px;
}

#giftForm .card h5.fw-bold.text-primary i {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--site-primary, var(--primary-color)) 8%, #ffffff);
    color: var(--site-primary, var(--primary-color)) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* =========================================================
   Step 1 - Occasion
========================================================= */

.gift-occasion-label {
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: block;
}

.gift-occasion-box {
    position: relative;
    height: 100%;
    min-height: 110px !important;
    padding: 13px 10px !important;
    border-radius: 20px !important;
    background: #fff;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .22s ease;
    overflow: hidden;
}

.gift-occasion-box img {
    position: relative;
    z-index: 2;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    object-fit: contain !important;
}

.gift-occasion-box span {
    position: relative;
    z-index: 2;
    color: #111827;
    font-size: 12.5px !important;
    font-weight: 900 !important;
    line-height: 1.45;
}

.gift-radio-input:checked+.gift-occasion-box {
    border-color: var(--site-primary, var(--primary-color)) !important;
    background: color-mix(in srgb, var(--site-primary, var(--primary-color)) 5%, #ffffff) !important;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--site-primary, var(--primary-color)) 14%, transparent);
}

.gift-radio-input:checked+.gift-occasion-box::after {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    left: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--site-gradient,
            linear-gradient(135deg,
                var(--site-primary, var(--primary-color)),
                var(--site-secondary, var(--secondary-color))));
    color: #fff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

/* =========================================================
   Step 2 - Gift Card Thumbs
   مهم: لا نقص تصميم البطاقة
========================================================= */

#cardsContainer {
    --bs-gutter-x: 14px !important;
    --bs-gutter-y: 14px !important;
    justify-content: flex-start !important;
}

.gift-card-thumb-label {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.gift-card-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5 !important;
    height: auto !important;
    max-height: 190px !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    border: 2px solid transparent;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
    transition: all .22s ease;
}

/* هنا أهم شيء: contain بدل cover حتى ما ينقص تصميم البطاقة */
.gift-card-thumb-img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: contain !important;
    object-position: center center !important;
    background: #fff !important;
    padding: 0 !important;
}

.gift-card-radio:checked+.gift-card-thumb-box {
    border-color: var(--site-primary, var(--primary-color)) !important;
    box-shadow: 0 14px 32px color-mix(in srgb, var(--site-primary, var(--primary-color)) 16%, transparent);
}

.check-icon {
    position: absolute;
    top: 9px !important;
    left: 9px !important;
    right: auto !important;
    z-index: 5;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    background: var(--site-gradient,
            linear-gradient(135deg,
                var(--site-primary, var(--primary-color)),
                var(--site-secondary, var(--secondary-color)))) !important;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    opacity: 0;
    transform: scale(.7);
    transition: all .22s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
}

.gift-card-radio:checked+.gift-card-thumb-box .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* =========================================================
   Inputs
========================================================= */

#giftForm .form-label {
    color: #344054;
    font-size: 14px;
    font-weight: 900 !important;
    margin-bottom: 8px;
}

#giftForm .form-control,
#giftForm .input-group-text {
    min-height: 46px !important;
    border-radius: 16px !important;
    border: 1px solid #e5e7eb !important;
    background: #f8fafc !important;
    color: #111827 !important;
    font-size: 14px;
    font-weight: 800;
    box-shadow: none !important;
    transition: all .22s ease;
}

#giftForm .form-control::placeholder {
    color: #98a2b3;
    font-weight: 700;
}

#giftForm .form-control:focus {
    background: #fff !important;
    border-color: var(--site-primary, var(--primary-color)) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, transparent) !important;
}

#giftForm .input-group-text {
    color: var(--site-primary, var(--primary-color)) !important;
    font-weight: 1000;
}

#giftForm .form-check {
    padding: 12px 14px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--site-primary, var(--primary-color)) 4%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, #ffffff);
}

#giftForm .form-check-input:checked {
    background-color: var(--site-primary, var(--primary-color));
    border-color: var(--site-primary, var(--primary-color));
}

#giftForm .form-check-label {
    color: #475467;
    font-size: 13.5px;
    font-weight: 800;
}

/* =========================================================
   Amount
========================================================= */

#giftForm .d-flex.gap-2.mb-3.justify-content-center {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px !important;
}

#giftForm .amount-btn {
    width: 100%;
    min-height: 42px !important;
    border-radius: 999px !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 16%, #dbe3ea) !important;
    background: #fff !important;
    color: var(--site-primary, var(--primary-color)) !important;
    font-size: 14px !important;
    font-weight: 1000 !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .035);
    transition: all .22s ease;
}

#giftForm .amount-btn:hover,
#giftForm .amount-btn.active {
    color: #fff !important;
    background: var(--site-gradient,
            linear-gradient(135deg,
                var(--site-primary, var(--primary-color)),
                var(--site-secondary, var(--secondary-color)))) !important;
    border-color: transparent !important;
}

#customAmount {
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 1000 !important;
    color: var(--site-primary, var(--primary-color)) !important;
}

#amountError {
    margin-top: 8px;
    padding: 9px 12px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #dc2626 !important;
    font-size: 12.5px;
    font-weight: 900;
}

/* =========================================================
   Preview Container
========================================================= */

.gift-preview-container {
    position: sticky;
    top: 96px !important;
    padding: 22px !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, .97);
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, #e7eef3);
    border-top: 5px solid var(--site-primary, var(--primary-color));
    box-shadow: 0 18px 45px rgba(15, 23, 42, .09);
    text-align: center;
    overflow: hidden;
}

.gift-preview-container>h5 {
    color: var(--site-primary, var(--primary-color));
    /* font-family: 'El Messiri', 'Tajawal', sans-serif; */
    font-size: 20px;
    font-weight: 1000 !important;
    margin-bottom: 14px !important;
}

/* كارد المعاينة */
.gift-canvas-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 430px !important;
    margin: 0 auto;
    aspect-ratio: 4 / 5 !important;
    overflow: hidden;
    border-radius: 24px !important;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .10);
}

/* أهم تعديل: لا تقص صورة المعاينة */
#myimage {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: contain !important;
    object-position: center center !important;
    background: #fff !important;
}

.preview-text-giftee,
.preview-text-sender {
    position: absolute !important;
    left: auto !important;
    transform: none !important;

    width: 34% !important;
    max-width: 155px !important;
    min-height: 22px !important;

    text-align: right !important;
    direction: rtl !important;
    /* font-family: 'Cairo', 'Tajawal', Arial, sans-serif !important; */
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;

    pointer-events: none !important;
    z-index: 5 !important;

    color: #ffffff !important;

    -webkit-text-stroke: 0.45px rgba(15, 23, 42, .75);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, .65),
        0 0 6px rgba(0, 0, 0, .35);
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* اسم المرسل بجانب من: */
.preview-text-sender {
    top: 26.8% !important;
    right: 35% !important;
}

/* اسم المُهدى إليه بجانب إلى: */
.preview-text-giftee {
    top: 77.9%!important;
    right: 35% !important;
}

/* الباركود */
#print-barcode {
    position: absolute;
    top: auto !important;
    left: 18px !important;
    bottom: 22px !important;
    width: 56px !important;
    height: 56px !important;
    padding: 4px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
    display: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

/* أزرار المعاينة */
.gift-preview-container .mt-4 {
    margin-top: 18px !important;
}

.gift-preview-container .btn-outline-dark,
.gift-preview-container .btn-primary,
#giftForm .d-grid.d-lg-none .btn-primary {
    min-height: 48px;
    border-radius: 999px !important;
    font-size: 14px;
    font-weight: 1000 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .22s ease;
}

.gift-preview-container .btn-outline-dark {
    color: var(--site-primary, var(--primary-color)) !important;
    border: 1px solid var(--site-primary, var(--primary-color)) !important;
    background: #fff !important;
}

.gift-preview-container .btn-primary,
#giftForm .d-grid.d-lg-none .btn-primary {
    border: 0 !important;
    background: var(--site-gradient,
            linear-gradient(135deg,
                var(--site-primary, var(--primary-color)),
                var(--site-secondary, var(--secondary-color)))) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--site-primary, var(--primary-color)) 22%, transparent);
}

.gift-preview-container .text-muted.small {
    color: #667085 !important;
    font-size: 12.5px;
    font-weight: 800;
}

.gift-canvas-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 430px !important;
    margin: 0 auto;
    aspect-ratio: 4 / 5 !important;
    overflow: hidden;
    border-radius: 24px !important;
}

/* =========================================================
   Tablet
========================================================= */

@media (min-width: 768px) and (max-width: 991.98px) {
    main.bg-white.pb-5:has(#giftForm) {
        padding-bottom: 105px !important;
    }

    main.bg-white.pb-5:has(#giftForm)>form>.container {
        width: calc(100% - 52px) !important;
        max-width: 900px !important;
        padding-inline: 0 !important;
    }

    .gift-preview-container {
        position: relative !important;
        top: auto !important;
        max-width: 520px !important;
        margin-inline: auto !important;
    }

    .gift-canvas-wrapper {
        max-width: 380px !important;
    }

    .preview-text-giftee,
    .preview-text-sender {
        font-size: 13px !important;
        width: 34% !important;
        max-width: 125px !important;
        right: 35% !important;
    }

    .preview-text-sender {
        top: 26.8% !important;
    }

    .preview-text-giftee {
        top: 77.9%!important;
    }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 575.98px) {
    main.bg-white.pb-5:has(#giftForm) {
        padding-bottom: 100px !important;
    }

    main.bg-white.pb-5:has(#giftForm)>form>.container {
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        padding-inline: 0 !important;
        padding-top: 18px !important;
    }

    #giftForm .card {
        border-radius: 19px !important;
        margin-bottom: 14px !important;
    }

    #giftForm .card-body {
        padding: 14px !important;
    }

    #giftForm .card h5.fw-bold.text-primary {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }

    #giftForm .row.g-3,
    #cardsContainer {
        --bs-gutter-x: 9px !important;
        --bs-gutter-y: 9px !important;
    }

    .gift-occasion-box {
        min-height: 94px !important;
        padding: 10px 7px !important;
        border-radius: 15px !important;
    }

    .gift-occasion-box img {
        width: 36px !important;
        height: 36px !important;
    }

    .gift-occasion-box span {
        font-size: 10.5px !important;
    }

    .gift-card-thumb-box {
        max-height: 160px !important;
        border-radius: 15px !important;
    }

    .check-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px;
        top: 8px !important;
        left: 8px !important;
    }

    #giftForm .form-label {
        font-size: 12.5px;
        margin-bottom: 6px;
    }

    #giftForm .form-control,
    #giftForm .input-group-text {
        min-height: 42px !important;
        border-radius: 13px !important;
        font-size: 12.5px;
    }

    #giftForm .mb-3 {
        margin-bottom: 12px !important;
    }

    #giftForm .form-check {
        padding: 10px 12px;
        border-radius: 14px;
    }

    #giftForm .form-check-label {
        font-size: 12px;
    }

    #giftForm .amount-btn {
        min-height: 36px !important;
        font-size: 11.5px !important;
        padding-inline: 6px !important;
    }

    .gift-preview-container {
        position: relative !important;
        top: auto !important;
        padding: 14px !important;
        border-radius: 20px !important;
        margin-top: 0 !important;
    }

    .gift-preview-container>h5 {
        font-size: 16px;
        margin-bottom: 12px !important;
    }

    .gift-canvas-wrapper {
        max-width: 300px !important;
        aspect-ratio: 4 / 5 !important;
        border-radius: 17px !important;
    }

    .preview-text-giftee,
    .preview-text-sender {
        font-size: 10.8px !important;
        max-width: 95px !important;
        right: 35% !important;
    }

    .preview-text-sender {
        top: 26.8% !important;
    }

    .preview-text-giftee {
        top: 77.9%!important;
    }


    #print-barcode {
        width: 40px !important;
        height: 40px !important;
        left: 12px !important;
        bottom: 16px !important;
    }

    .gift-preview-container .btn-outline-dark,
    .gift-preview-container .btn-primary,
    #giftForm .d-grid.d-lg-none .btn-primary {
        min-height: 42px;
        font-size: 12.5px;
    }

    #giftForm .d-grid.d-lg-none {
        margin-bottom: 18px;
    }
}

/* الجوال الصغير جداً */
@media (max-width: 390px) {
    main.bg-white.pb-5:has(#giftForm)>form>.container {
        width: calc(100% - 20px) !important;
    }

    .gift-canvas-wrapper {
        max-width: 285px !important;
    }

    .preview-text-giftee,
    .preview-text-sender {
        font-size: 10.5px !important;
        max-width: 88px !important;
    }

    #print-barcode {
        width: 38px !important;
        height: 38px !important;
    }
}

/* =========================================================
   Cart Page - Modern Dynamic Design
   صفحة السلة - تصميم حديث وديناميكي
========================================================= */

#cartContainer {
    position: relative;
    padding-bottom: 42px;
}

/* صف السلة */
#checkoutForm>.row {
    align-items: flex-start !important;
    row-gap: 24px !important;
}

/* عنوان قائمة المشاريع */
#cartContainer h5.fw-bold {
    color: var(--site-text, #111827);
    font-weight: 1000 !important;
}

/* زر حذف الكل */
#clearAllBtn {
    min-height: 36px !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
    font-weight: 900 !important;
    padding: 7px 14px !important;
    transition: .22s ease !important;
}

#clearAllBtn:hover {
    transform: translateY(-2px);
}

/* قائمة العناصر */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* كارد السلة */
.cart-card {
    position: relative !important;
    margin-bottom: 0 !important;
    padding: 16px !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, #e7eef3) !important;
    border-inline-start: 4px solid var(--site-primary, var(--primary-color)) !important;
    border-right: 0 !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .055) !important;

    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    overflow: hidden !important;
    transition: .25s ease !important;
}

.cart-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 15%,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 4%, transparent),
            transparent 35%);
    pointer-events: none;
}

.cart-card>* {
    position: relative;
    z-index: 2;
}

.cart-card:hover {
    transform: translateY(-3px) !important;
    border-inline-start-color: var(--site-secondary, var(--secondary-color)) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08) !important;
}

/* =========================================================
   Cart Image Ratio - 800x500
   صورة كارد السلة بنفس نسبة المشاريع 16:10
========================================================= */

.cart-img-wrapper {
    position: relative !important;
    width: 132px !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    flex: 0 0 132px !important;
    margin-left: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #eef2f6 !important;
    border: 1px solid #edf2f5 !important;
}

.cart-img-wrapper a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.cart-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    transition: transform .45s ease !important;
}

.cart-card:hover .cart-img {
    transform: scale(1.045);
}

/* تفاصيل المشروع */
.cart-details {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.cart-title {
    display: block !important;
    color: var(--site-text, #111827) !important;
    font-size: 16px !important;
    font-weight: 1000 !important;
    line-height: 1.55 !important;
    margin-bottom: 7px !important;
    text-decoration: none !important;
    transition: .22s ease !important;
}

.cart-title:hover {
    color: var(--site-primary, var(--primary-color)) !important;
}

.cart-category {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-height: 26px !important;
    padding: 4px 11px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--site-primary, var(--primary-color)) 7%, #ffffff) !important;
    color: var(--site-primary, var(--primary-color)) !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 13%, #ffffff) !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
    margin-bottom: 10px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* الصف السفلي داخل الكارد */
.cart-details .d-flex.align-items-center.justify-content-between {
    gap: 12px !important;
}

/* حقل المبلغ */
.cart-input-group {
    width: 190px !important;
    height: 44px !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 15%, #dce8ee) !important;
    border-radius: 999px !important;
    background: #fff !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    transition: .22s ease !important;
}

.cart-input-group:focus-within {
    border-color: var(--site-primary, var(--primary-color)) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, transparent) !important;
}

.cart-amount-input {
    height: 100% !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--site-primary, var(--primary-color)) !important;
    font-size: 15px !important;
    font-weight: 1000 !important;
    text-align: center !important;
    padding: 0 10px !important;
}

.cart-currency {
    height: 100% !important;
    min-width: 52px !important;
    padding: 0 12px !important;
    border-right: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 12%, #e5e7eb) !important;
    background: color-mix(in srgb, var(--site-primary, var(--primary-color)) 7%, #ffffff) !important;
    color: var(--site-primary, var(--primary-color)) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* زر حذف العنصر */
.btn-remove-item {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid #fee2e2 !important;
    color: #dc2626 !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, .06) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: .22s ease !important;
}

.btn-remove-item:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
    transform: rotate(90deg) scale(1.04) !important;
}

/* =========================================================
   Cart Summary
========================================================= */

.cart-summary-box {
    position: sticky !important;
    top: 110px !important;
    padding: 24px !important;
    border-radius: 26px !important;
    background: #fff !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 12%, #e7eef3) !important;
    border-top: 0 !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .09) !important;
    overflow: hidden !important;
}

.cart-summary-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--site-gradient,
            linear-gradient(135deg, var(--site-primary, var(--primary-color)), var(--site-secondary, var(--secondary-color))));
}

.cart-summary-box h5 {
    color: var(--site-text, #111827) !important;
    font-size: 20px !important;
    font-weight: 1000 !important;
    border-bottom-color: #edf2f5 !important;
}

/* صفوف الملخص */
.summary-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    color: #667085 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.summary-row span:last-child {
    color: var(--site-text, #111827) !important;
    font-weight: 1000 !important;
}

.summary-total {
    margin-top: 18px !important;
    padding-top: 18px !important;
    border-top: 1px dashed color-mix(in srgb, var(--site-primary, var(--primary-color)) 18%, #e5e7eb) !important;
    color: var(--site-primary, var(--primary-color)) !important;
    font-size: 19px !important;
    font-weight: 1000 !important;
}

.summary-total span,
.summary-total .text-success,
.summary-total #totalAmountDisplay {
    color: var(--site-primary, var(--primary-color)) !important;
}

/* زر إتمام التبرع */
.btn-checkout {
    width: 100% !important;
    min-height: 52px !important;
    margin-top: 18px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: var(--site-gradient,
            linear-gradient(135deg, var(--site-primary, var(--primary-color)), var(--site-secondary, var(--secondary-color)))) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 1000 !important;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--site-primary, var(--primary-color)) 22%, transparent) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: .22s ease !important;
}

.btn-checkout:hover {
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 36px color-mix(in srgb, var(--site-primary, var(--primary-color)) 28%, transparent) !important;
}

/* زر إضافة المزيد */
.btn-clear-cart {
    margin-top: 14px !important;
    min-height: 38px !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--site-primary, var(--primary-color)) 7%, #ffffff) !important;
    color: var(--site-primary, var(--primary-color)) !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 14%, #ffffff) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: .22s ease !important;
}

.btn-clear-cart:hover {
    background: var(--site-primary, var(--primary-color)) !important;
    color: #fff !important;
}

/* =========================================================
   Empty Cart
========================================================= */

#cartContainer>.text-center.py-5 {
    max-width: 560px;
    margin: 0 auto;
    padding: 42px 22px !important;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 7%, transparent),
            transparent 45%),
        #fff;
    border: 1px solid #edf2f5;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

#cartContainer>.text-center.py-5 img {
    max-width: 210px !important;
    opacity: .88 !important;
}

#cartContainer>.text-center.py-5 h4 {
    color: var(--site-text, #111827) !important;
    font-weight: 1000 !important;
}

#cartContainer>.text-center.py-5 .btn-primary {
    min-height: 44px !important;
    border-radius: 999px !important;
    background: var(--site-gradient,
            linear-gradient(135deg, var(--site-primary, var(--primary-color)), var(--site-secondary, var(--secondary-color)))) !important;
    border: 0 !important;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--site-primary, var(--primary-color)) 20%, transparent) !important;
}

/* =========================================================
   Cart Responsive
========================================================= */

@media (max-width: 991.98px) {
    #cartContainer {
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        padding-inline: 0 !important;
        padding-bottom: 110px !important;
    }

    .cart-summary-box {
        position: relative !important;
        top: auto !important;
        margin-top: 8px !important;
    }
}

/* =========================================================
   Cart Mobile Layout
   كارد السلة في الجوال بصورة صغيرة بنفس نسبة 800x500
========================================================= */

@media (max-width: 575.98px) {
    #cartContainer {
        width: calc(100% - 22px) !important;
    }

    #cartContainer .d-flex.justify-content-between.align-items-center.mb-3 {
        gap: 10px !important;
    }

    #cartContainer h5.fw-bold {
        font-size: 14px !important;
    }

    #clearAllBtn {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }

    .cart-items-list {
        gap: 12px !important;
    }

    /* الكارد يبقى صف في الجوال مثل اللابتوب */
    .cart-card {
        padding: 12px !important;
        border-radius: 18px !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: right !important;
        gap: 10px !important;
    }

    /* الصورة صغيرة ومريحة، لكن بنفس نسبة 16:10 */
    .cart-img-wrapper {
        width: 112px !important;
        aspect-ratio: 16 / 10 !important;
        height: auto !important;
        flex: 0 0 112px !important;
        margin: 0 !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    .cart-img-wrapper a {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    .cart-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
    }

    .cart-details {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .cart-title {
        font-size: 13.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .cart-category {
        font-size: 10px !important;
        min-height: 22px !important;
        padding: 3px 8px !important;
        margin-bottom: 8px !important;
        max-width: 100% !important;
    }

    .cart-details .d-flex.align-items-center.justify-content-between {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .btn-remove-item {
        width: 32px !important;
        height: 32px !important;
        flex: 0 0 32px !important;
    }

    .cart-summary-box {
        padding: 18px !important;
        border-radius: 22px !important;
    }

    .cart-summary-box h5 {
        font-size: 17px !important;
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
    }

    .summary-row {
        font-size: 12.5px !important;
        margin-bottom: 12px !important;
    }

    .summary-total {
        font-size: 16px !important;
    }

    .btn-checkout {
        min-height: 48px !important;
        border-radius: 16px !important;
        font-size: 14px !important;
    }

    .btn-clear-cart {
        font-size: 12px !important;
        min-height: 36px !important;
    }
}

/* للشاشات الصغيرة جدًا */
@media (max-width: 390px) {
    .cart-card {
        gap: 8px !important;
        padding: 10px !important;
    }

    .cart-img-wrapper {
        width: 96px !important;
        flex-basis: 96px !important;
        border-radius: 12px !important;
    }

    .cart-title {
        font-size: 12.8px !important;
    }

    .cart-category {
        font-size: 9.5px !important;
        padding: 3px 7px !important;
    }

    .cart-input-group {
        width: 122px !important;
        height: 36px !important;
    }

    .cart-amount-error {
        width: 122px !important;
        font-size: 10px !important;
    }
}

/* =========================================================
   Cart Amount Inline Validation
   رسالة تحقق مبلغ السلة تحت الحقل
========================================================= */

.cart-amount-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-input-group {
    width: 190px !important;
    height: 44px !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 15%, #dce8ee) !important;
    border-radius: 999px !important;
    background: #fff !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    transition: .22s ease !important;
}

.cart-input-group:focus-within {
    border-color: var(--site-primary, var(--primary-color)) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, transparent) !important;
}

.cart-amount-input {
    height: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--site-primary, var(--primary-color)) !important;
    font-size: 15px !important;
    font-weight: 1000 !important;
    text-align: center !important;
    padding: 0 10px !important;
    box-shadow: none !important;
}

.cart-currency {
    height: 100% !important;
    min-width: 52px !important;
    padding: 0 12px !important;
    border-inline-start: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 12%, #e5e7eb) !important;
    background: color-mix(in srgb, var(--site-primary, var(--primary-color)) 7%, #ffffff) !important;
    color: var(--site-primary, var(--primary-color)) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

.cart-amount-error {
    display: none;
    width: 190px;
    margin-top: 6px;
    color: #dc2626;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
}

.cart-input-group.has-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .08) !important;
}

.cart-input-group.has-error+.cart-amount-error {
    display: block;
}

/* ضبط حقل المبلغ داخل كارد الجوال */
@media (max-width: 575.98px) {
    .cart-amount-wrap {
        align-items: flex-start !important;
    }

    .cart-input-group {
        width: 135px !important;
        height: 38px !important;
        margin: 0 !important;
    }

    .cart-amount-error {
        width: 135px !important;
        font-size: 10.5px !important;
        text-align: center !important;
        margin-top: 5px !important;
    }

    .cart-amount-input {
        font-size: 13px !important;
        padding: 0 8px !important;
    }

    .cart-currency {
        min-width: 42px !important;
        padding: 0 9px !important;
        font-size: 10.5px !important;
    }
}

/* للشاشات الصغيرة جدًا */
@media (max-width: 390px) {
    .cart-input-group {
        width: 128px !important;
        height: 36px !important;
    }

    .cart-amount-error {
        width: 128px !important;
        font-size: 10px !important;
    }

    .cart-currency {
        min-width: 39px !important;
        padding: 0 7px !important;
    }
}

/* =========================================================
   Governance Page + Governance Menu
   تصميم بديل جاهز - ألوان تلقائية ومتجاوب
========================================================= */

/* =========================================================
   Governance Page Header
========================================================= */

.gov-page-header {
    position: relative;
    padding: 52px 0 44px;
    text-align: center;
    border-bottom: 1px solid #eef2f5;
    margin-bottom: 0;
    background:
        radial-gradient(circle at 18% 18%,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 7%, transparent),
            transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
}

.gov-page-header h1,
.gov-page-header h2,
.gov-page-header .section-title {
    color: var(--site-primary, var(--primary-color)) !important;
    font-weight: 1000 !important;
}

/* =========================================================
   Governance Accordion
========================================================= */

#governanceAccordion,
.accordion#governanceAccordion {
    width: min(100% - 48px, 980px);
    margin: 38px auto 76px;
}

/* عنصر السنة */
.gov-accordion-item {
    position: relative;
    margin-bottom: 16px;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 12%, #e7eef3) !important;
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
    border-right: 0 !important;
    transition: box-shadow .24s ease, transform .24s ease;
}

.gov-accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

/* زر السنة */
.gov-accordion-button {
    min-height: 64px;
    padding: 16px 22px !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 16.5px;
    font-weight: 1000;
    line-height: 1.5;
    box-shadow: none !important;
    border: 0 !important;
}

.gov-accordion-button i {
    color: var(--site-primary, var(--primary-color)) !important;
    font-size: 15px;
    margin-inline-end: 8px;
}

.gov-accordion-button:not(.collapsed) {
    color: #fff !important;
    background:
        linear-gradient(135deg,
            var(--site-primary, var(--primary-color)),
            color-mix(in srgb, var(--site-secondary, var(--secondary-color)) 76%, var(--site-primary, var(--primary-color)))) !important;
}

.gov-accordion-button:not(.collapsed) i {
    color: #fff !important;
}

.gov-accordion-button::after {
    margin-right: auto;
    margin-left: 0;
    filter: grayscale(100%);
    transition: all .22s ease;
}

.gov-accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* جسم السنة */
.gov-accordion-body {
    padding: 22px !important;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 2.5%, #ffffff),
            #ffffff);
    border-top: 1px solid #edf2f5;
}

/* =========================================================
   Sub Governance Sections
========================================================= */

/* القسم الفرعي */
.gov-accordion-body > .mb-4 {
    position: relative;
    margin-bottom: 16px !important;
    padding: 0 !important;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e9eef3;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    overflow: hidden;
}

.gov-accordion-body > .mb-4:last-child {
    margin-bottom: 0 !important;
}

/* رأس القسم */
.sub-gov-title {
    position: relative;
    width: 100%;
    margin: 0 !important;
    padding: 15px 18px;
    border-right: 0 !important;
    color: var(--site-primary, var(--primary-color));
    background:
        linear-gradient(90deg,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 7%, #ffffff),
            #ffffff);
    font-size: 16px;
    font-weight: 1000;
    line-height: 1.6;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #edf2f5;
}

.sub-gov-title::before {
    content: "\f15c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--site-gradient,
        linear-gradient(135deg,
            var(--site-primary, var(--primary-color)),
            var(--site-secondary, var(--secondary-color))));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-left: 10px;
    flex: 0 0 34px;
}

/* =========================================================
   PDF Files Grid
========================================================= */

.gov-accordion-body .row.g-3 {
    --bs-gutter-x: 12px !important;
    --bs-gutter-y: 12px !important;
    padding: 16px !important;
    margin: 0 !important;
    align-items: stretch;
}

.gov-accordion-body .row.g-3 > [class*="col-"] {
    display: flex;
    padding-right: calc(var(--bs-gutter-x) * .5) !important;
    padding-left: calc(var(--bs-gutter-x) * .5) !important;
}

/* ديسكتوب: 3 ملفات في الصف */
@media (min-width: 992px) {
    .gov-accordion-body .row.g-3 > [class*="col-"] {
        width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }

    .gov-accordion-body .row.g-3 > [class*="col-"]:only-child {
    width: 33.333333% !important;
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
}
}

/* كرت الملف */
.pdf-file-card {
    position: relative;
    width: 100%;
    min-height: 64px;
    height: 100%;
    padding: 10px 12px;
    border-radius: 16px;
    background: #fbfdff;
    border: 1px solid #edf2f5;
    text-decoration: none !important;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    transition: all .22s ease;
}

.pdf-file-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 999px;
    background: var(--site-secondary, var(--secondary-color));
    opacity: .9;
}

.pdf-file-card:hover {
    background: #fff;
    border-color: color-mix(in srgb, var(--site-primary, var(--primary-color)) 22%, #e7eef3);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .065);
    transform: translateY(-2px);
}

/* أيقونة PDF */
.pdf-icon-box {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    margin-left: 0;
    border-radius: 12px;
    background: #fff1f2;
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.pdf-icon-box i {
    color: #e11d48 !important;
}

/* معلومات الملف */
.pdf-info {
    flex: 1 1 auto;
    min-width: 0;
}

.pdf-name {
    display: -webkit-box;
    margin-bottom: 4px;
    color: #111827;
    font-size: 12.5px;
    font-weight: 1000;
    line-height: 1.55;
    transition: color .22s ease;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdf-action {
    color: var(--site-primary, var(--primary-color));
    font-size: 10.5px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color .22s ease;
}

.pdf-action i {
    color: inherit !important;
    font-size: 10px;
}

.pdf-file-card:hover .pdf-name {
    color: var(--site-primary, var(--primary-color));
}

.pdf-file-card:hover .pdf-action {
    color: var(--site-secondary, var(--secondary-color));
}

/* إخفاء الفواصل القديمة */
.gov-accordion-body hr {
    display: none !important;
}

/* لا توجد ملفات */
.gov-accordion-body .text-muted.small,
.gov-accordion-body .text-center.py-3 {
    margin: 16px !important;
    padding: 20px 16px !important;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed #d7dee8;
    color: #667085 !important;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

/* =========================================================
   Governance Menu Page
========================================================= */

.gov-menu-header {
    position: relative;
    background:
        radial-gradient(circle at 14% 18%,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 7%, transparent),
            transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
    padding: 52px 0 44px;
    text-align: center;
    border-bottom: 1px solid #eef2f5;
    margin-bottom: 0;
}

.gov-menu-container {
    width: min(100% - 48px, 900px);
    margin: 38px auto 76px;
}

.gov-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 10%, #e7eef3);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 12px;
    transition: all .22s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    overflow: hidden;
}

.gov-menu-item::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: var(--site-secondary, var(--secondary-color));
}

.gov-menu-item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--site-primary, var(--primary-color)) 22%, #e7eef3);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .075);
}

.gov-index-badge {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    margin-left: 0;
    background: color-mix(in srgb, var(--site-primary, var(--primary-color)) 8%, #ffffff);
    color: var(--site-primary, var(--primary-color));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 1000;
    font-size: 15px;
    transition: all .22s ease;
}

.gov-menu-item:hover .gov-index-badge {
    background: var(--site-primary, var(--primary-color));
    color: #fff;
}

.gov-item-info {
    flex-grow: 1;
    min-width: 0;
}

.gov-item-name {
    font-size: 15px;
    font-weight: 1000;
    color: #111827;
    margin: 0;
    line-height: 1.6;
    transition: color .22s ease;
}

.gov-menu-item:hover .gov-item-name {
    color: var(--site-primary, var(--primary-color));
}

.gov-file-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 20px;
    background: var(--site-primary, var(--primary-color));
    color: #fff !important;
    border: 1px solid var(--site-primary, var(--primary-color));
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 1000;
    transition: all .22s ease;
    white-space: nowrap;
}

.gov-file-btn:hover {
    background: var(--site-secondary, var(--secondary-color));
    border-color: var(--site-secondary, var(--secondary-color));
    color: #fff !important;
}

.no-file-badge {
    min-height: 32px;
    padding: 6px 14px;
    background: #f5f7fa;
    color: #98a2b3;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

/* =========================================================
   Tablet / iPad
========================================================= */

@media (max-width: 991.98px) {
    #governanceAccordion,
    .accordion#governanceAccordion,
    .gov-menu-container {
        width: calc(100% - 46px);
        max-width: 820px;
        margin-top: 30px;
        margin-bottom: 110px;
    }

    .gov-accordion-button {
        min-height: 60px;
        padding: 15px 18px !important;
        font-size: 15px;
    }

    .gov-accordion-body {
        padding: 18px !important;
    }

    .sub-gov-title {
        padding: 13px 15px;
        font-size: 15px;
    }

    .gov-accordion-body .row.g-3 {
        --bs-gutter-x: 12px !important;
        --bs-gutter-y: 12px !important;
        padding: 14px !important;
    }

    .gov-accordion-body .row.g-3 > [class*="col-"] {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

   .gov-accordion-body .row.g-3 > [class*="col-"]:only-child {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
}
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 575.98px) {
    .gov-page-header,
    .gov-menu-header {
        padding: 36px 0 30px;
    }

    #governanceAccordion,
    .accordion#governanceAccordion,
    .gov-menu-container {
        width: calc(100% - 24px);
        max-width: 100%;
        margin-top: 22px;
        margin-bottom: 105px;
    }

    .gov-accordion-item {
        border-radius: 18px;
        margin-bottom: 12px;
    }

    .gov-accordion-item:hover {
        transform: none;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
    }

    .gov-accordion-button {
        min-height: 54px;
        padding: 12px 14px !important;
        font-size: 12.8px;
        line-height: 1.55;
    }

    .gov-accordion-button i {
        font-size: 12px;
        margin-inline-end: 5px;
    }

    .gov-accordion-body {
        padding: 12px !important;
    }

    .gov-accordion-body > .mb-4 {
        border-radius: 16px;
        margin-bottom: 12px !important;
    }

    .sub-gov-title {
        padding: 12px 13px;
        font-size: 12.8px;
        line-height: 1.55;
    }

    .sub-gov-title::before {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
        border-radius: 10px;
        font-size: 11px;
        margin-left: 7px;
    }

    .gov-accordion-body .row.g-3 {
        --bs-gutter-x: 9px !important;
        --bs-gutter-y: 9px !important;
        padding: 11px !important;
    }

    .gov-accordion-body .row.g-3 > [class*="col-"],
    .gov-accordion-body .row.g-3 > [class*="col-"]:only-child {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-inline-start: 0 !important;
    }

    .pdf-file-card {
        min-height: 58px;
        padding: 9px 10px;
        border-radius: 14px;
        gap: 9px;
        transform: none !important;
    }

    .pdf-file-card:hover {
        transform: none !important;
        box-shadow: none;
    }

    .pdf-icon-box {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 11px;
        font-size: 14px;
    }

    .pdf-name {
        font-size: 11.5px;
        line-height: 1.5;
    }

    .pdf-action {
        font-size: 9.8px;
    }

    .gov-menu-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        border-radius: 16px;
        gap: 10px;
    }

    .gov-menu-item::before {
        inset-inline-start: 14px;
        inset-inline-end: 14px;
        top: 0;
        bottom: auto;
        width: auto;
        height: 3px;
    }

    .gov-index-badge {
        margin: 0;
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 12px;
        font-size: 13px;
    }

    .gov-item-name {
        font-size: 12.8px;
    }

    .gov-file-btn,
    .no-file-badge {
        width: 100%;
        font-size: 11.5px;
    }
}

/* الجوال الصغير جدًا */
@media (max-width: 390px) {
    #governanceAccordion,
    .accordion#governanceAccordion,
    .gov-menu-container {
        width: calc(100% - 20px);
    }

    .gov-accordion-button {
        font-size: 12px;
    }

    .sub-gov-title {
        font-size: 12.2px;
    }

    .pdf-name {
        font-size: 11px;
    }
}

/* الجوال العرضي */
@media (min-width: 576px) and (max-width: 767.98px) {
    #governanceAccordion,
    .accordion#governanceAccordion,
    .gov-menu-container {
        width: calc(100% - 44px);
        max-width: 100%;
    }

    .gov-accordion-body .row.g-3 > [class*="col-"] {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}
/* =========================================================
   Contact Us Page - Final Dynamic Design
========================================================= */

.contact-us-page {
    background:
        var(--site-radial-soft, radial-gradient(circle at top right, rgba(0,0,0,.03), transparent 42%)),
        var(--site-gradient-soft, linear-gradient(180deg, #f8fafc 0%, #ffffff 60%)) !important;
}

.contact-content-section {
    position: relative;
    padding: 38px 0 64px !important;
}

.contact-main-row {
    align-items: stretch !important;
}

/* في الأجهزة الصغيرة يظهر الفورم أولًا */
@media (max-width: 991.98px) {
    .contact-form-col {
        order: 1 !important;
    }

    .contact-info-col {
        order: 2 !important;
    }
}

/* =========================================================
   Contact Info Box
========================================================= */

.contact-info-box {
    position: relative;
    height: 100%;
    overflow: hidden;
    padding: 30px !important;
    border-radius: 26px !important;
    color: #ffffff;
    background:
        radial-gradient(circle at 16% 16%, rgba(255, 255, 255, .14), transparent 32%),
        radial-gradient(circle at 88% 86%, rgba(255, 255, 255, .10), transparent 30%),
        var(--site-gradient, linear-gradient(135deg, var(--site-primary), var(--site-secondary))) !important;
    box-shadow: 0 22px 60px color-mix(in srgb, var(--site-primary, #006b4f) 24%, transparent);
    border: 1px solid rgba(255, 255, 255, .16);
}

.contact-info-box::before,
.contact-info-box::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, .08);
}

.contact-info-box::before {
    width: 210px;
    height: 210px;
    top: -95px;
    right: -70px;
}

.contact-info-box::after {
    width: 150px;
    height: 150px;
    bottom: -70px;
    left: -50px;
}

.contact-info-box > * {
    position: relative;
    z-index: 2;
}

.contact-box-head {
    margin-bottom: 22px !important;
}

.contact-box-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 10px !important;
    padding: 5px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: 12px;
    font-weight: 900;
}

.contact-info-box h3 {
    color: #ffffff !important;
    font-size: 26px !important;
    line-height: 1.45;
    margin-bottom: 12px !important;
}

.contact-info-box p {
    color: rgba(255, 255, 255, .88);
    line-height: 1.75 !important;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 13px !important;
    margin-bottom: 18px !important;
}

.contact-icon-circle {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
    margin-left: 0;
    border-radius: 15px !important;
    color: #ffffff;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px !important;
    transition: .25s ease;
}

.contact-item:hover .contact-icon-circle {
    color: var(--site-primary, #006b4f);
    background: #ffffff;
    transform: translateY(-3px);
}

.contact-text h5 {
    margin: 0 0 4px !important;
    color: #ffffff;
    font-size: 16px !important;
    font-weight: 900;
}

.contact-text p,
.contact-text a {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 13.5px !important;
    font-weight: 700;
    line-height: 1.75 !important;
    text-decoration: none;
}

.contact-text a:hover {
    color: #ffffff;
}

/* =========================================================
   Contact Form
========================================================= */

.contact-form-box {
    height: 100%;
    padding: 28px !important;
    border-radius: 26px !important;
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--site-primary, #006b4f) 12%, #e5e7eb);
    border-top: 7px solid var(--site-secondary, #c9a227);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.contact-form-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, var(--site-primary-soft, #f2faf7), var(--site-secondary-soft, #fff8ee));
    border: 1px solid color-mix(in srgb, var(--site-primary, #006b4f) 12%, #e5e7eb);
}

.contact-form-icon {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    border-radius: 15px !important;
    color: #ffffff;
    background: var(--site-gradient, linear-gradient(135deg, var(--site-primary), var(--site-secondary)));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--site-primary, #006b4f) 22%, transparent);
}

.contact-form-head h3 {
    font-size: 22px !important;
    font-weight: 900;
    color: var(--site-text, #111827) !important;
}

.contact-form-head p {
    color: var(--site-muted, #667085);
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.7 !important;
}

.contact-success-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--site-primary, #006b4f) 9%, #ffffff);
    color: var(--site-primary, #006b4f);
    border: 1px solid color-mix(in srgb, var(--site-primary, #006b4f) 18%, #ffffff);
    font-size: 14px;
    font-weight: 900;
}

.form-label-custom {
    display: block;
    margin-bottom: 7px !important;
    color: var(--site-text, #111827);
    font-size: 13.5px !important;
    font-weight: 900;
}

.form-label-custom span {
    color: var(--site-danger, #ef4444);
}

.form-control-custom {
    width: 100%;
    min-height: 46px !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, #006b4f) 14%, #dbe3ea);
    background-color: #fbfdfc;
    color: var(--site-text, #111827);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: .25s ease;
}

textarea.form-control-custom {
    min-height: 138px !important;
    resize: vertical;
}

.form-control-custom::placeholder {
    color: #98a2b3;
}

.form-control-custom:hover {
    background-color: #ffffff;
    border-color: color-mix(in srgb, var(--site-primary, #006b4f) 34%, #dbe3ea);
}

.form-control-custom:focus {
    background-color: #ffffff;
    border-color: var(--site-primary, #006b4f);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-primary, #006b4f) 12%, transparent);
}

.btn-send-message {
    min-width: 180px !important;
    min-height: 46px !important;
    padding: 10px 28px !important;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--site-gradient, linear-gradient(135deg, var(--site-primary), var(--site-secondary)));
    font-size: 15px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--site-primary, #006b4f) 24%, transparent);
    transition: .25s ease;
}

.btn-send-message:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 18px 36px color-mix(in srgb, var(--site-primary, #006b4f) 32%, transparent);
}

/* =========================================================
   Bank Accounts Section
========================================================= */

.contact-bank-section {
    margin-top: 28px !important;
    padding: 32px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid color-mix(in srgb, var(--site-primary, #006b4f) 10%, #e5e7eb);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .06);
}

.contact-section-title {
    max-width: 680px;
    margin: 0 auto 26px;
}

.contact-section-title span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 5px 15px;
    border-radius: 999px;
    color: var(--site-primary, #006b4f);
    background: var(--site-primary-soft, #f1faf7);
    border: 1px solid color-mix(in srgb, var(--site-primary, #006b4f) 14%, #ffffff);
    font-size: 12px;
    font-weight: 900;
}

.contact-section-title h3 {
    margin-bottom: 8px;
    color: var(--site-primary, #006b4f);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
}

.contact-section-title p {
    margin: 0;
    color: var(--site-muted, #667085);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.9;
}

.contact-bank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-bank-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--site-secondary, #c9a227) 8%, transparent), transparent 38%),
        #ffffff;
    border: 1px solid color-mix(in srgb, var(--site-primary, #006b4f) 12%, #e5e7eb);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}

.contact-bank-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: var(--site-gradient, linear-gradient(135deg, var(--site-primary), var(--site-secondary)));
}

.bank-card-top {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}

.bank-card-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    color: #ffffff;
    background: var(--site-gradient, linear-gradient(135deg, var(--site-primary), var(--site-secondary)));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.bank-card-top h4 {
    margin: 0 0 4px;
    color: var(--site-text, #111827);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.5;
}

.bank-card-top p {
    margin: 0;
    color: var(--site-muted, #667085);
    font-size: 13px;
    font-weight: 700;
}

.bank-info-list {
    display: grid;
    gap: 10px;
}

.bank-info-row {
    padding: 12px 13px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.bank-info-row span {
    display: block;
    margin-bottom: 4px;
    color: var(--site-muted, #667085);
    font-size: 12px;
    font-weight: 800;
}

.bank-info-row strong {
    display: block;
    color: var(--site-primary, #006b4f);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.7;
    word-break: break-all;
    text-align: left;
}

.bank-copy-line {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}

.bank-copy-btn {
    min-width: 72px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--site-gradient, linear-gradient(135deg, var(--site-primary), var(--site-secondary)));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--site-primary, #006b4f) 20%, transparent);
    transition: .22s ease;
}

.bank-copy-btn em {
    font-style: normal;
}

.bank-copy-btn:hover {
    transform: translateY(-2px);
}

.bank-copy-btn.copied {
    background: #16a34a !important;
}

/* =========================================================
   Map
========================================================= */

.map-container {
    margin-top: 34px;
    height: 390px;
    overflow: hidden;
    border-radius: 28px;
    border: 6px solid #ffffff;
    background: #eef2f6;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 991.98px) {
    .contact-content-section {
        padding: 34px 0 58px !important;
    }

    .contact-form-box,
    .contact-info-box,
    .contact-bank-section {
        padding: 24px !important;
        border-radius: 24px !important;
    }

    .contact-bank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .map-container {
        height: 340px;
    }
}

@media (max-width: 767.98px) {
    .contact-content-section {
        padding: 30px 0 48px !important;
    }

    .contact-form-head {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
    }

    .btn-send-message {
        width: 100%;
    }

    .contact-bank-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .contact-content-section .container {
        padding-inline: 14px;
    }

    .contact-form-box,
    .contact-info-box,
    .contact-bank-section {
        padding: 20px 15px !important;
        border-radius: 20px !important;
    }

    .contact-form-head {
        padding: 13px !important;
    }

    .contact-form-icon {
        width: 44px !important;
        height: 44px !important;
        flex-basis: 44px !important;
    }

    .contact-info-box h3,
    .contact-form-head h3 {
        font-size: 22px !important;
    }

    .contact-item {
        gap: 12px !important;
        margin-bottom: 18px !important;
    }

    .contact-icon-circle {
        width: 44px !important;
        height: 44px !important;
        flex-basis: 44px !important;
        border-radius: 14px !important;
        font-size: 16px !important;
    }

    .contact-text h5 {
        font-size: 15px !important;
    }

    .contact-text p,
    .contact-text a {
        font-size: 13px !important;
    }

    .contact-info-box .social-icons-wrapper {
        justify-content: center !important;
    }

    .contact-info-box .social-btn {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
    }

    .contact-info-box .social-btn i {
        font-size: 14px !important;
    }

    .form-control-custom {
        min-height: 46px !important;
        border-radius: 14px !important;
    }

    textarea.form-control-custom {
        min-height: 145px !important;
    }

    .contact-bank-section {
        margin-top: 24px !important;
    }

    .contact-section-title {
        margin-bottom: 18px;
    }

    .contact-bank-card {
        padding: 17px;
        border-radius: 19px;
    }

    .bank-copy-line {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bank-copy-btn {
        width: 100%;
    }

    .bank-info-row strong {
        font-size: 13px;
    }

    .map-container {
        margin-top: 24px;
        height: 260px;
        border-radius: 22px;
        border-width: 4px;
    }
}
/* =========================================================
   Complaints Page - Enhanced Dynamic Design
   صفحة الشكاوى والمقترحات - تحسين نهائي
========================================================= */

main.bg-white.pb-5:has(.complaint-form-wrapper) {
    background:
        var(--site-radial-soft, radial-gradient(circle at top right, rgba(0,0,0,.03), transparent 42%)),
        var(--site-gradient-soft, linear-gradient(180deg, #f8fafc 0%, #ffffff 60%)) !important;
    padding-bottom: 70px !important;
}

/* الحاوية الرئيسية */
main.bg-white.pb-5:has(.complaint-form-wrapper) > .container {
    padding-top: 46px;
}

/* الكارد الكبير الذي يحتوي النموذج والجانب */
main.bg-white.pb-5:has(.complaint-form-wrapper) > .container > .row.g-0 {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 12%, #e5e7eb) !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08) !important;
}

/* خط جمالي علوي */
main.bg-white.pb-5:has(.complaint-form-wrapper) > .container > .row.g-0::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 7px;
    background: var(--site-gradient, linear-gradient(135deg, var(--site-primary), var(--site-secondary)));
    z-index: 5;
}

/* =========================================================
   Info Side
========================================================= */

.complaint-info-side {
    position: relative;
    height: 100%;
    min-height: 100%;
    padding: 52px 34px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .16), transparent 32%),
        radial-gradient(circle at 85% 88%, rgba(255, 255, 255, .10), transparent 30%),
        var(--site-gradient, linear-gradient(135deg, var(--site-primary), var(--site-secondary))) !important;
    box-shadow: none !important;
    border: 0 !important;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* زخرفة SVG */
.complaint-info-side svg {
    position: absolute;
    width: 330px;
    height: 330px;
    top: -80px;
    left: -90px;
    opacity: .10;
    transform: rotate(-18deg);
    color: #ffffff;
    pointer-events: none;
}

.complaint-info-side::before,
.complaint-info-side::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, .08);
}

.complaint-info-side::before {
    width: 180px;
    height: 180px;
    right: -70px;
    top: -55px;
}

.complaint-info-side::after {
    width: 145px;
    height: 145px;
    left: -55px;
    bottom: -45px;
}

.complaint-info-side > * {
    position: relative;
    z-index: 2;
}

/* أيقونة الجانب */
.complaint-icon-box {
    width: 78px;
    height: 78px;
    margin-bottom: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);

    display: flex;
    align-items: center;
    justify-content: center;
}

.complaint-icon-box i {
    color: #ffffff !important;
}

/* نصوص الجانب */
.complaint-info-side h4 {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.5;
}

.complaint-info-side p {
    max-width: 310px;
    margin-inline: auto;
    color: rgba(255, 255, 255, .90);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.95;
}

.complaint-info-side p.small {
    max-width: 100%;
    margin-top: 28px !important;
    padding-top: 22px !important;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    font-weight: 700;
    border-top-color: rgba(255, 255, 255, .22) !important;
}

/* =========================================================
   Form Side
========================================================= */

.complaint-form-wrapper {
    position: relative;
    height: 100%;
    padding: 42px 38px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--site-primary, var(--primary-color)) 4%, transparent), transparent 32%),
        #ffffff !important;
    box-shadow: none !important;
}

/* عنوان النموذج */
.complaint-form-wrapper > h4 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px !important;
    color: var(--site-text, #111827) !important;
    font-size: 24px;
    font-weight: 900 !important;
    line-height: 1.5;
}

.complaint-form-wrapper > h4::before {
    content: "\f1d8";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    color: #ffffff;
    background: var(--site-gradient, linear-gradient(135deg, var(--site-primary), var(--site-secondary)));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--site-primary, var(--primary-color)) 22%, transparent);
}

/* الحقول */
.complaint-form-wrapper .row.g-3 {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
}

.complaint-label {
    display: block;
    margin-bottom: 8px;
    color: var(--site-text, #111827);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.6;
}

/* إضافة نجمة جمالية للحقول المطلوبة */
.complaint-label::after {
    content: " *";
    color: var(--site-danger, #ef4444);
    font-weight: 900;
}

/* مدخلات النموذج */
.complaint-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border-radius: 16px !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 14%, #dbe3ea) !important;
    background-color: #fbfdfc !important;
    color: var(--site-text, #111827) !important;
    font-size: 14px;
    font-weight: 700;
    outline: none !important;
    box-shadow: none !important;
    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background-color .25s ease,
        transform .25s ease;
}

.complaint-input::placeholder {
    color: color-mix(in srgb, var(--site-muted, #667085) 68%, #ffffff);
    font-weight: 600;
}

.complaint-input:hover {
    background-color: #ffffff !important;
    border-color: color-mix(in srgb, var(--site-primary, var(--primary-color)) 34%, #dbe3ea) !important;
}

.complaint-input:focus {
    background-color: #ffffff !important;
    border-color: var(--site-primary, var(--primary-color)) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-primary, var(--primary-color)) 12%, transparent) !important;
}

textarea.complaint-input {
    min-height: 165px;
    resize: vertical;
    line-height: 1.9;
}

/* إزالة أسهم number في بعض المتصفحات */
.complaint-input[type="number"]::-webkit-inner-spin-button,
.complaint-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.complaint-input[type="number"] {
    -moz-appearance: textfield;
}

/* زر الإرسال */
.btn-submit-complaint {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    padding: 12px 28px;
    border: 0 !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    background: var(--site-gradient, linear-gradient(135deg, var(--site-primary), var(--site-secondary))) !important;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 15px 30px color-mix(in srgb, var(--site-primary, var(--primary-color)) 25%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

.btn-submit-complaint i {
    margin: 0 !important;
    transition: transform .25s ease;
}

.btn-submit-complaint:hover {
    color: #ffffff !important;
    transform: translateY(-3px);
    filter: brightness(1.03);
    box-shadow: 0 19px 38px color-mix(in srgb, var(--site-primary, var(--primary-color)) 34%, transparent);
}

.btn-submit-complaint:hover i {
    transform: translateX(-4px);
}

.btn-submit-complaint:active {
    transform: translateY(0);
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 991.98px) {
    main.bg-white.pb-5:has(.complaint-form-wrapper) {
        padding-bottom: 110px !important;
    }

    main.bg-white.pb-5:has(.complaint-form-wrapper) > .container {
        width: calc(100% - 42px);
        max-width: 100%;
        padding-inline: 0;
        padding-top: 34px;
    }

    main.bg-white.pb-5:has(.complaint-form-wrapper) > .container > .row.g-0 {
        border-radius: 24px !important;
    }

    .complaint-form-wrapper {
        padding: 32px 26px !important;
    }

    .complaint-form-wrapper > h4 {
        font-size: 22px;
    }

    textarea.complaint-input {
        min-height: 145px;
    }
}

@media (max-width: 767.98px) {
    .complaint-form-wrapper {
        padding: 26px 20px !important;
    }

    .complaint-form-wrapper > h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        font-size: 21px;
    }

    .complaint-form-wrapper > h4::before {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 15px;
        font-size: 16px;
    }

    .complaint-input {
        min-height: 48px;
        border-radius: 14px !important;
    }

    textarea.complaint-input {
        min-height: 135px;
    }

    .btn-submit-complaint {
        min-height: 50px;
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    main.bg-white.pb-5:has(.complaint-form-wrapper) > .container {
        width: calc(100% - 24px);
        padding-top: 26px;
    }

    main.bg-white.pb-5:has(.complaint-form-wrapper) > .container > .row.g-0 {
        border-radius: 20px !important;
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07) !important;
    }

    .complaint-form-wrapper {
        padding: 22px 16px !important;
    }

    .complaint-form-wrapper > h4 {
        margin-bottom: 20px !important;
        font-size: 19px;
    }

    .complaint-form-wrapper .row.g-3 {
        --bs-gutter-y: 14px;
    }

    .complaint-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .complaint-input {
        min-height: 46px;
        padding: 10px 13px;
        font-size: 13px;
    }

    textarea.complaint-input {
        min-height: 128px;
    }

    .btn-submit-complaint {
        min-height: 48px;
        margin-top: 4px;
        font-size: 14px;
    }
}
/* =========================================================
   Gallery Components - صور ومرئيات
   Style 1 / Style 2 / Style 3
   بدون تغيير HTML أو أسماء الكلاسات
========================================================= */
.gallery-split-section {
    padding: clamp(42px, 6vw, 72px) 0 !important;
    overflow: hidden;
}

/* خلفية عامة للمعرض */
.gallery-mosaic-section,
.gallery-split-section,
.gallery-3d-section {
    position: relative;
    padding: clamp(42px, 6vw, 76px) 0;
    overflow: hidden;
    background: inherit;
}

.gallery-mosaic-section::before,
.gallery-split-section::before,
.gallery-3d-section::before {
    content: "";
    position: absolute;
    inset: auto auto -120px -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--site-secondary, var(--secondary-color)) 5%, transparent);
    pointer-events: none;
}

.gallery-mosaic-section .container,
.gallery-split-section .container,
.gallery-3d-section .container {
    position: relative;
    z-index: 2;
}

/* العناوين */
.gallery-mosaic-section .section-title,
.gallery-3d-section .section-title,
.gallery-split-section h2 {
    position: relative;
    display: inline-block;
    color: var(--site-primary, var(--primary-color)) !important;
    font-weight: 900 !important;
    /* font-family: 'El Messiri', sans-serif; */
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 10px !important;
}

.gallery-split-section h2::after,
.gallery-mosaic-section .section-title::after,
.gallery-3d-section .section-title::after {
    content: "";
    display: block;
    width: 92px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: var(--site-secondary, var(--secondary-color));
}

.gallery-mosaic-section .text-muted,
.gallery-split-section p,
.gallery-3d-section p {
    color: #667085 !important;
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================================
   Gallery Style 2 - Split Grid
========================================================= */

.gallery-split-section .row.g-3 {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
}

.gallery-small-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    height: 100%;
}

.gallery-small-grid .gallery-card-modern {
    height: 205px;
}

.gallery-card-modern {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #eef2f6;
    border: 1px solid rgba(15, 23, 42, .07);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.gallery-card-modern.featured {
    min-height: 430px;
    border-bottom: 4px solid var(--site-secondary, var(--secondary-color));
}

.gallery-card-modern:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--site-primary, var(--primary-color)) 18%, #ffffff);
    box-shadow: 0 13px 28px rgba(15, 23, 42, .08);
}

.gallery-img-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.gallery-card-modern:hover .gallery-img-modern {
    transform: scale(1.045);
}

.gallery-modern-overlay {
    position: absolute;
    inset: 0;
    padding: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, .00) 0%,
            rgba(0, 0, 0, .18) 48%,
            rgba(0, 0, 0, .66) 100%);
}

.gallery-card-modern:hover .gallery-modern-overlay {
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, .02) 0%,
            rgba(0, 0, 0, .24) 46%,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 42%, rgba(0, 0, 0, .58)) 100%);
}

.gallery-name-modern {
    color: #fff;
    font-weight: 900;
    line-height: 1.45;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .42);
    max-width: 94%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-modern.featured .gallery-name-modern {
    font-size: 15px;
}

.zoom-icon-box {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform: scale(.92);
    opacity: .95;
    transition: all .22s ease;
}

.gallery-card-modern:hover .zoom-icon-box {
    background: var(--site-gradient, var(--site-primary, var(--primary-color)));
    border-color: transparent;
    transform: scale(1.04);
}

/* زر عرض جميع الألبومات */
.btn-gallery-light,
.btn-gallery-more {
    min-width: 190px;
    height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1.5px solid var(--site-primary, var(--primary-color));
    background: rgba(255, 255, 255, .88);
    color: var(--site-primary, var(--primary-color));
    font-size: 14px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
    transition: all .22s ease;
    margin-top: 20px;
}

.btn-gallery-light:hover,
.btn-gallery-more:hover {
    background: var(--site-gradient, var(--site-primary, var(--primary-color)));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--site-primary, var(--primary-color)) 18%, transparent);
}

/* =========================================================
   Gallery Style 1 - Mosaic
========================================================= */

.gallery-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 230px;
    gap: 18px;
}

.gallery-mosaic-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #eef2f6;
    border: 1px solid rgba(15, 23, 42, .07);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
    transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-mosaic-item.large-item {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-mosaic-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .085);
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.gallery-mosaic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.gallery-mosaic-item:hover .gallery-mosaic-img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, .02) 0%,
            rgba(0, 0, 0, .22) 48%,
            rgba(0, 0, 0, .78) 100%);
}

.gallery-mosaic-item:hover .gallery-overlay {
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, .04) 0%,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 48%, rgba(0, 0, 0, .48)) 100%);
}

.gallery-icon-float {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform: scale(.92);
    opacity: .95;
    transition: all .22s ease;
}

.gallery-mosaic-item:hover .gallery-icon-float {
    background: var(--site-gradient, var(--site-primary, var(--primary-color)));
    border-color: transparent;
    transform: scale(1);
}

.gallery-title {
    color: #fff;
    /* font-family: 'El Messiri', sans-serif; */
    font-size: 16px;
    font-weight: 900;
    line-height: 1.45;
    margin: 0;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .35);
    max-width: 92%;
}

/* =========================================================
   Gallery Style 3 - 3D Coverflow
========================================================= */

.gallery-3d-swiper {
    width: 100%;
    padding-top: 12px;
    padding-bottom: 54px;
}

.gallery-3d-swiper .swiper-slide {
    width: 300px;
    height: 400px;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .07);
    border-bottom: 4px solid var(--site-secondary, var(--secondary-color));
    box-shadow: 0 12px 34px rgba(15, 23, 42, .09);
}

.gallery-card-3d {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.gallery-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.gallery-card-3d:hover .gallery-img-bg {
    transform: scale(1.06);
}

.gallery-info-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 20px 16px;
    text-align: center;
    background:
        linear-gradient(180deg,
            transparent 0%,
            rgba(0, 0, 0, .80) 100%);
    color: #fff;
}

.gallery-title-3d {
    color: #fff;
    /* font-family: 'El Messiri', sans-serif; */
    font-size: 17px;
    font-weight: 900;
    line-height: 1.45;
    margin-bottom: 6px;
}

.gallery-info-overlay small {
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    font-weight: 700;
}

/* Swiper buttons inside gallery only */
.gallery-3d-section .swiper-button-next,
.gallery-3d-section .swiper-button-prev {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--site-primary, var(--primary-color)) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .10);
}

.gallery-3d-section .swiper-button-next:after,
.gallery-3d-section .swiper-button-prev:after {
    font-size: 17px !important;
    font-weight: 900;
}

.gallery-3d-section .swiper-button-next:hover,
.gallery-3d-section .swiper-button-prev:hover {
    background: var(--site-gradient, var(--site-primary, var(--primary-color)));
    color: #fff !important;
}

.gallery-3d-section .swiper-pagination-bullet {
    background: var(--site-primary, var(--primary-color));
    opacity: .35;
}

.gallery-3d-section .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 999px;
    background: var(--site-secondary, var(--secondary-color)) !important;
    opacity: 1;
}

.gallery-split-section h2::after {
    content: "";
    display: block;
    width: 92px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: var(--site-secondary, var(--secondary-color));
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 991.98px) {

    .gallery-mosaic-section,
    .gallery-split-section,
    .gallery-3d-section {
        padding: 38px 0 46px;
    }

    .gallery-card-modern.featured {
        min-height: 320px;
        margin-top: 0;
    }

    .gallery-card-modern {
        height: 180px;
    }

    .gallery-small-grid .gallery-card-modern {
        height: 180px;
    }

    .gallery-mosaic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 190px;
        gap: 14px;
    }

    .gallery-3d-swiper .swiper-slide {
        width: 260px;
        height: 350px;
    }
}

@media (max-width: 575.98px) {

    .gallery-mosaic-section,
    .gallery-split-section,
    .gallery-3d-section {
        padding: 32px 0 40px;
    }

    .gallery-mosaic-section .text-center.mb-5,
    .gallery-split-section .text-center.mb-5,
    .gallery-3d-section .text-center.mb-4 {
        margin-bottom: 22px !important;
    }

    .gallery-mosaic-section .section-title,
    .gallery-3d-section .section-title,
    .gallery-split-section h2 {
        font-size: 22px;
    }

    .gallery-mosaic-section .section-title::after,
    .gallery-3d-section .section-title::after,
    .gallery-split-section h2::after {
        width: 70px;
        margin-top: 9px;
    }

    .gallery-mosaic-section .text-muted,
    .gallery-split-section p {
        font-size: 12.5px;
    }

    .gallery-small-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gallery-card-modern {
        height: 132px;
        border-radius: 16px;
        box-shadow: 0 5px 13px rgba(15, 23, 42, .035);
    }

    .gallery-card-modern.featured {
        min-height: 220px;
        border-radius: 18px;
        margin-top: 10px;
    }

    .gallery-modern-overlay {
        padding: 12px;
    }

    .gallery-name-modern {
        font-size: 12px;
        line-height: 1.4;
    }

    .gallery-card-modern.featured .gallery-name-modern {
        font-size: 14px !important;
    }

    .zoom-icon-box,
    .gallery-icon-float {
        position: absolute;
        top: 16px;
        left: 16px;
        width: 40px;
        height: 40px;
        border-radius: 14px;
        background: rgba(255, 255, 255, .20);
        border: 1px solid rgba(255, 255, 255, .30);
        backdrop-filter: blur(6px);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .10);
        transition: all .22s ease;
    }

    .gallery-mosaic-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 210px;
        gap: 12px;
    }

    .gallery-mosaic-item.large-item {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-title {
        font-size: 13px;
    }

    .btn-gallery-light,
    .btn-gallery-more {
        min-width: 158px;
        height: 40px;
        padding: 0 18px;
        font-size: 12.5px;
    }

    .gallery-3d-swiper {
        padding-bottom: 46px;
    }

    .gallery-3d-swiper .swiper-slide {
        width: 230px;
        height: 310px;
        border-radius: 18px;
    }

    .gallery-title-3d {
        font-size: 14px;
    }

    .gallery-info-overlay small {
        font-size: 10.5px;
    }
}


/* =========================================================
   Gallery Mobile Slider
   يظهر في التابلت والجوال فقط
========================================================= */

.gallery-mobile-slider {
    display: none;
}

@media (max-width: 991.98px) {
    .gallery-desktop-view {
        display: none !important;
    }

    .gallery-mobile-slider {
        display: block;
        width: 100%;
        overflow: hidden;
        margin-top: 6px;
    }

    .gallery-mobile-track {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 2px 14px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-mobile-track::-webkit-scrollbar {
        display: none;
    }

    .gallery-mobile-card {
        position: relative;
        flex: 0 0 72%;
        height: 260px;
        border-radius: 20px;
        overflow: hidden;
        background: #eef2f6;
        border: 1px solid rgba(15, 23, 42, .07);
        box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
        text-decoration: none;
        scroll-snap-align: center;
    }

    .gallery-mobile-card img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .gallery-mobile-overlay {
        position: absolute;
        inset: 0;
        padding: 16px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        text-align: center;
        background: linear-gradient(180deg,
                rgba(0, 0, 0, .02) 0%,
                rgba(0, 0, 0, .20) 45%,
                rgba(0, 0, 0, .70) 100%);
    }

    .gallery-mobile-icon {
        position: absolute;
        top: 14px;
        left: 14px;
        width: 38px;
        height: 38px;
        border-radius: 14px;
        background: rgba(255, 255, 255, .20);
        border: 1px solid rgba(255, 255, 255, .30);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(6px);
    }

    .gallery-mobile-overlay h3 {
        margin: 0;
        max-width: 92%;
        color: #fff;
        font-size: 15px;
        font-weight: 900;
        line-height: 1.5;
        text-shadow: 0 3px 12px rgba(0, 0, 0, .42);

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 575.98px) {
    .gallery-mobile-track {
        gap: 10px;
        padding-bottom: 12px;
    }

    .gallery-mobile-card {
        flex-basis: 82%;
        height: 220px;
        border-radius: 18px;
        box-shadow: 0 5px 13px rgba(15, 23, 42, .04);
    }

    .gallery-mobile-overlay {
        padding: 13px;
    }

    .gallery-mobile-icon {
        width: 32px;
        height: 32px;
        top: 10px;
        left: 10px;
        border-radius: 11px;
        font-size: 12px;
    }

    .gallery-mobile-overlay h3 {
        font-size: 13px;
        line-height: 1.45;
    }
}

/* =========================================================
   Gallery Mobile Slider - Professional Version
   للتابلت والجوال فقط
========================================================= */

.gallery-mobile-slider {
    display: none;
}

@media (max-width: 991.98px) {
    .gallery-desktop-view {
        display: none !important;
    }

    .gallery-mobile-slider {
        display: block;
        position: relative;
        width: 100%;
        margin-top: 4px;
        overflow: hidden;
    }

    .gallery-mobile-track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 6px 4px 16px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-mobile-track::-webkit-scrollbar {
        display: none;
    }

    .gallery-mobile-card {
        position: relative;
        flex: 0 0 min(74%, 360px);
        height: 270px;
        border-radius: 24px;
        overflow: hidden;
        background: #eef2f6;
        border: 1px solid rgba(15, 23, 42, .08);
        box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
        text-decoration: none;
        scroll-snap-align: center;
        isolation: isolate;
        transition: transform .25s ease, box-shadow .25s ease;
    }

    .gallery-mobile-card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        background:
            linear-gradient(180deg,
                rgba(0, 0, 0, .00) 0%,
                rgba(0, 0, 0, .10) 36%,
                rgba(0, 0, 0, .72) 100%);
        pointer-events: none;
    }

    .gallery-mobile-card::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 3;
        border-radius: inherit;
        border: 1px solid rgba(255, 255, 255, .18);
        pointer-events: none;
    }

    .gallery-mobile-card img {
        position: absolute;
        inset: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .55s ease;
    }

    .gallery-mobile-card:active {
        transform: scale(.985);
    }

    .gallery-mobile-card:hover img {
        transform: scale(1.04);
    }

    .gallery-mobile-overlay {
        position: absolute;
        inset: 0;
        z-index: 4;
        padding: 18px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        text-align: right;
    }

    .gallery-mobile-icon {
        position: absolute;
        top: 16px;
        left: 16px;
        width: 42px;
        height: 42px;
        border-radius: 15px;
        background: rgba(255, 255, 255, .20);
        border: 1px solid rgba(255, 255, 255, .32);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
    }

    .gallery-mobile-overlay h3 {
        position: relative;
        margin: 0;
        width: 100%;
        color: #fff;
        /* font-family: 'El Messiri', sans-serif; */
        font-size: 17px;
        font-weight: 900;
        line-height: 1.55;
        text-shadow: 0 4px 16px rgba(0, 0, 0, .45);

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .gallery-mobile-overlay h3::before {
        content: "";
        display: block;
        width: 42px;
        height: 3px;
        margin-bottom: 10px;
        border-radius: 999px;
        background: var(--site-secondary, var(--secondary-color));
    }

    /* Dots */
    .gallery-mobile-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin-top: 2px;
    }

    .gallery-mobile-dot {
        width: 7px;
        height: 7px;
        border: 0;
        padding: 0;
        border-radius: 999px;
        background: color-mix(in srgb, var(--site-primary, var(--primary-color)) 22%, #ffffff);
        cursor: pointer;
        transition: all .25s ease;
    }

    .gallery-mobile-dot.active {
        width: 26px;
        background: var(--site-gradient, var(--site-primary, var(--primary-color)));
        box-shadow: 0 7px 16px color-mix(in srgb, var(--site-primary, var(--primary-color)) 22%, transparent);
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .gallery-mobile-slider {
        margin-top: 0;
    }

    .gallery-mobile-track {
        gap: 12px;
        padding: 4px 2px 14px;
    }

    .gallery-mobile-card {
        flex-basis: 84%;
        height: 230px;
        border-radius: 20px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, .065);
    }

    .gallery-mobile-overlay {
        padding: 15px;
    }

    .gallery-mobile-icon {
        width: 34px;
        height: 34px;
        top: 12px;
        left: 12px;
        border-radius: 12px;
        font-size: 12px;
    }

    .gallery-mobile-overlay h3 {
        font-size: 14px;
        line-height: 1.5;
    }

    .gallery-mobile-overlay h3::before {
        width: 34px;
        height: 2.5px;
        margin-bottom: 8px;
    }

    .gallery-mobile-dot {
        width: 6px;
        height: 6px;
    }

    .gallery-mobile-dot.active {
        width: 22px;
    }
}

/* الشاشات الصغيرة جدًا */
@media (max-width: 360px) {
    .gallery-mobile-card {
        flex-basis: 88%;
        height: 210px;
    }

    .gallery-mobile-overlay h3 {
        font-size: 13px;
    }
}

/* =========================================================
   Video Style 2 - Refinement
   تحسين المكتبة المرئية بدون تغيير HTML
========================================================= */

.video-section-style2 {
    padding: clamp(46px, 6vw, 76px) 0 !important;
    background-color: var(--primary-color);
    /* الخلفية تأخذ لون الهوية البترولي */
    position: relative;
    overflow: hidden;
}

/* زخرفة خلفية خفيفة */
.video-section-style2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cube-coat.png');
    opacity: 0.05;
    pointer-events: none;
}

/* تنسيق الهيدر */
.video-style2-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 24px !important;
    padding-bottom: 18px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-style2-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
}

.video-section-style2 .text-muted,
.video-section-style2 p {
    color: rgba(255, 255, 255, .75) !important;
}

.btn-view-all-video {
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .86);
    font-weight: 800;
}

.btn-view-all-video:hover {
    color: #fff;
    transform: translateX(-5px);
}

/* كرت الفيديو السينمائي */
.video-card-cine {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    height: 280px;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .12);
}

.video-cine-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.video-card-cine:hover .video-cine-img {
    transform: scale(1.1);
}

/* طبقة التدرج فوق الصورة */
.video-cine-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .72) 0%,
            rgba(0, 0, 0, .32) 48%,
            rgba(0, 0, 0, .04) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: all 0.3s;
}

.video-card-cine:hover .video-cine-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, .82) 0%,
            rgba(0, 0, 0, .38) 55%,
            rgba(0, 0, 0, .06) 100%);
}

/* الجوال */
@media (max-width: 575.98px) {
    .video-section-style2 {
        padding: 34px 0 40px !important;
    }

    .video-style2-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        margin-bottom: 18px !important;
    }

    .video-style2-title {
        font-size: 23px;
    }

    .video-style2-nav {
        justify-content: center;
    }

    .video-card-cine {
        height: 230px;
        border-radius: 18px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
    }

    .video-cine-overlay {
        padding: 16px;
    }

    .video-cine-title {
        font-size: 14px;
        line-height: 1.5;
    }

    .video-cine-date {
        font-size: 11px;
    }

    .cine-play-btn {
        width: 48px;
        height: 48px;
    }

    .cine-play-btn i {
        font-size: 18px;
    }
}

/* زر التشغيل النابض */
.cine-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: 0.3s;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    animation: pulse-white 2s infinite;
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .45);
}

.cine-play-btn i {
    color: #fff;
    font-size: 24px;
    margin-left: 4px;
}

/* عند التحويم يصبح الزر ذهبي */
.video-card-cine:hover .cine-play-btn {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    animation: none;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.6);
}

@keyframes pulse-white {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* النصوص */
.video-cine-date {
    font-size: 12px;
    color: rgba(255, 255, 255, .82);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.video-cine-title {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.55;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* أزرار التنقل */
.video-style2-nav {
    display: flex;
    gap: 10px;
}

.video-nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-nav-arrow:hover {
    background: var(--secondary-color);
    /* ذهبي */
    color: #fff;
    border-color: var(--secondary-color);
}


/* --- Video Style 3 (Modern Classic - الكلاسيكي الحديث) --- */

.video-style3-section {
    padding: 80px 0;
    background-color: #f4f6f8;
}

/* تصميم الكارت */
.video-card-classic {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
    border-bottom: 3px solid transparent;
}

.video-card-classic:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--secondary-color);
    /* خط سفلي ذهبي */
}

/* حاوية الصورة */
.video-classic-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.video-classic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.video-card-classic:hover .video-classic-img {
    transform: scale(1.1);
}

/* طبقة أيقونة التشغيل */
.video-classic-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.video-card-classic:hover .video-classic-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-icon-pulse {
    width: 55px;
    height: 55px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: none;
    transition: transform 0.3s;
}

.play-icon-pulse i {
    margin-left: 3px;
}

/* عند التحويم، الزر يصبح ذهبي */
.video-card-classic:hover .play-icon-pulse {
    animation: pulse-gold 1.5s infinite;
    transform: scale(1.1);
    background: var(--secondary-color);
    color: #fff;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(197, 160, 89, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

/* محتوى الكارت */
.video-classic-body {
    padding: 20px;
    text-align: right;
}

.video-classic-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.video-card-classic:hover .video-classic-title {
    color: var(--primary-color);
}

.video-classic-meta {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-classic-meta i {
    color: var(--secondary-color);
}

/* أزرار التنقل */
.video-style3-swiper .swiper-button-next,
.video-style3-swiper .swiper-button-prev {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.video-style3-swiper .swiper-button-next:after,
.video-style3-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.video-style3-swiper .swiper-button-next:hover,
.video-style3-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    /* بترولي عند التحويم */
    color: #fff;
}

/* =========================================================
   Main Page Header - Optimized Compact
   هيدر داخلي عام أخف وأرتب لكل الصفحات
========================================================= */

.main-page-header {
    position: relative;
    background-image: url('../assets/images/gallery-1-5.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 46px 0 38px;
    text-align: center;
    color: #fff;
    margin-bottom: 24px;
    overflow: hidden;
}

.main-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--site-primary, var(--primary-color)) 88%, #000 12%),
            rgba(0, 0, 0, 0.78));
    opacity: 0.88;
    z-index: 1;
}

.main-page-header .container {
    position: relative;
    z-index: 2;
}

.main-page-header .section-title {
    color: #fff !important;
    font-size: clamp(24px, 2.8vw, 38px);
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.main-page-header .section-title::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: var(--site-secondary, var(--secondary-color));
}

.main-page-header p.text-muted,
.main-page-header p.text-white {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 15px;
    max-width: 620px;
    margin: 0 auto 8px;
    line-height: 1.65;
    font-weight: 700;
}

/* Breadcrumb */
.main-page-header .breadcrumb {
    margin-top: 20px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: transparent;
}

.breadcrumb-light .breadcrumb-item,
.breadcrumb-light .breadcrumb-item.active {
    font-size: 14px;
    line-height: 1.5;
}

.breadcrumb-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: 0.3s ease;
}

.breadcrumb-light .breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-light .breadcrumb-item.active {
    color: #fff;
    font-weight: 800;
}

.breadcrumb-light .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
    padding-inline: 7px;
}

/* رقم الحالة أو أي Badge داخل الهيدر */
.main-page-header .badge,
.main-page-header .project-status-badge,
.main-page-header .project-number-badge {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    background: #fff !important;
    color: var(--site-primary, var(--primary-color)) !important;
    border: 1px solid color-mix(in srgb, var(--site-primary, var(--primary-color)) 28%, #ffffff) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

/* =========================================================
   Tablet
========================================================= */

@media (min-width: 576px) and (max-width: 991.98px) {
    .main-page-header {
        padding: 34px 0 28px !important;
        margin-bottom: 20px !important;
        background-attachment: scroll !important;
        background-position: center center !important;
    }

    .main-page-header .section-title {
        font-size: 26px !important;
        margin-bottom: 7px !important;
    }

    .main-page-header .section-title::after {
        width: 56px !important;
        height: 2px !important;
        margin-top: 8px !important;
    }

    .main-page-header p.text-muted,
    .main-page-header p.text-white {
        font-size: 13.5px !important;
        margin-bottom: 6px !important;
    }

    .breadcrumb-light .breadcrumb-item,
    .breadcrumb-light .breadcrumb-item.active {
        font-size: 12.5px !important;
    }

    .main-page-header .badge,
    .main-page-header .project-status-badge,
    .main-page-header .project-number-badge {
        min-height: 28px !important;
        padding: 5px 14px !important;
        font-size: 12px !important;
        margin-top: 8px !important;
    }
}

/* =========================================================
   Mobile Compact
========================================================= */

@media (max-width: 575.98px) {
    .main-page-header {
        padding: 22px 0 18px !important;
        margin-bottom: 14px !important;
        min-height: auto !important;
        background-attachment: scroll !important;
        background-position: center center !important;
    }

    .main-page-header .section-title {
        font-size: 19px !important;
        line-height: 1.35 !important;
        margin-bottom: 5px !important;
    }

    .main-page-header .section-title::after {
        width: 42px !important;
        height: 2px !important;
        margin: 6px auto 0 !important;
    }

    .main-page-header p.text-muted,
    .main-page-header p.text-white {
        font-size: 11.5px !important;
        line-height: 1.5 !important;
        margin-bottom: 5px !important;
    }

    .main-page-header .breadcrumb {
        margin-bottom: 0 !important;
        gap: 2px !important;
    }

    .breadcrumb-light .breadcrumb-item,
    .breadcrumb-light .breadcrumb-item.active {
        font-size: 10.5px !important;
        line-height: 1.4 !important;
    }

    .breadcrumb-light .breadcrumb-item+.breadcrumb-item::before {
        padding-inline: 4px !important;
    }

    .main-page-header .badge,
    .main-page-header .project-status-badge,
    .main-page-header .project-number-badge {
        min-height: 24px !important;
        padding: 4px 10px !important;
        font-size: 10.5px !important;
        margin-top: 6px !important;
        border-radius: 999px !important;
    }
}

/* =========================================================
   Slider Header
   يطبق فقط إذا كان الهيدر يحتوي كلاس slider-header
   مثل صفحة مشاريعنا
========================================================= */

.main-page-header.slider-header {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 20px !important;
    height: auto !important;
    min-height: 180px !important;
    overflow: hidden !important;
    background-image: none !important;
    background-color: #fff !important;
    text-align: right !important;
}

/* إلغاء طبقة الهيدر العادي فقط في حالة السلايدر */
.main-page-header.slider-header::before,
.main-page-header.slider-header::after {
    display: none !important;
    content: none !important;
}

/* السلايدر */
.main-page-header.slider-header .headerSwiper {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    aspect-ratio: 16 / 3.4 !important;
    height: auto !important;
    max-height: 300px !important;
    min-height: 180px !important;
    overflow: hidden !important;
    z-index: 1 !important;
    background: #fff !important;
}

.main-page-header.slider-header .headerSwiper .swiper-wrapper,
.main-page-header.slider-header .headerSwiper .swiper-slide,
.main-page-header.slider-header .slider-item {
    width: 100% !important;
    height: 100% !important;
}

.main-page-header.slider-header .swiper-slide {
    background-size: cover;
    background-position: center;
}

.main-page-header.slider-header .slider-item {
    position: relative !important;
    overflow: hidden !important;
    background: #fff !important;
}

/* لو البنر عليه رابط */
.main-page-header.slider-header .slider-item>a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* صورة البنر */
.main-page-header.slider-header .slider-image {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform 7s ease !important;
}

.main-page-header.slider-header .headerSwiper .swiper-slide-active .slider-image {
    transform: scale(1.03);
}

/* الكابشن الموجود داخل السلايدر */
.main-page-header.slider-header .slider-caption {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    width: 100% !important;
    height: 100% !important;

    padding-inline: clamp(18px, 5vw, 60px) !important;
    padding-block: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;

    text-align: right !important;
    color: #fff !important;

    background: linear-gradient(90deg,
            rgba(0, 0, 0, .48) 0%,
            rgba(0, 0, 0, .24) 48%,
            rgba(0, 0, 0, .06) 100%) !important;
}

.main-page-header.slider-header .slider-title,
.main-page-header.slider-header .slider-desc {
    width: min(100%, 460px) !important;
    max-width: 460px !important;
    margin-left: auto !important;
    text-align: right !important;
}

.main-page-header.slider-header .slider-title {
    margin: 0 0 6px !important;
    color: #fff !important;
    /* font-family: 'Tajawal', Arial, sans-serif !important; */
    font-size: clamp(20px, 2vw, 30px) !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    text-shadow:
        0 3px 10px rgba(0, 0, 0, .40),
        0 1px 2px rgba(0, 0, 0, .30) !important;
}

.main-page-header.slider-header .slider-desc {
    margin: 0 !important;
    color: rgba(255, 255, 255, .94) !important;
    font-size: clamp(12px, .9vw, 15px) !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35) !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* الهيدر القديم فوق السلايدر */
.main-page-header.slider-header>.header-overlay {
    display: none !important;
}

/* نقاط السلايدر إذا موجودة */
.main-page-header.slider-header .swiper-pagination {
    bottom: 8px !important;
    z-index: 6 !important;
}

.main-page-header.slider-header .swiper-pagination-bullet {
    width: 7px !important;
    height: 7px !important;
    background: #fff !important;
    opacity: .55 !important;
    transition: .25s ease !important;
}

.main-page-header.slider-header .swiper-pagination-bullet-active {
    width: 22px !important;
    border-radius: 999px !important;
    opacity: 1 !important;
    background: var(--site-primary, var(--primary-color)) !important;
}

/* =========================================================
   Large Screens / Zoom Out Fix
========================================================= */

@media (min-width: 1600px) {
    .main-page-header.slider-header {
        width: min(1180px, calc(100% - 96px)) !important;
        max-width: 1180px !important;
        margin-inline: auto !important;
        border-radius: 0 0 22px 22px !important;
    }

    .main-page-header.slider-header .headerSwiper {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================================
   Tablet
========================================================= */

@media (min-width: 768px) and (max-width: 1199.98px) {
    .main-page-header {
        padding: 64px 0;
        margin-bottom: 32px;
    }

    .main-page-header .section-title {
        font-size: 28px;
    }

    .main-page-header p.text-muted,
    .main-page-header p.text-white {
        font-size: 16px;
    }

    .main-page-header.slider-header {
        padding: 0 !important;
        margin-bottom: 18px !important;
        min-height: 150px !important;
    }

    .main-page-header.slider-header .headerSwiper {
        aspect-ratio: 16 / 3.7 !important;
        max-height: 240px !important;
        min-height: 150px !important;
    }

    .main-page-header.slider-header .slider-caption {
        padding-inline: 24px !important;
        background: linear-gradient(90deg,
                rgba(0, 0, 0, .45) 0%,
                rgba(0, 0, 0, .22) 52%,
                rgba(0, 0, 0, .06) 100%) !important;
    }

    .main-page-header.slider-header .slider-title,
    .main-page-header.slider-header .slider-desc {
        max-width: 420px !important;
    }

    .main-page-header.slider-header .slider-title {
        font-size: clamp(18px, 2.5vw, 24px) !important;
        margin-bottom: 5px !important;
    }

    .main-page-header.slider-header .slider-desc {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767.98px) {
    .main-page-header {
        padding: 48px 12px;
        margin-bottom: 26px;
        background-attachment: scroll;
    }

    .main-page-header .section-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .main-page-header p.text-muted,
    .main-page-header p.text-white {
        font-size: 14px;
        line-height: 1.6;
    }

    .main-page-header.slider-header {
        padding: 0 !important;
        margin-bottom: 16px !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .main-page-header.slider-header .headerSwiper {
        aspect-ratio: 16 / 4.4 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 180px !important;
    }

    .main-page-header.slider-header .slider-image {
        object-fit: contain !important;
        object-position: center center !important;
        background: #fff !important;
    }

    .main-page-header.slider-header .slider-caption {
        align-items: center !important;
        justify-content: center !important;
        padding-inline: 10px !important;
        background: linear-gradient(90deg,
                rgba(0, 0, 0, .22) 0%,
                rgba(0, 0, 0, .18) 50%,
                rgba(0, 0, 0, .14) 100%) !important;
    }

    .main-page-header.slider-header .slider-title,
    .main-page-header.slider-header .slider-desc {
        width: min(82%, 240px) !important;
        max-width: 240px !important;
        margin-left: auto !important;
        text-align: right !important;
    }

    .main-page-header.slider-header .slider-title {
        font-size: 15px !important;
        line-height: 1.3 !important;
        margin-bottom: 3px !important;
    }

    .main-page-header.slider-header .slider-desc {
        font-size: 10px !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 1 !important;
    }

    .main-page-header.slider-header .swiper-pagination {
        bottom: 5px !important;
    }

    .main-page-header.slider-header .swiper-pagination-bullet {
        width: 6px !important;
        height: 6px !important;
    }

    .main-page-header.slider-header .swiper-pagination-bullet-active {
        width: 17px !important;
    }
}

/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 390px) {
    .main-page-header .section-title {
        font-size: 21px;
    }

    .main-page-header p.text-muted,
    .main-page-header p.text-white {
        font-size: 13px;
    }

    .main-page-header.slider-header .slider-title,
    .main-page-header.slider-header .slider-desc {
        width: min(86%, 220px) !important;
        max-width: 220px !important;
    }

    .main-page-header.slider-header .slider-title {
        font-size: 13.5px !important;
    }

    .main-page-header.slider-header .slider-desc {
        font-size: 9.5px !important;
    }
}

/* --- Login Page Styles (صفحة تسجيل الدخول) --- */

.login-page-section {
    min-height: 80vh;
    /* تأخذ ارتفاع الشاشة */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f6f8;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    /* خلفية باترن خفيف */
    padding: 40px 0;
}

.login-card-luxury {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #fff;
    border-top: 5px solid var(--secondary-color);
    /* خط ذهبي في الأعلى */
    text-align: center;
    transition: transform 0.3s;
}

.login-card-luxury:hover {
    transform: translateY(-5px);
}

/* الشعار أو الأيقونة */
.login-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(15, 169, 104, 0.05);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 30px;
    border: 1px solid var(--secondary-color);
}

.login-title {
    /* font-family: 'El Messiri', sans-serif; */
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

/* حقول الإدخال */
.login-form-group {
    margin-bottom: 20px;
    text-align: right;
}

.login-label {
    font-weight: bold;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.login-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background-color: #fcfcfc;
    transition: all 0.3s;
    text-align: left;
    /* للأرقام */
    direction: ltr;
    /* للأرقام */
}

/* عند التركيز يصبح الإطار ذهبي */
.login-input:focus {
    border-color: var(--secondary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
    outline: none;
}

/* زر الدخول */
.btn-login-luxury {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    background: var(--secondary-color);
    /* ذهبي */
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    border: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.btn-login-luxury:hover {
    background: var(--primary-color);
    /* يتحول للبترولي */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #fff;
}

/* روابط التسجيل */
.login-footer-links {
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

.login-footer-links a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}

.login-footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* رسائل الخطأ */
.alert-custom {
    border-radius: 10px;
    font-size: 14px;
    text-align: right;
    margin-bottom: 20px;
}



/* =========================================
   SEASONAL THEMES (الثيمات الموسمية)
   ========================================= */

.theme-decoration {
    position: absolute;
    z-index: 9999;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.theme-decoration.top-right {
    top: 0;
    right: 30%;
    width: 150px;
    height: 150px;
}

.theme-decoration.top-left {
    top: 0;
    left: 40%;
    width: 170px;
    height: 170px;
}

.theme-decoration.bottom-right {
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
}

.theme-decoration.bottom-left {
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
}


/* 
body.theme-ramadan {
    --primary-color: #0c4234;  
    --secondary-color: #d4af37;
    --text-color: #333;
} */

body.theme-ramadan .theme-decoration {
    opacity: 1;
}

body.theme-ramadan .theme-decoration.top-right {
    background-image: url('../assets/images/themes/—Pngtree—3d\ realistic\ ramadan\ lantern\ illustration_14555883.png');
    animation: swing 3s infinite ease-in-out alternate;
}

body.theme-ramadan .theme-decoration.top-left {
    background-image: url('../assets/images/themes/—Pngtree—ornate\ gold\ crescent\ moon\ with_20762894.png');
    animation: swing 4s infinite ease-in-out alternate-reverse;
}

body.theme-ramadan .theme-decoration.bottom-right {
    background-image: url('../assets/images/themes/vecteezy_vintage-golden-corner-cartoon-corner-graphic-elements_67595389.png');
}


/* 
body.theme-eid_fitr {
    --primary-color: #8e44ad; 
    --secondary-color: #f1c40f; 
} */

body.theme-eid_fitr .theme-decoration {
    opacity: 1;
}

body.theme-eid_fitr .theme-decoration.top-right {
    background-image: url('../assets/images/themes/—Pngtree—eid\ al\ fitr\ arabic\ text_6279791.png');
}

body.theme-eid_fitr .theme-decoration.top-left {
    background-image: url('../assets/images/themes/8846114.png');
}



/* body.theme-eid_adha {
    --primary-color: #27ae60; 
    --secondary-color: #e67e22;
} */

body.theme-eid_adha .theme-decoration {
    opacity: 1;
}

/* body.theme-eid_adha .theme-decoration.top-right {
    background-image: url('../assets/images/themes/vecteezy_kabbah-building-illustration_24216184.png'); 
    opacity: 0.8;
} */
body.theme-eid_adha .theme-decoration.top-left {
    background-image: url('../assets/images/themes/vecteezy_eid-al-adha-mubarak-sticker-happy-eid-al-adha_8483425.png');
}

/* body.theme-national {
    --primary-color: #1b5e20;
    --secondary-color: #fff;  
    --text-color: #333;
} */

body.theme-national .theme-decoration {
    opacity: 1;
}


/* @media (max-width: 768px) {
    .theme-decoration.top-right, .theme-decoration.top-left{
        width: 80px;
        height: 150px;
    }
} */

@keyframes swing {
    0% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(-5deg);
    }
}

/* حركة الطفو (للبالونات في العيد) */
@keyframes floatUp {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* حركة التوهج (لفوانيس رمضان) */
@keyframes glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }

    100% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
}

/* تطبيق الحركات */
body.theme-eid_fitr .theme-decoration.top-right,
body.theme-eid_fitr .theme-decoration.top-left {
    animation: floatUp 4s infinite ease-in-out;
    /* البالونات تتحرك للأعلى والأسفل */
}

body.theme-ramadan .theme-decoration.top-right,
body.theme-ramadan .theme-decoration.top-left {
    /* دمج حركة الأرجحة مع التوهج */
    animation: swing 3s infinite ease-in-out alternate, glow 2s infinite alternate;
}

/* إخفاء الشريط افتراضياً */
.seasonal-greeting-bar {
    display: none;
    text-align: center;
    padding: 8px;
    color: #fff;
    /* font-family: 'El Messiri', sans-serif; */
    font-weight: bold;
    font-size: 16px;
    position: relative;
    z-index: 10000;
}

/* إظهار الشريط في رمضان */
body.theme-ramadan .seasonal-greeting-bar {
    display: block;
    background-color: var(--primary-color);
    /* خلفية خضراء داكنة */
    border-bottom: 2px solid var(--secondary-color);
    /* خط ذهبي */
}

body.theme-ramadan .seasonal-greeting-bar .greeting-text::before {
    content: "🌙 مبارك عليكم الشهر .. وتقبل الله طاعاتكم 🌙";
}

/* إظهار الشريط في العيد */
body.theme-eid_fitr .seasonal-greeting-bar {
    display: block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

body.theme-eid_fitr .seasonal-greeting-bar .greeting-text::before {
    content: "عيدكم مبارك .. وكل عام وأنتم بخير";
}


/* ============================================================
   SEASONAL FRAMES (إطارات المناسبات كخلفية علوية)
   ============================================================ */
.hero-section,
.partners-section,
.stats-section,
.projects-section,
.video-section {
    position: relative !important;
}

.hero-section .container,
.stats-section .container,
.projects-section .container,
.partners-section .container,
.video-section .container {
    position: relative;
    z-index: 10;
}

.hero-section::after,
.partners-section::after,
.stats-section::after,
.projects-section::after,
.video-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 5;
    pointer-events: none;

    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ---------------------------------------------------------
   تفعيل الإطارات حسب الثيم المختار
   --------------------------------------------------------- */

/* --- ثيم رمضان 🌙 --- */
body.theme-ramadan .hero-section::after,
body.theme-ramadan .stats-section::after,
body.theme-ramadan .projects-section::after {
    background-image: url('../assets/images/themes/10337577.png');
    opacity: 1;
}

/* body.theme-ramadan .stats-section::after{
    background-image: url('../assets/images/themes/9935626.png');
    opacity: 1; 
} */

body.theme-ramadan .partners-section::after {
    background-image: url('../assets/images/themes/ramadan2.jpeg');
    opacity: 1;
}

body.theme-ramadan .video-section::after {
    background-image: url('../assets/images/themes/11768766.png');
    opacity: 1;
}

/* body.theme-eid_fitr .hero-section::after, */

body.theme-eid_fitr .stats-section::after {

    background-image: url('../assets/images/themes/eid1.jpeg');
    opacity: 1;
}

body.theme-eid_fitr .partners-section::after,
body.theme-eid_fitr .projects-section::after {
    background-image: url('../assets/images/themes/eid3.jpeg');
    opacity: 1;
}

body.theme-eid_fitr .video-section::after {
    background-image: url('../assets/images/themes/10659133.png');
    opacity: 1;
}

/* body.theme-eid_adha .hero-section::after, */
body.theme-eid_adha .partners-section::after,
body.theme-eid_adha .stats-section::after,
body.theme-eid_adha .projects-section::after {
    background-image: url('../assets/images/themes/9935626.png');
    opacity: 1;
}

body.theme-eid_adha .video-section::after {
    background-image: url('../assets/images/themes/adha1.jpg');
    opacity: 1;
}

/* body.theme-national .hero-section::after, */
body.theme-national .projects-section::after {
    background-image: url('../assets/images/themes/saudia1.png');
    opacity: 1;
}

body.theme-national .video-section::after {
    background-image: url('../assets/images/themes/saudia3.jpg');
    opacity: 1;
}

body.theme-national .partners-section::after {
    background-image: url('../assets/images/themes/saudia2.png');
    opacity: 1;
}

@media (max-width: 768px) {

    .hero-section::after,
    .partners-section::after,
    .stats-section::after,
    .projects-section::after,
    .video-section::after {
        background-size: contain;
        background-size: 100% 100% !important;

        /* display: none; */
    }
}

/* =========================================================
   Media Images Final Fix
   المركز الإعلامي + صور الوقف + المكتبة المرئية
   المقاس المعتمد للرفع: 800x500 بنسبة 16:10
   بدون تغيير HTML أو أسماء الكلاسات
========================================================= */

/* =========================================================
   1) News Style 2 - المركز الإعلامي
   مهم: لا نستخدم aspect-ratio للكرت الكبير
========================================================= */

@media (min-width: 992px) {
    .news-section-style2 .main-news-card {
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
        aspect-ratio: auto !important;
        background: #eef2f6 !important;
    }

    .news-section-style2 .main-news-img {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .news-section-style2 .side-news-item {
        min-height: 112px !important;
        height: 112px !important;
        padding: 13px 14px !important;
        overflow: hidden !important;
    }

    .news-section-style2 .side-news-thumb {
        width: 118px !important;
        height: 84px !important;
        flex: 0 0 118px !important;
        aspect-ratio: auto !important;
        background: #eef2f6 !important;
    }

    .news-section-style2 .side-news-thumb img {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .news-section-style2 .side-news-title {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .news-section-style2 .side-news-content p {
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .news-section-style2 .main-news-card {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
        aspect-ratio: auto !important;
    }

    .news-section-style2 .main-news-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .news-section-style2 .main-news-card {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        aspect-ratio: auto !important;
    }

    .news-section-style2 .side-news-item {
        height: auto !important;
        min-height: 94px !important;
    }

    .news-section-style2 .side-news-thumb {
        width: 86px !important;
        height: 64px !important;
        flex: 0 0 86px !important;
        aspect-ratio: auto !important;
    }
}

/* =========================================================
   2) Gallery - صور ومرئيات من الوقف
   لا نغيّر أحجام الكروت، فقط نضبط الصورة داخلها
========================================================= */

.gallery-mosaic-img,
.gallery-img-modern,
.gallery-img-bg,
.gallery-mobile-card img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* الزوم يكون خفيف فقط */
.gallery-mosaic-item:hover .gallery-mosaic-img,
.gallery-card-modern:hover .gallery-img-modern,
.gallery-card-3d:hover .gallery-img-bg,
.gallery-mobile-card:hover img {
    transform: scale(1.02) !important;
}

/* =========================================================
   3) Video Style 2 - المكتبة المرئية في الصفحة الرئيسية
   نخليها مثل الملف الثاني: كروت صغيرة وواضحة
========================================================= */

@media (min-width: 992px) {
    .video-section-style2 .video-card-cine {
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
        max-height: 190px !important;
        overflow: hidden !important;
        background: #0f172a !important;
    }

    .video-section-style2 .video-cine-img {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .video-section-style2 .video-card-cine:hover .video-cine-img {
        transform: scale(1.02) !important;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .video-section-style2 .video-card-cine {
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
        max-height: 220px !important;
    }

    .video-section-style2 .video-cine-img {
        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .video-section-style2 .video-card-cine {
        height: 210px !important;
        aspect-ratio: auto !important;
        max-height: none !important;
    }

    .video-section-style2 .video-cine-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* =========================================================
   4) Video Listing Pages
   صفحات عرض ألبومات الفيديو
========================================================= */

.video-thumb-wrapper,
.video-thumbnail-wrapper {
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    overflow: hidden !important;
    background: #0f172a !important;
}

.video-thumb-img,
.video-thumbnail-wrapper img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* =========================================================
   Dynamic Theme Images From Admin
   صور الثيمات من لوحة التحكم
========================================================= */

.hero-section,
.projects-section,
.stats-section,
.partners-section,
.video-section {
    position: relative !important;
    overflow: hidden;
}

.hero-section .container,
.projects-section .container,
.stats-section .container,
.partners-section .container,
.video-section .container {
    position: relative;
    z-index: 10;
}

.hero-section::after,
.projects-section::after,
.stats-section::after,
.partners-section::after,
.video-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    opacity: 0;
}

/* السلايدر */
body.theme-ramadan .hero-section::after,
body.theme-eid_fitr .hero-section::after,
body.theme-eid_adha .hero-section::after,
body.theme-national .hero-section::after {
    background-image: var(--theme-hero-image) !important;
    opacity: 1;
}

/* المشاريع */
body.theme-ramadan .projects-section::after,
body.theme-eid_fitr .projects-section::after,
body.theme-eid_adha .projects-section::after,
body.theme-national .projects-section::after {
    background-image: var(--theme-projects-image) !important;
    opacity: 1;
}

/* الإنجازات */
body.theme-ramadan .stats-section::after,
body.theme-eid_fitr .stats-section::after,
body.theme-eid_adha .stats-section::after,
body.theme-national .stats-section::after {
    background-image: var(--theme-stats-image) !important;
    opacity: 1;
}

/* الشركاء */
body.theme-ramadan .partners-section::after,
body.theme-eid_fitr .partners-section::after,
body.theme-eid_adha .partners-section::after,
body.theme-national .partners-section::after {
    background-image: var(--theme-partners-image) !important;
    opacity: 1;
}

/* المكتبة المرئية */
body.theme-ramadan .video-section::after,
body.theme-eid_fitr .video-section::after,
body.theme-eid_adha .video-section::after,
body.theme-national .video-section::after {
    background-image: var(--theme-video-image) !important;
    opacity: 1;
}