
@font-face {
    font-family: "CairoRegular";
    src: url("/fonts/Cairo/Cairo-Regular.ttf") format("truetype"),url("/fonts/Cairo/Cairo-Regular.woff") format("woff"),url("/fonts/Cairo/Cairo-Regular.woff2") format("woff2")
}

@font-face {
    font-family: "CairoBold";
    src: url("/fonts/Cairo/Cairo-Regular.ttf") format("truetype"),url("/fonts/Cairo/Cairo-Regular.woff") format("woff"),url("/fonts/Cairo/Cairo-Regular.woff2") format("woff2")
}

html[lang=ar], html[dir=rtl] {
    --font: "CairoRegular", sans-serif;
    --font-bold: "CairoBold", sans-serif;
}

body {
    font-family: var(--font);
}

[dir="rtl"] .section-heading {
    background: linear-gradient(270deg, var(--color-navy-900) 45.564%, var(--color-red-700) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* The specialty cards' glass edge highlight and hover fill both run     */
/* from the leading top corner to the trailing bottom corner (135deg in  */
/* LTR); 225deg is the same diagonal measured from the other side.       */
[dir="rtl"] .specialty-card::before {
    background: linear-gradient(225deg, rgba(255, 255, 255, 0.9), var(--color-specialty-card-border));
}

[dir="rtl"] .specialty-card::after {
    background: linear-gradient(225deg, var(--color-navy-900), var(--color-red-700));
}

/* ------------------------------------------------------------------ */
/* 2. Directional glyphs                                                */
/* ------------------------------------------------------------------ */

/* "View All" and More-menu chevrons ship pointing right; in Arabic      */
/* "forward" is leftward, so they are mirrored on the inline axis. The   */
/* footer's per-link bullet chevron is the same case.                    */
[dir="rtl"] .btn-outline__chevron,
[dir="rtl"] .more-menu__chevron,
[dir="rtl"] .site-footer__list a::before {
    transform: scaleX(-1);
}

/* The mobile logo's `transform-origin: left center` (Homepage.css) is a     */
/* physical keyword — `transform-origin` has no logical equivalent — but    */
/* the image cropped inside that box is anchored with `inset-inline-start`,  */
/* which resolves to the box's *right* edge in Arabic. Without this, the     */
/* scale-down would anchor to the wrong side of the crop in RTL, shifting    */
/* the logo instead of just shrinking it in place.                          */
@media (max-width: 1279px) {
    [dir="rtl"] .site-header__logo-crop {
        transform-origin: right center;
    }
}

/* These two arrows are exported pointing *down* and rotated into a      */
/* rightward arrow by `rotate(-90deg) scaleX(-1)`. Mirroring that whole  */
/* composite about the vertical axis reduces exactly to `rotate(90deg)`. */
[dir="rtl"] .btn-solid__chevron,
[dir="rtl"] .coe-card__arrow img {
    transform: rotate(90deg);
}

/* The YouTube badge on "Watch all Videos" is a brand mark, not a        */
/* direction cue — it must stay upright. It reuses .btn-solid__chevron,  */
/* so the rule above has to be cancelled explicitly here.                */
[dir="rtl"] .seasonal__watch-icon {
    transform: none;
}

/* ------------------------------------------------------------------ */
/* 3. Photographic content                                              */
/*                                                                        */
/* Every scene photograph on the page is mirrored so its subject reads   */
/* in the same direction as the mirrored layout around it (e.g. the      */
/* Medical Specialties backdrop doctor, who'd otherwise end up facing    */
/* off the page once the cards move to the right of him).                */
/*                                                                        */
/* Deliberately excluded — flipping would make these actively wrong,     */
/* not just neutral, because they carry real reading content baked into  */
/* the raster itself rather than being a plain scene:                    */
/*   - .site-header__logo-img: the ANMC wordmark (English + Arabic text  */
/*     baked into one image) — brand marks stay unmirrored in RTL sites  */
/*     as a matter of convention, the same as the footer/social icons.   */
/*   - .insurance-card img: AXA / Allianz / Bupa / MetLife / SAICO — are */
/*     third-party brand logos with text; mirroring would misrepresent  */
/*     the mark.                                                         */
/*   - .seasonal__video-composite: the Winter/Spring/Summer/Autumn photo */
/*     has its English season labels baked directly into the image.     */
/* ------------------------------------------------------------------ */

[dir="rtl"] .hero__photo,
[dir="rtl"] .specialties__bg-photo,
[dir="rtl"] .coe-feature__photo,
[dir="rtl"] .coe-card__photo,
[dir="rtl"] .blog-card__photo,
[dir="rtl"] .intl-patient__photo,
[dir="rtl"] .intl-patient__bg-photo,
[dir="rtl"] .season-card__avatar-photo {
    /* transform: scaleX(-1);*/
}

/* Composed with the photo's own base zoom (`scale(1.1)`, used to crop out */
/* its unrounded edges) rather than overriding it — scale factors on the   */
/* same origin commute, so this is exactly "mirrored, then zoomed 110%".   */
[dir="rtl"] .season-card__photo {
    /*  transform: scale(-1.1, 1.1);*/
}

/* ------------------------------------------------------------------ */
/* 4. Arabic typography                                                 */
/* ------------------------------------------------------------------ */

/* Arabic is a cursive script: letters join, and the negative tracking   */
/* tuned for the Latin display copy collapses those joins into each      */
/* other. Reset it wherever the English build applies letter-spacing.    */
[dir="rtl"] .hero__title,
[dir="rtl"] .section-heading {
    letter-spacing: normal;
}

/* Arabic ascenders, descenders and diacritics need more vertical room   */
/* than Latin, so the tightest display leading values are relaxed. Only  */
/* multi-line headings are touched — single-line items (nav links,       */
/* buttons, chips, labels) keep their exact English metrics so header    */
/* and card heights are unchanged.                                       */
[dir="rtl"] .hero__title {
    line-height: 1.3;
}

[dir="rtl"] .section-heading {
    line-height: 1.4;
}

[dir="rtl"] .coe-feature__title,
[dir="rtl"] .intl-feature__title {
    line-height: 1.35;
}

[dir="rtl"] .coe-card__title,
[dir="rtl"] .blog-card__title,
[dir="rtl"] .season-card__title {
    line-height: 1.45;
}

@media (min-width: 900px) {
    [dir="rtl"] .hero__title {
        line-height: 1.2;
    }

    [dir="rtl"] .coe-card__title,
    [dir="rtl"] .blog-card__title,
    [dir="rtl"] .season-card__title,
    [dir="rtl"] .intl-feature__title {
        line-height: 1.4;
    }
}

/* Latin fragments kept verbatim inside Arabic copy (brand names such as */
/* ANMC and ANC, and the Western digits used for the counters and dates) */
/* are isolated so the bidi algorithm cannot drag adjacent Arabic        */
/* punctuation to the wrong side of them. Netwave is no longer in this   */
/* list — the footer credit now renders it as Arabic (نت ويف).           */
[dir="rtl"] .hero__stat-number,
[dir="rtl"] .intl-patient__stat-number,
[dir="rtl"] .blog-card__date {
    unicode-bidi: isolate;
}

/* ------------------------------------------------------------------ */
/* 5. Inner pages (style.css) — About Us and anything else built on    */
/*    it. Unlike Homepage.css, style.css was authored with physical    */
/*    offsets; those have been converted to logical properties in      */
/*    place, so what remains here is only what CSS still cannot flip   */
/*    on its own: gradient angles, background positions, directional   */
/*    glyphs and Arabic typography.                                    */
/* ------------------------------------------------------------------ */

/* Every heading on these pages paints itself with `--grad`, a navy -> */
/* red sweep across the reading direction. Redefining the custom       */
/* property once reverses the sweep everywhere it is used, exactly as  */
/* the .section-heading rule above does for the homepage.              */
[dir="rtl"] {
    --grad: linear-gradient(270deg, #1F3163 0%, #2B3466 45%, #A11D2B 100%);
}

    /* The page hero darkens from the reading-start edge so the title sits   */
    /* on solid navy and the photo shows through behind it. The photo moves  */
    /* on its own (it is an <img> pinned with `inset-inline-end`), so only    */
    /* the gradient's sweep still has to change ends here.                   */
    [dir="rtl"] .page-hero::after {
        background-image: linear-gradient(90deg, #072d9abd 0%, #18254da3 30%, rgb(30 55 140 / 55%) 45%, rgb(14 29 82 / 53%) 70%, rgb(5 11 35 / 55%) 100%);
    }

    /* The hero photo is a scene, mirrored for the same reason as the        */
    /* homepage photos in section 3: its subjects should face into the page  */
    /* once the copy moves to the other side of them.                        */
    [dir="rtl"] .page-hero__photo {
        transform: scaleX(-1);
    }

@media (max-width: 575.98px) {
    [dir="rtl"] .page-hero__photo {
        object-position: 28% center;
    }
}

/* The faded faces backdrop is anchored to the trailing edge of the    */
/* section, which is the left one in Arabic.                           */
[dir="rtl"] .intl-section::before {
    background-position: left top;
}

/* The pulse watermark is painted in the trailing bottom corner of its */
/* own box. The box already moves with `inset-inline-end`, so only the */
/* artwork inside it still needs mirroring — which also makes the ECG  */
/* line sweep the same way as the reversed layout.                     */
[dir="rtl"] .mv-card::after,
[dir="rtl"] .site-footer::after {
    transform: scaleX(-1);
}

/* "View All" ships as a right-pointing chevron; forward is leftward   */
/* in Arabic. The footer links nudge themselves forward on hover for   */
/* the same reason.                                                    */
[dir="rtl"] .btn-view-all i {
    transform: scaleX(-1);
}

[dir="rtl"] .footer-links a:hover {
    transform: translateX(-3px);
}

/* Arabic joins, so the negative tracking tuned for the Latin display  */
/* copy is reset, and the tightest leading is relaxed for headings     */
/* that wrap. Single-line labels keep their English metrics so no card */
/* changes height.                                                     */
[dir="rtl"] .section-title,
[dir="rtl"] .page-hero__title,
[dir="rtl"] .history-title,
[dir="rtl"] .years-badge strong,
[dir="rtl"] .stat strong,
[dir="rtl"] .team-card h3 {
    letter-spacing: normal;
}

[dir="rtl"] .page-hero__title,
[dir="rtl"] .history-title {
    line-height: 1.3;
}

[dir="rtl"] .section-title {
    line-height: 1.4;
}

[dir="rtl"] .mv-card h3,
[dir="rtl"] .value-card h3,
[dir="rtl"] .service-card h3,
[dir="rtl"] .team-card h3 {
    line-height: 1.45;
}

/* Western digits kept inside Arabic copy (36, 500+, 24/7, 42) are     */
/* isolated so the bidi algorithm cannot pull the neighbouring Arabic  */
/* label to the wrong side of the number. Isolation alone is not       */
/* enough for a value that ends in a neutral character: in an RTL      */
/* context the trailing "+" of "500+" is reordered to the front and    */
/* reads "+500". Giving the number its own LTR direction fixes the     */
/* order, and text-align keeps it against the reading-start edge.      */
[dir="rtl"] .years-badge strong,
[dir="rtl"] .stat strong,
[dir="rtl"] .intl-photo__stat strong {
    unicode-bidi: isolate;
    direction: ltr;
    text-align: right;
}

[dir="rtl"] .doctors-sort label {
    width: 150px !important;
}
