@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: #ffffff !important;
    background-image: none !important;
    /*---------------------------------------
  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 BANNER - 1920x1080 (16:9) standard
  Production-ready, no hacks
-----------------------------------------*/
    .hero-banner {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        max-height: 100vh;
        overflow: hidden;
        background: #000;
    }

    main > .hero-banner:first-child {
        height: 100vh;
        aspect-ratio: auto;
    }

    main:has(> .hero-banner:first-child) {
        margin-top: -45px;
    }

    .hero-slider {
        position: absolute;
        inset: 0;
        overflow: hidden;
    }

    .hero-slides-wrapper {
        position: absolute;
        inset: 0;
    }

    .hero-slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
        z-index: 1;
        overflow: hidden;
    }

    .hero-slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }

    .hero-slide.slide-out-left,
    .hero-slide.slide-out-right {
        opacity: 0;
        visibility: visible;
        z-index: 3;
    }

    .hero-slide.slide-in-right,
    .hero-slide.slide-in-left {
        opacity: 1;
        visibility: visible;
        z-index: 4;
    }

    .hero-media-wrapper {
        position: absolute;
        inset: 0;
    }

    .hero-media {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center center;
        background: #000;
    }

    .hero-media-picture {
        position: absolute;
        inset: 0;
        display: block;
    }

    .hero-media-picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .hero-mobile { display: none; }
    .hero-desktop { display: block; }

    .hero-media-blur {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: blur(30px) brightness(0.6);
        transform: scale(1.1);
        z-index: 0;
        pointer-events: none;
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.1) 100%);
        z-index: 2;
    }

    .hero-content {
        position: absolute;
        inset: 0;
        z-index: 5;
        display: flex;
        align-items: flex-end;
        padding: 0 5% 80px;
    }

    .hero-content-inner {
        max-width: 700px;
        animation: heroFadeUp 0.8s ease-out both;
    }

    .hero-slide.active .hero-content-inner {
        animation: heroFadeUp 0.8s ease-out both;
    }

    @keyframes heroFadeUp {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .hero-title {
        font-size: clamp(1.8rem, 4vw, 3.2rem);
        font-weight: 800;
        color: #fff;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        position: relative;
        padding-bottom: 15px;
    }

    .hero-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, var(--secondary-color, #ddb34a), var(--primary-color, #017b3f));
        border-radius: 2px;
    }

    [dir="ltr"] .hero-title::after { right: auto; left: 0; }

    .hero-desc {
        font-size: clamp(1rem, 1.5vw, 1.25rem);
        color: rgba(255,255,255,0.9);
        line-height: 1.8;
        margin-bottom: 1.5rem;
        max-width: 550px;
    }

    .hero-cta {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background-color: var(--primary-color, #017b3f);
        color: #fff;
        padding: 14px 32px;
        font-weight: 600;
        font-size: 1.05rem;
        border-radius: 50px;
        text-decoration: none;
        transition: opacity 0.3s ease, box-shadow 0.3s ease;
        border: 2px solid transparent;
    }

    .hero-cta:hover {
        background-color: transparent;
        border-color: #fff;
        color: #fff;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }

    [dir="rtl"] .hero-cta svg { transform: scaleX(-1); }

    .hero-nav {
        position: absolute;
        top: 50%;
        left: 24px;
        z-index: 10;
        width: 52px;
        height: 52px;
        margin-top: -26px;
        transform: none;
        border-radius: 50%;
        border: none;
        background: var(--primary-color, #017b3f);
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
        opacity: 0.9;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .hero-nav-next { left: auto; right: 24px; }
    .hero-slider:hover .hero-nav { opacity: 1; }
    .hero-nav:hover {
        background: var(--primary-hover, #015e30);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }

    [dir="rtl"] .hero-nav-prev { left: auto; right: 24px; }
    [dir="rtl"] .hero-nav-next { right: auto; left: 24px; }
    [dir="rtl"] .hero-nav svg { transform: scaleX(-1); }

    .hero-indicators {
        position: absolute;
        bottom: 28px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .hero-dot {
        width: 36px;
        height: 4px;
        border-radius: 2px;
        border: none;
        background: rgba(255,255,255,0.35);
        cursor: pointer;
        padding: 0;
        position: relative;
        overflow: hidden;
        transition: width 0.3s ease, background 0.3s ease;
    }

    .hero-dot.active {
        width: 52px;
        background: rgba(255,255,255,0.3);
    }

    .hero-dot-fill {
        display: block;
        height: 100%;
        width: 0;
        background: var(--secondary-color, #ddb34a);
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    .hero-dot.active .hero-dot-fill {
        width: 100%;
        animation: dotProgress 6s linear;
    }

    @keyframes dotProgress {
        from { width: 0; }
        to { width: 100%; }
    }

    .hero-play-overlay {
        position: absolute;
        inset: 0;
        z-index: 6;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .hero-play-overlay.visible {
        opacity: 1;
        pointer-events: auto;
        background: rgba(0,0,0,0.25);
    }

    .hero-play-overlay svg {
        filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    }

    .hero-video-player { cursor: pointer; z-index: 1; position: relative; }

    .hero-video-controls {
        position: absolute;
        bottom: 0; left: 0; right: 0;
        z-index: 12;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .hero-slide:hover .hero-video-controls { opacity: 1; }

    .hero-ctrl-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.9;
        transition: opacity 0.2s;
    }

    .hero-ctrl-btn:hover { opacity: 1; }

    .hero-play-btn .icon-play-sm { display: none; }
    .hero-play-btn.is-playing .icon-pause { display: none; }
    .hero-play-btn.is-playing .icon-play-sm { display: block; }

    .hero-mute-btn .icon-unmuted { display: none; }
    .hero-mute-btn:not(.is-muted) .icon-muted { display: none; }
    .hero-mute-btn:not(.is-muted) .icon-unmuted { display: block; }

    .hero-progress-bar {
        flex: 1;
        height: 5px;
        background: rgba(255,255,255,0.3);
        border-radius: 3px;
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }

    .hero-progress-fill {
        height: 100%;
        background: var(--secondary-color, #ddb34a);
        border-radius: 3px;
        width: 0;
        transition: width 0.1s linear;
    }

    .hero-time {
        color: #fff;
        font-size: 0.75rem;
        white-space: nowrap;
        min-width: 80px;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    .hero-scroll-indicator {
        position: absolute;
        bottom: 48px;
        left: 50%;
        margin-left: -10px;
        z-index: 12;
        display: flex;
        flex-direction: column;
        align-items: center;
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.4s ease;
    }
    .hero-banner.hero-scrolled .hero-scroll-indicator { opacity: 0; }
    .hero-scroll-arrow {
        display: block;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 14px solid rgba(255, 255, 255, 0.95);
        box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
        animation: heroScrollArrowBounce 2s ease-in-out infinite;
    }
    @keyframes heroScrollArrowBounce {
        0%, 100% { transform: translateY(0); opacity: 1; }
        50% { transform: translateY(8px); opacity: 0.85; }
    }

    @media (max-width: 992px) {
        .hero-content { padding: 0 4% 70px; }
        .hero-content-inner { max-width: 90%; }
    }

    @media (max-width: 768px) {
        .hero-banner {
            height: 100svh;
            aspect-ratio: auto;
        }

        .hero-media {
            object-fit: cover;
        }

        .hero-media-picture img {
            object-fit: cover;
        }

        .hero-desktop { display: none; }
        .hero-mobile { display: block; }

        .hero-slide .hero-media-blur {
            display: none;
        }

        .hero-content { padding: 0 5% 60px; }

        .hero-nav { display: none; }

        .hero-indicators { bottom: 16px; gap: 8px; }
        .hero-dot { width: 28px; }
        .hero-dot.active { width: 40px; }
        .hero-scroll-indicator { bottom: 36px; }
    }

    @media (max-width: 480px) {
        .hero-content { padding: 0 5% 50px; }
        .hero-title { margin-bottom: 0.5rem; padding-bottom: 10px; }
        .hero-title::after { width: 50px; height: 3px; }
        .hero-desc { margin-bottom: 1rem; font-size: 0.95rem; }
        .hero-cta { padding: 12px 24px; font-size: 0.95rem; }
        .hero-video-controls { padding: 8px 10px; gap: 6px; }
        .hero-time { font-size: 0.65rem; min-width: 60px; }
        .hero-play-overlay svg { width: 44px; height: 44px; }
    }
    /*---------------------------------------
  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: #198754;
        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: #198754;
        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: all 0.3s ease-in-out;
}

.modal-header,
.modal-footer {
    padding: 1rem 1.5rem;
}

.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;
    padding-top: 90px;
    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: 55px 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;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0B5E35 !important;
    background-color: #0B5E35 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.25s, border-color 0.25s, background 0.25s;
}
.site-header.scrolled {
    box-shadow: var(--shadow);
    border-color: rgba(255, 255, 255, 0.15);
    background: #0B5E35 !important;
    background-color: #0B5E35 !important;
    backdrop-filter: none;
}
.navbar {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Language Button - White */
.site-header .btn-outline-success {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
}

.site-header .btn-outline-success:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .navbar {
        padding: 25px 16px !important;
        position: relative;
    }
    
    /* نص الهيدر في المنتصف على الجوال */
    .header-mobile-title {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        pointer-events: none;
    }
    
    .header-title-text {
        color: #ffffff !important;
        font-weight: 700;
        font-size: 1rem;
        white-space: nowrap;
        text-align: center;
    }
    
    /* إخفاء القائمة على الجوال */
    .navbar .nav {
        display: none;
    }
}

/* 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: #ffffff !important;
    position: relative;
    transition: 0.2s;
}
.nav a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}
.nav a.active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%) scaleX(0);
    width: 46%;
    height: 2px;
    border-radius: 2px;
    background: #ffffff !important;
    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: #0B5E35 !important;
    border-bottom: 1px solid #f2f4f3;
}
.menu a:last-child {
    border-bottom: none;
}
.menu a:hover {
    background: #f3faf7;
    color: #0B5E35 !important;
}
[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: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    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: #ffffff !important;
    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.75rem;
}
.m-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px; /* ثبّت الارتفاع */
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(1, 123, 63, 0.14);
    background: #ffffff;
    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, box-shadow 0.2s ease;
    box-shadow: 0 1px 10px rgba(2, 10, 6, 0.03);
}
.m-item:hover {
    transform: translateY(-1px);
    background: #f6fbf9;
    border-color: rgba(1, 123, 63, 0.28);
    box-shadow: 0 10px 26px rgba(1, 123, 63, 0.10);
}

.m-item:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(1, 123, 63, 0.08);
}

.m-item:focus-visible {
    outline: 2px solid rgba(1, 123, 63, 0.35);
    outline-offset: 2px;
}
.m-sub {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;

    padding: 0;
    margin-inline-start: 1rem;
    margin-top: 0;

    border-radius: 14px;
    background: rgba(1, 123, 63, 0.035);
    border-left: 0;

    transition: max-height 0.26s ease, opacity 0.18s ease, padding 0.26s ease,
      margin-top 0.18s ease;
}
[dir="rtl"] .m-sub {
    margin-inline-start: 0;
    margin-inline-end: 1rem;
    border-right: 0;
}

.m-sub.m-sub--open {
    max-height: 360px;
    opacity: 1;
    pointer-events: auto;

    padding: 0.45rem 0.75rem 0.65rem 1rem;
    margin-top: 0.2rem;
    border-left: 2px solid rgba(1, 123, 63, 0.35);
}

[dir="rtl"] .m-sub.m-sub--open {
    padding: 0.45rem 1rem 0.65rem 0.75rem;
    margin-top: 0.2rem;
    border-left: 0;
    border-right: 2px solid rgba(1, 123, 63, 0.35);
}
.m-sub a {
    display: block;
    padding: 0.7rem 1.05rem;
    border-radius: 12px;
    border: 1px solid rgba(1, 123, 63, 0.12);
    margin: 0.22rem 0;
    font-weight: 750;
    background: #ffffff;
    color: var(--ink);

    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease,
      background 0.2s ease;
}
.m-sub a:hover {
    border-color: rgba(1, 123, 63, 0.35);
    color: var(--primary);
    background: #f3faf7;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(1, 123, 63, 0.12);
}

.m-sub a:active {
    transform: translateY(0);
}

.m-sub a:focus-visible {
    outline: 2px solid rgba(1, 123, 63, 0.35);
    outline-offset: 2px;
}

/* 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;
    }
}


    #loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.1s ease-out;
}

.loader .dot {
    width: 12px;
    height: 12px;
    margin: 0 4px;
    background: #017B3F;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 0.6s infinite alternate;
}

.dot1 { animation-delay: 0s; }
.dot2 { animation-delay: 0.2s; }
.dot3 { animation-delay: 0.4s; }

@keyframes bounce {
    from { transform: translateY(0); }
    to   { transform: translateY(-10px); }
}

/* ============================================
   ===== Tournament Card Component =====
   ============================================ */

/* CSS Variables for consistent theming */
:root {
  --tournament-primary: #017B3F;
  --tournament-primary-hover: #016030;
  --tournament-secondary: #6c757d;
  --tournament-success: #28a745;
  --tournament-info: #17a2b8;
  --tournament-warning: #ffc107;
  --tournament-danger: #dc3545;
  
  --tournament-bg: #ffffff;
  --tournament-text: #212529;
  --tournament-text-light: #6c757d;
  --tournament-border: #e0e0e0;
  --tournament-shadow: rgba(0, 0, 0, 0.1);
  --tournament-shadow-hover: rgba(0, 0, 0, 0.15);
  
  --tournament-border-radius: 12px;
  --tournament-transition: cubic-bezier(0.4, 0, 0.2, 1);
  --tournament-transition-fast: 0.2s var(--tournament-transition);
  --tournament-transition-base: 0.3s var(--tournament-transition);
  --tournament-transition-slow: 0.5s var(--tournament-transition);
}

/* Container for tournament cards grid */
.tournament-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

/* Tablet: 2 cards per row */
@media (min-width: 768px) {
  .tournament-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 cards per row */
@media (min-width: 992px) {
  .tournament-cards-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tournament Card */
.tournament-card-modern {
  background: var(--tournament-bg);
  border-radius: var(--tournament-border-radius);
  box-shadow: 0 2px 8px var(--tournament-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: transform var(--tournament-transition-base),
              box-shadow var(--tournament-transition-base);
  opacity: 0;
  transform: translateY(20px);
}

/* Entry animation */
.tournament-card-modern.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effect */
.tournament-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px var(--tournament-shadow-hover);
}

/* Image Container */
.tournament-card-modern__image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  cursor: pointer;
  z-index: 1;
}

.tournament-card-modern__image-container.is-zoomed {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  z-index: 10;
  border-radius: var(--tournament-border-radius);
  background: #000;
}

.tournament-card-modern__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              object-fit 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.tournament-card-modern__image-container.is-zoomed .tournament-card-modern__image {
  object-fit: contain;
  transform: none !important;
}

.tournament-card-modern:hover .tournament-card-modern__image-container:not(.is-zoomed) .tournament-card-modern__image {
  transform: scale(1.08);
}

/* Zoom close button */
.tournament-card-modern__zoom-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 12;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  line-height: 1;
  padding: 0;
  backdrop-filter: blur(4px);
}

.tournament-card-modern__zoom-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.tournament-card-modern__image-container.is-zoomed .tournament-card-modern__zoom-close {
  display: flex;
}

.tournament-card-modern__image-container.is-zoomed ~ .tournament-card-modern__overlay,
.tournament-card-modern__image-container.is-zoomed .tournament-card-modern__overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tournament-card-modern__image-container.is-zoomed .tournament-card-modern__badge {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Gradient Overlay */
.tournament-card-modern__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Status Badge */
.tournament-card-modern__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* RTL support for badge */
[dir="rtl"] .tournament-card-modern__badge {
  right: auto;
  left: 12px;
}

.tournament-card-modern__badge--current {
  background: var(--tournament-success);
}

.tournament-card-modern__badge--upcoming {
  background: var(--tournament-info);
}

.tournament-card-modern__badge--past {
  background: var(--tournament-secondary);
}

/* Card Body */
.tournament-card-modern__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Tournament Title */
.tournament-card-modern__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tournament-text);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

/* Organizer Name */
.tournament-card-modern__organizer {
  font-size: 0.875rem;
  color: var(--tournament-text-light);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tournament-card-modern__organizer-label {
  font-weight: 600;
  color: var(--tournament-text);
}

/* Game Type / Description */
.tournament-card-modern__description {
  font-size: 0.875rem;
  color: var(--tournament-text-light);
  margin: 0 0 1rem 0;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Info Items (Location, Date) */
.tournament-card-modern__info {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--tournament-border);
}

.tournament-card-modern__info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--tournament-text-light);
}

.tournament-card-modern__info-item:last-child {
  margin-bottom: 0;
}

.tournament-card-modern__info-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* RTL support for info items */
[dir="rtl"] .tournament-card-modern__info-item {
  flex-direction: row-reverse;
}

/* CTA Button */
.tournament-card-modern__button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.875rem 1.5rem;
  background: var(--tournament-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--tournament-transition-fast),
              transform var(--tournament-transition-fast),
              box-shadow var(--tournament-transition-fast);
  position: relative;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tournament-card-modern__button:hover:not(:disabled) {
  background: var(--tournament-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tournament-card-modern__button:active:not(:disabled) {
  transform: translateY(0);
}

.tournament-card-modern__button:disabled {
  background: var(--tournament-secondary);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Ripple Effect */
.tournament-card-modern__button .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Empty State */
.tournament-card-modern__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--tournament-text-light);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .tournament-card-modern__image-container {
    height: 180px;
  }
  
  .tournament-card-modern__body {
    padding: 1.25rem;
  }
  
  .tournament-card-modern__title {
    font-size: 1.125rem;
  }
}

/* Print styles */
@media print {
  .tournament-card-modern {
    box-shadow: none;
    border: 1px solid var(--tournament-border);
    break-inside: avoid;
  }
  
  .tournament-card-modern:hover {
    transform: none;
  }
}

/* ============================================
   ===== Tournament Request Form =====
   ============================================ */

/* Progress Indicator */
.form-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-progress__step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #6c757d;
}

.form-progress__step.active {
    color: #017B3F;
}

.form-progress__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.875rem;
}

.form-progress__step.active .form-progress__step-number {
    background: #017B3F;
    color: #fff;
}

.form-progress__separator {
    width: 40px;
    height: 2px;
    background: #e9ecef;
    margin: 0 0.5rem;
}

.form-progress__step.active ~ .form-progress__separator {
    background: #017B3F;
}

/* Form Container */
.tournament-form-container {
    max-width: 650px;
    margin: 0 auto;
}

.tournament-form-card {
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 2rem;
}

.tournament-form-title {
    color: #017B3F;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tournament-form-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Form Fields */
.tournament-form-field {
    margin-bottom: 1.5rem;
    position: relative;
}

.tournament-form-field label {
    font-weight: 500;
    color: #212529;
    margin-bottom: 0.5rem;
    display: block;
}

.tournament-form-field input,
.tournament-form-field select,
.tournament-form-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tournament-form-field input:focus,
.tournament-form-field select:focus,
.tournament-form-field textarea:focus {
    outline: none;
    border-color: #017B3F;
    box-shadow: 0 0 0 3px rgba(1, 123, 63, 0.1);
}

/* Field States */
.tournament-form-field.valid input,
.tournament-form-field.valid select {
    border-color: #28a745;
}

.tournament-form-field.invalid input,
.tournament-form-field.invalid select {
    border-color: #dc3545;
}

.tournament-form-field.valid input:focus,
.tournament-form-field.valid select:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.tournament-form-field.invalid input:focus,
.tournament-form-field.invalid select:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Field Hints & Errors */
.tournament-form-hint {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
}

.tournament-form-error {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
    display: block;
    animation: slideDown 0.3s ease;
}

.tournament-form-success {
    font-size: 0.875rem;
    color: #28a745;
    margin-top: 0.25rem;
    display: block;
}

/* File Upload */
.tournament-form-file-wrapper {
    position: relative;
}

.tournament-form-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tournament-form-file-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.tournament-form-file-label:hover {
    background: #e9ecef;
    border-color: #017B3F;
}

.tournament-form-file-name {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #017B3F;
    font-weight: 500;
}

.tournament-form-file-error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* Checkbox */
.tournament-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.tournament-form-checkbox input[type="checkbox"],
.tournament-form-checkbox .form-check-input {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    margin-top: 0.25rem;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 2px solid #6c757d !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    background-image: none !important;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0 !important;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

[dir="rtl"] .tournament-form-checkbox input[type="checkbox"],
[dir="rtl"] .tournament-form-checkbox .form-check-input {
    margin-right: 0;
    margin-left: 0.5rem;
}

.tournament-form-checkbox input[type="checkbox"]:hover,
.tournament-form-checkbox .form-check-input:hover {
    border-color: #017B3F !important;
    background-color: #f0f9f4 !important;
}

.tournament-form-checkbox input[type="checkbox"]:checked,
.tournament-form-checkbox .form-check-input:checked {
    background-color: #017B3F !important;
    border-color: #017B3F !important;
    background-image: none !important;
}

.tournament-form-checkbox input[type="checkbox"]:checked::after,
.tournament-form-checkbox .form-check-input:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    display: block;
}

.tournament-form-checkbox input[type="checkbox"]:focus,
.tournament-form-checkbox .form-check-input:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(1, 123, 63, 0.1) !important;
    border-color: #017B3F !important;
}

.tournament-form-checkbox label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    user-select: none;
}

.tournament-form-checkbox .terms-link {
    color: #017B3F;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.25rem;
}

[dir="rtl"] .tournament-form-checkbox .terms-link {
    margin-left: 0;
    margin-right: 0.25rem;
}

.tournament-form-checkbox .terms-link:hover {
    text-decoration: underline;
}

/* Buttons */
.tournament-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.tournament-form-btn {
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 120px;
}

.tournament-form-btn-primary {
    background: #017B3F;
    color: #fff;
}

.tournament-form-btn-primary:hover:not(:disabled) {
    background: #015a2f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(1, 123, 63, 0.2);
}

.tournament-form-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.tournament-form-btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}

.tournament-form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Spinner */
.tournament-form-btn.loading {
    position: relative;
    color: transparent;
}

.tournament-form-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

/* Date Range */
.tournament-form-date-range {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.tournament-form-date-range .tournament-form-field {
    flex: 1;
    margin-bottom: 0;
}

.tournament-form-date-separator {
    color: #6c757d;
    font-weight: 500;
    margin-top: 1.75rem;
}

/* RTL Support */
[dir="rtl"] .tournament-form-date-range {
    flex-direction: row-reverse;
}

[dir="rtl"] .tournament-form-actions {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
    .tournament-form-card {
        padding: 1.5rem;
    }
    
    .tournament-form-date-range {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tournament-form-date-separator {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }
    
    .tournament-form-actions {
        flex-direction: column;
    }
    
    .tournament-form-btn {
        width: 100%;
    }
}

/* Alert Messages */
.tournament-form-alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

.tournament-form-alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.tournament-form-alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Draft Saved Indicator */
.tournament-form-draft-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #017B3F;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideUp 0.3s ease;
    display: none;
}

.tournament-form-draft-indicator.show {
    display: block;
}

[dir="rtl"] .tournament-form-draft-indicator {
    right: auto;
    left: 20px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ===== Tournament Success Page =====
   ============================================ */

/* Force transparent background on body and main for success page - Strongest rules */
html:has(.tournament-success-container) body,
body:has(.tournament-success-container),
main:has(.tournament-success-container),
body:has(.tournament-success-container) main,
html:has(.tournament-success-container) main {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Fallback for browsers that don't support :has() - Use class on body */
body.tournament-success-page,
body.tournament-success-page main {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Additional override - Target body and main directly when container exists */
body:has(.tournament-success-container),
body.tournament-success-page {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

main:has(.tournament-success-container),
body.tournament-success-page main {
    background: transparent !important;
    background-color: transparent !important;
}

/* Additional fallback */
body .tournament-success-container,
main .tournament-success-container {
    background: transparent !important;
    background-color: transparent !important;
}

/* Success Container - Perfect Centering */
.tournament-success-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    background: transparent !important;
    background-color: transparent !important;
}

/* Wrapper for additional centering control */
.tournament-success-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    background: transparent !important;
    background-color: transparent !important;
}

/* Success Card - Entrance Animation Initial State */
.tournament-success-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 3rem 2.5rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(1, 123, 63, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
    /* Fallback: show card after 1 second if animation doesn't work */
    opacity: 0;
    transform: translateY(25px) scale(0.96);
    animation: cardEntranceFallback 0.6s ease-out 0.5s forwards;
}

/* Fallback animation that always runs */
@keyframes cardEntranceFallback {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* When animation class is added, override fallback */
.tournament-success-card.animate-entrance {
    animation: cardEntrance 600ms ease-out forwards;
}

.tournament-success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #017B3F 0%, #28a745 50%, #017B3F 100%);
    border-radius: 16px 16px 0 0;
}

/* Success Icon */
.tournament-success-icon {
    font-size: 4.5rem;
    color: #017B3F;
    margin-bottom: 1.5rem;
    display: inline-block;
    opacity: 0;
    transform: scale(0.8);
    animation: successIconAnimation 0.6s ease-out 0.6s forwards;
}

@keyframes successIconAnimation {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
.tournament-success-title {
    font-size: 2rem;
    font-weight: 700;
    color: #017B3F;
    margin-bottom: 1rem;
    line-height: 1.3;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.8s forwards;
}

.tournament-success-message {
    font-size: 1.125rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 1s forwards;
}

/* Action Buttons */
.tournament-success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 1.2s forwards;
}

.tournament-success-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.tournament-success-btn-primary {
    background: #017B3F;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(1, 123, 63, 0.25);
}

.tournament-success-btn-primary:hover {
    background: #015a2f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 123, 63, 0.35);
}

.tournament-success-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(1, 123, 63, 0.3);
}

.tournament-success-btn-secondary {
    background: transparent;
    color: #017B3F;
    border: 2px solid #017B3F;
}

.tournament-success-btn-secondary:hover {
    background: #017B3F;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 123, 63, 0.2);
}

.tournament-success-btn-secondary:active {
    transform: translateY(0);
}

/* Button Ripple Effect */
.tournament-success-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tournament-success-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Decorative Elements */
.tournament-success-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(1, 123, 63, 0.05) 0%, rgba(40, 167, 69, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.tournament-success-decoration-1 {
    top: -50px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.tournament-success-decoration-2 {
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* Entrance Animation Class - Applied by JavaScript */
.tournament-success-card.animate-entrance {
    animation: cardEntrance 600ms ease-out forwards;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ensure content is visible when animation is applied */
.tournament-success-card.animate-entrance .tournament-success-title,
.tournament-success-card.animate-entrance .tournament-success-message,
.tournament-success-card.animate-entrance .tournament-success-actions {
    opacity: 1 !important;
}

/* Override any white backgrounds from parent elements - Stronger rules */
body:has(.tournament-success-container),
main:has(.tournament-success-container),
body:has(.tournament-success-container) main,
main:has(.tournament-success-container) {
    background: transparent !important;
    background-color: transparent !important;
}

/* Additional overrides for common layout classes */
body:has(.tournament-success-container) .container,
main:has(.tournament-success-container) .container {
    background: transparent !important;
    background-color: transparent !important;
}

/* Force transparent background on all parent elements - Additional layer */
html:has(.tournament-success-container),
html:has(.tournament-success-container) body,
html:has(.tournament-success-container) main {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tournament-success-container {
        padding: 1.5rem 1rem;
        min-height: 100vh;
        background: transparent !important;
        background-color: transparent !important;
    }
    
    .tournament-success-wrapper {
        width: 100%;
    }
    
    .tournament-success-card {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .tournament-success-icon {
        font-size: 3.5rem;
        margin-bottom: 1.25rem;
    }
    
    .tournament-success-title {
        font-size: 1.75rem;
        margin-bottom: 0.875rem;
    }
    
    .tournament-success-message {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .tournament-success-actions {
        flex-direction: column;
        gap: 0.875rem;
    }
    
    .tournament-success-btn {
        width: 100%;
        min-width: auto;
        padding: 0.875rem 1.5rem;
    }
    
    .tournament-success-decoration {
        width: 60px;
        height: 60px;
    }
    
    .tournament-success-decoration-1 {
        top: -30px;
        right: -30px;
    }
    
    .tournament-success-decoration-2 {
        bottom: -30px;
        left: -30px;
    }
}

@media (max-width: 480px) {
    .tournament-success-card {
        padding: 1.75rem 1.25rem;
    }
    
    .tournament-success-icon {
        font-size: 3rem;
    }
    
    .tournament-success-title {
        font-size: 1.5rem;
    }
    
    .tournament-success-message {
        font-size: 0.95rem;
    }
}

/* RTL Support */
[dir="rtl"] .tournament-success-actions {
    flex-direction: row-reverse;
}

/* Print Styles */
@media print {
    .tournament-success-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .tournament-success-actions {
        display: none;
    }
    
    .tournament-success-decoration {
        display: none;
    }
}

/* ============================================
   ===== Layout & Navigation =====
   ============================================ */

/* Navbar transitions */
.navbar {
    transition: background-color .3s, box-shadow .3s;
    z-index: 1040;
}

/* Offcanvas */
.offcanvas {
    -webkit-overflow-scrolling: touch;
    width: min(85vw, 360px);
}

/* ============================================
   ===== News Pages =====
   ============================================ */

/* News Cards */
.news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.12);
    border-color: #198754;
}

.news-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #198754 !important;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 12px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-source {
    font-weight: 500;
    color: #198754;
}

.btn-read-more {
    width: 100%;
    background: #198754;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-read-more:hover {
    background: #146c43;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.2);
}

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

.site-footer {
    background: linear-gradient(180deg, #0B5E35 0%, #014A27 100%);
    color: #F3EEE7;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    padding: 2rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    max-width: 80px;
    margin-bottom: 1rem;
}

.footer-title {
    color: #FCA311;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #F3EEE7;
    margin: 0 0 0.5rem 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #F3EEE7;
    text-decoration: none;
    transition: 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #FFD477;
}

.social-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(252, 163, 17, 0.1);
    border: 1px solid rgba(252, 163, 17, 0.3);
    border-radius: 50%;
    color: #FCA311;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #FCA311;
    color: #fff;
    transform: translateY(-2px);
}

.contact-info {
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    color: #F3EEE7;
    font-size: 0.9rem;
}

.contact-item i {
    color: #FCA311;
}

/* ============================================
   ===== Player Dashboard =====
   ============================================ */

/* Dashboard Container */
.dashboard-wrapper {
    background: #f8fafc;
    min-height: calc(100vh - 100px);
    padding: 0;
}

/* Compact Top Bar */
.dashboard-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    margin-top: 30px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-title i {
    color: #017b3f;
    font-size: 1.3rem;
}

.breadcrumb-custom {
    font-size: 0.85rem;
    color: #64748b;
    margin: 4px 0 0 0;
    padding: 0;
    background: none;
}

.breadcrumb-custom a {
    color: #017b3f;
    text-decoration: none;
}

.breadcrumb-custom a:hover {
    text-decoration: underline;
}

.logout-btn {
    background: white;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logout-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: #fef2f2;
}

.logout-btn i {
    font-size: 0.9rem;
}

/* Main Content */
.dashboard-content {
    padding: 24px 0;
}

/* Summary Cards */
.summary-cards {
    margin-bottom: 24px;
}

.summary-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    height: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.summary-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.summary-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.summary-card-icon.membership {
    background: #f0fdf4;
    color: #017b3f;
}

.summary-card-icon.player-number {
    background: #eff6ff;
    color: #2563eb;
}

.summary-card-icon.expiry {
    background: #fffbeb;
    color: #f59e0b;
}

.summary-card-icon.points {
    background: #f5f3ff;
    color: #7c3aed;
}

.summary-card-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 6px;
}

.summary-card-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.summary-card-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-expired {
    background: #fee2e2;
    color: #991b1b;
}

/* Section Cards */
.section-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-card-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-card-header i {
    color: #017b3f;
    font-size: 1.1rem;
}

.section-card-body {
    padding: 20px;
}

/* Success Message */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success i {
    margin-right: 8px;
}

/* ============================================
   ===== Home Page Sections =====
   ============================================ */

/* About Section - Mobile Improvements */
@media (max-width: 768px) {
    .section-padding {
        padding: 2rem 0 !important;
    }

    .about-box {
        margin-top: 1.5rem;
        padding: 1.5rem !important;
    }

    .about-box h3 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .about-box p {
        font-size: 0.95rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .info-card, .stats-card {
        margin-bottom: 1rem;
        padding: 1rem !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: none !important;
    }

    .info-card h5, .stats-card h5 {
        font-size: 1rem;
        text-align: center;
    }

    .info-card p {
        font-size: 0.85rem;
        text-align: center;
    }

    .info-card ul {
        text-align: center;
    }

    .info-card li {
        margin-bottom: 0.5rem;
    }
}

/* Legacy carousel-video - kept for backward compat */
.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   ===== Player Pages =====
   ============================================ */

/* Player Register Page */
.register-page {
    background: #f8f9fa;
    min-height: calc(100vh - 100px);
    padding: 20px 0;
}

.register-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(0, 0, 0, 0.02);
    max-width: 460px;
    margin: 0 auto;
    padding: 16px;
}

.page-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 16px;
    text-align: center;
    padding: 0;
    border: none;
    letter-spacing: -0.2px;
}

.form-section {
    margin-bottom: 14px;
    padding: 12px 0;
    background: #fafbfc;
    border-radius: 3px;
    padding-left: 8px;
    padding-right: 8px;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.section-label {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 0;
    border: none;
    letter-spacing: 0.1px;
    text-transform: uppercase;
}

/* Player Login Page */
.login-page {
    background: #ffffff !important;
    background-image: none !important;
    min-height: calc(100vh - 200px);
    padding: 30px 0;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff !important;
    background-image: none !important;
    opacity: 1;
    pointer-events: none;
}

.login-container {
    position: relative;
    z-index: 1;
}

.login-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(1, 123, 63, 0.1);
    overflow: hidden;
    max-width: 380px;
    margin: 0 auto;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(1, 123, 63, 0.15);
}

.login-header {
    background: linear-gradient(135deg, #017b3f 0%, #198754 100%);
    padding: 20px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Player Payment Page */
.payment-page {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

.payment-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(1, 123, 63, 0.1);
    overflow: hidden;
}

.payment-card-header {
    background: linear-gradient(135deg, #017b3f 0%, #198754 100%);
    padding: 16px;
    text-align: center;
}

.payment-card-header h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-card-header i {
    font-size: 1.3rem;
}

.info-banner {
    background: linear-gradient(to right, #eff6ff 0%, #ffffff 100%);
    border: 1px solid #bfdbfe;
    border-right: 3px solid #3b82f6;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-banner-icon {
    color: #3b82f6;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-banner-text {
    color: #1e40af;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Player Membership Page */
.membership-page {
    background-color: #ffffff !important;
    background-image: none !important;
    padding: 20px 0 25px;
    position: relative;
}

.membership-page > .container {
    position: relative;
    z-index: 1;
}

.page-header {
    background: #ffffff !important;
    background-image: none !important;
    position: relative;
    overflow: hidden;
    padding: 18px 0 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff !important;
    background-image: none !important;
    opacity: 1;
    pointer-events: none;
}

.page-header > div {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #017b3f;
    margin-bottom: 8px;
    line-height: 1.3;
}

.page-header p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 650px;
    margin: 0 auto;
}

.benefits-section {
    margin-bottom: 20px;
}

.section-label {
    text-align: center;
    margin-bottom: 15px;
}

.section-label h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #017b3f;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid #017b3f;
    margin: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.benefit-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #017b3f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(1, 123, 63, 0.1);
    border-left-color: #198754;
}

.benefit-icon-wrapper {
    width: 32px;
    height: 32px;
    background: #f0fdf4;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid #e5f3ed;
}

.benefit-icon-wrapper i {
    font-size: 1rem;
    color: #017b3f;
}

.benefit-content {
    flex: 1;
}

.benefit-content p {
    font-size: 0.8rem;
    color: #1e293b;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

.notice-section {
    background: white;
    border-radius: 8px;
    padding: 10px 16px;
    margin: 20px auto;
    max-width: 600px;
    border: 1px solid #dbeafe;
    background: linear-gradient(to right, #eff6ff 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.08);
}

.notice-icon {
    width: 26px;
    height: 26px;
    background: #3b82f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.notice-text {
    font-size: 0.8rem;
    color: #1e40af;
    margin: 0;
    font-weight: 500;
}

.cta-section {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e5f3ed;
}

.cta-buttons-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #017b3f;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(1, 123, 63, 0.25);
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.cta-button:hover {
    background: #198754;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 123, 63, 0.35);
}

/* ============================================
   ===== Player Login Page =====
   ============================================ */

.login-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.login-icon i {
    font-size: 1.4rem;
    color: white;
}

.login-header h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

.login-body {
    padding: 24px 20px;
}

.form-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-label i {
    color: #017b3f;
    font-size: 0.85rem;
}

.input-group-custom {
    position: relative;
    margin-bottom: 16px;
}

.form-control-custom {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-control-custom:focus {
    outline: none;
    border-color: #017b3f;
    background: white;
    box-shadow: 0 0 0 3px rgba(1, 123, 63, 0.1);
}

.form-control-custom.is-invalid {
    border-color: #dc3545;
    background: #fef2f2;
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-control-custom:focus + .input-icon {
    color: #017b3f;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #017b3f;
}

.remember-me label {
    margin: 0;
    cursor: pointer;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-login {
    background: linear-gradient(135deg, #017b3f 0%, #198754 100%);
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(1, 123, 63, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 123, 63, 0.3);
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
}

.btn-login:active {
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider::before {
    margin-left: 12px;
}

.divider::after {
    margin-right: 12px;
}

.register-link {
    text-align: center;
    padding-top: 16px;
}

.register-link p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

.register-link a {
    color: #017b3f;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.register-link a:hover {
    color: #198754;
    text-decoration: underline;
}

/* ============================================
   ===== Player Payment Page =====
   ============================================ */

.details-section {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.details-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #017b3f;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #017b3f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #64748b;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

.amount-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid #017b3f;
    text-align: center;
}

.amount-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #017b3f;
    margin-bottom: 8px;
}

.amount-note {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.btn-payment-primary {
    background: linear-gradient(135deg, #017b3f 0%, #198754 100%);
    border: none;
    border-radius: 6px;
    padding: 11px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(1, 123, 63, 0.25);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-payment-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 123, 63, 0.35);
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
}

.btn-payment-cancel {
    background: white;
    border: 2px solid #64748b;
    border-radius: 6px;
    padding: 11px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-payment-cancel:hover {
    background: #f1f5f9;
    border-color: #475569;
    color: #475569;
    transform: translateY(-2px);
}

.warning-text {
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
}

/* ============================================
   ===== News Modal =====
   ============================================ */

.modal-main-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-meta {
    font-size: 0.9rem;
    color: #666;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.modal-news-content {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
    text-align: right;
    direction: rtl;
    white-space: pre-wrap;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #198754;
}

/* ============================================
   ===== Footer Additional Styles =====
   ============================================ */

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.contact-item i {
    color: #FCA311;
    font-size: 1.1rem;
}

/* تواصل معنا: الأيقونة يمين والنص يسار في RTL */
[dir="rtl"] .site-footer .contact-info .contact-item,
.site-footer[dir="rtl"] .contact-info .contact-item {
    flex-direction: row-reverse;
}

.contact-text {
    color: #F3EEE7;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(252, 163, 17, 0.3);
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom .footer-text {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(243, 238, 231, 0.8);
}

/* Desktop Responsive */
@media (min-width: 768px) {
    .site-footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    /* عربي (RTL): محاذاة من اليمين */
    .site-footer[dir="rtl"] .footer-brand,
    .site-footer[dir="rtl"] .footer-title,
    .site-footer[dir="rtl"] .footer-links,
    .site-footer[dir="rtl"] .contact-info,
    .site-footer[dir="rtl"] .footer-bottom {
        text-align: right;
    }
    
    .site-footer[dir="rtl"] .social-links {
        justify-content: center;
    }
    
    .site-footer[dir="rtl"] .contact-info .contact-item {
        direction: rtl;
        justify-content: flex-end;
        flex-direction: row-reverse;
    }
    
    /* إنجليزي (LTR): محاذاة من اليسار */
    .site-footer[dir="ltr"] .footer-brand,
    .site-footer[dir="ltr"] .footer-title,
    .site-footer[dir="ltr"] .footer-links,
    .site-footer[dir="ltr"] .contact-info,
    .site-footer[dir="ltr"] .footer-bottom {
        text-align: left;
    }
    
    .site-footer[dir="ltr"] .social-links {
        justify-content: center;
    }
    
    .site-footer[dir="ltr"] .contact-info .contact-item {
        direction: ltr;
        justify-content: flex-start;
        flex-direction: row;
    }
    
    .footer-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .footer-link {
        font-size: 0.95rem;
    }
    
    .footer-logo {
        max-width: 90px;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 991.98px) {
    .site-footer {
        padding: 2rem 0 1.25rem;
    }
    
    .footer-logo {
        max-width: 70px;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .site-footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-logo {
        max-width: 60px;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .contact-item {
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom .footer-text {
        font-size: 0.75rem;
    }
}

/* Large Desktop (32 inch and above) */
@media (min-width: 1920px) {
    .site-footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-logo {
        max-width: 100px;
    }
    
    .footer-title {
        font-size: 1.25rem;
    }
    
    .footer-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .footer-link {
        font-size: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
}

/* ============================================
   ===== About Section Additional Styles =====
   ============================================ */

/* تحسينات للشاشات المتوسطة */
@media (max-width: 992px) and (min-width: 769px) {
    .about-box {
        padding: 2rem !important;
    }
    
    .info-card, .stats-card {
        padding: 1.25rem !important;
    }
}

/* تحسينات إضافية للشاشات الصغيرة جداً */
@media (max-width: 576px) {
    .about-box {
        padding: 1rem !important;
        margin: 1rem 0.5rem;
    }
    
    .about-box h3 {
        font-size: 1.3rem;
    }
    
    .about-box p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .info-card, .stats-card {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: none !important;
    }
    
    .col-lg-6 img {
        max-width: 60% !important;
    }
    
    .stats-card h3 {
        font-size: 1.5rem;
    }
    
    .stats-card .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   ===== Responsive Global =====
   ============================================ */

/* ============================================
   ===== Coming Soon Overlay (Player Membership Card) =====
   ============================================ */
/* Temporary overlay for "Player Membership" card - Feature under development */

.initiative-card-coming-soon {
    position: relative;
    pointer-events: none;
    user-select: none;
}

.initiative-card-coming-soon * {
    pointer-events: none;
}

.initiative-card-coming-soon .coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-medium);
    z-index: 10;
    pointer-events: all;
}

.initiative-card-coming-soon .coming-soon-content {
    text-align: center;
    padding: 1.5rem;
}

.initiative-card-coming-soon .coming-soon-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.initiative-card-coming-soon .coming-soon-icon svg {
    width: 100%;
    height: 100%;
}

.initiative-card-coming-soon .coming-soon-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.initiative-card-coming-soon .coming-soon-subtitle {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin: 0;
    line-height: 1.5;
}

/* Disable button styling */
.initiative-card-coming-soon .initiative-btn.disabled,
.initiative-card-coming-soon .initiative-btn[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* RTL Support */
[dir="rtl"] .initiative-card-coming-soon .coming-soon-content {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .initiative-card-coming-soon .coming-soon-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 0.75rem;
    }
    
    .initiative-card-coming-soon .coming-soon-title {
        font-size: 1.25rem;
    }
    
    .initiative-card-coming-soon .coming-soon-subtitle {
        font-size: 0.85rem;
    }
    
    .initiative-card-coming-soon .coming-soon-content {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .initiative-card-coming-soon .coming-soon-icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .initiative-card-coming-soon .coming-soon-title {
        font-size: 1.1rem;
    }
    
    .initiative-card-coming-soon .coming-soon-subtitle {
        font-size: 0.8rem;
    }
    
    .initiative-card-coming-soon .coming-soon-content {
        padding: 1rem;
    }
}

/* إزالة padding-top من .py-5 */
.py-5 {
    padding-top: 0 !important;
}
