/* =====================================================================
   Altayseer cinematic service showcase
   Full-width crossfade carousel inspired by the current companies page.
   No horizontal track, no clones and no RTL positioning calculations.
   ===================================================================== */

.home-page .home-services-showcase-section {
    position: relative;
    overflow: hidden;
    padding: clamp(68px, 7vw, 108px) 0 0;
    background: var(--home-section-soft, #f4f7fb);
}

.home-page .service-showcase-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: clamp(28px, 3vw, 46px);
}

.home-page .service-showcase-heading > div {
  flex: 1;
    min-width: 0;
    max-width: none;}

.home-page .service-showcase-heading h2 {
    margin: 8px 0 10px;

    color: var(--home-heading, #153968);

    font-size: clamp(2.15rem, 3.25vw, 3.65rem);
    line-height: 1.14;

    white-space: nowrap;
}

.home-page .service-showcase-heading p {
    margin: 0;

    color: var(--home-muted, #6a7c8f);

    font-size: var(--home-supporting-size);
    line-height: var(--home-supporting-line-height);
}
.home-page .service-showcase {
    --service-interval: 5800ms;
    position: relative;
    width: 100%;
    height: clamp(610px, 78svh, 880px);
    min-height: 610px;
    overflow: hidden;
    isolation: isolate;
    background: #0a2442;
    color: #fff;
    outline: none;
    touch-action: pan-y;
}

.home-page .service-showcase:focus-visible {
    box-shadow: inset 0 0 0 3px #ee6623;
}

.home-page .service-showcase-slides,
.home-page .service-showcase-slide {
    position: absolute;
    inset: 0;
}

.home-page .service-showcase-slide {
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 1.05s cubic-bezier(.4, 0, .2, 1),
        visibility 0s linear 1.05s;
}

.home-page .service-showcase-slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.home-page .service-showcase-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.045);
    filter: saturate(.94) contrast(1.02);
    transition: transform 7.5s cubic-bezier(.2, .65, .25, 1);
}

.home-page .service-showcase-slide.is-active .service-showcase-image {
    transform: scale(1);
}

.home-page .service-showcase-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 20, 39, .08) 18%, rgba(4, 20, 39, .34) 53%, rgba(4, 20, 39, .94) 100%),
        linear-gradient(180deg, rgba(4, 20, 39, .06) 42%, rgba(4, 20, 39, .76) 100%);
}

.home-page .service-showcase[dir="ltr"] .service-showcase-shade {
    background:
        linear-gradient(270deg, rgba(4, 20, 39, .08) 18%, rgba(4, 20, 39, .34) 53%, rgba(4, 20, 39, .94) 100%),
        linear-gradient(180deg, rgba(4, 20, 39, .06) 42%, rgba(4, 20, 39, .76) 100%);
}

.home-page .service-showcase-content {
    position: absolute;
    z-index: 3;
    inset-inline-start: max(clamp(24px, 7vw, 128px), env(safe-area-inset-left));
    inset-inline-end: auto;
    bottom: max(clamp(78px, 9vh, 116px), calc(env(safe-area-inset-bottom) + 72px));
    width: min(690px, 46vw);
    text-align: start;
}

.home-page .service-showcase[dir="rtl"] .service-showcase-content {
    inset-inline-start: auto;
    inset-inline-end: max(clamp(24px, 7vw, 128px), env(safe-area-inset-right));
}

.home-page .service-showcase-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 19px;
    color: #ee6623;
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.home-page .service-showcase-number span {
    color: rgba(255, 255, 255, .52);
}

.home-page .service-showcase-label {
    display: block;
    margin-bottom: 11px;
    color: rgba(255, 255, 255, .76);
    font-size: .92rem;
    font-weight: 800;
}

.home-page .service-showcase-content h3 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.7rem, 5.2vw, 6rem);
    line-height: 1.08;
    text-wrap: balance;
    text-shadow: 0 8px 32px rgba(0, 0, 0, .28);
}

.home-page .service-showcase-content p {
    max-width: 620px;
    margin: 22px 0 30px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1rem, 1.35vw, 1.28rem);
    line-height: 1.9;
}

.home-page .service-showcase-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 210px;
    min-height: 54px;
    gap: 24px;
    padding: 13px 19px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: rgba(7, 32, 59, .35);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.home-page .service-showcase-action:hover,
.home-page .service-showcase-action:focus-visible {
    background: #ee6623;
    border-color: #ee6623;
    transform: translateY(-2px);
}

.home-page .service-showcase-action b {
    font-size: 1.1rem;
}

.home-page .service-showcase-footer {
    position: absolute;
    z-index: 6;
    inset-inline: max(clamp(24px, 7vw, 128px), env(safe-area-inset-left));
    bottom: max(25px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 20px;
}

.home-page .service-showcase[dir="rtl"] .service-showcase-footer {
    inset-inline-start: auto;
    inset-inline-end: max(clamp(24px, 7vw, 128px), env(safe-area-inset-right));
}

.home-page .service-showcase-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-page .service-showcase-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .42);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.home-page .service-showcase-dot.is-active {
    width: 32px;
    background: #ee6623;
}

.home-page .service-showcase-progress {
    width: min(240px, 22vw);
    height: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, .24);
}

.home-page .service-showcase-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: #ee6623;
    transform: scaleX(0);
    transform-origin: left center;
}

.home-page .service-showcase[dir="rtl"] .service-showcase-progress span {
    transform-origin: right center;
}

.home-page .service-showcase.is-running .service-showcase-progress span {
    animation: serviceShowcaseProgress var(--service-interval) linear forwards;
}

.home-page .service-showcase.is-paused .service-showcase-progress span {
    animation-play-state: paused;
}

@keyframes serviceShowcaseProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

html[data-theme="dark"] .home-page .home-services-showcase-section {
    background: #081f38;
}

html[data-theme="dark"] .home-page .service-showcase-heading h2 {
    color: #fff;
}

html[data-theme="dark"] .home-page .service-showcase-heading p {
    color: #c5d4e4;
}

@media (max-width: 1200px) {
    .home-page .service-showcase-heading h2 {
        white-space: normal;
    }
}
@media (max-width: 900px) {
    .home-page .service-showcase-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .home-page .service-showcase {
        height: clamp(590px, 74svh, 760px);
        min-height: 590px;
    }

    .home-page .service-showcase-content,
    .home-page .service-showcase[dir="rtl"] .service-showcase-content {
        inset-inline: clamp(24px, 6vw, 54px);
        bottom: max(82px, calc(env(safe-area-inset-bottom) + 72px));
        width: auto;
    }

    .home-page .service-showcase-shade,
    .home-page .service-showcase[dir="ltr"] .service-showcase-shade {
        background: linear-gradient(180deg, rgba(4, 20, 39, .08) 18%, rgba(4, 20, 39, .56) 52%, rgba(4, 20, 39, .97) 100%);
    }

    .home-page .service-showcase-footer,
    .home-page .service-showcase[dir="rtl"] .service-showcase-footer {
        inset-inline: clamp(24px, 6vw, 54px);
    }

    .home-page .service-showcase-progress {
        width: min(180px, 32vw);
    }
}

@media (max-width: 620px) {
    .home-page .home-services-showcase-section {
        padding-top: 58px;
    }

    .home-page .service-showcase-heading h2 {
        font-size: clamp(1.95rem, 10vw, 2.75rem);
    }

    .home-page .service-showcase {
        height: max(590px, 72svh);
        min-height: 590px;
    }

    .home-page .service-showcase-content,
    .home-page .service-showcase[dir="rtl"] .service-showcase-content {
        inset-inline: max(20px, env(safe-area-inset-left));
        bottom: max(82px, calc(env(safe-area-inset-bottom) + 72px));
    }

    .home-page .service-showcase-content h3 {
        font-size: clamp(2.25rem, 12vw, 3.35rem);
        line-height: 1.12;
    }

.home-page .service-showcase-content p {
    display: -webkit-box;
    overflow: hidden;

    margin: 16px 0 22px;

    font-size: .98rem;
    line-height: 1.75;

    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

    .home-page .service-showcase-action {
        min-width: 190px;
        min-height: 50px;
    }

    .home-page .service-showcase-footer,
    .home-page .service-showcase[dir="rtl"] .service-showcase-footer {
        inset-inline: max(20px, env(safe-area-inset-left));
        gap: 13px;
    }

    .home-page .service-showcase-progress {
        width: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .service-showcase-slide,
    .home-page .service-showcase-image,
    .home-page .service-showcase-action,
    .home-page .service-showcase-dot {
        transition: none !important;
    }

    .home-page .service-showcase-progress span {
        animation: none !important;
    }
}
/* ================================================================
   SERVICE SHOWCASE — Chairman revision
   Content at upper-right
   ================================================================ */

.service-showcase-slide {
    position: relative;
}

.service-showcase-content {
    position: absolute !important;

    top: 28px !important;
    right: 32px !important;
    bottom: auto !important;
    left: auto !important;

    width: min(560px, calc(100% - 64px)) !important;
    max-width: 560px !important;

    margin: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;

    text-align: right !important;

    z-index: 3;
}

/* Number */
.service-showcase-content .service-showcase-number {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Our services / خدماتنا */
.service-showcase-content .service-showcase-label {
    text-align: right !important;
}

/* Service title */
.service-showcase-content h3 {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;

    text-align: right !important;
}

/* Description */
.service-showcase-content p {
    width: 100%;
    max-width: 520px;

    margin-left: 0 !important;
    margin-right: 0 !important;

    text-align: right !important;
}

/* Explore service button/link */
.service-showcase-content .service-showcase-action {
    align-self: flex-end !important;
}


/* Tablet */
@media (max-width: 900px) {
    .service-showcase-content {
        top: 22px !important;
        right: 22px !important;

        width: min(520px, calc(100% - 44px)) !important;
    }
}


/* Mobile */
@media (max-width: 620px) {
    .service-showcase-content {
        top: 18px !important;
        right: 18px !important;

        width: calc(100% - 36px) !important;
        max-width: none !important;
    }
}
/* ================================================================
   SERVICE SHOWCASE — RTL / LTR final alignment
   ================================================================ */

/* Arabic — upper far right */
html[dir="rtl"] .service-showcase-content {
    top: 28px !important;
    right: 32px !important;
    left: auto !important;

    align-items: flex-end !important;
    text-align: right !important;
}

html[dir="rtl"] .service-showcase-content h3,
html[dir="rtl"] .service-showcase-content p {
    text-align: right !important;
}

html[dir="rtl"] .service-showcase-content .service-showcase-action {
    align-self: flex-end !important;
}


/* English — upper far left */
html[dir="ltr"] .service-showcase-content {
    top: 28px !important;
    left: 32px !important;
    right: auto !important;

    align-items: flex-start !important;
    text-align: left !important;
}

html[dir="ltr"] .service-showcase-content .service-showcase-number,
html[dir="ltr"] .service-showcase-content .service-showcase-label,
html[dir="ltr"] .service-showcase-content h3,
html[dir="ltr"] .service-showcase-content p {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
}

html[dir="ltr"] .service-showcase-content .service-showcase-action {
    align-self: flex-start !important;
}


/* Service title — one line in both languages */
.service-showcase-content h3 {
    width: max-content !important;
    max-width: calc(100vw - 80px) !important;

    white-space: nowrap !important;
    text-wrap: nowrap !important;

    overflow: visible !important;
    text-overflow: clip !important;
}


/* Compact screens */
@media (max-width: 620px) {

    html[dir="rtl"] .service-showcase-content {
        right: 18px !important;
        left: auto !important;
    }

    html[dir="ltr"] .service-showcase-content {
        left: 18px !important;
        right: auto !important;
    }

    .service-showcase-content h3 {
        max-width: calc(100vw - 50px) !important;
    }
}
/* ================================================================
   SERVICE SHOWCASE — RTL physical right alignment FINAL
   ================================================================ */

@media (min-width: 621px) {

    html[dir="rtl"] .home-page .service-showcase-content {
        position: absolute !important;

        top: 28px !important;
        right: 0 !important;
        left: 0 !important;
        bottom: auto !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 48px !important;

        box-sizing: border-box !important;

        display: block !important;

        direction: rtl !important;
        text-align: right !important;

        transform: none !important;
        translate: none !important;
    }


    /* Every element uses the exact same physical right edge */
    html[dir="rtl"] .home-page .service-showcase-number,
    html[dir="rtl"] .home-page .service-showcase-label,
    html[dir="rtl"] .home-page .service-showcase-content h3,
    html[dir="rtl"] .home-page .service-showcase-content p,
    html[dir="rtl"] .home-page .service-showcase-action {
        margin-left: auto !important;
        margin-right: 0 !important;

        text-align: right !important;

        transform: none !important;
        translate: none !important;
    }


    /* Number */
    html[dir="rtl"] .home-page .service-showcase-number {
        width: max-content !important;
        margin-bottom: 16px !important;
    }


    /* خدماتنا */
    html[dir="rtl"] .home-page .service-showcase-label {
        display: block !important;

        width: max-content !important;
        margin-bottom: 12px !important;
    }


    /* Service title */
    html[dir="rtl"] .home-page .service-showcase-content h3 {
        display: block !important;

        width: max-content !important;
        max-width: 100% !important;

        margin-top: 0 !important;
        margin-bottom: 14px !important;

        font-size: clamp(2.8rem, 4.2vw, 5rem) !important;
        line-height: 1.15 !important;

        white-space: nowrap !important;
        text-wrap: nowrap !important;

        overflow: visible !important;
        text-overflow: clip !important;
    }


    /* Description */
    html[dir="rtl"] .home-page .service-showcase-content p {
        width: min(680px, 100%) !important;
        max-width: 680px !important;

        margin-bottom: 22px !important;

        text-align: right !important;
    }


    /* Button */
    html[dir="rtl"] .home-page .service-showcase-action {
        display: flex !important;
        width: max-content !important;
    }
}