/* ================================================================
   CUSTOM CSS - ONLY UNIQUE EFFECTS (Tailwind handles the rest)
================================================================ */

/* ========== RESET & BASE ========== */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

.site-body {
    font-family: var(--font-latin);
    background: var(--c-bg-dark);
    color: var(--c-black);
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

.site-main {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    /* Full-bleed sections paint edge-to-edge; pad content inside each section instead */
    padding-inline: 0;
    padding-block: 0;
    background: var(--c-bg-dark);
    box-sizing: border-box;
}

/**
 * Decorative filter.svg badge — was `left: 6px; bottom: 8px` (too tight on desktop).
 * Logical inset so RTL keeps the icon on the “start” side of the container.
 */
.filter-btn {
    position: absolute;
    inset-inline-start: clamp(20px, 2.5vw, 44px);
    inset-block-end: clamp(18px, 2.2vw, 36px);
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    pointer-events: none;
    z-index: 4;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .filter-btn {
        inset-inline-start: clamp(14px, 4vw, 24px);
        inset-block-end: clamp(12px, 3vw, 22px);
    }
}

/* ========== TICKER SECTION ========== */
.home-ticker-section {
    position: relative;
    width: 100%;
    height: clamp(140px, 17.5vw, 224px);
    overflow: hidden;
}

.home-ticker-band {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 170%;
    height: clamp(72px, 8.98vw, 115px);
    background: var(--c-bg-gradient);
    transform: translate(-50%, -50%) rotate(9deg);
    transform-origin: center;
    box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.home-ticker-strip {
    position: absolute;
    top: clamp(30px, 3.9vw, 50px);
    left: 0;
    right: 0;
    height: clamp(72px, 8.98vw, 115px);
    background: var(--c-about-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.home-ticker-text {
    font-family: var(--font-arabic);
    font-weight: 400;
    font-size: clamp(16px, 2.73vw, 35px);
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-transform: capitalize;
    color: #ffffff;
    margin: 0;
    padding: 0 clamp(12px, 2vw, 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* News ticker marquee (new_front index) */
.home-ticker-strip--marquee {
    justify-content: stretch;
}

.home-ticker-marquee {
    display: block;
    width: 100%;
    min-width: 0;
    mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}

.home-ticker-marquee-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    max-width: none;
    align-items: center;
    animation: home-ticker-marquee 28s linear infinite;
    will-change: transform;
}

/* LTR: scroll content toward the start (left); RTL: reverse so motion matches reading direction */
[dir="rtl"] .home-ticker-marquee-track {
    animation-direction: reverse;
}

/* Two identical halves → translate -50% loops seamlessly */
.home-ticker-marquee-group {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
}

.home-ticker-marquee-item.home-ticker-text {
    display: inline-block;
    overflow: visible;
    max-width: none;
    text-overflow: unset;
    flex-shrink: 0;
    padding-inline: clamp(10px, 1.5vw, 20px);
    padding-block: 0;
    white-space: nowrap;
}

.home-ticker-marquee-sep {
    display: inline-block;
    flex-shrink: 0;
    padding-inline: clamp(8px, 1.2vw, 16px);
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
    font-size: clamp(14px, 2vw, 22px);
    line-height: 1;
    user-select: none;
}

@keyframes home-ticker-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-ticker-marquee-track {
        animation: none;
        transform: none;
    }

    .home-ticker-marquee-group[aria-hidden="true"] {
        display: none;
    }

    .home-ticker-marquee {
        display: flex;
        justify-content: center;
        mask-image: none;
        -webkit-mask-image: none;
    }
}

/* ========== ABOUT SECTION ========== */
/* ========== ABOUT SECTION ========== */
.home-about-section {
    position: relative;
    width: 100%;
    min-height: clamp(500px, 66.87vw, 856px);
    overflow: hidden;
    background: var(--c-bg-gradient);
}

.home-about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* border: 1px solid transparent; */
    background: linear-gradient(270.68deg, rgba(255, 255, 255, 0.05) 0.87%, #FFFFFF 10.05%, rgba(255, 255, 255, 0) 89.32%, #FFFFFF 99.47%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

.home-about-inner {
    position: relative;
    width: 100%;
    max-width: min(1280px, 100%);
    min-height: clamp(500px, 66.87vw, 856px);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2.75rem);
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 40px);
    overflow: visible;
}

.home-about-card {
    position: relative;
    order: 2;
    flex: 0 1 min(600px, 44%);
    min-width: 0;
    margin-inline-start: clamp(0px, 1.5vw, 20px);
    max-width: min(600px, 100%);
    width: auto;
    height: auto;
    border-start-start-radius: 0;
    border-start-end-radius: clamp(24px, 3.5vw, 52px);
    border-end-end-radius: 0;
    border-end-start-radius: clamp(24px, 3.5vw, 52px);
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    background: rgba(4, 10, 32, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.home-about-card-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(64.42% 64.42% at 50% 50%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.602) 73.08%, rgba(2, 17, 99, 0.86) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0.1;
}

.home-about-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(36px, 8vw, 72px) clamp(28px, 5.5vw, 56px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.home-about-title {
    font-family: var(--font-arabic-heading);
    font-weight: 900;
    font-size: clamp(28px, 5vw, 64px);
    line-height: 1.12;
    letter-spacing: 0;
    color: var(--c-text-primary);
    margin: 0 0 clamp(12px, 2.2vw, 28px);
    max-width: 100%;
    overflow-wrap: anywhere;
}

.home-about-text {
    font-family: var(--font-arabic);
    font-weight: 400;
    font-size: clamp(14px, 2.73vw, 35px);
    line-height: 1.45;
    letter-spacing: 0;
    text-align: center;
    color: var(--c-text-primary);
    margin: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Rich text from AboutUs.description (dashboard / Quill) */
.home-about-body-rich {
    text-align: start;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.home-about-body-rich p {
    margin: 0 0 0.65em;
}

.home-about-body-rich p:last-child {
    margin-bottom: 0;
}

.home-about-body-rich ul,
.home-about-body-rich ol {
    margin: 0.5em 0 0.75em;
    padding-inline-start: 1.25em;
}

.home-about-body-rich a {
    color: var(--c-accent-light, #ffd700);
    text-decoration: underline;
}

.home-about-media {
    order: 1;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    flex: 1.15 1 0;
    min-width: 0;
    width: auto;
    max-width: min(1280px, 88%);
    aspect-ratio: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-about-media::before {
    content: '';
    width: 100%;
    aspect-ratio: 1;
    background-image: var(--home-about-media-image, url('/assests/img/about.png'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.22);
    transform-origin: center center;
    -webkit-mask-image: url('/assests/img/fill-shape.png');
    mask-image: url('/assests/img/fill-shape.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-mode: alpha;
    mask-mode: alpha;
}

.home-about-media-img {
    display: none;
}

.home-about-filter-icon {
    position: absolute;
    right: 30px;
    bottom: 20px;
    width: 26.44px;
    height: auto;
    z-index: 4;
    pointer-events: none;
}

/* Desktop/Tablet */
@media (max-width: 991.98px) {
    .home-about-section {
        min-height: auto;
    }

    .home-about-inner {
        flex-direction: column;
        justify-content: center;
        min-height: auto;
        padding-top: 50px;
        padding-bottom: 50px;
        gap: 40px;
        overflow: visible;
    }

    .home-about-card {
        order: 2;
        margin-left: 0;
        width: min(568px, 100%);
        height: auto;
        min-height: auto;
    }

    .home-about-media {
        order: 1;
        flex: 0 1 auto;
        max-width: min(900px, 98%);
        width: 100%;
    }

    .home-about-card-content {
        padding: clamp(32px, 6.5vw, 56px) clamp(22px, 5vw, 44px);
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .home-about-inner {
        padding-top: 48px;
        padding-bottom: 48px;
        gap: 28px;
        align-items: center;
    }

    .home-about-card {
        width: min(100%, 420px);
        height: auto;
        min-height: auto;
        border-start-start-radius: 0;
        border-start-end-radius: clamp(18px, 5vw, 32px);
        border-end-end-radius: 0;
        border-end-start-radius: clamp(18px, 5vw, 32px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        background: rgba(4, 10, 32, 0.22);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        flex-shrink: 0;
        margin-top: -100px;
    }

    .home-about-card-overlay {
        opacity: 0.05;
    }

    .home-about-title {
        font-size: 20px;
        font-weight: 900;
        line-height: 24px;
        margin: 0 0 6px;
    }

    .home-about-text,
    .home-about-body-rich {
        font-size: 13px;
        line-height: 1.5;
    }

    .home-about-media {
        width: min(460px, 96%);
        height: 300px;
        overflow: hidden;
    }

    .home-about-media::before {
        width: 100%;
        height: 520px;
        transform: scale(1.18);
        background-position: center top;
        -webkit-mask-position: center top;
        mask-position: center top;
    }

    .home-about-card-content {
        padding: clamp(18px, 4vw, 28px) clamp(16px, 4vw, 24px);
        justify-content: flex-start;
    }

    .home-about-filter-icon {
        width: 26.44px;
        right: 10px;
        bottom: 10px;
    }
}

/* Small Mobile */
@media (max-width: 479.98px) {
    .home-about-inner {
        padding-top: 36px;
        padding-bottom: 36px;
        gap: 20px;
    }

    .home-about-card {
        /* min-height: clamp(240px, 60vw, 320px); */
        margin-top: -80px;
        /* 25% of image height (160px) */
    }

    .home-about-media {
        width: min(360px, 94%);
        height: 240px;
    }

    .home-about-media::before {
        height: 420px;
        transform: scale(1.16);
    }

    .home-about-card-content {
        padding: 12px 16px;
    }

    .home-about-filter-icon {
        width: 44px;
        right: 8px;
        bottom: 8px;
    }
}

/* ========== SERVICES SECTION ========== */
.home-services-section {
    position: relative;
    width: 100%;
    min-height: clamp(560px, 62.73vw, 803px);
    overflow: hidden;
    /* background: same layered strip as .home-clients-partners-wrap (see CLIENTS + PARTNERS block) */
}

.home-services-inner {
    position: relative;
    width: 100%;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2.75rem);
    box-sizing: border-box;
    min-width: 0;
}

/* Three-column row (service | image | service) — positioning from Tailwind in blade + .home-services-inner--layout */

.home-services-block {
    position: relative;
    z-index: 2;
    padding: 20px;
    box-sizing: border-box;
}

.home-services-block-pre,
.home-services-block-post {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
}

.home-services-title {
    margin: 0;
    font-family: var(--font-arabic-heading);
    font-weight: 700;
    font-size: clamp(26px, 3.13vw, 40px);
    line-height: 1.05;
    letter-spacing: 0;
    text-align: center;
    text-transform: capitalize;
    color: var(--c-text-primary);
    direction: ltr;
    unicode-bidi: isolate;
}

.home-services-line {
    display: block;
    height: 11px;
    width: min(263px, 75%);
    background: var(--c-accent);
    margin: clamp(12px, 1.25vw, 16px) auto clamp(16px, 1.87vw, 24px);
}

.home-services-text {
    margin: 0;
    font-family: var(--font-arabic);
    font-weight: 400;
    font-size: clamp(16px, 2.73vw, 35px);
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-transform: capitalize;
    color: var(--c-text-primary);
    direction: ltr;
    unicode-bidi: isolate;
}

/* Center image (in flow inside .home-services-center) */
.home-services-team-img {
    position: relative;
    display: block;
    margin-inline: auto;
    width: 100%;
    height: auto;
    max-width: 100%;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
    object-fit: contain;
}

.home-services-slider-nav {
    display: none;
}

.home-services-filter-icon {
    position: absolute;
    right: 30px;
    bottom: 20px;
    width: 26.44px;
    height: auto;
    z-index: 4;
    pointer-events: none;
}

/* ===== DESKTOP (1024px+): fixed 3 columns — left service | center image | right service ===== */
@media (min-width: 1024px) {
    .home-services-inner.home-services-inner--layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(300px, min(680px, 50vw)) minmax(0, 1fr);
        align-items: end;
        column-gap: clamp(1.25rem, 2.5vw, 2rem);
        row-gap: 1.5rem;
        min-height: min(640px, 72vh);
        padding-top: 2.5rem;
        padding-bottom: clamp(1.5rem, 3vw, 2.75rem);
    }

    /* Neutralize Tailwind md:order-* so DOM / grid placement always wins on desktop */
    .home-services-inner--layout > .home-services-block-pre,
    .home-services-inner--layout > .home-services-block-post,
    .home-services-inner--layout > .home-services-center {
        order: 0 !important;
    }

    .home-services-inner--layout > .home-services-block-pre {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
        align-self: end;
        width: 100%;
        max-width: 36rem;
        transform: translateY(clamp(1.25rem, 2.8vw, 2.75rem));
    }

    .home-services-inner--layout > .home-services-center {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        max-width: min(680px, 50vw);
        min-height: 0;
    }

    .home-services-inner--layout > .home-services-center .home-services-team-img {
        max-height: min(880px, 82vh);
        width: auto;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        object-position: bottom center;
    }

    .home-services-inner--layout > .home-services-block-post {
        grid-column: 3;
        grid-row: 1;
        justify-self: center;
        align-self: end;
        width: 100%;
        max-width: 36rem;
    }
}

/* ===== TABLET (768px–1023px): stack [service][image][service], all visible ===== */
@media (max-width: 1023.98px) and (min-width: 768px) {
    .home-services-section {
        min-height: auto;
    }

    .home-services-inner--layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .home-services-block {
        position: relative !important;
        width: min(560px, 100%) !important;
        max-width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .home-services-center {
        width: 100%;
        max-width: min(520px, 92vw);
    }

    .home-services-team-img {
        max-height: 520px;
    }

    .home-services-slider-nav {
        display: none !important;
    }
}

/* ===== MOBILE SLIDER (767px and below) ===== */
@media (max-width: 767.98px) {
    .home-services-section {
        min-height: auto;
        padding: 40px 0 0 0;
    }

    .home-services-inner {
        width: 100%;
        max-width: min(360px, 100%);
        min-height: auto;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        position: relative;
    }

    /* Blocks: Only one visible at a time */
    .home-services-block {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 320px;
        margin: 0 auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 16px;
    }

    .home-services-block.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: flex;
    }

    .home-services-title {
        font-size: 20px;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 8px;
    }

    .home-services-line {
        width: 116px;
        height: 3px;
        margin: 4px auto 12px;
    }

    .home-services-text {
        font-size: 14px;
        line-height: 1.5;
        text-align: center;
    }

    /* Image: Below text, centered */
    .home-services-team-img {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: min(260px, 72vw) !important;
        height: auto !important;
        object-fit: contain;
        margin: 16px auto 0 !important;
    }

    /*  Arrows: Full section width, positioned at edges */
    .home-services-slider-nav {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(-50%) !important;
        width: 100% !important;
        max-width: none !important;
        /*  Allow full section width */
        height: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        z-index: 3;
        margin: 0;
        padding: 0 8px;
        /*  Small gap from section edge */
        pointer-events: none;
        /* Container doesn't block clicks */
    }

    .home-services-slider-btn {
        width: 44px !important;
        height: 44px !important;
        border: 0;
        /* background: rgba(255, 255, 255, 0.1); */
        border-radius: 50%;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        pointer-events: auto;
        /*  Buttons ARE clickable */
    }

    /* .home-services-slider-btn-prev{
        rotate: 180deg;
    }
    .home-services-slider-btn-prev{
        rotate: 180deg;
    } */
    .home-services-slider-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .home-services-slider-btn img {
        display: block;
        width: 14px;
        height: 24px;
        object-fit: contain;
    }

    .home-services-filter-icon {
        right: 10px;
        bottom: 10px;
        width: 26.44px;
    }
}

/* Small Mobile */
@media (max-width: 479.98px) {
    .home-services-slider-nav {
        padding: 0 4px;
        /*  Even smaller gap on tiny screens */
    }

    .home-services-slider-btn {
        width: 40px !important;
        height: 40px !important;
    }

    .home-services-slider-btn img {
        width: 12px;
        height: 20px;
    }
}

.home-events-section{
    background: var(--c-bg-gradient);
    background: var(--event-bg-img, url('/assests/img/event.png'));
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    /* background: var(--c-bg-footer-img, url('/assests/img/footer-pattern.svg')); */
    background-size: cover, auto;        /* Gradient covers, image auto */
    background-position: bottom right, bottom right;
    background-repeat: no-repeat, no-repeat; /* ✅ Prevent repetition */
    background-attachment: scroll;
    overflow: hidden;
}

.eventsCalendar{
    background: rgba(255, 255, 255, 0.1);
    /* background: linear-gradient(180deg, rgba(8, 16, 52, 0.45) 0%, rgba(8, 16, 52, 0.22) 100%) padding-box, linear-gradient(270.68deg, rgba(255, 255, 255, 0.05) 0.87%, var(--c-white) 10.05%, rgba(255, 255, 255, 0) 89.32%, var(--c-white) 99.47%) border-box; */
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* ========== PRODUCTION LINES / CHIPS SECTION ========== */
/* END PRODUCTION LINES / CHIPS SECTION */

/* ========== CLIENTS + PARTNERS + SERVICES (same themed strip on home) ========== */
.home-clients-partners-wrap {
    position: relative;
    width: 100%;
}

.home-clients-partners-wrap,
.home-services-section {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(0, 0, 0, 0.5) 100%),
        var(--c-bg-gradient);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.home-clients-slider-section {
    background: transparent;
}

/* Legacy class name kept for any older markup */
.home-clients-section {
    position: relative;
    width: 100%;
    min-height: 346px;
    padding: 27px 0 40px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.home-clients-header {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.home-clients-title {
    position: relative;
    box-sizing: border-box;
    width: max-content;
    max-width: min(92vw, 520px);
    min-height: 44px;
    margin: 0;
    padding: 10px clamp(18px, 3vw, 28px);
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #ffffff !important;
    font-family: var(--font-arabic);
    font-weight: 400;
    font-size: clamp(22px, 3.2vw, 36px);
    line-height: 1.15;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    white-space: normal;
    word-break: break-word;
}

.home-clients-title::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(8, 16, 52, 0.35) 0%, rgba(8, 16, 52, 0.28) 100%) padding-box,
        linear-gradient(90deg, #FFFFFF 3.37%, rgba(255, 255, 255, 0) 51.44%, #FFFFFF 100%) border-box;
    opacity: 0.35;
    z-index: -1;
}

.home-clients-slider {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 45px min(1146px, calc(100% - 90px)) 45px;
    align-items: center;
    gap: 22px;
}

.home-clients-slider-mobile {
    display: none;
}

.home-clients-arrow {
    width: 45px;
    height: 29px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.home-clients-arrow img {
    width: 45px;
    height: 29px;
    object-fit: contain;
    display: block;
}

.home-clients-arrow-next img {
    transform: rotate(180deg);
}

.home-clients-arrow.is-disabled {
    opacity: 0.5;
    cursor: default;
}

.home-clients-viewport {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.home-clients-viewport.is-dragging {
    cursor: grabbing;
}

.home-clients-track {
    display: flex;
    gap: 46px;
    align-items: center;
    width: max-content;
}

.home-clients-mobile-page {
    flex: 0 0 auto;
}

.home-clients-mobile-grid {
    display: grid;
}

.home-clients-mobile-logo {
    display: block;
    object-fit: contain;
}

.home-clients-item {
    width: 192px;
    height: 112px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-clients-logo {
    width: 192px;
    height: 112px;
    object-fit: contain;
    opacity: 0.74;
}

@media (max-width: 991.98px) {
    .home-clients-section {
        min-height: 300px;
        padding: 22px 0 30px;
    }

    .home-clients-title {
        max-width: min(94vw, 440px);
        min-height: 40px;
        padding: 8px clamp(14px, 2.5vw, 22px);
        font-size: clamp(20px, 2.8vw, 30px);
    }

    .home-clients-slider {
        grid-template-columns: 36px min(720px, calc(100% - 72px)) 36px;
        gap: 12px;
    }

    .home-clients-arrow,
    .home-clients-arrow img {
        width: 36px;
        height: 23px;
    }

    .home-clients-track {
        gap: 24px;
    }

    .home-clients-item,
    .home-clients-logo {
        width: 160px;
        height: 93px;
    }
}

/* ========== LOGO SLIDER SECTION - MOBILE ========== */

/* ========== END LOGO SLIDER SECTION - MOBILE ========== */


/* CTA button glass gradient border */
.home-events-cta {
    border-radius: 50px;
    border: 2px solid transparent;
    background: linear-gradient(179.51deg, #FFFFFF -13.95%, rgba(255, 255, 255, 0.23) 113.94%) padding-box,
        linear-gradient(270.68deg, rgba(255, 255, 255, 0.05) 0.87%, #FFFFFF 10.05%, rgba(255, 255, 255, 0) 89.32%, #FFFFFF 99.47%) border-box;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Calendar nav button glass border */
.calendar-nav-btn {
    background:
        transparent padding-box,
        linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 17.31%, rgba(255, 255, 255, 0) 86.54%, #FFFFFF 100%) border-box;
}

.calendar-nav-btn:hover {
    background:
        rgba(255, 255, 255, 0.05) padding-box,
        linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.2) 17.31%, rgba(255, 255, 255, 0.05) 86.54%, #FFFFFF 100%) border-box;
}

/* Calendar button hover effects */
.calendar-btn:hover {
    background:
        rgba(255, 255, 255, 0.05) padding-box,
        linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.2) 17.31%, rgba(255, 255, 255, 0.05) 86.54%, #FFFFFF 100%) border-box;
}

.calendar-btn:active {
    opacity: 0.85;
    transform: scale(0.98);
}

.calendar-btn-save:hover {
    background:
        rgba(212, 175, 55, 0.15) padding-box,
        linear-gradient(180deg, #D4AF37 0%, rgba(212, 175, 55, 0.3) 17.31%, rgba(212, 175, 55, 0.1) 86.54%, #D4AF37 100%) border-box;
}

.calendar-btn-cancel:hover {
    background:
        rgba(255, 82, 82, 0.15) padding-box,
        linear-gradient(180deg, #ff5252 0%, rgba(255, 82, 82, 0.3) 17.31%, rgba(255, 82, 82, 0.1) 86.54%, #ff5252 100%) border-box;
}

/* ========== FOOTER SECTION ========== */
/* (site-footer background moved to --c-bg-footer CSS variable) */

/* Subscribe button unique underline effect */
.subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.subscribe-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
}

.subscribe-btn:hover {
    color: #ffd700;
}

/* (footer-logo styles converted to Tailwind: w-full z-0 mb-[-126px] translate-y-[-150px]) */

/* FOOTER SECTION

.footer-bg {
    background: var(--c-bg-footer-combined);
    background-size: cover;
    background-position: bottom right;
    background-repeat: var(--c-bg-footer-repeat);
    background-attachment: fixed;
    background: var(--c-bg-footer-img);
}

@media (max-width: 719.98px) {
    .footer-bg {
        background-position: center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-attachment: unset !important;
    }
}

 */

/* ========== REUSABLE FOOTER COMPONENT ========== */

.blog-footer-component {
    position: absolute;
    bottom: 0;
    left: var(--footer-left, 815px);
    display: flex;
    align-items: center;
    gap: 50px;
    z-index: 10;
    margin: 20px 10px 20px 0;
}

/* Position variants */
.blog-footer-component[data-position="bottom-right"] {
    right: 37px;
    left: auto;
}

.blog-footer-component[data-position="bottom-left"] {
    left: 37px;
    right: auto;
}

.blog-footer-component[data-position="bottom-center"] {
    left: 50%;
    transform: translateX(-50%);
}


/* Social Icons (Right to Left order) */
.blog-footer-icons {
    display: flex;
    flex-direction: row-reverse;
    /* Right to left */
    align-items: center;
    gap: 12px;
}

.blog-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
}

.blog-footer-icon:hover {
    transform: scale(1.1);
}

.blog-footer-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Contact Button */
.blog-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 145.91px;
    height: 46.34px;
    border-radius: 50px;
    border: 2px solid transparent;
    border-image-slice: 1;
    background: rgba(255, 255, 255, 0.1);
    color: var(--c-white);
    font-family: var(--font-arabic);
    font-weight: 400;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.blog-footer-btn:hover {
    background: rgba(255, 255, 255, 0.23);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Large screens: Ensure proper positioning */
@media (min-width: 1280px) {
    .home-header-nav-container {
        top: 36px;
        left: 37px;
    }
    
    .home-header-cut-actions {
        bottom: 0;
        right: 35px;
    }
}


@media (max-width: 1023.98px) {

    /* Hide footer component on tablet or reposition */
    .blog-footer-component {
        position: relative;
        bottom: 0;
        left: auto !important;
        right: auto !important;
        margin: 40px auto;
        justify-content: center;
    }

    .blog-footer-icons {
        display: flex;
        flex-direction: row-reverse;
        /* Right to left */
        align-items: center;
        gap: 8px;
    }

    .blog-footer-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        transition: transform 0.2s ease;
    }

    .blog-footer-btn {
        width: 140px;
        height: 40px;
    }
}

@media (max-width: 767.98px) {

    /* Reposition footer for mobile */
    .blog-footer-component {
        width: 100vw;
        position: relative;
        bottom: 0;
        left: auto !important;
        right: auto !important;
        margin: 30px auto 0;
        /* flex-direction: column; */
        gap: 16px;
    }

    .blog-footer-icons {
        display: flex;
        flex-direction: row-reverse;
        /* Right to left */
        align-items: center;
        gap: 6px;
    }

    .blog-footer-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        transition: transform 0.2s ease;
    }

    .blog-footer-btn {
        width: 120px;
        height: 35px;
    }
}
    /* ========== END REUSABLE FOOTER COMPONENT ========== */








    /* Decorative Line Component */
.decorative-line {
    display: block;
    /* width: 100%;  */
    height: auto;
    /* max-width: 100%; */
    transition: opacity 0.3s ease;
}

/* Wrapper for JS width matching */
.decorative-line-wrapper {
    display: inline-block; /* ✅ Wrap content */
    width: auto;
    margin: 0;
}

/* RTL Support */
[dir="rtl"] .decorative-line {
    /* Add RTL-specific styles if needed */
}

/* Ensure line stays below button */
.footer-social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-subscribe-btn {
    display: inline-block;
    margin-bottom: 5px; /* Space between button and line */
}
/* Responsive width handling */
.decorative-line.responsive-width {
    /* width: 100%;
    max-width: 360px;  */
}

@media (max-width: 767.98px) {
    .decorative-line.responsive-width {
        /* max-width: 154px;  */
    }
}

/* ========== Locale dropdown (navbar) ========== */
.locale-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.locale-dropdown__toggle {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

button.home-header-lang-icon {
    border: 0;
    background: transparent;
    text-decoration: none;
}

.locale-dropdown__toggle--icon-only {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.locale-dropdown__icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.locale-dropdown--site-mobile .locale-dropdown__icon-img {
    width: 28px;
    height: 28px;
}

.locale-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 168px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: rgba(15, 0, 0, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    z-index: 250;
}

.locale-dropdown__item-wrap {
    margin: 0;
    padding: 0;
}

.locale-dropdown__item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-arabic), var(--font-latin), system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.25;
    text-align: start;
    white-space: nowrap;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.locale-dropdown__item:hover,
.locale-dropdown__item:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.locale-dropdown__item.is-current {
    color: var(--c-active, #ac0013);
    font-weight: 600;
    cursor: default;
}

.locale-dropdown__item.is-current:hover {
    background: transparent;
}