

:root {
    --bs-primary: rgb(90, 25, 50);
    --bs-secondary: #D69832;
    --bs-tertiary: #ad427d;
    --bs-primary-rgb: 90, 25, 50;
    --bs-secondary-rgb: 214, 152, 50;
    --bs-tertiary-rgb: 173, 66, 125;
    --bs-body-font-family: "IBM Plex Sans Arabic", sans-serif;
    --fa-style-family: "Font Awesome 6 Free",
}

/******* Table of Content ********/

/*
-Scrollbar
-Navbar
-Hero
-Projects
-Footer
*/


/******* Scrollbar  ********/
* {
  scrollbar-width: thin;             /* auto | thin | none */
  scrollbar-color: var(--bs-secondary) #f1f1f1;  /* thumb | track */
}



html { scroll-behavior: smooth; }
#projects { scroll-margin-top: 95px; }

/******* Navbar ********/
.navbar {
    position: relative;
    background-color: rgba(68, 68, 164, 0.413);
    padding: 0;
    /* height: clamp(100px, 9vw, 160px); ; */
}

.navbars {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    width: 100%;
}

.secondary-navbar,
.main-navbar {
    display: flex;
    justify-content: end;
    align-items: center;
    width: 100%;
    min-height: 35px;
    padding-inline: clamp(5px, 2vw, 40px);
    padding-inline-start: clamp(115px, 15vw, 260px);
}

.secondary-navbar {
    height: 50px;
    background-color: rgb(var(--bs-secondary-rgb));
    gap: clamp(5px, 2vw, 20px);
}

.main-navbar {
    height: clamp(60px, 5.2vw, 100px);
    background-color: #F5F5F5;
}

.navbar-brand {
    position: absolute;
    height: 100%;
    aspect-ratio: 1;
    margin-inline-start: clamp(10px, 4vw, 80px);
    padding: clamp(5px, 2vw, 10px);
    display: flex;
    justify-content: center;
}

.navbar-brand img {
    height: 100%;
    align-self: center;
}

.navbar-login {
    color: #fff;
    text-decoration: none;
    font-family: var(--bs-body-font-family);
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 700;
}

.navbar-login:hover {
    color: var(--bs-primary);
}


.navbar-social-list {
    list-style: none;
    display: flex;
    gap: clamp(5px, .8vw, 15px);
    font-size: 16px;
    margin: 0;
    padding: 0;
    padding-inline: clamp(5px, .8vw, 15px);
    justify-content: center;
    align-items: center;
    border-inline-start: 1px #fff solid;
}

.navbar-social-list li:nth-child(n+4) {
    display: none;
}


.navbar-social-list li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    color: #fff;
    background-color: #EFC072;
    border-radius: 50%;

}

.navbar-social-list li a:hover {
    background-color: var(--bs-primary);
}

.main-navbar .navbar-collapse {
    height: 100%;
    justify-content: center;
    z-index: 9999;
}

.main-navbar .navbar-nav {
    height: 100%;
}

.main-navbar .navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.main-navbar .navbar-nav .nav-item:not(:last-child) {
    margin-inline-end: clamp(5px, .6vw, 15px) !important;
}


.main-navbar .navbar-nav .nav-link {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.main-navbar .navbar-nav .nav-link:hover {
    color: #D69832;
}


.main-navbar .navbar-nav .dropdown .dropdown-menu {
    border-top: #D69832 3px solid;
    border-radius: 0;
    background-color: #F5F5F5;
    margin-block: 0;
    padding-block: 0;
    text-align: start;

}


.main-navbar .navbar-nav .dropdown .dropdown-menu li {
    padding: 0px 10px;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li a {
    display: flex;
    justify-content: start;
    align-items: center;
    border-bottom: 1px solid #E3E3E3;
    font-size: 16px;
    min-height: 50px;
    width: 300px;
    text-wrap: wrap;
    padding-block: 10px;
    gap: 10px;
    text-decoration: none;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li a::before {
    content: '\f053';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-inline-end: 15px;
    font-size: 16px;
}

/* ═══ المستوى الثالث: قائمة منبثقة جانبية (Bootstrap 5 لا يدعم التداخل) ═══ */
.main-navbar .navbar-nav .dropdown .dropdown-menu li.dropdown-submenu {
    position: relative;
}
.main-navbar .navbar-nav .dropdown .dropdown-menu-level3 {
    display: none;
    position: absolute;
    top: 0;
    right: 100%;   /* RTL: تفتح لليسار ملاصقة للحافة */
    left: auto;
    margin: 0;
    min-width: 260px;
    border-top: #D69832 3px solid;
    border-radius: 0;
    background-color: #F5F5F5;
    z-index: 1001;
}
.main-navbar .navbar-nav .dropdown .dropdown-menu li.dropdown-submenu:hover > .dropdown-menu-level3 {
    display: block;
}
/* السهم على عنصر «له قائمة فرعية» يشير للجهة الأخرى */
.main-navbar .navbar-nav .dropdown .dropdown-menu li.dropdown-submenu > a.dropdown-toggle::after {
    content: '\f104';   /* angle-left */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-inline-start: auto;
    font-size: 14px;
}



.main-navbar .navbar-nav .dropdown .dropdown-menu li.dropdown-style-item{
    padding: 0px 10px;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li.dropdown-style-item a {
    display: flex;
    justify-content: start;
    align-items: center;
    border-bottom: 1px solid #E3E3E3;
    color: white;
    font-size: 16px;
    min-height: 50px;
    width: 300px;
    text-wrap: wrap;
    padding-block: 10px;
    text-decoration: none;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li.dropdown-style-item a::before {
    content: '';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-inline-end: 0px;
    font-size: 16px;
}



.main-navbar .navbar-nav .dropdown .dropdown-menu li.dropdown-style-item:hover {
    background-color: unset;
    color: unset;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li.dropdown-style-item:focus {
    background-color: unset;
    color: #ffffff;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li.dropdown-style-item:active {
    background-color: unset;
    color: #ffffff;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li.dropdown-style-item a:hover {
    background-color: unset;
    color: white;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li.dropdown-style-item a:focus {
    background-color: unset;
    color: white;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li.dropdown-style-item a:active {
    background-color: unset;
    color: #ffffff;
}



.main-navbar .navbar-nav .dropdown .dropdown-menu li:is(:last-child) a {
    border-bottom: none;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li:hover {
    background-color: #F3EADD;
    color: #000000;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li:focus {
    background-color: #D69832;
    color: #ffffff;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li:active {
    background-color: #D69832;
    color: #ffffff;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li a:hover {
    background-color: #F3EADD;
    color: #000000;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li a:focus {
    background-color: #D69832;
    color: #ffffff;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu li a:active {
    background-color: #D69832;
    color: #ffffff;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu .dropdown-header {
    color: var(--bs-secondary);
    padding-block: 15px;
    font-size: 16px;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu-custom li:hover {
    background-color: unset;
    color: #000000;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu-custom li:focus {
    background-color: unset;
    color: #ffffff;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu-custom li:active {
    background-color: unset;
    color: #ffffff;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu-custom li a:hover {
    background-color: unset;
    color: #000000;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu-custom li a:focus {
    background-color: unset;
    color: #ffffff;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu-custom li a:active {
    background-color: unset;
    color: #ffffff;
}



.main-navbar .navbar-nav .dropdown .dropdown-menu.dropdown-menu-custom li a::before {
    font-size: 18px;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu.dropdown-menu-custom li.contact {
    background-color: #D69832;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu.dropdown-menu-custom li a {
    color: #ffffff;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu.dropdown-menu-custom li.contact a::before {
    content: '\f053';
}

.main-navbar .navbar-nav .dropdown .dropdown-menu.dropdown-menu-custom li.whatsapp {
    background-color: #429701;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu.dropdown-menu-custom li.whatsapp a::before {
    content: '\f232';
    font-family: "Font Awesome 6 Brands";
}

.main-navbar .navbar-nav .dropdown .dropdown-menu.dropdown-menu-custom li.email {
    background-color: #4285F4;
}

.main-navbar .navbar-nav .dropdown .dropdown-menu.dropdown-menu-custom li.email a::before {
    content: '\f0e0';
}

.main-navbar .navbar-nav .dropdown .dropdown-toggle::after {
    border: none;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    content: "\f053";
    display: inline-block;
    margin-inline-start: .3em;
    vertical-align: middle;
}

.main-navbar .navbar-nav .dropdown .dropdown-toggle.show::after {
    content: "\f078";

}

.navbar-btns {
    display: flex;
    flex-direction: row;
    gap: clamp(15px, .95vw, 20px);
}

.navbar-btns .btn {
    color: #5a1932;
}



.navbar-search {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #5A1932;
    height: 60px;
    display: flex;
    flex-direction: row;
    z-index: 9999;
    overflow: hidden;
    height: 0;
    transition: height 0.2s ease-out;
}

.navbar-search.open {
    height: 60px;
}

.navbar-search-form {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.navbar-search  input[type="search"] {
    display: flex;
    border: none;
    border-radius: 0;
    background-color: transparent;
    color: #ffffff;
    height: 100%;
    font-weight: 600;
}

.navbar-search  input[type="search"]::placeholder {
    color: #ffffff;
}

.navbar-search  input[type="search"]:focus {
    box-shadow: none;
}

.navbar-search  button {
    border: none;
    border-radius: 0;
    background-color: transparent;
    color: #ffffff;
    height: 100%;
    padding-inline: 20px;
}

.navbar-search  button:hover {
    background-color: #D69832;

}


.btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    font-size: clamp(16px, .95vw, 18px);
    font-weight: 600;
}

.btn .btn-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn .btn-icon.bg-rounded-icon {
    color: #ffffff !important;
    background-color: #000000;
    border-radius: 50%;
    width: clamp(20px, 3vw, 30px);
    height: clamp(20px, 3vw, 30px);
}




.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #6f203d;
    --bs-btn-hover-border-color: #5a1932;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #5a1932;
    --bs-btn-active-border-color: #5a1932;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
    color: var(--bs-btn-color) !important;
    padding: 10px 15px;
}

.btn-primary .btn-icon.bg-rounded-icon {
    background-color: #AD427D;
}


.btn-border {
    border: 1px solid #ffffff;
    padding: 5px 10px;
    color: #ffffff;
    background-color: unset;
}

.btn-border:hover,
.btn-border:focus,
.btn-border:active {
    background-color: #ffffff !important;
    color: #5a1932 !important;
}



.navbar-toggler {
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: none;
    color: #D69832 !important;
}


.navbar-toggler.btn {
    border: none;
    color: #5a1932;
    font-size: 25px;
}


@media screen and (max-width: 991px) {
    .main-navbar .navbar-collapse {
        background-color: rgba(255, 0, 0, 0.223);
        position: absolute;
        top: 100%;
        left: 0;
        height: max-content !important;
        width: 100%;
        max-width: 450px;
        flex-direction: column;
        overflow: hidden;

    }

    .main-navbar .navbar-nav {
        border-top: #D69832 2px solid;
        height: max-content;
        flex-direction: column;
        background-color: #f5f5f5;
        padding: 0;
    }

    .main-navbar .dropdown {
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
    }

    .main-navbar .navbar-nav .dropdown .nav-link {
        padding: 10px 15px;
    }

    .main-navbar .navbar-nav .dropdown:not(:last-child) {
        border-bottom: 1px solid #E3E3E3 !important;
    }

    .main-navbar .dropdown-menu {
        border: none;
        width: 100%;
    }


    .main-navbar .navbar-nav .dropdown .dropdown-menu li a {
        width: 100%;
    }


    .main-navbar .navbar-nav .dropdown .dropdown-menu li {
        padding: 0;
    }

}

@media screen and (min-width: 991px) {
    .navbar-social-list li:nth-child(n+4) {
        display: flex;
    }
}


@media screen and (max-width: 1024px) {
    .btn-sm-md {
        font-size: 14px;
    }

    .btn-sm-md.btn-primary {
        padding: 5px;
    }


    .btn.btn-sm-md .btn-icon.bg-rounded-icon {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}




/******* Hero ********/


.hero-btns {
    width: 100%;
    max-width: 300px;
    z-index: 2;
}

.hero-carousel {
    overflow: hidden;
}

/* قبل تهيئة owl فقط: ارتفاع ثابت كي لا تتكدس الشرائح عمودياً في وميض التحميل */
.hero-carousel:not(.owl-loaded) {
    height: calc(100vh - 200px);
}

/* الارتفاع الفعلي موحّد عبر equalizeHeroHeights() في main-00.js —
   يقيس أطول شريحة ويطبّقه min-height على الجميع كي لا يفيض نصٌّ فوق النقاط */
.hero-carousel .item {
    width: 100%;
    min-height: calc(100vh - 200px);
    /* 60 بدل 100: الفراغ العلوي الزائد كان يدفع الأزرار خارج الشاشة مع النصوص الطويلة */
    padding-top: 60px;
    /* مسافة كافية أسفل المحتوى كي لا تلاصق الأزرارُ نقاطَ التنقل */
    padding-bottom: 110px;
    padding-inline: 30px;
    position: relative;
    overflow: hidden;
}

/* طبقة الخلفية — مفصولة عن المحتوى ليعمل عليها زوم Ken Burns وحدها */
.hero-carousel .item-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* شريحة بانتظار رفع صورتها من اللوحة — تدرّج بألوان الهوية بدل البياض */
.hero-carousel .item-bg.no-image {
    background: linear-gradient(135deg, #3d0f27 0%, #6b1f45 55%, #96601f 100%);
}

/* زوم سينمائي بطيء طوال عرض الشريحة (أطول من مدة العرض 7س + الانتقال) */
.hero-carousel .owl-item.active .item-bg {
    animation: hero-kenburns 9s ease-out both;
}

@keyframes hero-kenburns {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.hero-carousel .item::before {
    content: "";
    position: absolute;
    inset: 0;
    /* shorthand for top/right/bottom/left = 0 */
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* غلاف العنوان والوصف — عرض ثابت فتتحاذى حافتاهما من جهة بداية القراءة
   (البلوك محدود العرض يرسو تلقائياً على يمين الحاوية في RTL ويسارها في LTR) */
.hero-carousel .hero-content {
    width: 100%;
    /* نفس عرض .hero-btns تماماً كي تبدأ النصوص من حافة الأزرار نفسها */
    max-width: 680px;
    z-index: 2;
}

.hero-carousel h1 {
    font-size: clamp(40px, 4.5vw, 62px);
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* العناوين اللاتينية أطول بكثير من العربية — خط أصغر كي لا تتضخم لثلاثة أسطر
   فتدفع الأزرار تحت حافة الشاشة */
[dir="ltr"] .hero-carousel h1 {
    font-size: clamp(32px, 3.2vw, 46px);
}


.hero-carousel .btn {
    padding: 14px 24px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-carousel .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* الزر الحدودي كان باهتاً فوق الصور — خلفية زجاجية وحدّ أسمك ليبرز */
.hero-carousel .btn-border {
    border-width: 2px;
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
}

/* وصف الشريحة تحت العنوان */
.hero-carousel .hero-desc {
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.9;
    max-width: 560px;
    opacity: 0.92;
    z-index: 2;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* دخول متدرّج للعنوان فالوصف فالأزرار مع كل شريحة — يعيد التشغيل لأن owl
   يبدّل صنف active على العنصر فتُعاد الحركة تلقائياً */
.hero-carousel .owl-item.active h1 {
    animation: hero-fade-up 0.9s ease 0.15s both;
}

.hero-carousel .owl-item.active .hero-desc {
    animation: hero-fade-up 0.9s ease 0.35s both;
}

.hero-carousel .owl-item.active .hero-btns {
    animation: hero-fade-up 0.9s ease 0.55s both;
}

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}


.hero-carousel .owl-dots {
    text-align: center;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.hero-carousel .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.hero-carousel .owl-dot span {
    display: block;
    width: 40px;
    height: 5px;
    background: #FFE8C3;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hero-carousel .owl-dot:hover span {
    background: #D69832;
    width: 50px;
}

.hero-carousel .owl-dot.active span {
    background: #D69832;
    width: 50px;
}



/* Scrolling text container */
.scrolling-text {
    background: #D69832;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
    font-size: 1.2rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

/* Looping text */
.text-loop {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
}

.text-loop a {
    color: white;
    text-decoration: none;
    margin-inline: 5px;
}

.text-loop a:hover {
    text-decoration: underline;
}

/* Infinite scroll animation — نسختان بحسب اتجاه اللغة ليبقى التكرار سلساً */
@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(50%); }
}
@keyframes scroll-left-ltr {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
[dir="ltr"] .text-loop {
    animation-name: scroll-left-ltr;
}




@media screen and (min-width: 768px) {
    .hero-btns {
        max-width: 680px;
    }

    /* بطلب من مدير المشروع: المحتوى يقف في الجهة المقابلة لبداية القراءة —
       عربي (RTL) = يسار الشاشة، لاتيني (LTR) = يمينها — والنص يحتفظ بمحاذاته
       الطبيعية لاتجاه لغته (flex-end = نهاية السطر في كلا الاتجاهين).
       الجوال يبقى موسّطاً */
    .hero-carousel .item {
        align-items: flex-end !important;
    }

    /* تجاوز يدوي من اللوحة لكل شريحة: يمين/يسار فيزيائي حسب تكوين الصورة
       (flex-start/end ينعكسان مع الاتجاه، فنثبّت الجهة عبر [dir]) */
    [dir="rtl"] .hero-carousel .item.text-pos-left,
    [dir="ltr"] .hero-carousel .item.text-pos-right {
        align-items: flex-end !important;
    }

    [dir="rtl"] .hero-carousel .item.text-pos-right,
    [dir="ltr"] .hero-carousel .item.text-pos-left {
        align-items: flex-start !important;
    }
}



/******* Footer ********/

footer {
    position: relative;
}

footer::before {
    content: "";
    height: 110px;
    width: 100%;
    background-image: url('../img/bg/decor-light.png');
    position: absolute;
    bottom: 0;
    opacity: 30%;
    z-index: 1;
}



.footer-logo {
    width: 150px;
    aspect-ratio: 1;
}

.footer-logo img {
    width: 100%;
    height: 100%;
}


.footer-social-list {
    list-style: none;
    display: flex;
    gap: 15px;
    font-size: 20px;
    margin: 0;
    padding: 0;
    padding-inline: 15px;
    justify-content: start;
    align-items: center;
    border-inline-start: 1px #fff solid;
}

.footer-social-list li {
    margin-block: 0 ! important;
}

.footer-social-list li:nth-child(n+5) {
    display: none;
}


.footer-social-list li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    color: #fff ! important;
    background-color: #845768 ! important;
    border-radius: 50%;

}

.footer-social-list li a:hover {
    background-color: var(--bs-secondary) ! important;
}

footer .contact-info {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

footer .contact-info li {
    display: flex;
    align-items: start;
    gap: 10px;
}

footer .contact-info li span {
    display: flex;
    height: 100%;
    line-height: 30px;
    align-items: flex-start;
}

footer .copy-right {
    z-index: 9999;
}

.contact_info_list.contact_info_list li.single-info-item .details {
    color: #ffffff;
}


@media screen and (min-width: 991px) {
    .footer-social-list li:nth-child(n+5) {
        display: flex;
    }

    footer::before {
        height: 130px;
    }
}


/* الحد 1860 بدل 1920: المتصفحات تقتطع بكسلات من عرض النافذة (شريط إيدج الجانبي،
   شريط التمرير الكلاسيكي) فيفشل شرط 1920 الحاد في شاشات 1920 نفسها */
@media (min-width: 1860px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1800px;
    }
}


/******* Projects ********/
.projects-section .project-cats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 450px;
    justify-self: center;
}

/* الفلاتر الثلاثية: مجالات ← مشاريع ← حالة */
.projects-section .project-filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}
.projects-section .project-filters .filter-row {
    max-width: 950px;
    margin: 0;
    align-items: center;
}
/* تسمية المستوى في بداية كل صف */
.projects-section .project-filters .filter-row::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    color: #b3a693;
    letter-spacing: .3px;
    align-self: center;
    margin-inline-end: 2px;
    white-space: nowrap;
}
.projects-section .project-filters .cat-btn-sm {
    padding: 3px 14px;
    font-size: clamp(12px, .73vw, 14px);
}
/* المستوى ٢: صينية فاتحة تجمع مشاريع المجال، والنشط عنابي */
.projects-section .filter-row-sub {
    background: #faf6ef;
    border: 1px dashed #e5d5b8;
    border-radius: 18px;
    padding: 10px 18px;
    gap: 10px;
}
.projects-section .filter-row-sub .cat-btn { background: #fff; }
.projects-section .filter-row-sub .cat-btn.active,
.projects-section .filter-row-sub .cat-btn:hover {
    background-color: #5a1932;
    color: #fff;
}
/* وميض لطيف على الفلاتر التي فيها مشاريع — هالة تنطلق من الزر نفسه */
.projects-section .cat-btn.has-projects {
    animation: filterPulse 2.6s ease-out infinite;
}
.projects-section .cat-btn.has-projects.active { animation: none; }
@keyframes filterPulse {
    0%        { box-shadow: 0 0 0 0 rgba(214, 152, 50, .55); }
    65%, 100% { box-shadow: 0 0 0 13px rgba(214, 152, 50, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .projects-section .cat-btn.has-projects { animation: none; box-shadow: 0 0 0 2px rgba(214, 152, 50, .45); }
}

/* المستوى ٣: حبوب محددة بنقاط ألوان الحالة */
.projects-section .filter-row-status { gap: 8px; }
.projects-section .filter-row-status .cat-btn {
    background: transparent;
    border: 1.5px solid #e2dcd2;
    display: inline-flex;
    align-items: center;
}
.projects-section .filter-row-status .st-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot, #999);
    display: inline-block;
    margin-inline-end: 7px;
    flex-shrink: 0;
}
.projects-section .filter-row-status .cat-btn.active {
    background-color: #fff;
    border-color: #D69832;
    color: #b07714;
    box-shadow: 0 2px 8px rgba(214, 152, 50, .18);
}
.projects-section .filter-row-status .cat-btn:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

.projects-section .project-cats .cat-btn {
    background-color: #F5F5F5;
    color: #484848;
    padding: 5px 20px;
    border-radius: 30px;
    font-size: clamp(14px, .83vw, 16px);
}

.projects-section .project-cats .cat-btn.active {
    background-color: #D69832;
    color: #fff;
}

.projects-section .project-cats .cat-btn:hover {
    background-color: #000;
    color: #fff;
}

.projects-section .project-cats .cat-btn:focus-within {
    outline: 2px solid #D69832;
    outline-offset: 4px;
    
}

.project-item {
    position: relative;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0px 2.4236px 12.118px -0.605901px rgba(0, 0, 0, 0.12);
    border-radius: 18.177px;
    overflow: hidden;
    max-width: 380px;

    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-in-out;
}

.project-item.show {
    opacity: 1;
    transform: translateY(0);
}

.project-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}


.project-item .pimage {
    aspect-ratio: 1.8;
    overflow: hidden;
    position: relative;
}

.project-item .pimage::after {
    content: '';
    position: absolute;
    bottom: 0;
    display: block;
    height: 45px;
    width: 100%;
    background: linear-gradient(0deg, #5a1932e5 5%, rgba(192, 53, 107, 0) 100%);
}

.project-item .pimage img {
    width: 100%;
}

.project-item .pgoal {
    position: absolute;
    color: #ffffff;
    bottom: 15px;
    margin-inline-start: 30px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1;
}

/* ═══ الزكاة: شارة «تجوز الزكاة» وخيار «هذا التبرع زكاة» ═══ */
.pzakat {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: linear-gradient(135deg, #1d7a3f, #28a745);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* نسخة داخل السطر (عنوان الصفحة المفردة) */
.pzakat-inline {
    position: static;
    vertical-align: middle;
    margin-inline-start: 10px;
    font-size: 13px;
}

.zakat-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eaf7ef;
    border: 1px dashed #28a745;
    color: #1d7a3f;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.zakat-opt input {
    accent-color: #28a745;
    width: 17px;
    height: 17px;
    cursor: pointer;
    flex-shrink: 0;
}

.qd-zakat {
    background: #eaf7ef;
    border: 1px dashed #28a745;
    color: #1d7a3f;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
}

.project-item .pcat {
    position: absolute;
    background-color: #D69832;
    color: #ffffff;
    font-weight: 500;
    padding: 5px 25px;
    font-size: 14px;
    z-index: 1;
}

/* لون شارة المجال حسب التصنيف — كل مجال بلون مميز */
.project-item .pcat[data-cat="9"]  { background-color: #8E244A; } /* كفالة */
.project-item .pcat[data-cat="10"] { background-color: #D69832; } /* المشاريع الإنشائية */
.project-item .pcat[data-cat="11"] { background-color: #2E8B57; } /* المشاريع الوقفية */
.project-item .pcat[data-cat="12"] { background-color: #C0562B; } /* الاجتماعية والموسمية */
.project-item .pcat[data-cat="13"] { background-color: #2980B9; } /* الآبار وسقيا الماء */
.project-item .pcat[data-cat="14"] { background-color: #7D3C98; } /* الدورات التدريبية */
.project-item .pcat[data-cat="15"] { background-color: #16A085; } /* التعليمية */

.project-item .pshare {
    position: absolute;
    background-color: #569446;
    color: #ffffff;
    width: 45px;
    height: 45px;
    aspect-ratio: 1;
    border-radius: 50%;
    font-size: 24px;
    font-weight: normal;
    top: 25px;
    margin-inline-start: calc(100% - (45px + 15px));
    z-index: 1;

    transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-item .pshare:focus,
.project-item .pshare:hover,
.project-item .pshare:active {
    background-color: #6ab857;
    color: #ffffff;
    transform: rotate(10deg);
}

.project-item .psubtitle {
    color: #666666;
}



.project-item .info-title {
    font-weight: 500;
    color: #898989;
}



.project-item .progress {
    height: 16px !important;
    background-color: #e4f0e4 !important;
    border-radius: 99px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.08) !important;
}
.project-item .progress-bar {
    width: 0;
    border-radius: 99px !important;
    background: linear-gradient(90deg, #2e7d32, #43a047, #66bb6a) !important;
    transition: width 1.3s cubic-bezier(.4,0,.2,1) !important;
    position: relative !important;
    overflow: hidden !important;
}
.project-item .progress-bar::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    inset-inline-start: -50%;
    width: 35%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
    transform: skewX(-20deg);
    animation: projShine 2.1s infinite;
    pointer-events: none;
}
@keyframes projShine {
    0%   { inset-inline-start: -50%; }
    60%  { inset-inline-start: 130%; }
    100% { inset-inline-start: 130%; }
}


.project-item .donateamount {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    margin-bottom: 16px;
    border: 1.5px solid #ede9e9;
    border-radius: 10px;
    padding: 6px 10px;
    background: #fff;
}
.project-item .donateamount .amount-center {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.project-item .donateamount .amount-label {
    font-size: 9px;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 1px;
}
.project-item .donateamount .amount-center input {
    font-size: 22px;
    font-weight: 800;
    width: 100%;
    height: 36px;
    text-align: center;
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: #1f2937;
}
.project-item .donateamount .currency {
    font-weight: 700;
    font-size: 14px;
    color: #9ca3af;
}
.project-item .stepper-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #5a1932;
    background: transparent;
    color: #5a1932;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .18s, color .18s;
    line-height: 1;
    padding: 0;
}
.project-item .stepper-btn:hover { background: #5a1932; color: #fff; }
.project-item .stepper-btn:active { transform: scale(.93); }

/* أزرار المبالغ السريعة — حبوب متساوية بصف واحد (مثل صفحة المشروع) */
.project-item .donateamounts {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
}
.project-item .amount-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 2px;
    font-size: 12px;
    border-radius: 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transition: all .18s;
}
.project-item .amount-btn.active {
    background-color: #5a1932;
    color: #ffffff;
}




@media screen and (min-width: 768px) {
    .projects-section .project-cats {
        max-width: 600px;
    }
}

/******* Primary Section *******/


.primary-section {
    background-image: url('../img/bg/decor-dark.png');
    background-size: 350px;
    z-index: 1;
}

.primary-section .container img {
    width: 200px;
}


/******* Join Section *******/

.galary-grid-container {
    display: flex;

    overflow: hidden;
    width: 100%;
}

.galary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 10px;
    rotate: -2deg;
    width: 100%;
    transform: scale(1.1);
}


.galary-grid .galary-item {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    aspect-ratio: 1;
    border-radius: 5px;
}

@media screen and (min-width: 991px) {
    .join-section {
        max-height: 700px;

    }

    .join-section .desc {
        max-width: 600px;
    }

    .join-section .container-fluid {
        position: relative;
        overflow: hidden;
        max-height: 700px;
    }

    .join-section .container-fluid::before {
        content: "";
        background-image: url('../img/bg/decor-light.png');
        position: absolute;
        bottom: 0;
        height: 60px;
        width: 100%;
        background-size: contain;
        opacity: 50%;
    }

    .galary-grid {
        rotate: 0deg;
        transform: scale(1.2);
    }


    .galary-grid-container {
        margin-block-end: -30px;
        margin-inline-end: -30px;
        width: 100%;
        max-width: 40%;
        rotate: -5deg;
    }
}


/****** Testimonials ******/

.testimonials-carousel .user-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}



.testimonials-carousel .user-img img {
    height: 100px;

}

.testimonials-carousel .testimonial-content::before {
    content: "”";
    font-size: 20px;
    font-weight: 700;
}

.testimonials-carousel .testimonial-content::after {
    content: "“";
    font-size: 20px;
    font-weight: 700;
}

.testimonials-carousel .owl-dots {
    text-align: center;
    margin-top: 40px;
}

.testimonials-carousel .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.testimonials-carousel .owl-dot span {
    display: block;
    width: 8px;
    height: 8px;
    background: #D9D9D9;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.testimonials-carousel .owl-dot:hover span {
    background: #451D2D;
    width: 10px;
    height: 10px;
}

.testimonials-carousel .owl-dot.active span {
    background: #451D2D;
    width: 10px;
    height: 10px;
}

.testimonials-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.testimonials-carousel .owl-nav button.owl-prev {
    margin-inline-start: -50px;
}

.testimonials-carousel .owl-nav button.owl-next {
    margin-inline-end: -50px;
}

.testimonials-carousel .owl-nav button.owl-prev,
.testimonials-carousel .owl-nav button.owl-next {
    background: #EAEAEA;
    /* Bootstrap primary color */
    color: #451D2D;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
}

.testimonials-carousel .owl-nav button.owl-prev:hover,
.testimonials-carousel .owl-nav button.owl-next:hover {
    background: #451D2D;
    color: #ffffff;
}


/******* Stats ********/

.stats-section .stats {
    flex-wrap: wrap;
    width: 100%;
    overflow: hidden;
}

@media screen and (max-width: 1024px) {
    .stats-section .stats {
        max-width: 400px;
    }
}

/******* About Us ********/
.aboutus-section .desc {
    max-width: 600px;
}

.aboutus-section .simg {
    display: flex;
    width: 100%;
    max-width: 700px;
    margin-block: auto;
    aspect-ratio: 1.4;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
}

.aboutus-section .item {
    max-width: 350px;
}

/****** Our Values ******/
.ourvalues-section .values {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.ourvalues-section .values .value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    padding-top: 40px;
    padding-bottom: 80px;
    border: 1px solid #DDDCDC;
    background-color: #F4F4F4;

    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    font-size: 28px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}


.ourvalues-section .values .value-item::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 50px;
    display: block;
    bottom: 0;
    background-image: url('../img/bg/decor-light.png');
    background-size: auto 70px;
    opacity: 50%;
}


@media screen and (min-width: 1024px) {
    .ourvalues-section .values {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .ourvalues-section .values .value-item {
        width: 350px !important;

    }

}

/****** Contact Us ******/
.contactus-section {
    background-image: url('../img/house.png');
    background-position: center;
    background-size: cover;
    position: relative;
}


.contactus-section * {
    z-index: 2;
}

.contactus-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1F1F1F;
    opacity: 83%;
}

.contactus-section form {
    max-width: 600px;
    width: 100%;
}

.contactus-section .map-container {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1.4;
}

.contactus-section .map-container iframe {
    border-radius: 15px;
    width: 100%;
    height: 100%;
}

/****** Title Section ******/

.title-section .breadcrumb .breadcrumb-item {
    color: var(--bs-secondary);
    font-weight: bold;
}

.title-section .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-secondary);
    content: "\f104";
    font-family: FontAwesome;
}

@media screen and (min-width: 768px) {
    
}

/******contact us form******/
    .contact-section .contact-container form {
        width: 100%;
    }
    .contact-section .contact-container .contact-info {
        width: 100%;
        max-width: 600px;
    }



/******* Active filter chip (صفحة التبرعات) *******/
.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
}
.active-filter-chip .filter-clear {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
    opacity: .8;
}
.active-filter-chip .filter-clear:hover { opacity: 1; color: #D69832; }

.no-projects-msg {
    text-align: center;
    color: #8a8177;
    font-size: 17px;
    font-weight: 600;
    padding: 40px 0;
    width: 100%;
}

/******* Back button (للصفحة الأم) *******/
/* شريط عنوان الصفحة: المسافة هنا لا عبر py-8 في القوالب، فتملك الفئة تباعدها
   وتبقى مصدراً واحداً للحقيقة عبر الـ18 قالباً التي تستخدمها.
   كان py-8 (6rem فوق وتحت) فيبلغ الارتفاع ~280px ثلثاه فراغ، ويدفع محتوى
   الصفحة أسفل الشاشة بلا مقابل — الشريط لون خالص لا صورة تستحق تلك المساحة. */
.title-section {
    position: relative;
    padding-block: 3rem;
}
@media (max-width: 767.98px) {
    .title-section { padding-block: 2rem; }
}
.page-back-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: clamp(16px, 4vw, 56px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
    z-index: 5;
}
.page-back-btn:hover { background: #fff; color: var(--bs-primary); }
.page-back-btn i { font-size: 13px; }
/* نسخة للخلفيات الفاتحة (صفحة المشروع المفردة) */
.page-back-light {
    position: static;
    transform: none;
    background: transparent;
    border: 1.5px solid #e4dade;
    color: var(--bs-primary);
}
.page-back-light:hover { background: var(--bs-primary); color: #fff; }
@media (max-width: 767px) {
    .page-back-btn { top: 14px; transform: none; padding: 6px 14px; font-size: 13px; }
}

/******* WhatsApp float *******/
#whatsappFloat00 {
    position: fixed;
    bottom: 90px;                 /* فوق الشريط الإخباري السفلي */
    inset-inline-start: 24px;     /* يمين الصفحة في RTL */
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .45);
    z-index: 9999;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
#whatsappFloat00:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(37, 211, 102, .6);
}
#whatsappFloat00:active { transform: scale(.94); }

/******* Back to top *******/
#backToTop00 {
    position: fixed;
    bottom: 152px;                /* فوق زر واتساب العائم */
    inset-inline-start: 24px;     /* يمين الصفحة في RTL — الجهة المقابلة للسلة العائمة */
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #5a1932;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(90, 25, 50, .35);
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
#backToTop00.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#backToTop00:hover { background: #7a2545; }
#backToTop00:active { transform: scale(.92); }
@media (max-width: 991px) {
    #whatsappFloat00 { bottom: 84px; inset-inline-start: 16px; width: 48px; height: 48px; font-size: 25px; }
    #backToTop00 { bottom: 142px; inset-inline-start: 16px; width: 42px; height: 42px; }
}

/******floating section******/
    .floating-section {
        position: fixed;
        bottom: 60px;
        margin-inline-start: calc(100% - 100px);
        z-index: 9999999;
    }

    .floating-section .floating-item {
        font-size: 44px;
        color: #ffffff;
        background-color: var(--bs-secondary);
        padding: 15px;
        border-radius: 50%;
        width: 70px;
        height: 70px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

/******img-galary******/
.imgs-galary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.imgs-galary .img-container {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.imgs-galary .img-container img {
    height: 100%;
}

.imgs-galary .img-container .img-overlay {
    position: absolute;
    display: none;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000072;

}

.imgs-galary .img-container .img-overlay a {
    text-decoration: none;
    color: white;
    font-size: 30px;
}


.imgs-galary .img-container:hover .img-overlay {
    display: flex;
}


   

/******Over Write BS5******/

.p-6 {
    padding: 4rem;
}

.pt-6 {
    padding-top: 4rem;
}

.pt-7 {
    padding-top: 5rem;
}

.pt-8 {
    padding-top: 6rem;
}

.pb-6 {
    padding-bottom: 4rem;
}

.pb-7 {
    padding-bottom: 5rem;
}

.pb-8 {
    padding-bottom: 6rem;
}

.px-6 {
    padding-inline: 4rem;
}

.py-6 {
    padding-block: 4rem;
}

.px-7 {
    padding-inline: 5rem;
}

.px-8 {
    padding-inline: 6rem;
}


.py-7 {
    padding-block: 5rem;
}

.py-8 {
    padding-block: 6rem;
}

.py-9 {
    padding-block: 7rem;
}

.py-14{
    padding-block: 12rem;
}

.mb-6 {
    margin-bottom: 4rem;
}

.mb-7 {
    margin-bottom: 5rem;
}

.fs-7 {
    font-size: .95rem;
}


.fs-8 {
    font-size: .75rem;
}

.fs-big {
    font-size: 2.5rem;
}

.fs-bigger {
    font-size: 3.5rem;
}

.text-gray {
    color: #E9E9E9;
}
.text-gray-light {
    color: #F4F4F4;
}
.text-gray-dark {
    color: #454545;
}


.text-white-hover:hover {
    color: #ffffff;
}

.input-group .form-control {
    padding-block: .75rem;
    transition: none;
    border: none;
}

.input-group .form-control::placeholder {
    color: #BDBDBD;
}

.form-control[type="email"]::placeholder {
    text-align: right;
}

.input-group {
    border: 1px solid #D7D7D7;
    border-radius: .465rem;
    overflow: hidden;
}


.input-group .form-control:focus {
    border: none;
    box-shadow: none

}

.input-group:focus-within {
    border: #451D2D 1px solid;
    box-shadow: 0 0 0 0.2rem #451d2d28;
    transition: box-shadow .15s ease-in-out, border .15s ease-in-out;
    
}

.input-group .input-group-text {
    border: none;
}

.input-group:focus-within .input-group-text {
  border: none;
}

.input-group-text {
    color: #BDBDBD;
}
.bg-tertiary {
    background-color: var(--bs-tertiary) !important;
}
.bg-gray {
    background-color: #E9E9E9;
}
.bg-gray-light {
    background-color: #F4F4F4;
}
.bg-gray-dark {
    background-color: #A3A3A3;
}

.bg-green {
    background-color: #569446;
}


.bg-red-light {
    background-color: #FFEDF3;
}


.bg-primary-hover:hover {
    background-color: var(--bs-primary);
}

.rounded-circle-perfect-small {
    border-radius: 50%;
    aspect-ratio: 1;
    height: 30px;

}

.rounded-circle-perfect {
    border-radius: 50%;
    aspect-ratio: 1;
    height: 45px;

}


.bg-decor {
    position: relative;
}


.bg-decor * {
    z-index: 5;
}

.bg-decor::before {
    content: "";
    /* طبقة زخرفية مموضَعة تُرسم فوق المحتوى غير المموضَع فتبتلع النقر والكتابة —
       صار المحتوى وحده يستقبل الأحداث (عطل حقول تذكرة الدعم 2026-08-14) */
    pointer-events: none;
    height: 100%;
    width: 100%;
    background-image: url('../img/bg/decor-light.png');
    background-repeat: repeat;
    background-size: 300px;
    position: absolute;
    top: 0;
    opacity: 10%;
    z-index: 1;
    left: 0;
}



.decor-top {
    position: relative;
}


.decor-top * {
    z-index: 10;
}

.decor-top::before {
    content: "";
    height: 50px;
    width: 100%;
    background-image: url('../img/bg/decor-light.png');
    background-repeat: repeat;
    background-size: contain;
    position: absolute;
    top: 0;
    opacity: 30%;
    z-index: 1;
    left: 0;
}


.decor-bottom {
    
    position: relative;
}


.decor-bottom * {
    z-index: 10;
}

.decor-bottom::after {
    content: "";
    height: 50px;
    width: 100%;
    background-image: url('../img/bg/decor-light.png');
    background-repeat: repeat;
    background-size: contain;
    position: absolute;
    bottom: 0;
    opacity: 30%;
    z-index: 1;
    left: 0;
}



.decor-large-bottom {
    padding-bottom: 100px ;
    position: relative;
}

.decor-large-bottom * {
    z-index: 2;
}


.decor-large-bottom::before {
    content: "";
    height: 70px;
    width: 100%;
    background-image: url('../img/bg/decor-light.png');
    position: absolute;
    bottom: 0;
    opacity: 30%;
    z-index: 1;
}

.w-max-content {
   max-width: max-content;
}

.w-max {
    width: max-content;
}

.container-small {
    width: 100%;
    max-width: 1200px;   
}


.list-style-double-check {
    list-style: none;
}

.list-style-double-check li::before {
    content: "\f560";
    font-family: FontAwesome;
    margin-inline-end: 10px;
}

.list-style-double-check.check-green li::before {
    color: #689F10;
}


@media (min-width: 992px) {
    .border-bottom-lg-0 {
        border-bottom: none !important;
    }

    .border-inline-end-lg {
        border-inline-end: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    }

    .decor-large-bottom::before { 
        height: 100px;
     }
}




/* change success background */
.toast-success {
  background-color: var(--bs-secondary) !important;
}

/* change error background */
.toast-error {
  background-color: #dc3545 !important; 
}

/* change info background */
.toast-info {
  background-color: #17a2b8 !important; 
}

/* change warning background */
.toast-warning {
  background-color: #ffc107 !important; 
}


.form-check-input:checked {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

.form-control:focus {
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 0.25rem #d697322b;
}

.form-check-input:focus {
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 0.25rem #d697322b;
}


ul.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.list-space-2 li {
    margin-bottom: 5px;
}

ul.check-list li::before {
    content: "\f560";
    font-family: FontAwesome;
    margin-inline-end: 10px;
    color: #689F10;
}

.page-item .page-link {
    z-index: 3;
    color: var(--bs-primary);
    background-color: #ffffff;
    border-color: var(--bs-primary);
}



.page-item.disabled .page-link {
    color: var(--bs-primary);
    pointer-events: none;
    cursor: auto;
    background-color: #f3d4e0;
    border-color: var(--bs-primary);
}



.page-item.active .page-link {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* ══ أزرار بطاقة التبرع ══ */
.project-item .donatebtns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.project-item .donatebtns-row1,
.project-item .donatebtns-row2 {
    display: flex;
    gap: 8px;
}
/* الزر الأساسي */
.project-item .dbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background .18s, color .18s, transform .12s;
    flex: 1;
    white-space: nowrap;
}
.project-item .dbtn:active { transform: scale(.96); }

/* تبرع الآن — ممتلئ */
.project-item .dbtn-primary {
    background: #5a1932;
    color: #fff;
}
.project-item .dbtn-primary:hover { background: #7a2545; color: #fff; }

/* مخطط — تبرع كامل / تبرع سريع */
.project-item .dbtn-outline {
    background: transparent;
    border: 1.5px solid #5a1932;
    color: #5a1932;
}
.project-item .dbtn-outline:hover { background: #5a1932; color: #fff; }

/* تبرع سريع */
.project-item .dbtn-quick {
    border-color: #D69832;
    color: #D69832;
}
.project-item .dbtn-quick:hover { background: #D69832; color: #fff; }

/* أضف للسلة — أيقونة مربعة */
.project-item .dbtn-icon {
    flex: 0 0 38px;
    width: 38px;
    padding: 0;
    border-radius: 8px;
    background: #f3d4e0;
    color: #5a1932;
    font-size: 15px;
    position: relative;
}
.project-item .dbtn-icon:hover { background: #5a1932; color: #fff; }

/* Tooltip */
.project-item .dbtn-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    right: 50%;
    transform: translateX(50%);
    background: #1f2937;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}
.project-item .dbtn-icon[data-tooltip]:hover::after { opacity: 1; }


/* ═══ مودال التبرع السريع ═══ */
.qd-content {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(40, 8, 20, .35);
}
.qd-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: linear-gradient(135deg, #5a1932, #7a2545);
    color: #fff;
    padding: 18px 22px;
}
.qd-title {
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.qd-title i { color: #EFC072; }
.qd-project {
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
    margin-top: 4px;
}
.qd-close {
    background: rgba(255, 255, 255, .12);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
}
.qd-close:hover { background: rgba(255, 255, 255, .28); }
.qd-body { padding: 22px; }

.qd-amount-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #eee3d0;
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #fdfbf7;
}
.qd-step {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #5a1932;
    background: transparent;
    color: #5a1932;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .18s, color .18s;
    line-height: 1;
    padding: 0;
}
.qd-step:hover { background: #5a1932; color: #fff; }
.qd-step:active { transform: scale(.93); }
.qd-amount-center {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.qd-amount-center input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #5a1932;
    height: 38px;
}
.qd-currency { color: #b3a693; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.qd-amount-label {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
}
.qd-quick { display: flex; gap: 6px; margin-bottom: 18px; }
.qd-pill {
    flex: 1 1 0;
    padding: 8px 2px;
    border-radius: 10px;
    border: 1.5px solid #eee6da;
    background: #faf7f2;
    color: #6b5d4a;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
}
.qd-pill:hover { border-color: #5a1932; color: #5a1932; }
.qd-pill.active { background: #5a1932; border-color: #5a1932; color: #fff; }

.qd-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.qd-fields .form-control {
    border-radius: 10px;
    border-color: #eee3d0;
    padding: 10px 14px;
}
.qd-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #6b6258;
    cursor: pointer;
    margin: 0;
}
.qd-check input { margin-top: 3px; accent-color: #5a1932; }
.qd-check a { color: #b07714; }

.qd-gateways { margin-bottom: 14px; }
.qd-gateways .payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.qd-gateways .payment-methods .method {
    border: 1.5px solid #eee3d0;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    background: #fff;
    transition: all .18s;
    display: flex;
    align-items: center;
}
.qd-gateways .payment-methods .method img { height: 26px; width: auto; }
.qd-gateways .payment-methods .method:hover { border-color: #D69832; }
.qd-gateways .payment-methods .method.active {
    border-color: #5a1932;
    box-shadow: 0 0 0 2px rgba(90, 25, 50, .15);
}

.qd-footer { padding: 0 22px 22px; display: flex; gap: 8px; }
.qd-pay { flex: 1; }
.qd-cart {
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3d4e0;
    color: #5a1932;
    border: none;
    border-radius: 14px;
    font-size: 19px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.qd-cart:hover { background: #5a1932; color: #fff; }
.qd-pay {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #5a1932;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    box-shadow: 0 8px 22px rgba(90, 25, 50, .28);
}
.qd-pay:hover { background: #7a2545; transform: translateY(-1px); }
.qd-pay i { color: #EFC072; }


/* ═══════════ منيو الجوال (≤991px فقط — لا أثر على سطح المكتب) ═══════════ */
@media (max-width: 991px) {
    .main-navbar { position: relative; }

    /* لوحة القائمة تنسدل تحت الشريط بعرض كامل وتمرير داخلي */
    .main-navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: auto;
        background: #fff;
        z-index: 9998;
        max-height: calc(100vh - 170px);
        overflow-y: auto;
        padding: 6px 18px 22px;
        box-shadow: 0 16px 28px rgba(0, 0, 0, .14);
        border-top: 3px solid #D69832;
    }
    .main-navbar .navbar-nav {
        height: auto;
        width: 100%;
        flex-direction: column;
    }
    .main-navbar .navbar-nav .nav-item {
        display: block;
        width: 100%;
        margin-inline-end: 0 !important;
    }
    .main-navbar .navbar-nav .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 4px;
        border-bottom: 1px solid #eee;
        font-size: 16px;
    }

    /* القوائم الفرعية: داخل التدفق بعرض كامل بدل الطفو */
    .main-navbar .navbar-nav .dropdown .dropdown-menu {
        position: static !important;
        width: 100%;
        border: 0;
        border-inline-start: 3px solid #D69832;
        background: #faf6ef;
        box-shadow: none;
        margin: 0 0 6px;
        transform: none !important;
        inset: auto !important;
    }
    .main-navbar .navbar-nav .dropdown .dropdown-menu li a {
        width: 100%;
        min-height: 46px;
        font-size: 15px;
    }

    /* المستوى الثالث: بالنقر لا بالتحويم */
    .main-navbar .navbar-nav .dropdown .dropdown-menu-level3 {
        position: static;
        width: 100%;
        min-width: 0;
        background: #f4ecdf;
        border-top: 0;
        display: none;
    }
    .main-navbar .navbar-nav .dropdown .dropdown-menu li.dropdown-submenu:hover > .dropdown-menu-level3 {
        display: none;
    }
    .main-navbar .navbar-nav .dropdown .dropdown-menu li.dropdown-submenu.submenu-open > .dropdown-menu-level3 {
        display: block !important;
    }
}

/* ═══ ترويسة الجوال: لوقو أصغر بلا تزاحم مع أزرار الدخول (سطح المكتب لا يتأثر) ═══ */
@media (max-width: 767px) {
    .secondary-navbar,
    .main-navbar { padding-inline-start: 104px; }
    .navbar-brand {
        height: 86px;
        top: 50%;
        transform: translateY(-50%);
        margin-inline-start: 8px;
        padding: 4px;
        z-index: 20;
    }
    .secondary-navbar { gap: 8px; }
    .secondary-navbar .navbar-social-list { display: none; }
    .navbar-login { font-size: 12px; white-space: nowrap; }
}

/* ═══ شارة عدد عناصر السلة على أيقونة النافبار ═══ */
.navbar-cart-btn { position: relative; }
.nav-cart-count {
    position: absolute;
    top: -6px;
    inset-inline-end: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #D69832;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    pointer-events: none;
}
@keyframes cartCountPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    100% { transform: scale(1); }
}
.cart-count-pop { animation: cartCountPop .4s ease; }

/* ═══ عمود السياسات في الفوتر — موازٍ لمعلومات التواصل وبنفس مقاسها ═══ */
.footer-policy-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-policy-list a {
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: color .2s;
}
.footer-policy-list a:hover {
    color: #D69832;
}
.footer-policy-list a i {
    color: #D69832;
    font-size: 18px;
    width: 22px;
    text-align: center;
}

/* ═══ خط الموقع ثابت في محتوى كل الصفحات الديناميكية (الشروط، الاسترداد، الخصوصية…)
   تنسيق Word الملصوق يبقى كما هو عدا الخط — أيقونات Font Awesome مستثناة ═══ */
.dynamic-page-content-wrap {
    font-family: var(--bs-body-font-family);
}
.dynamic-page-content-wrap *:not(i):not([class*="fa-"]) {
    font-family: inherit !important;
}

/* ═══ مبدّل نوع المتبرع: فاعل خير (بلا بيانات) / إدخال البيانات ═══ */
.donor-choice-wrap { margin-bottom: 14px; }
.donor-choice { display: flex; gap: 8px; margin-bottom: 12px; }
.donor-opt {
    flex: 1; padding: 11px 10px;
    border: 1.5px solid #e3d9c9; background: #faf7f1;
    border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #8a7a60;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 7px; transition: all .18s; line-height: 1.2; text-align: center;
}
.donor-opt i { font-size: 15px; }
.donor-opt.active { border-color: #5a1932; background: #5a1932; color: #fff; }
.donor-opt:hover:not(.active) { border-color: #D69832; color: #5a1932; }
.donor-benefactor-note {
    font-size: 12.5px; color: #4f6b3a; background: #f2f6ec;
    border: 1px solid #dfe9d0; border-radius: 8px; padding: 10px 12px; margin: 0;
    display: flex; align-items: center; gap: 8px; line-height: 1.6;
}
.donor-benefactor-note i { color: #639922; font-size: 14px; flex-shrink: 0; }

/* ═══ قائمة المستخدم في الترويسة ═══
   كانت الترويسة تعرض «لوحة التحكم / تسجيل الخروج» فقط، فلا يعرف المستخدم بأي حساب
   دخل ولا يصل لصفحاته إلا بعد المرور باللوحة. */
.ykn-user { position: relative; display: inline-block; }

.ykn-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    padding: 3px 6px;
    border-radius: 22px;
    color: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.ykn-user-btn:hover { background: rgba(255, 255, 255, .16); }

.ykn-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #5a1932;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .55);
}
.ykn-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ykn-initial { font-size: 13px; font-weight: 700; line-height: 1; }

.ykn-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ykn-caret { font-size: 10px; opacity: .8; transition: transform .2s; }
.ykn-user.open .ykn-caret { transform: rotate(180deg); }

/* ── القائمة ── */
.ykn-drop {
    position: absolute;
    top: calc(100% + 9px);
    inset-inline-end: 0;
    min-width: 235px;
    background: #fff;
    border: 1px solid #ece4e8;
    border-radius: 13px;
    box-shadow: 0 12px 34px rgba(90, 25, 50, .16);
    padding: 7px;
    z-index: 1200;
    display: none;
    text-align: start;
}
.ykn-user.open .ykn-drop { display: block; animation: yknDrop .16s ease; }
@keyframes yknDrop { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

.ykn-drop-head { padding: 9px 12px 11px; border-bottom: 1px solid #f2ecef; margin-bottom: 5px; }
.ykn-drop-name { font-weight: 700; color: #2c2229; font-size: .95rem; }
.ykn-drop-mail { font-size: .78rem; color: #9b8d94; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }

.ykn-drop a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: #4b3f45 !important;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.ykn-drop a:hover { background: #faf4f7; color: #5a1932 !important; }
.ykn-drop a i { width: 17px; text-align: center; color: #b9a4ae; font-size: .9rem; }
.ykn-drop a:hover i { color: #D69832; }

.ykn-sep { height: 1px; background: #f2ecef; margin: 5px 8px; }
.ykn-logout, .ykn-logout i { color: #a33b3b !important; }
.ykn-logout:hover { background: #fdecec !important; color: #8a2b2b !important; }

@media (max-width: 575px) {
    .ykn-name { max-width: 84px; }
    .ykn-drop { min-width: 210px; }
}

/* ══ حساب الصرف داخل مودال التبرع السريع ══ */
.qd-fx { padding: 18px 22px 22px; }
.qd-fx-head { font-weight: 700; font-size: 15.5px; color: #5a1932; margin-bottom: 12px; }
.qd-fx-head i { color: #fcb11a; margin-inline-end: 6px; }
.qd-fx-rows { border: 1px solid #eee3d2; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.qd-fx-rows > div { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 13.5px; }
.qd-fx-rows > div + div { border-top: 1px dashed #efe6d5; }
.qd-fx-rows .qd-fx-total { background: #fdf8ef; font-weight: 700; }
.qd-fx-rows b { font-size: 14.5px; color: #5a1932; }
.qd-fx-note { font-size: 12.5px; color: #8a8273; line-height: 1.8; margin-bottom: 14px; }
.qd-fx-go { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.qd-fx-back {
    display: block; width: 100%; margin-top: 10px; border: 0; background: none;
    color: #9a9a9a; font-size: 12.5px; text-decoration: underline; cursor: pointer;
}
.qd-error {
    margin: 0 22px 16px; padding: 10px 13px; border-radius: 9px;
    background: #fdecec; color: #a12525; font-size: 13px;
}
