/* ============================================================
   SANABIL MEDICAL ESTABLISHMENT — Brand Layer
   Corporate medical/laboratory components on top of the
   design system (sanabil-base.css + tailwind.generated.css).
   ============================================================ */

/* --- Bilingual toggling (global) --- */
html[lang="ar"] .sanabil-page .lang-en,
html[lang="ar"] .sanabil-page .label-en { display: none !important; }

html[lang="en"] .sanabil-page .lang-ar,
html[lang="en"] .sanabil-page .label-ar { display: none !important; }

html[lang="en"] .sanabil-page .lang-en { text-align: left; }
html[lang="en"] .sanabil-page .lang-en ul { padding-right: 0; padding-left: 2rem; }

/* --- Brand color utilities --- */
.text-accent { color: var(--accent, #0EA5A0) !important; }
.bg-accent { background-color: var(--accent, #0EA5A0) !important; }
.border-accent { border-color: var(--accent, #0EA5A0) !important; }
.text-accent-soft { color: var(--accent-soft, #0B8580) !important; }
.bg-navy { background-color: #0B2A4A !important; }
.bg-navy-deep { background-color: #071E36 !important; }
.bg-navy-mid { background-color: #174A73 !important; }
.text-navy { color: #0B2A4A !important; }
.border-navy { border-color: #0B2A4A !important; }

/* --- Logo --- */
.sanabil-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.sanabil-logo__mark {
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
}
.sanabil-logo__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    line-height: 1.15;
}
.sanabil-logo__ar {
    font-weight: 800;
    font-size: 1.05rem;
}
.sanabil-logo__en {
    font-family: var(--font-en), sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* --- Section header system --- */
.sanabil-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent, #0EA5A0);
}
.sanabil-eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}
.sanabil-eyebrow--center::after {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}
.sanabil-section-title {
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main, #102A41);
    letter-spacing: -0.01em;
}
.sanabil-section-title.text-white { color: #ffffff; }
.sanabil-section-sub {
    color: var(--text-muted, #5B6B7A);
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: start;
}
.sanabil-section-sub.mb-10 {
    text-align: justify;
    text-justify: inter-word;
}
.text-center .sanabil-section-title,
.text-center .sanabil-section-sub {
    text-align: center;
}

/* --- Home hero (clinical light) --- */
.sanabil-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(14, 165, 160, 0.12), transparent 46%),
        radial-gradient(circle at 6% 90%, rgba(23, 74, 115, 0.09), transparent 44%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FBFC 58%, #EEF4F6 100%);
    color: var(--text-main, #102A41);
    isolation: isolate;
}
.sanabil-hero__video {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sanabil-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(var(--hero-overlay-angle, 90deg), rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(255, 255, 255, 0.6) 64%, rgba(255, 255, 255, 0.34) 100%);
}
html[dir="rtl"] .sanabil-hero { --hero-overlay-angle: 270deg; }
/* Mobile: show the full video as a banner above the content instead of a cropped background */
@media (max-width: 767px) {
    .sanabil-hero {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding-top: 7.25rem; /* clear the fixed header */
    }
    .sanabil-hero__video {
        position: relative;
        inset: auto;
        z-index: 0;
        height: auto;
        aspect-ratio: 16 / 9;
        -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    }
    .sanabil-hero__overlay { display: none; }
    .sanabil-hero .sanabil-hero__content {
        padding-top: 1.5rem;
        padding-bottom: 4rem;
    }
}
.sanabil-hero__halo {
    position: absolute;
    inset: -30%;
    z-index: -1;
    background:
        conic-gradient(from 120deg at 72% 42%, rgba(14, 165, 160, 0.14), transparent 30%, rgba(23, 74, 115, 0.10) 55%, transparent 78%);
    filter: blur(60px);
    animation: sanabil-halo-float 26s ease-in-out infinite alternate;
}
@keyframes sanabil-halo-float {
    from { transform: translate3d(-2%, -1%, 0) rotate(0deg); }
    to   { transform: translate3d(2%, 1%, 0) rotate(4deg); }
}
.sanabil-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid rgba(14, 165, 160, 0.55);
    border-radius: 999px;
    background: rgba(14, 165, 160, 0.12);
    color: #4FD6D1;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.sanabil-hero-title {
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: #ffffff;
}
.sanabil-hero-title .lang-en {
    font-family: var(--font-en), sans-serif;
    font-weight: 700;
}
.sanabil-hero-lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.15rem;
    line-height: 2;
    max-width: 44rem;
    text-align: start;
}
/* Light clinical overrides — scoped to the home hero only */
.sanabil-hero .sanabil-hero-eyebrow {
    border-color: rgba(14, 165, 160, 0.4);
    background: rgba(14, 165, 160, 0.1);
    color: var(--teal-soft, #0B8580);
}
.sanabil-hero-logo {
    display: block;
    width: auto;
    height: 7rem;
    object-fit: contain;
}
@media (min-width: 768px) {
    .sanabil-hero-logo { height: 9rem; }
}
.sanabil-hero .sanabil-hero-title { color: #0B2A4A; }
.sanabil-hero .sanabil-hero-lead { color: var(--text-muted, #5B6B7A); }
.sanabil-hero .btn-sanabil--ghost {
    border-color: rgba(11, 42, 74, 0.22);
    color: #0B2A4A;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(11, 42, 74, 0.06);
}
.sanabil-hero .btn-sanabil--ghost:hover {
    border-color: var(--teal, #0EA5A0);
    color: var(--teal-soft, #0B8580);
    background: rgba(14, 165, 160, 0.08);
}

/* --- Hero capability chips (light clinical cards) --- */
.sanabil-hero-chip {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-radius: 1rem;
    background: var(--surface-strong, #ffffff);
    border: 1px solid rgba(11, 42, 74, 0.08);
    box-shadow: 0 14px 32px rgba(11, 42, 74, 0.06);
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, border-color 0.35s ease;
}
.sanabil-hero-chip:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 160, 0.35);
    box-shadow: 0 22px 44px rgba(11, 42, 74, 0.1);
}
.sanabil-hero-chip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    flex-shrink: 0;
    font-size: 1.25rem;
    background: rgba(14, 165, 160, 0.12);
    border: 1px solid rgba(14, 165, 160, 0.3);
    color: var(--teal-soft, #0B8580);
}
.sanabil-hero-chip__icon--navy {
    background: rgba(11, 42, 74, 0.07);
    border-color: rgba(11, 42, 74, 0.16);
    color: #174A73;
}

/* --- About corporate media panel --- */
.sanabil-about-media {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 22rem;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, #071E36 0%, #0B2A4A 55%, #174A73 100%);
    box-shadow: 0 30px 65px rgba(11, 42, 74, 0.18);
}
.sanabil-about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sanabil-about-media__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.22);
    font-size: 6rem;
}
.sanabil-about-media__info {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0.9rem 1.1rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(11, 42, 74, 0.08);
    box-shadow: 0 12px 30px rgba(7, 30, 54, 0.16);
}
.sanabil-about-media__row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0B2A4A;
}
.sanabil-about-media__row i { color: var(--teal-soft, #0B8580); }

/* --- FAQ accordion --- */
.sanabil-faq {
    border: 1px solid rgba(11, 42, 74, 0.1);
    border-radius: 1rem;
    background: var(--surface-strong, #ffffff);
    overflow: hidden;
}
.sanabil-faq + .sanabil-faq { margin-top: 0.75rem; }
.sanabil-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    font-weight: 800;
    color: #0B2A4A;
}
.sanabil-faq summary::-webkit-details-marker { display: none; }
.sanabil-faq summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--teal-soft, #0B8580);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}
.sanabil-faq[open] summary::after { transform: rotate(180deg); }
.sanabil-faq__body {
    padding: 0 1.35rem 1.25rem;
    color: var(--text-muted, #5B6B7A);
    line-height: 1.9;
}

/* --- Video library card --- */
.sanabil-video {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--surface-strong, #ffffff);
    border: 1px solid rgba(11, 42, 74, 0.08);
    text-decoration: none;
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, border-color 0.35s ease;
}
.sanabil-video:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(11, 42, 74, 0.12); border-color: rgba(14, 165, 160, 0.3); }
.sanabil-video__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #071E36 0%, #0B2A4A 55%, #174A73 100%);
    color: #ffffff;
}
.sanabil-video__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 1.05rem;
}
.sanabil-video__duration {
    position: absolute;
    bottom: 0.6rem;
    inset-inline-end: 0.6rem;
    padding: 0.15rem 0.55rem;
    border-radius: 0.4rem;
    background: rgba(7, 30, 54, 0.75);
    font-size: 0.72rem;
    font-weight: 700;
}
.sanabil-video__title { padding: 1rem 1.15rem; font-weight: 700; color: #0B2A4A; line-height: 1.6; }

/* --- Buttons --- */
.btn-sanabil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2.1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-sanabil:hover { transform: translateY(-2px); }
.btn-sanabil:focus-visible { outline: 3px solid rgba(14, 165, 160, 0.5); outline-offset: 3px; }
.btn-sanabil--teal { background: var(--teal, #0EA5A0); color: #ffffff; }
.btn-sanabil--teal:hover { box-shadow: 0 14px 30px rgba(14, 165, 160, 0.38); }
.btn-sanabil--navy { background: #0B2A4A; color: #ffffff; }
.btn-sanabil--navy:hover { box-shadow: 0 14px 30px rgba(11, 42, 74, 0.38); }
.btn-sanabil--ghost { border-color: rgba(255, 255, 255, 0.4); color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.btn-sanabil--ghost:hover { border-color: #0EA5A0; color: #4FD6D1; background: rgba(14, 165, 160, 0.12); }
.btn-sanabil--outline { border-color: #0B2A4A; color: #0B2A4A; background: transparent; }
.btn-sanabil--outline:hover { background: #0B2A4A; color: #ffffff; }
.btn-sanabil--sm { padding: 0.62rem 1rem; font-size: 0.85rem; border-radius: 0.7rem; gap: 0.45rem; }

/* --- Cards --- */
.sanabil-card {
    background: var(--surface-strong, rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(11, 42, 74, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, border-color 0.4s ease;
}
.sanabil-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(11, 42, 74, 0.1);
    border-color: rgba(14, 165, 160, 0.28);
}
.sanabil-card__body { padding: 1.5rem; }

/* Cards keep natural (start) alignment instead of justified text */
.sanabil-card,
.sanabil-product-card,
.sanabil-partner,
.sanabil-client,
.sanabil-journey {
    text-align: start;
    text-justify: auto;
}

/* --- Numbered badge --- */
.sanabil-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(14, 165, 160, 0.12);
    border: 1px solid rgba(14, 165, 160, 0.4);
    color: var(--teal-soft, #0B8580);
    font-weight: 800;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* --- Category tag --- */
.sanabil-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(11, 42, 74, 0.06);
    color: #0B2A4A;
    border: 1px solid rgba(11, 42, 74, 0.14);
}
.sanabil-tag--teal { background: rgba(14, 165, 160, 0.12); color: var(--teal-soft, #0B8580); border-color: rgba(14, 165, 160, 0.35); }
.sanabil-tag--soft { background: rgba(23, 74, 115, 0.1); color: #174A73; border-color: rgba(23, 74, 115, 0.22); }

/* --- Stock badge --- */
.sanabil-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: 1px solid;
}
.sanabil-stock--in { background: rgba(22, 163, 74, 0.12); color: #15803D; border-color: rgba(22, 163, 74, 0.35); }
.sanabil-stock--low { background: rgba(245, 158, 11, 0.14); color: #B45309; border-color: rgba(245, 158, 11, 0.4); }
.sanabil-stock--out { background: rgba(239, 68, 68, 0.12); color: #B91C1C; border-color: rgba(239, 68, 68, 0.35); }
.sanabil-stock--soon { background: rgba(37, 99, 235, 0.1); color: #1D4ED8; border-color: rgba(37, 99, 235, 0.35); }

/* --- Inline link --- */
.sanabil-link {
    font-weight: 700;
    color: #0B2A4A;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: color 0.25s ease, gap 0.25s ease;
}
.sanabil-link:hover { color: var(--teal, #0EA5A0); gap: 0.7rem; }

/* --- Icon tile (abstract cover / small icon) --- */
.sanabil-cover__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.9rem;
    background: rgba(14, 165, 160, 0.1);
    border: 1px solid rgba(14, 165, 160, 0.3);
    color: var(--teal-soft, #0B8580);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.sanabil-cover__icon--sm { width: 3rem; height: 3rem; font-size: 1.05rem; border-radius: 0.75rem; }

/* --- Filter chips --- */
.sanabil-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.sanabil-filter {
    appearance: none;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(11, 42, 74, 0.16);
    background: var(--surface-strong, rgba(255, 255, 255, 0.95));
    color: #102A41;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.sanabil-filter:hover { border-color: #0B2A4A; }
.sanabil-filter.is-active { background: var(--teal, #0EA5A0); color: #ffffff; border-color: var(--teal, #0EA5A0); }

/* --- Active category info --- */
.sanabil-category-info {
    text-align: start;
    max-width: 60rem;
    margin: 0 auto 2rem;
}
.sanabil-category-info__title {
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    font-weight: 800;
    line-height: 1.3;
    color: #0B2A4A;
    margin: 0 0 0.5rem;
}
.sanabil-category-info__desc {
    color: var(--text-muted, #5B6B7A);
    font-size: 1rem;
    line-height: 1.9;
    margin: 0;
}

/* --- Breadcrumbs --- */
.sanabil-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}
.sanabil-breadcrumb a { color: #8FD9D5; text-decoration: none; font-weight: 600; }
.sanabil-breadcrumb a:hover { color: #ffffff; }
.sanabil-breadcrumb .sep { opacity: 0.45; }

/* --- Inner page hero --- */
.sanabil-page-hero {
    position: relative;
    padding: clamp(7rem, 12vh, 9rem) 0 clamp(3rem, 6vh, 4.5rem);
    background:
        radial-gradient(circle at 80% 20%, rgba(23, 74, 115, 0.5), transparent 45%),
        linear-gradient(155deg, #071E36 0%, #0B2A4A 58%, #174A73 100%);
    color: #ffffff;
    overflow: hidden;
}
.sanabil-page-hero__grid {
    display: none;
}
.sanabil-page-hero__glow {
    position: absolute;
    inset: -30%;
    background:
        conic-gradient(from 140deg at 70% 40%, rgba(14, 165, 160, 0.14), transparent 34%, rgba(23, 74, 115, 0.22) 58%, transparent 80%);
    filter: blur(50px);
    animation: sanabil-halo-float 30s ease-in-out infinite alternate;
}

/* --- CTA band --- */
.sanabil-cta-band {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: clamp(3rem, 7vw, 5rem);
    background:
        radial-gradient(circle at 85% 20%, rgba(14, 165, 160, 0.3), transparent 40%),
        linear-gradient(150deg, #071E36 0%, #0B2A4A 60%, #174A73 100%);
    color: #ffffff;
    text-align: center;
}
.sanabil-cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    display: none;
}
.sanabil-cta-band--tight { border-radius: 1.25rem; padding: 2rem; }

/* --- Partner tile --- */
.sanabil-partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    min-height: 13rem;
    padding: 1.6rem;
    border-radius: 1rem;
    border: 1px dashed rgba(11, 42, 74, 0.18);
    background: var(--surface-strong, rgba(255, 255, 255, 0.95));
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}
.sanabil-partner:hover { border-color: var(--teal, #0EA5A0); transform: translateY(-3px); box-shadow: 0 18px 36px rgba(11, 42, 74, 0.08); }
.sanabil-partner__link { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.sanabil-partner__name { font-weight: 700; color: #0B2A4A; font-size: 0.98rem; }
.sanabil-partner__meta { font-size: 0.78rem; color: var(--text-muted, #5B6B7A); }
.sanabil-partner__logo {
    height: 6rem;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
}
.sanabil-partner__logo img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    filter: grayscale(0.15);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.sanabil-partner:hover .sanabil-partner__logo img { filter: grayscale(0); transform: scale(1.04); }
.sanabil-partner--card { border-style: solid; border-color: rgba(11, 42, 74, 0.1); }
.sanabil-partner__logo--card { height: 7rem; width: auto; margin: 0 auto 0.4rem; }
.sanabil-partner__logo--boule { height: 5rem; }
.sanabil-partner__logo--boule.sanabil-partner__logo--card { height: 6rem; }

/* --- Partners marquee (auto-scrolling strip) --- */
.sanabil-marquee {
    position: relative;
    overflow: hidden;
    direction: ltr;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    padding: 0.25rem 0;
}
.sanabil-marquee__track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: sanabil-marquee-scroll 40s linear infinite;
}
/* Hover-only: on touch screens a tap leaves :hover stuck and would freeze the marquee. */
@media (hover: hover) {
    .sanabil-marquee:hover .sanabil-marquee__track { animation-play-state: paused; }
}
.sanabil-marquee__item {
    flex: 0 0 auto;
    width: 18rem;
    height: 13rem;
    text-decoration: none;
}
@keyframes sanabil-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --- Featured clients tile --- */
.sanabil-client {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.4rem;
    text-align: center;
    background: var(--surface-strong, #ffffff);
    border: 1px solid rgba(11, 42, 74, 0.08);
    border-radius: 1rem;
    transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
}
.sanabil-client:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 165, 160, 0.35);
    box-shadow: 0 18px 36px rgba(11, 42, 74, 0.08);
}
.sanabil-client__monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(14, 165, 160, 0.12);
    border: 1px solid rgba(14, 165, 160, 0.35);
    color: var(--teal-soft, #0B8580);
    font-family: var(--font-en), sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
}
.sanabil-client__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 5.5rem;
}
.sanabil-client__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}
.sanabil-client__name {
    font-weight: 700;
    color: #0B2A4A;
    font-size: 0.95rem;
    line-height: 1.5;
}
.sanabil-client__sector {
    font-size: 0.75rem;
    color: var(--text-muted, #5B6B7A);
}

/* --- Why Sanabil icon tile (clinical, enlarged) --- */
.sanabil-cover__icon--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    font-size: 1.6rem;
}

/* --- Customer journey --- */
.sanabil-journey {
    position: relative;
    border: 1px solid rgba(11, 42, 74, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    background: var(--surface-strong, rgba(255, 255, 255, 0.95));
    transition: transform 0.35s var(--ease-out-expo), border-color 0.35s ease, box-shadow 0.35s ease;
}
.sanabil-journey:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 160, 0.3);
    box-shadow: 0 20px 40px rgba(11, 42, 74, 0.1);
}
.sanabil-journey__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--teal, #0EA5A0);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1rem;
}
/* Sequential connector arrows between journey steps */
@media (min-width: 768px) {
    .sanabil-journey:not(:last-child)::after {
        content: "\f061";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 2.75rem;
        inset-inline-end: -1.3rem;
        transform: translateY(-50%);
        color: var(--teal, #0EA5A0);
        font-size: 0.9rem;
        line-height: 1;
        z-index: 3;
        pointer-events: none;
    }
    html[dir="rtl"] .sanabil-journey:not(:last-child)::after { content: "\f060"; }
}

/* --- Product card --- */
.sanabil-product-card { height: 100%; }
.sanabil-product-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: linear-gradient(150deg, #F1F7F8 0%, #E4EFF0 100%);
    border-bottom: 1px solid rgba(11, 42, 74, 0.08);
    overflow: hidden;
}
.sanabil-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.25rem;
    transition: transform 0.45s var(--ease-out-expo);
}
.sanabil-product-card:hover .sanabil-product-card__img { transform: scale(1.05); }
.sanabil-product-card__tag {
    position: absolute;
    top: 0.85rem;
    inset-inline-start: 0.85rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
}
.sanabil-product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(11, 42, 74, 0.16);
    font-size: 4rem;
}

/* --- Product gallery (detail) --- */
.sanabil-product-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, #F1F7F8 0%, #E4EFF0 100%);
    padding: 2rem;
}
.sanabil-product-gallery__img {
    width: 100%;
    max-width: 30rem;
    max-height: 24rem;
    object-fit: contain;
    display: none;
}
.sanabil-product-gallery__img.is-active { display: block; }

/* --- Product video (under image) --- */
.sanabil-product-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0B2A4A;
}
.sanabil-product-video iframe,
.sanabil-product-video video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* --- Gallery thumbnails --- */
.sanabil-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1rem;
    border-top: 1px solid rgba(11, 42, 74, 0.1);
    background: #fff;
}
.sanabil-gallery-thumb {
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid transparent;
    background: linear-gradient(150deg, #F1F7F8 0%, #E4EFF0 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.75;
}
.sanabil-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sanabil-gallery-thumb i {
    font-size: 1.2rem;
    color: #0B2A4A;
}
.sanabil-gallery-thumb:hover { opacity: 1; }
.sanabil-gallery-thumb.is-active {
    border-color: var(--accent, #0EA5A0);
    opacity: 1;
}

/* --- Prose & lists --- */
.sanabil-prose { color: var(--text-main, #102A41); line-height: 2; font-size: 1.04rem; }
.sanabil-prose h2, .sanabil-prose h3 { font-weight: 800; color: #0B2A4A; margin: 2rem 0 0.9rem; line-height: 1.4; }
.sanabil-prose h2 { font-size: 1.6rem; }
.sanabil-prose h3 { font-size: 1.3rem; }
.sanabil-prose p { margin-bottom: 1.2rem; }

.sanabil-list { list-style: none; display: grid; gap: 0.6rem; margin: 0; padding: 0; }
.sanabil-list li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.7rem;
    background: rgba(11, 42, 74, 0.04);
    line-height: 1.75;
}
.sanabil-list li::before {
    content: "";
    flex: 0 0 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.6rem;
    border-radius: 999px;
    background: #0B2A4A;
}
.sanabil-list--teal li::before { background: var(--teal, #0EA5A0); }

/* --- Forms --- */
.sanabil-field { width: 100%; }
.sanabil-field label { display: block; font-size: 0.85rem; font-weight: 700; color: #0B2A4A; margin-bottom: 0.4rem; }
.sanabil-field input,
.sanabil-field select,
.sanabil-field textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(11, 42, 74, 0.16);
    background: var(--surface-strong, #fff);
    color: #102A41;
    font-family: inherit;
    font-size: 0.98rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.sanabil-field input:focus,
.sanabil-field select:focus,
.sanabil-field textarea:focus {
    outline: none;
    border-color: var(--teal, #0EA5A0);
    box-shadow: 0 0 0 4px rgba(14, 165, 160, 0.12);
}

/* --- Floating WhatsApp button --- */
.sanabil-wa-float {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.sanabil-wa-float i { font-size: 1.75rem; line-height: 1; }
.sanabil-wa-float:hover {
    background: #1FB95A;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
}
@media (max-width: 767px) {
    .sanabil-wa-float { bottom: 1rem; left: 1rem; }
}

/* --- Footer --- */
.sanabil-footer {
    position: relative;
    z-index: 20;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 2.5rem;
    border-top-right-radius: 2.5rem;
    background:
        radial-gradient(circle at 85% 15%, rgba(23, 74, 115, 0.4), transparent 45%),
        linear-gradient(150deg, #071E36 0%, #0B2A4A 100%);
    color: #ffffff;
}
.sanabil-footer a { text-decoration: none; }
.sanabil-footer .sanabil-logo__ar { color: #ffffff; }
.sanabil-footer .sanabil-logo__en { color: rgba(255, 255, 255, 0.72); }

/* --- English (LTR) adjustments --- */
html[dir="ltr"] header#navbar > nav.pill-nav-shell { direction: ltr; }
html[dir="ltr"] .sanabil-hero .lang-en, html[dir="ltr"] .sanabil-page-hero .lang-en { text-align: left; }
html[dir="ltr"] .sanabil-cta-band--partners .fa-arrow-left { transform: scaleX(-1); }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .sanabil-hero__halo, .sanabil-page-hero__glow { animation: none; }
    .sanabil-hero__video { display: none; }
    .sanabil-marquee__track { animation: none; }
    .sanabil-card, .sanabil-journey, .sanabil-partner { transition: none; }
    .sanabil-card:hover, .sanabil-journey:hover, .sanabil-partner:hover { transform: none; }
}

/* --- Nav tightening between tablet and wide desktop --- */
@media (min-width: 768px) and (max-width: 1279px) {
    header#navbar .pill,
    header#navbar .pill-list > li > a:not(.pill) { min-width: 0; padding: 0 0.8rem; font-size: 0.72rem; }
    header#navbar .pill-cta { display: none !important; }
    header#navbar .pill-nav-items { max-width: 70vw; }
    header#navbar .pill-list { gap: 1px; }
}

@media (max-width: 767px) {
    .sanabil-logo__text { display: none !important; }
}