@font-face {
    font-family: "Metropolis";
    src: url("../fonts/Metropolis/Metropolis-Regular.woff2") format("woff2"),
        url("../fonts/Metropolis/Metropolis-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Metropolis";
    src: url("../fonts/Metropolis/Metropolis-Light.woff2") format("woff2"),
        url("../fonts/Metropolis/Metropolis-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Metropolis";
    src: url("../fonts/Metropolis/Metropolis-SemiBold.woff2") format("woff2"),
        url("../fonts/Metropolis/Metropolis-SemiBold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Metropolis";
    src: url("../fonts/Metropolis/Metropolis-Bold.woff2") format("woff2"),
        url("../fonts/Metropolis/Metropolis-Bold.woff") format("woff");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

html,
body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

:root {
    --primary-color: #017b3f;
    --primary-hover: #015e30;
    --secondary-color: #ddb34a;
    --secondary-hover: #e8c459;
    --accent-color: #07a84f;
    --accent-hover: #059542;
    --background-color: #f9f9f9;
    --white-color: #ffffff;
    --black-color: #000000;
    --text-color: #1f1f1f;
    /* --text-color-primary:          var(--primary-color);
  --text-color-secondray:         var(--secondary-hover); */
    --secondary-text-color: #6b7280;
    --border-color: #e9eaeb;
    /* أزرار */
    --btn-bg: var(--primary-color);
    --btn-hover-bg: var(--primary-hover);
    --btn-color: var(--white-color);
    --btn-font-size: 18px;
    /* الفوتر */
    --site-footer-bg-color: var(--primary-color);
    --site-footer-text-color: var(--white-color);
    --site-footer-link-color: var(--secondary-color);
    --site-footer-link-hover: var(--secondary-hover);
    --site-footer-font-size: 20px;
    --site-footer-title-size: 30px;
    /* خلفيات */
    --section-bg-color: #e7f4ed;
    --bg-color-overlay: rgba(1, 123, 63, 0.08);
    /* خطوط */
    --body-font-family: "Tajawal", sans-serif;
    /* أحجام نصوص */
    --h1-font-size: 52px;
    --h2-font-size: 46px;
    --h3-font-size: 32px;
    --h4-font-size: 28px;
    --h5-font-size: 24px;
    --h6-font-size: 22px;
    --p-font-size: 16px;
    --copyright-font-size: 14px;
    /* زوايا ومسافات */
    --radius: 16px;
    --border-radius-large: 100px;
    --border-radius-medium: 20px;
    --border-radius-small: 10px;
    --pad: 64px;
    --gap: 32px;
    /* أوزان الخط */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

body {
    font-family: var(--body-font-family);
    background-color: #f4f4f4;
    background-color: #f4f4f4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192' viewBox='0 0 192 192'%3E%3Cpath fill='%23017b3f' fill-opacity='0.11' d='M192 15v2a11 11 0 0 0-11 11c0 1.94 1.16 4.75 2.53 6.11l2.36 2.36a6.93 6.93 0 0 1 1.22 7.56l-.43.84a8.08 8.08 0 0 1-6.66 4.13H145v35.02a6.1 6.1 0 0 0 3.03 4.87l.84.43c1.58.79 4 .4 5.24-.85l2.36-2.36a12.04 12.04 0 0 1 7.51-3.11 13 13 0 1 1 .02 26 12 12 0 0 1-7.53-3.11l-2.36-2.36a4.93 4.93 0 0 0-5.24-.85l-.84.43a6.1 6.1 0 0 0-3.03 4.87V143h35.02a8.08 8.08 0 0 1 6.66 4.13l.43.84a6.91 6.91 0 0 1-1.22 7.56l-2.36 2.36A10.06 10.06 0 0 0 181 164a11 11 0 0 0 11 11v2a13 13 0 0 1-13-13 12 12 0 0 1 3.11-7.53l2.36-2.36a4.93 4.93 0 0 0 .85-5.24l-.43-.84a6.1 6.1 0 0 0-4.87-3.03H145v35.02a8.08 8.08 0 0 1-4.13 6.66l-.84.43a6.91 6.91 0 0 1-7.56-1.22l-2.36-2.36A10.06 10.06 0 0 0 124 181a11 11 0 0 0-11 11h-2a13 13 0 0 1 13-13c2.47 0 5.79 1.37 7.53 3.11l2.36 2.36a4.94 4.94 0 0 0 5.24.85l.84-.43a6.1 6.1 0 0 0 3.03-4.87V145h-35.02a8.08 8.08 0 0 1-6.66-4.13l-.43-.84a6.91 6.91 0 0 1 1.22-7.56l2.36-2.36A10.06 10.06 0 0 0 107 124a11 11 0 0 0-22 0c0 1.94 1.16 4.75 2.53 6.11l2.36 2.36a6.93 6.93 0 0 1 1.22 7.56l-.43.84a8.08 8.08 0 0 1-6.66 4.13H49v35.02a6.1 6.1 0 0 0 3.03 4.87l.84.43c1.58.79 4 .4 5.24-.85l2.36-2.36a12.04 12.04 0 0 1 7.51-3.11A13 13 0 0 1 81 192h-2a11 11 0 0 0-11-11c-1.94 0-4.75 1.16-6.11 2.53l-2.36 2.36a6.93 6.93 0 0 1-7.56 1.22l-.84-.43a8.08 8.08 0 0 1-4.13-6.66V145H11.98a6.1 6.1 0 0 0-4.87 3.03l-.43.84c-.79 1.58-.4 4 .85 5.24l2.36 2.36a12.04 12.04 0 0 1 3.11 7.51A13 13 0 0 1 0 177v-2a11 11 0 0 0 11-11c0-1.94-1.16-4.75-2.53-6.11l-2.36-2.36a6.93 6.93 0 0 1-1.22-7.56l.43-.84a8.08 8.08 0 0 1 6.66-4.13H47v-35.02a6.1 6.1 0 0 0-3.03-4.87l-.84-.43c-1.59-.8-4-.4-5.24.85l-2.36 2.36A12 12 0 0 1 28 109a13 13 0 1 1 0-26c2.47 0 5.79 1.37 7.53 3.11l2.36 2.36a4.94 4.94 0 0 0 5.24.85l.84-.43A6.1 6.1 0 0 0 47 84.02V49H11.98a8.08 8.08 0 0 1-6.66-4.13l-.43-.84a6.91 6.91 0 0 1 1.22-7.56l2.36-2.36A10.06 10.06 0 0 0 11 28 11 11 0 0 0 0 17v-2a13 13 0 0 1 13 13c0 2.47-1.37 5.79-3.11 7.53l-2.36 2.36a4.94 4.94 0 0 0-.85 5.24l.43.84A6.1 6.1 0 0 0 11.98 47H47V11.98a8.08 8.08 0 0 1 4.13-6.66l.84-.43a6.91 6.91 0 0 1 7.56 1.22l2.36 2.36A10.06 10.06 0 0 0 68 11 11 11 0 0 0 79 0h2a13 13 0 0 1-13 13 12 12 0 0 1-7.53-3.11l-2.36-2.36a4.93 4.93 0 0 0-5.24-.85l-.84.43A6.1 6.1 0 0 0 49 11.98V47h35.02a8.08 8.08 0 0 1 6.66 4.13l.43.84a6.91 6.91 0 0 1-1.22 7.56l-2.36 2.36A10.06 10.06 0 0 0 85 68a11 11 0 0 0 22 0c0-1.94-1.16-4.75-2.53-6.11l-2.36-2.36a6.93 6.93 0 0 1-1.22-7.56l.43-.84a8.08 8.08 0 0 1 6.66-4.13H143V11.98a6.1 6.1 0 0 0-3.03-4.87l-.84-.43c-1.59-.8-4-.4-5.24.85l-2.36 2.36A12 12 0 0 1 124 13a13 13 0 0 1-13-13h2a11 11 0 0 0 11 11c1.94 0 4.75-1.16 6.11-2.53l2.36-2.36a6.93 6.93 0 0 1 7.56-1.22l.84.43a8.08 8.08 0 0 1 4.13 6.66V47h35.02a6.1 6.1 0 0 0 4.87-3.03l.43-.84c.8-1.59.4-4-.85-5.24l-2.36-2.36A12 12 0 0 1 179 28a13 13 0 0 1 13-13zM84.02 143a6.1 6.1 0 0 0 4.87-3.03l.43-.84c.8-1.59.4-4-.85-5.24l-2.36-2.36A12 12 0 0 1 83 124a13 13 0 1 1 26 0c0 2.47-1.37 5.79-3.11 7.53l-2.36 2.36a4.94 4.94 0 0 0-.85 5.24l.43.84a6.1 6.1 0 0 0 4.87 3.03H143v-35.02a8.08 8.08 0 0 1 4.13-6.66l.84-.43a6.91 6.91 0 0 1 7.56 1.22l2.36 2.36A10.06 10.06 0 0 0 164 107a11 11 0 0 0 0-22c-1.94 0-4.75 1.16-6.11 2.53l-2.36 2.36a6.93 6.93 0 0 1-7.56 1.22l-.84-.43a8.08 8.08 0 0 1-4.13-6.66V49h-35.02a6.1 6.1 0 0 0-4.87 3.03l-.43.84c-.79 1.58-.4 4 .85 5.24l2.36 2.36a12.04 12.04 0 0 1 3.11 7.51A13 13 0 1 1 83 68a12 12 0 0 1 3.11-7.53l2.36-2.36a4.93 4.93 0 0 0 .85-5.24l-.43-.84A6.1 6.1 0 0 0 84.02 49H49v35.02a8.08 8.08 0 0 1-4.13 6.66l-.84.43a6.91 6.91 0 0 1-7.56-1.22l-2.36-2.36A10.06 10.06 0 0 0 28 85a11 11 0 0 0 0 22c1.94 0 4.75-1.16 6.11-2.53l2.36-2.36a6.93 6.93 0 0 1 7.56-1.22l.84.43a8.08 8.08 0 0 1 4.13 6.66V143h35.02z'%3E%3C/path%3E%3C/svg%3E");
    /*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: var(--primary-hover);
    }
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-weight: var(--font-weight-semibold);
        letter-spacing: -1px;
    }
    h1 {
        font-size: var(--h1-font-size);
        font-weight: var(--font-weight-bold);
        letter-spacing: -2px;
    }
    h2 {
        color: var(--secondary-color);
        font-size: var(--h2-font-size);
        letter-spacing: -2px;
    }
    h3 {
        font-size: var(--h3-font-size);
    }
    h4 {
        font-size: var(--h4-font-size);
    }
    h5 {
        color: var(--primary-color);
        font-size: var(--h5-font-size);
    }
    h6 {
        font-size: var(--h6-font-size);
    }
    p {
        color: var(--p-color);
        font-size: var(--p-font-size);
        font-weight: var(--font-weight-light);
    }
    ul li {
        color: var(--p-color);
        font-size: var(--p-font-size);
        font-weight: var(--font-weight-normal);
    }
    a,
    button {
        touch-action: manipulation;
        transition: all 0.3s;
    }
    a {
        color: var(--p-color);
        text-decoration: none;
    }
    a:hover {
        color: var(--primary-color);
    }
    b,
    strong {
        font-weight: var(--font-weight-bold);
    }
    /*---------------------------------------
  SECTION               
-----------------------------------------*/
    .section-padding {
        padding-top: 100px;
        padding-bottom: 100px;
    }
    /* .section-bg {
  background-color: var(--section-bg-color);
} */
    .section-overlay {
        background: rgba(0, 0, 0, 0.35);
        position: absolute;
        top: 0;
        left: 0;
        pointer-events: none;
        width: 100%;
        height: 100%;
    }
    .section-overlay + .container {
        position: relative;
    }
    /*---------------------------------------
  CUSTOM BLOCK               
-----------------------------------------*/
    .custom-block-wrap {
        background: var(--white-color);
        border-radius: var(--border-radius-medium);
        position: relative;
        border-left: 4px solid var(--primary-hover);
        border-right: 4px solid var(--primary-color);
        overflow: hidden;
        transition: all 0.5s;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    .custom-block-wrap:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        transform: translateY(-4px);
    }
    .custom-block-body {
        padding: 30px;
    }
    .custom-block .custom-btn {
        border-radius: 0;
        display: block;
    }
    /*---------------------------------------
  PROGRESS BAR               
-----------------------------------------*/
    .progress {
        background: var(--border-color);
        height: 5px;
    }
    .progress-bar {
        background: var(--secondary-color);
    }
    /*---------------------------------------
  CUSTOM ICON COLOR               
-----------------------------------------*/
    .custom-icon {
        color: var(--secondary-color);
    }
    /*---------------------------------------
  CUSTOM LIST               
-----------------------------------------*/
    .custom-list {
        margin-bottom: 0;
        padding-left: 0;
    }
    .custom-list-item {
        list-style: none;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    /*---------------------------------------
  CUSTOM TEXT BOX               
-----------------------------------------*/
    .custom-text-box {
        background: linear-gradient(to top, #eaf5ef 0%, #ffffff 90%);
        border-radius: var(--border-radius-medium);
        margin-bottom: 24px;
        padding: 40px;
    }
    .custom-text-box-image {
        border-radius: var(--border-radius-medium);
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .custom-text-box-icon {
        background: var(--section-bg-color);
        border-radius: var(--border-radius-large);
        color: var(--secondary-color);
        font-size: var(--h6-font-size);
        text-align: center;
        display: inline-block;
        vertical-align: middle;
        width: 25px;
        height: 25px;
        line-height: 30px;
    }
    /*---------------------------------------
  AVATAR IMAGE - TESTIMONIAL, AUTHOR               
-----------------------------------------*/
    .avatar-image {
        border-radius: var(--border-radius-large);
        width: 65px;
        height: 65px;
        object-fit: cover;
    }
    /*---------------------------------------
  CUSTOM BUTTON               
-----------------------------------------*/
    .custom-btn {
        background: var(--primary-color);
        border: 2px solid transparent;
        border-radius: var(--border-radius-large);
        color: var(--white-color);
        font-size: var(--btn-font-size);
        font-weight: var(--font-weight-normal);
        line-height: normal;
        padding: 15px 25px;
    }

    .custom-btn:hover {
        background: var(--primary-hover);
        color: var(--white-color);
    }
    .custom-border-btn {
        background: transparent;
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
    }

    .custom-block-wrap h5,
    .custom-block-wrap:hover p {
        color: var(--primary-color);
    }

    /*---------------------------------------
  HERO & HERO SLIDE (Clean & Responsive)
  RTL/LTR SAFE
-----------------------------------------*/
    #hero-slide,
    .carousel-item,
    .carousel-inner {
        overflow-x: hidden;
    }
    /* Slide height */
    #hero-slide .carousel-item {
        height: 680px;
        min-height: 680px;
        position: relative;
    }
    .carousel-image {
        display: block;
        width: 100%;
        height: 680px;
        object-fit: cover;
    }
    /* Caption (centered for both LTR & RTL) */
    #hero-slide .carousel-caption {
        position: absolute;
        inset-block-end: 40px;
        /* بديل bottom */
        /* نلغي right من Bootstrap ونثبّت التمركز */
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background-color: #fff;
        color: var(--primary-color);
        max-width: 600px;
        width: 90%;
        padding: 25px 100px;
        border-radius: 20px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        z-index: 10;
    }
    /* Title/Desc/Button */
    #hero-slide .carousel-caption h1 {
        font-size: 2rem;
        font-weight: 800;
        color: #017b3f;
        line-height: 1.4;
        margin-bottom: 1rem;
        border-bottom: 3px solid #fca311;
        display: inline-block;
        padding-bottom: 5px;
    }
    #hero-slide .carousel-caption p {
        font-size: 1.1rem;
        color: #1f1f1f;
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }
    #hero-slide .carousel-caption a.btn {
        background-color: #017b3f;
        color: #fff;
        padding: 10px 35px;
        font-weight: 600;
        border-radius: 50px;
        transition: background-color 0.3s ease-in-out;
        align-self: center;
    }
    #hero-slide .carousel-caption a.btn:hover {
        background-color: #015e30;
    }
    /* Controls */
    .carousel-control-next,
    .carousel-control-prev {
        opacity: 1;
    }

    #next,
    #prev {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-color, #017b3f);
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        font-size: 28px;
        line-height: 1;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.9;
        transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        z-index: 6;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        cursor: pointer;
    }
    #next:hover,
    #prev:hover {
        opacity: 1;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    }
    #next:active,
    #prev:active {
        transform: translateY(-50%) scale(0.96);
    }

    #next {
        right: 50px;
    }
    #prev {
        left: 50px;
    }

    #next::after,
    #prev::after {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: inherit;
    }

    @media (max-width: 768px) {
        #next,
        #prev {
            width: 48px;
            height: 48px;
            font-size: 24px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        }

        #next {
            right: 5px !important;
        }

        #prev {
            left: 5px !important;
        }
    }

    /* RTL: نعكس التدرج تلقائيًا */
    [dir="rtl"] .slider {
        --edge-dir: left;
    }

    .carousel-control-next-icon,
    .carousel-control-prev-icon {
        background-color: var(--primary-color);
        border-radius: var(--border-radius-large);
        background-size: 60% 60%;
        width: 60px;
        height: 60px;
        opacity: 0.8;
        transition: all 0.5s;
    }
    .carousel-control-next-icon:hover,
    .carousel-control-prev-icon:hover {
        background-color: var(--primary-hover);
    }
    /* ===== RTL improvements (اختياري) ===== */
    /* في الواجهة العربية: بدّل أماكن الأزرار لتكون "السابق" يمين و"التالي" يسار */
    [dir="rtl"] #hero-slide .carousel-control-prev {
        right: 0;
        left: auto;
    }
    [dir="rtl"] #hero-slide .carousel-control-next {
        left: 0;
        right: auto;
    }
    /* اقلب الأيقونات ليبقى اتجاه السهم منطقي */
    [dir="rtl"] #hero-slide .carousel-control-prev-icon,
    [dir="rtl"] #hero-slide .carousel-control-next-icon {
        transform: scaleX(-1);
    }
    /*-------------------------------
  Responsive
--------------------------------*/
    @media (max-width: 480px) {
        #hero-slide .carousel-caption {
            inset-block-end: 20px;
            /* بديل bottom */
            padding: 25px 20px;
            max-width: 95%;
            /* إعادة التأكيد على التمركز المحايد */
            right: auto !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            clip-path: none !important;
            min-width: auto !important;
            min-height: auto !important;
            background-color: #fff;
        }
        #hero-slide .carousel-caption h1 {
            font-size: 1.5rem;
        }
        #hero-slide .carousel-caption p {
            font-size: 1rem;
        }
        #hero-slide .carousel-item,
        .carousel-image {
            height: auto;
            min-height: 650px;
        }
    }
    #hero-slide .carousel-caption {
        left: 0 !important;
        right: 0 !important;
        margin-inline: auto;
        transform: none !important;
    }
    /*---------------------------------------
  ABOUT              
-----------------------------------------*/
    .about-section {
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }
    .about-image {
        border-radius: var(--border-radius-medium);
        display: block;
        width: 350px;
        height: 400px;
        object-fit: cover;
    }
    .custom-text-block {
        padding: 60px 40px;
    }
    /*---------------------------------------
  COUNTER NUMBERS              
-----------------------------------------*/
    .counter-thumb {
        margin: 20px;
        margin-bottom: 0;
    }
    .counter-number,
    .counter-text {
        color: var(--secondary-color);
        display: block;
    }
    .counter-number,
    .counter-number-text {
        color: var(--primary-color);
        font-size: var(--h1-font-size);
        font-weight: var(--font-weight-bold);
        line-height: normal;
    }
    /*---------------------------------------
  VOLUNTEER              
-----------------------------------------*/
    .volunteer-section {
        background: var(--secondary-color);
        position: relative;
        overflow: hidden;
    }
    .volunteer-section::after {
        content: "";
        background: var(--primary-color);
        border-radius: 50%;
        position: absolute;
        bottom: -110px;
        right: -80px;
        width: 350px;
        height: 350px;
    }
    .volunteer-form {
        background: var(--white-color);
        border-radius: var(--border-radius-medium);
        padding: 50px;
    }
    .volunteer-image {
        border-radius: 100%;
        display: block;
        margin: auto;
        width: 300px;
        height: 300px;
        object-fit: cover;
    }
    .volunteer-section .custom-block-body {
        max-width: 440px;
        margin: 0 auto;
    }
    .volunteer-section .custom-block-body p {
        line-height: 1.7;
    }
    /*---------------------------------------
  DONATE              
-----------------------------------------*/
    .donate-section {
        background-image: url("../images/different-people-doing-volunteer-work.jpg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        position: relative;
        padding-top: 150px;
        padding-bottom: 150px;
    }
    .donate-form {
        background: var(--white-color);
        border-radius: var(--border-radius-medium);
        position: relative;
        overflow: hidden;
        padding: 50px;
    }
    /*---------------------------------------
  TESTIMONIAL CAROUSEL              
-----------------------------------------*/
    .testimonial-section {
        position: relative;
        overflow: hidden;
        text-align: center;
    }
    .testimonial-section::before {
        content: "";
        background-color: var(--primary-color);
        border-radius: 50%;
        position: absolute;
        top: -100px;
        left: -30px;
        margin: auto;
        width: 250px;
        height: 250px;
    }
    .testimonial-section::after {
        content: "";
        background: var(--custom-btn-bg-color);
        border-radius: 50%;
        position: absolute;
        bottom: -110px;
        right: -80px;
        width: 350px;
        height: 350px;
    }
    #testimonial-carousel .carousel-caption {
        position: relative;
        right: 0;
        bottom: 0;
        left: 0;
    }
    #testimonial-carousel .carousel-title {
        background: var(--section-bg-color);
        line-height: normal;
        margin-bottom: 30px;
    }
    #testimonial-carousel .carousel-title::before {
        content: open-quote;
        color: var(--p-color);
        font-size: var(--h1-font-size);
        position: relative;
        top: 10px;
        right: 10px;
    }
    #testimonial-carousel .carousel-title::after {
        content: close-quote;
        color: var(--p-color);
        font-size: var(--h1-font-size);
        position: relative;
        top: 10px;
        left: 10px;
    }
    #testimonial-carousel .carousel-title {
        quotes: "“" "”" "‘" "’";
    }
    #testimonial-carousel .carousel-name {
        background: var(--primary-color);
        border-radius: var(--border-radius-medium);
        position: relative;
        overflow: hidden;
        padding: 10px 20px;
    }
    #testimonial-carousel .carousel-name::before {
        content: "";
        position: absolute;
        top: -10px;
        right: 0;
        left: 0;
        width: 0;
        height: 0;
        margin: auto;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid var(--primary-color);
    }
    .carousel-name-title {
        font-weight: var(--font-weight-semibold);
    }
    #testimonial-carousel .carousel-indicators {
        position: relative;
        top: 150px;
        bottom: auto;
        margin-top: 50px;
        margin-bottom: 150px;
    }
    #testimonial-carousel .carousel-indicators li {
        text-indent: inherit;
        background: transparent;
        margin: 0 10px;
    }
    #testimonial-carousel .carousel-indicators li,
    #testimonial-carousel .carousel-indicators li::before {
        width: 45px;
        height: 45px;
    }
    #testimonial-carousel .carousel-indicators .avatar-image {
        width: 45px;
        height: 45px;
    }
    #testimonial-carousel .carousel-indicators .active,
    #testimonial-carousel .carousel-indicators .active .avatar-image {
        background: transparent;
        width: 50px;
        height: 50px;
    }
    /*---------------------------------------
  CUSTOM FORM               
-----------------------------------------*/
    .custom-form .form-control,
    .input-group-file {
        background-color: var(--section-bg-color);
        box-shadow: none;
        border: 0;
        color: var(--p-color);
        margin-bottom: 24px;
        padding-top: 13px;
        padding-bottom: 13px;
        outline: none;
    }
    .custom-form .form-control:hover,
    .custom-form .form-control:focus {
        border-color: var(--secondary-color);
    }
    .custom-form label {
        margin-bottom: 10px;
    }
    .custom-form .form-check-group {
        margin-bottom: 20px;
    }
    .donate-form .form-check-group-donation-frequency {
        padding-right: 0;
    }
    .form-check-group-donation-frequency
        + .form-check-group-donation-frequency {
        padding-right: 12px;
        padding-left: 0;
    }
    .form-check-group-donation-frequency .form-check-label {
        font-weight: var(--font-weight-semibold);
    }
    #DonationFrequencyOne {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    #DonationFrequencyMonthly {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    .custom-form .form-check-radio {
        position: relative;
        height: 100%;
        padding-left: 0;
    }
    .custom-form .input-group-text {
        background: var(--secondary-color);
        border: 0;
        color: var(--white-color);
    }
    .custom-form .form-check-radio .form-check-label {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }
    .form-check-radio .form-check-input[type="radio"] {
        background-color: var(--section-bg-color);
        border-radius: 0.25rem;
        border: 0;
        box-shadow: none;
        outline: none;
        width: 100%;
        margin-top: 0;
        margin-left: 0;
        padding: 25px 50px;
        transition: all 0.5s;
    }
    .form-check-radio .form-check-input:checked[type="radio"] {
        background-image: none;
    }
    .form-check-radio
        .form-check-input:checked[type="radio"]
        + .form-check-label,
    .form-check-radio .form-check-input:hover + .form-check-label,
    .form-check-radio .form-check-input:checked + .form-check-label {
        color: var(--white-color);
    }
    .form-check-radio .form-check-input:hover,
    .form-check-radio .form-check-input:checked {
        background-color: var(--secondary-color);
        border-color: var(--white-color);
    }
    .input-group-file {
        border-radius: 0.25rem;
        padding: 13px 0.75rem;
    }
    .input-group-file input[type="file"] {
        width: 0.1px;
        height: 0.1px;
        opacity: 0;
        overflow: hidden;
        position: absolute;
        z-index: -1;
        padding: 0;
    }
    .input-group-file .input-group-text {
        background: transparent;
        color: inherit;
        margin-bottom: 0;
        padding: 0;
    }
    .custom-form button[type="submit"] {
        background: var(--custom-btn-bg-color);
        border: none;
        border-radius: var(--border-radius-large);
        color: var(--white-color);
        font-size: var(--p-font-size);
        font-weight: var(--font-weight-semibold);
        transition: all 0.3s;
        margin-bottom: 0;
    }
    .custom-form button[type="submit"]:hover,
    .custom-form button[type="submit"]:focus {
        background: var(--custom-btn-bg-hover-color);
        border-color: transparent;
    }
    /*---------------------------------------
  CONTACT SEARCH & DONATE & SUBCRIBE FORM              
-----------------------------------------*/
    .contact-form .form-control {
        background: var(--white-color);
    }
    .search-form {
        position: relative;
    }
    .search-form .form-control {
        padding-right: 50px;
    }
    .search-form button[type="submit"] {
        background: transparent;
        position: absolute;
        top: 0;
        right: 0;
        color: var(--p-color);
        width: 50px;
        padding: 12px;
    }
    .search-form button[type="submit"]:hover {
        background: transparent;
        color: var(--dark-color);
    }
    .subscribe-form {
        background: var(--section-bg-color);
        border-radius: var(--border-radius-small);
        padding: 30px;
    }
    .subscribe-form .form-control {
        background: var(--white-color);
    }
    .donate-form .form-control {
        margin-bottom: 0;
    }
    /*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/
    @media screen and (min-width: 1600px) {
        .featured-block {
            min-height: inherit;
        }
        .volunteer-section::after {
            width: 450px;
            height: 450px;
        }
        .volunteer-image {
            width: 350px;
            height: 350px;
        }
    }
    @media screen and (max-width: 1170px) {
        #hero-slide .carousel-image {
            height: 100%;
            object-fit: cover;
        }
    }
    @media screen and (max-width: 991px) {
        h1 {
            font-size: 42px;
        }
        h2 {
            font-size: 36px;
        }
        h3 {
            font-size: 32px;
        }
        h4 {
            font-size: 28px;
        }
        h5 {
            font-size: 20px;
        }
        h6 {
            font-size: 18px;
        }
        .section-bg {
            padding-top: 50px;
            padding-bottom: 50px;
        }
        .hero-form {
            padding-bottom: 40px;
        }
        .donate-form {
            padding: 35px;
        }
        .site-header .social-icon {
            text-align: left;
            margin-top: 5px;
        }
        .hero-section-full-height {
            height: inherit;
        }
        .carousel:hover .carousel-control-next-icon,
        .carousel:hover .carousel-control-prev-icon {
            opacity: 1;
        }
        #hero-slide .carousel-item {
            height: inherit;
        }
        .carousel-control-prev {
            left: 12px;
        }
        .carousel-control-next {
            right: 12px;
        }
        .carousel-control-next-icon,
        .carousel-control-prev-icon {
            opacity: 1;
            width: 60px;
            height: 60px;
        }
        .news-detail-header-section {
            padding-top: 100px;
            padding-bottom: 100px;
        }
        .cta-section::before {
            width: 150px;
            height: 150px;
        }
        .cta-section::after {
            bottom: -60px;
            width: 100px;
            height: 100px;
        }
        .cta-section .row {
            padding-top: 50px;
            padding-bottom: 50px;
        }
        .volunteer-section::after {
            width: 300px;
            height: 300px;
        }
        .testimonial-section::before {
            width: 150px;
            height: 150px;
        }
        .testimonial-section::after {
            width: 200px;
            height: 200px;
        }
        #testimonial-carousel .carousel-caption {
            padding-top: 0;
        }
        blockquote {
            padding: 70px 30px 30px 30px;
        }
        .about-image {
            width: inherit;
            height: 450px;
        }
        .volunteer-image {
            width: 250px;
            height: 250px;
            margin: 0;
        }
        .custom-text-block {
            padding: 20px 0 0 0;
        }
        .custom-text-box,
        .volunteer-form {
            padding: 30px;
        }
        .counter-number,
        .counter-number-text {
            font-size: var(--h2-font-size);
        }
        .contact-info-wrap {
            padding-top: 0;
        }
    }
    @media screen and (max-width: 480px) {
        h1 {
            font-size: 40px;
        }
        h2 {
            font-size: 28px;
        }
        h3 {
            font-size: 26px;
        }
        h4 {
            font-size: 22px;
        }
        h5 {
            font-size: 20px;
        }
        .carousel-control-next-icon,
        .carousel-control-prev-icon {
            width: 45px;
            height: 45px;
        }
        .volunteer-image {
            width: 150px;
            height: 150px;
        }
        .volunteer-section::after {
            width: 200px;
            height: 200px;
        }
        .testimonial-section::before {
            top: -50px;
            width: 100px;
            height: 100px;
        }
        .testimonial-section::after {
            bottom: -150px;
            width: 200px;
            height: 200px;
        }
        .social-share .tags-block {
            margin-bottom: 10px;
        }
        .donate-form {
            padding: 25px;
        }
    }
    /* ======= End of templatemo-kind-heart-charity.css ======= */
    /* ======= Start of st.css ======= */
    .news-section {
        background: #f9f9f9;
        padding: 60px 0;
    }
    .news-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 48px;
        /* مسافة أكبر بين البطاقات */
        margin-top: 40px;
    }
    .news-item {
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
    }
    .news-item:hover {
        transform: translateY(-6px);
    }
    .news-image {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }
    .news-content {
        padding: 20px;
        flex-grow: 1;
        text-align: right;
        /* لأن المحتوى عربي */
        font-family: "Tajawal", sans-serif;
    }
    .news-title {
        font-size: 1.3rem;
        font-weight: bold;
        margin-bottom: 10px;
        color: #a61000;
        line-height: 1.4;
    }
    .news-text {
        font-size: 0.95rem;
        color: #555;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    .news-meta {
        display: flex;
        justify-content: space-between;
        font-size: 0.85rem;
        color: #888;
        border-top: 1px solid #eee;
        padding-top: 12px;
    }
    .news-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }
    .news-card-body {
        padding: 20px;
        flex-grow: 1;
    }
    .news-title {
        font-size: 1.2rem;
        font-weight: bold;
        color: #a61000;
        margin-bottom: 10px;
    }
    .news-text {
        color: #444;
        font-size: 0.95rem;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    .news-meta {
        font-size: 0.85rem;
        color: #888;
        display: flex;
        justify-content: space-between;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }
    .news-detail-header-section {
        background-color: #42b765;
        position: relative;
        overflow: hidden;
        padding: 80px 0;
    }
    .news-detail-header-section .section-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1;
    }
    .news-detail-header-section h1 {
        position: relative;
        z-index: 2;
        color: white;
        font-size: 3.9rem;
        /* بدل 2.5rem */
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
        white-space: nowrap;
        display: inline-block;
    }
    @keyframes scrollText {
        0% {
            transform: translateX(100%);
        }
        100% {
            transform: translateX(-100%);
        }
    }
    @media (max-width: 768px) {
        .news-detail-header-section h1 {
            font-size: 1.8rem;
        }
    }
    /* ======= End of st.css ======= */
    /* ======= Start of Merged Custom Styles ======= */
    .tournaments-section {
        position: relative;
        background: linear-gradient(to bottom, #ffffff, #f0f4f7);
        overflow: hidden;
    }
    .tournaments-section::before {
        content: "";
        position: absolute;
        top: 15%;
        left: 50%;
        transform: translateX(-50%);
        width: 350px;
        height: 350px;
        background: url("/images/union-logo-light.png") no-repeat center;
        background-size: contain;
        opacity: 0.025;
        z-index: 0;
    }
    .filter-btn {
        padding: 8px 20px;
        border-radius: 8px;
        border: 1px solid var(--border-color, #ccc);
        background-color: #fff;
        font-weight: 500;
        transition: 0.2s ease-in-out;
        font-family: var(--body-font-family);
    }
    .filter-btn:hover,
    .filter-btn.active {
        background-color: var(--primary-color, #198754);
        color: #fff;
        border-color: var(--primary-color, #198754);
    }
    .tournament-card {
        background-color: #fff;
        border-radius: var(--border-radius-medium, 12px);
        border-left: 4px solid var(--primary-hover);
        border-right: 4px solid var(--primary-hover);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        transition: 0.3s;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }
    .tournament-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    .tournament-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }
    .tournament-card .card-body {
        padding: 1rem 1.2rem;
        text-align: right;
    }
    .tournament-card .card-title {
        font-weight: bold;
        font-size: 1.1rem;
        color: var(--primary-hover);
    }
    .tournament-card .card-text {
        font-size: 0.95rem;
        color: #6c757d;
    }
    .tournament-card .btn-register {
        display: block;
        margin-top: 15px;
        background-color: var(--primary-color, #198754);
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-weight: 500;
        text-align: center;
        transition: 0.2s;
    }
    .tournament-card .btn-register:hover {
        background-color: #146c43;
    }
    .tournaments-header {
        padding-top: 4rem;
    }
    .saudi-emblem {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        background: url("/images/saudi-logo.png") no-repeat center;
        background-size: contain;
        opacity: 0.05;
        filter: brightness(0) saturate(100%) sepia(100%) hue-rotate(90deg)
            brightness(1.2);
    }
    .section-title {
        font-size: 2.5rem;
        font-weight: bold;
        color: var(--primary-color);
        position: relative;
        display: inline-block;
    }
    /*---------------------------------------------
|  Card Styles gloal page
---------------------------------------------*/
    .u-card {
        background-color: var(--white-color);
        border: 1px solid #e0e0e0;
        padding: 2rem;
        border-left: 4px solid var(--primary-color);
        border-right: 4px solid var(--primary-color);
        text-align: center;
        border-radius: 16px;
        min-height: 550px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .small-card {
        min-height: 140px !important;
        padding: 1.5rem;
    }
    .u-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(1, 123, 63, 0.15);
    }
    .card-img-top {
        width: 100%;
        height: 220px;
        /* أو 250px حسب ما يناسبك */
        object-fit: cover;
        border-radius: 12px;
    }
    .card-img-top:hover {
        transform: scale(1.02);
        transition: transform 0.3s ease;
    }
    #modalImage {
        max-height: 300px;
        width: 100%;
        object-fit: contain;
        display: block;
        margin: 0 auto 20px auto;
        border-radius: 12px;
    }
    /* نطبع ستايل popup على modal-content داخل newsModal فقط */
    #newsModal .modal-content {
        background: white;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        padding: 25px 25px;
        line-height: 1.8;
        direction: rtl;
        text-align: right;
        border: none;
    }
    /* الهيدر */
    #newsModal .modal-header {
        border-bottom: none;
        padding-bottom: 0;
    }
    /* العنوان */
    #newsModal .modal-title {
        font-size: 24px;
        color: var(--primary-color);
        font-weight: bold;
        border-right: 4px solid var(--secondary-color);
        padding-right: 10px;
    }
    /* النص */
    #newsModal .modal-body {
        padding-top: 10px;
    }
    #newsModal .modal-body p,
    #newsModal .modal-body div {
        font-size: 16px;
        color: #1f1f1f;
        margin-bottom: 1rem;
    }
    /* زر الإغلاق */
    #newsModal .btn-close {
        background-color: #eee;
        border-radius: 50%;
        padding: 8px;
    }
    #newsModal .btn-close {
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 2;
        background-color: #eee;
        border-radius: 50%;
        padding: 8px;
        opacity: 1;
    }
    .image-card {
        width: 100%;
        height: 100%;
        overflow: hidden;
        transition: transform 0.3s ease;
    }
    .image-card:hover {
        transform: scale(1.02);
    }
    .image-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        background: linear-gradient(
            to top,
            rgba(1, 123, 63, 0.8) 0%,
            rgba(0, 0, 0, 0) 70%
        );
        transition: background 0.3s ease;
    }
    .image-card:hover .image-overlay {
        background: linear-gradient(
            to top,
            rgba(1, 123, 63, 0.95),
            rgba(0, 0, 0, 0.1)
        );
    }
    .hero-section {
        position: relative;
        /* أساس للـ ::after */
        display: inline-block;
        /* عرض حسب النص */
        margin-bottom: 0.5rem;
    }
    .hero-section::after {
        content: "";
        position: absolute;
        /* تموضع مطلق نسبة للـ parent */
        bottom: -0.25rem;
        /* يطلع تحت شوية */
        left: 50%;
        /* يوسّطه أفقيًا */
        transform: translateX(-50%);
        width: 900px;
        /* عرض معقول */
        height: 4px;
        /* سمك الخط */
        background-color: var(--secondary-color);
        /* أو استدعي var(--primary-color) */
        border-radius: 2px;
        /* حواف ناعمة */
    }
    /*---------------------------------------------

/* محتوى البطاقة */
    .card-content {
        padding: 2rem;
        color: #fff;
        direction: rtl;
        text-align: right;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        /* يضغط النص لتحت */
    }
    .card-content h5 {
        margin: 0 0 0.5rem;
        font-size: 1.3rem;
        line-height: 1.3;
    }
    .card-content .emoji {
        font-size: 3rem;
        margin-bottom: 1rem;
        color: var(--secondary-color);
    }
    .cards-slider .slider-card {
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }
    .cards-slider .slider-card {
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
    }
    .slider-section {
        border-radius: 16px;
        padding: 40px;
        margin-bottom: 50px;
    }
    .slider {
        position: relative;
        margin-top: 50px;
        width: 100%;
        height: 370px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
    }
    .slider .item {
        position: absolute;
        width: 240px;
        height: 340px;
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        padding: 30px 25px;
        /* ← زودنا البادينغ */
        text-align: center;
        left: calc(50% - 120px);
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .item button {
        font-size: 14px;
        padding: 6px 16px;
        border-radius: 8px;
        background-color: transparent;
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
        transition: 0.3s ease;
        margin-top: 50px;
    }
    .item button:hover {
        background-color: var(--primary-hover);
        color: white;
    }
    .item h1 {
        font-size: 60px;
        margin: 0;
    }
    .item p {
        font-weight: bold;
        font-size: 24px;
        color: #333;
    }
    #next,
    #prev {
        position: absolute;
        top: 45%;
        color: var(--primary-color);
        background: none;
        border: none;
        font-size: xxx-large;
        font-weight: bold;
        opacity: 0.5;
        transition: opacity 0.5s;
    }
    #next:hover,
    #prev:hover {
        opacity: 1;
        color: var(--primary-hover);
    }
    #next {
        right: 50px;
    }
    #prev {
        left: 50px;
    }
    .slider-section .main-title h2 span {
        color: var(--primary-color);
    }
    .styled-title {
        font-size: 50px;
        font-weight: 800;
        color: var(--primary-color);
        position: relative;
        display: inline-block;
    }
    .delay-1 {
        transition-delay: 0.1s;
    }
    .delay-2 {
        transition-delay: 0.2s;
    }
    .delay-3 {
        transition-delay: 0.3s;
    }
    .delay-4 {
        transition-delay: 0.4s;
    }
    .delay-5 {
        transition-delay: 0.5s;
    }
    .delay-6 {
        transition-delay: 0.6s;
    }
    .delay-7 {
        transition-delay: 0.7s;
    }
    .delay-8 {
        transition-delay: 0.8s;
    }
    .delay-9 {
        transition-delay: 0.9s;
    }
    .delay-10 {
        transition-delay: 1s;
    }
    .section-title::after {
        content: "";
        width: 100px;
        height: 4px;
        background-color: #fca311;
        display: block;
        margin: 8px auto 0;
        border-radius: 10px;
    }

    /* نص تحت العنوان */
    .styled-subtitle {
        color: #555;
        font-size: 18px;
        margin-top: 10px;
        transition: opacity 0.8s ease;
    }
    .popup {
        display: none;
        position: fixed;
        z-index: 9999;
        align-items: center;
        right: 0;
        left: 0;
        top: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        justify-content: center;
        padding: 20px;
    }
    .popup-content {
        position: relative;
        background: white;
        margin: 10% auto;
        padding: 30px 25px;
        width: 90%;
        max-width: 600px;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        line-height: 1.8;
        direction: rtl;
        text-align: right;
    }
    .popup-content h4 {
        font-size: 24px;
        color: #017b3f;
        font-weight: bold;
        margin-bottom: 20px;
        border-right: 4px solid #fca311;
        padding-right: 10px;
    }
    .popup-content p {
        font-size: 16px;
        color: #1f1f1f;
    }
    .popup .close {
        position: absolute;
        left: 15px;
        top: 15px;
        font-size: 24px;
        cursor: pointer;
    }
    .slider-pagination {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    /* ==================== قسم البطاقات ==================== */
    .contact-section {
        background-color: rgba(255, 255, 255, 0);
        /* شفافية كاملة */
        padding: 40px 0;
    }
    .contact-container {
        background: linear-gradient(to top, #eaf5ef 0%, #ffffff 90%);
        border-radius: 16px;
        border-left: 4px solid var(--secondary-color);
        border-right: 4px solid var(--secondary-color);
        padding: 40px 20px;
        max-width: 1100px;
        margin: auto;
    }
    /* العنوان والوصف */
    .contact-heading {
        max-width: 700px;
        margin: auto;
        text-align: center;
    }
    .contact-heading h1 {
        font-size: 32px;
        margin-bottom: 10px;
        color: var(--primary-hover);
    }
    .contact-heading p {
        font-size: 16px;
        color: #444;
        margin-bottom: 30px;
        line-height: 1.7;
    }
    /* الكروت */
    .contact-cards {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }
    .contact-card {
        flex: 1;
        min-width: 280px;
        background: #fff;
        border-radius: 12px;
        padding: 30px;
        text-align: center;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
    }
    .contact-card img {
        width: 50px;
        margin-bottom: 20px;
    }
    .contact-card h4 {
        color: #017b3f;
        font-size: 20px;
        margin-bottom: 10px;
    }
    .contact-card p {
        color: #333;
        font-size: 14px;
        line-height: 1.6;
    }
    .contact-card:hover {
        transform: translateY(-5px);
    }
    /* ==================== قسم الأكوردين ==================== */
    .accordion-section {
        padding: 80px 0;
        direction: rtl;
    }
    .accordion-wrapper {
        max-width: 800px;
        margin: auto;
        padding: 0 10px;
    }
    .accordion-wrapper details {
        background: linear-gradient(to top, #eaf5ef 0%, #ffffff 90%);
        border-left: 4px solid var(--secondary-color);
        border-right: 4px solid var(--secondary-color);
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
    }
    .accordion-wrapper summary {
        font-weight: bold;
    }
    /* ==================== قسم الاسئله الشائعه ==================== */
    .faq-section {
        padding: 80px 0;
    }
    .faq-title {
        color: var(--primary-color);
        font-weight: bold;
        font-size: 40px;
    }
    .faq-subtitle {
        color: #444;
    }
}

.faq-question {
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

.faq-answer {
    margin-top: 10px;
    display: none;
    color: #333;
}

.faq-contact-cta {
    background-color: #e9f9f1;
    padding: 60px 0;
}

.faq-btn {
    padding: 10px 25px;
    border-radius: 30px;
}

.faq-question.active {
    background-color: var(--primary-hover);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.faq-question {
    background-color: var(--primary-color);
    color: white;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.faq-answer {
    display: none;
    background-color: #f2fef9;
    border-right: 5px solid var(--secondary-color);
    padding: 15px 18px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.7;
}

.custom-border {
    border-right: 4px solid var(--secondary-color);
    border-left: 4px solid var(--secondary-color);
    background-color: white;
}

.partner-card {
    background-color: white;
    padding: 20px;
    border-right: 4px solid var(--secondary-color);
    border-left: 4px solid var(--secondary-color);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(1, 123, 63, 0.15);
}

.partner-card img {
    max-height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

.partner-card p {
    font-weight: bold;
    color: var(--text-color);
    font-size: 15px;
    margin-bottom: 0;
    text-align: center;
}

.contact-container-serv {
    background: white;
    border-radius: 16px;
    border-left: 4px solid var(--secondary-color);
    border-right: 4px solid var(--secondary-color);
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
    margin-bottom: 80px;
}

.modal-content {
    border-radius: 20px;
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border: none;
   transition: box-shadow .2s ease;
}

.modal-header,
.modal-footer {
    padding: 1rem 1.5rem;
}
.modal, .modal-dialog, .modal-backdrop { transition: none !important; }

.modal-title {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    border-right: 5px solid var(--secondary-color);
    padding-right: 0.75rem;
    justify-content: flex-end;
    text-align: right;
}

.modal-body {
    font-size: 1.05rem;
    line-height: 2;
    color: #333;
    padding: 1.5rem;
    text-align: right;
}

.modal-body ul {
    padding-right: 1.5rem;
    list-style-type: disc;
    list-style-position: inside;
    margin: 1rem 0;
}

.modal-body ul li {
    margin-bottom: 0.5rem;
    padding-inline-start: 0.5rem;
}

.modal-body p {
    margin-bottom: 1.25rem;
}

.modal-footer {
    justify-content: flex-end;
    padding-top: 0;
}

.modal-header .btn-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #eee;
    border-radius: 50%;
    padding: 8px;
    opacity: 1;
    transition: 0.2s ease;
}

.modal-header .btn-close:hover {
    opacity: 0.7;
}

.modal-dialog {
    margin-top: 60px;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translateY(-20px);
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.terms-link {
    color: #017b3f;
    /* أخضر الاتحاد مثلاً */
    font-weight: bold;
    text-decoration: underline;
}

.terms-link:hover {
    color: #015e30;
    /* لون هوفر أغمق */
    text-decoration: none;
}

.contact-section-serv {
    background-color: rgba(255, 255, 255, 0);
    /* شفافية كاملة */
    padding: 60px 0;
}

#cookie-banner {
    font-size: 15px;
    border-top: 3px solid #fca311;
}

.uni-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.uni-popup.active {
    display: flex;
}

.uni-popup-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    direction: rtl;
    text-align: right;
    animation: fadeIn 0.3s ease-in-out;
    overflow: hidden;
}

.uni-popup-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.uni-popup-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: white;
    border-right: 4px solid var(--secondary-color);
    padding-right: 12px;
}

.uni-popup-body {
    padding: 25px 20px;
}

.uni-popup-close {
    background-color: white;
    color: var(--primary-color);
    font-weight: bold;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.uni-popup-close:hover {
    background-color: #ccc;
}

.uni-popup-box ul {
    padding-right: 20px;
    margin-bottom: 20px;
}

.uni-popup-box li {
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

:root {
    --primary: #017b3f;
    --secondary: #198754;
    --accent: #fca311;
    --bg: #f9f9f9;
    --text: #1f1f1f;
    --muted: #6b7280;
    --card: #ffffff;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius: 18px;
    --radius-lg: 22px;
    --container: 1200px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, Arial,
        sans-serif;
    color: var(--text);
}
/* Deals */
.deal-wrap {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 768px) {
    .deal-wrap {
        grid-template-columns: 1fr;
    }
}
.deal {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
}
.deal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.deal-title {
    margin: 0;
    font-weight: 900;
    font-size: 20px;
    color: var(--secondary);
}
.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8fff2;
    color: var(--primary);
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 999px;
}
.deal-body {
    color: #475569;
    line-height: 1.8;
}
.deal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-outline {
    border: 1px dashed #d6d6d6;
    background: transparent;
    color: var(--secondary);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}
.btn-outline:hover {
    filter: brightness(0.95);
}
.mini-note {
    font-size: 13px;
    color: var(--muted);
}
.hotel-bullets {
    margin: 0;
    padding-inline-start: 18px;
    color: #475569;
}
.hotel-bullets li {
    margin: 4px 0;
}
/* Sections */
section {
    scroll-margin-top: 90px;
}
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 48px 16px;
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.section-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-sub {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}
/* Hero */
.hero {
    background: linear-gradient(135deg, #ffffff, #f4fff9);
    border-bottom: 1px solid #eef2f4;
}
.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px 16px 24px;
    display: grid;
    gap: 18px;
}
.hero h1 {
    margin: 0;
    font-weight: 900;
    font-size: clamp(26px, 4vw, 40px);
    color: var(--secondary);
}
.hero p {
    margin: 0;
    color: #475569;
    font-weight: 500;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8fff2;
    color: var(--primary);
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
}
/* Grid helpers */
.grid {
    display: grid;
    gap: 16px;
}
.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 992px) {
    .grid-4,
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 520px) {
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }
}
/* Cards */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.card-body {
    padding: 14px 16px 18px;
}
.card-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
}
.card-text {
    margin: 0 0 12px;
    color: #475569;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s ease;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    filter: brightness(0.95);
}
.btn-ghost {
    background: transparent;
    border: 1px dashed #d6d6d6;
    color: var(--secondary);
}
/* Winners */
.winner {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}
.winner .medal {
    font-size: 32px;
}
.winner .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}
.winner .rank {
    font-size: 14px;
    color: var(--muted);
}
.winner strong {
    font-size: 18px;
    color: var(--secondary);
}
.winner small {
    font-size: 13px;
    color: var(--muted);
}
/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.gallery img,
.gallery video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}
/* Live */
.live {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
}
.live .section-head {
    border-bottom: 1px solid #334155;
    padding-bottom: 16px;
    margin-bottom: 32px;
}
.ratio {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}
.ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    border: 0;
}
/* Sponsors */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
    place-items: center;
}
.sponsor img {
    max-width: 100px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: 0.3s ease;
}
.sponsor img:hover {
    filter: grayscale(0);
    opacity: 1;
}
@media (max-width: 768px) {
    .sponsor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 520px) {
    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Footer & Utils */
footer {
    padding: 24px 16px 40px;
    color: #475569;
    text-align: center;
}
.muted {
    color: var(--muted);
}
.divider {
    height: 1px;
    background: #eef2f4;
    margin: 24px 0;
}

.empty-news {
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.empty-news .empty-emoji {
    font-size: 40px;
    margin-bottom: 8px;
}
.empty-news .empty-title {
    margin: 0 0 6px;
    font-weight: 800;
    color: #017b3f;
    font-size: 1.25rem;
}
.empty-news .empty-desc {
    color: #475569;
    margin: 0;
}

/* Bridge page Subnav — centered items, bold black text, under main header */
.subnav {
    position: sticky; /* behaves like fixed under the header */
    top: var(--navbar-height, 76px);
    z-index: 1095;

    border-bottom: 1px solid #e7eef3;
    box-shadow: 0 1px 2px #eef2f6;
}
.subnav .container {
    padding-inline: 16px;
}
.subnav .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    row-gap: 10px;
    padding-block: 10px;
}
.subnav .subnav-link {
    color: #1f1f1f !important;
    font-weight: 800;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    white-space: nowrap;
    background: #ffffff;
    border: 1px solid #eaeff2;
    transition: color 0.15s ease, background-color 0.15s ease,
        border-color 0.15s ease, transform 0.15s ease;
}
.subnav .subnav-link:hover,
.subnav .subnav-link:focus {
    color: #017b3f !important;
    background: #ecf7f0;
    border-color: #d9efe4;
    transform: translateY(-1px);
}
.subnav .subnav-link.active {
    color: #ffffff !important;
    background: #017b3f;
    border-color: #017b3f;
}

@media (max-width: 991.98px) {
    .subnav .nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .subnav .nav::-webkit-scrollbar {
        display: none;
    }
    .subnav .subnav-link {
        scroll-snap-align: center;
    }
}
.empty-winners {
    background: linear-gradient(180deg, #ffffff 0%, #ecf7f0 100%);
    border: 1px solid #e7eef3;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    margin-block: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.empty-winners .empty-emoji {
    font-size: 2.4rem;
    margin-bottom: 8px;
    animation: floatCup 3s ease-in-out infinite;
}
.empty-winners .empty-title {
    margin: 0 0 6px;
    font-weight: 800;
    color: #017b3f;
    font-size: 1.3rem;
}
.empty-winners .empty-desc {
    color: #475569;
    margin: 0;
}
@keyframes floatCup {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

:root {
    --primary: #017b3f;
    --primary-2: #00a854;
    --ink: #0f172a;
    --muted: #475569;
    --bg: #ffffff;
    --line: #e6ebe9;
    --radius: 14px;
    --shadow: 0 8px 26px rgba(2, 10, 6, 0.06);
    --ring: rgba(1, 123, 63, 0.35);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ادفعي المحتوى تحت الهيدر الثابت */
main{
  padding-top: calc(var(--navbar-height, 90px) + 16px);
}

/* لو عندك عناوين داخل الصفحة تنتقلين لها بالروابط */
[id]{ 
  scroll-margin-top: calc(var(--navbar-height, 90px) + 16px);
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.25s, border-color 0.25s, background 0.25s;
}
.site-header.scrolled {
    box-shadow: var(--shadow);
    border-color: rgba(1, 123, 63, 0.12);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(120%) blur(6px);
}
.navbar {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.brand img {
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
}
.brand-name {
    font-weight: 800;
    letter-spacing: 0.2px;
    font-size: 1.2rem;
}

/* Desktop Nav */
.nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    color: #1f2937;
    position: relative;
    transition: 0.2s;
}
.nav a:hover {
    background: #f1f6f4;
    transform: translateY(-1px);
}
.nav a.active {
    background: linear-gradient(
        135deg,
        rgba(1, 123, 63, 0.12),
        rgba(0, 168, 84, 0.1)
    );
    color: var(--primary);
    border: 1px solid rgba(1, 123, 63, 0.2);
}
.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%) scaleX(0);
    width: 46%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    transition: 0.25s;
}
.nav a:hover::after,
.nav a.active::after {
    transform: translateX(-50%) scaleX(1);
}
.dropdown {
    position: relative;
}
.menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    inset-inline-start: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.2s;
    z-index: 100;
}
.dropdown:hover .menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.menu a {
    display: block;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: #334155;
    border-bottom: 1px solid #f2f4f3;
}
.menu a:last-child {
    border-bottom: none;
}
.menu a:hover {
    background: #f3faf7;
    color: var(--primary);
}
[dir="rtl"] .menu {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

/* Actions */
.actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
}
.icon-btn:hover {
    transform: translateY(-1px);
    background: #f7fbf9;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}
.cta {
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid rgba(1, 123, 63, 0.2);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 10px 26px rgba(1, 123, 63, 0.25);
    transition: 0.2s;
}
.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(1, 123, 63, 0.35);
}
.lang {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid var(--line);
    background: #fff;
    transition: 0.2s;
}
.lang:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
}
.icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    background: conic-gradient(from 0deg, var(--primary), var(--primary-2));
    -webkit-mask: var(--mask) no-repeat center/contain;
    mask: var(--mask) no-repeat center/contain;
}
.icon-search {
    --mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M10 18a8 8 0 1 1 5.293-14.293A8 8 0 0 1 10 18Zm11 3.707-6.42-6.42"/></svg>');
}

/* Hamburger */
.hamb {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}
.hamb:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}
.hamb:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}
.line {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.line:nth-child(1) {
    top: 14px;
}
.line:nth-child(2) {
    top: 21px;
}
.line:nth-child(3) {
    top: 28px;
}
.hamb.active .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamb.active .line:nth-child(2) {
    opacity: 0;
}
.hamb.active .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mobile Top Sheet ===== */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    z-index: 1100;
}
.sheet-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.sheet {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1101;
    background: #fff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    max-height: 86vh;
    overflow: hidden;
}
.sheet.active {
    transform: translateY(0);
}
.sheet-handle {
    align-self: center;
    width: 46px;
    height: 4px;
    background: #d7e3de;
    border-radius: 999px;
    margin: 0.75rem 0;
}
.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 1rem 1rem;
}
.sheet-title {
    font-weight: 800;
}
.sheet-body {
    padding: 0 1rem 1rem;
    overflow: auto;
}
.m-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}
.m-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px; /* ثبّت الارتفاع */
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit; /* يوحّد الخط مع الروابط */
    font-weight: 800;
    color: var(--ink);
    text-align: start;
    box-sizing: border-box;
    transition: transform 0.2s ease, background 0.2s ease,
        border-color 0.2s ease;
}
.m-item:hover {
    transform: translateY(-1px);
    background: #f6fbf9;
    border-color: rgba(1, 123, 63, 0.25);
}
.m-sub {
    display: none;
    padding: 0.5rem 0 0;
    margin-inline-start: 1rem;
}
[dir="rtl"] .m-sub {
    margin-inline-start: 0;
    margin-inline-end: 1rem;
}
.m-sub a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px dashed #e8efec;
    margin: 0.35rem 0;
    font-weight: 700;
}
.m-sub a:hover {
    border-color: rgba(1, 123, 63, 0.4);
    color: var(--primary);
    background: #f3faf7;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav,
    .actions {
        display: none;
    }
    .hamb {
        display: inline-flex;
    }
    body {
        padding-top: 90px;
    }
}
@media (max-width: 520px) {
    .brand img {
        height: 36px;
    }
    .brand-name {
        font-size: 1.05rem;
    }
}
