/*
 * Makkah Specialized Hospital — site styles.
 *
 * Layered on top of Bootstrap 5.3 (RTL build in Arabic, LTR build in English).
 * No build step: this file is authored by hand and served as-is, because the
 * target host has no shell access to run a bundler.
 */

/* ------------------------------------------------------------------ fonts */
/* Self-hosted. Nothing is fetched from Google Fonts at runtime. */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}


/* ================================================================ tokens */
/*
 * One rule runs through the whole palette: navy leads, a single teal accents,
 * and red is a signature rather than a colour scheme.
 *
 *   navy — the MSH roundel and the wordmark. Hero, footer, headings, buttons.
 *   teal — Al Tabria's mark and the swoosh around the roundel. Icons, the
 *          primary call to action, active states. Never a large fill.
 *   red  — the ECG line in the lockup, and nothing else.
 *
 * The old hero blended navy straight into teal along a linear gradient, which
 * passes through a muddy grey-green on the way. Here navy is the base and teal
 * only ever arrives as light laid on top of it, so the two never mix.
 *
 * Every pairing that carries text clears WCAG 2.1 AA; the ratios are noted
 * where a choice depends on them.
 */
:root {
    --mk-navy-950: #0a1530;
    --mk-navy-900: #0f1f45;
    --mk-navy-800: #162b5c;
    --mk-navy-700: #1b3369;
    --mk-navy-600: #28468a;
    --mk-navy-500: #3a5aa6;
    --mk-navy-200: #c9d4ea;
    --mk-navy-100: #e6ebf6;
    --mk-navy-050: #f3f6fc;

    --mk-teal-800: #0a5f62;
    --mk-teal-700: #0b7276;   /* white text on it: 5.7:1 */
    --mk-teal-600: #0f8a8c;   /* icons and large numerals only: 4.2:1 on white */
    --mk-teal-500: #18a3a3;
    --mk-teal-400: #45b8b9;
    --mk-teal-300: #7dc7c8;   /* the swoosh: light text on navy, 8.3:1 */
    --mk-teal-200: #b8e2e2;
    --mk-teal-100: #e0f2f2;
    --mk-teal-050: #f0f9f9;

    --mk-red: #c41e24;
    --mk-red-glow: #ff5a62;
    /* For the emergency button, which returns once a number is confirmed. */
    --mk-emergency: var(--mk-red);
    --mk-emergency-dark: #9d161b;

    --mk-ink: #14203a;
    --mk-ink-muted: #56637a;  /* 6.1:1 on white, 5.6:1 on canvas */
    --mk-line: #e1e7f0;
    --mk-surface: #ffffff;
    --mk-canvas: #f5f7fb;

    --mk-radius-lg: 22px;
    --mk-radius: 16px;
    --mk-radius-sm: 12px;
    --mk-shadow-sm: 0 1px 2px rgba(15, 31, 69, .05), 0 3px 10px rgba(15, 31, 69, .045);
    --mk-shadow: 0 2px 6px rgba(15, 31, 69, .05), 0 14px 34px rgba(15, 31, 69, .08);
    --mk-shadow-lifted: 0 8px 16px rgba(15, 31, 69, .07), 0 28px 60px rgba(15, 31, 69, .14);

    --mk-ease: cubic-bezier(.2, .7, .2, 1);
    --mk-ease-out: cubic-bezier(.16, 1, .3, 1);

    /* Arrows point, and accents grow, the way the writing runs. */
    --mk-flip: 1;
    --mk-nudge: 5px;
    --mk-origin-start: 0% 50%;

    /* Bootstrap */
    --bs-primary: var(--mk-navy-700);
    --bs-primary-rgb: 27, 51, 105;
    --bs-body-color: var(--mk-ink);
    --bs-body-bg: var(--mk-canvas);
    --bs-body-font-size: 1.0625rem;   /* 17px — a large share of visitors are elderly */
    --bs-body-line-height: 1.85;
    --bs-border-color: var(--mk-line);
    --bs-link-color: var(--mk-navy-700);
    --bs-link-hover-color: var(--mk-teal-800);
    --bs-font-sans-serif: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
}
[dir="rtl"] {
    --mk-flip: -1;
    --mk-nudge: -5px;
    --mk-origin-start: 100% 50%;
}

/* ================================================================== base */
html { scroll-behavior: smooth; }
body {
    font-family: var(--bs-font-sans-serif);
    background: var(--mk-canvas);
    color: var(--mk-ink);
    font-size: var(--bs-body-font-size);
    line-height: var(--bs-body-line-height);
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}
::selection { background: var(--mk-teal-200); color: var(--mk-navy-950); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--mk-navy-900); line-height: 1.4; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem); }

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/*
 * Never letter-space Arabic: the extra space breaks the joins between letters.
 * Tracking is applied to English only, through this one switch.
 */
[dir="ltr"] .mk-track { letter-spacing: .02em; }

/* WCAG 2.1 AA: focus is visible on every interactive element, always. */
:focus-visible {
    outline: 3px solid var(--mk-teal-500);
    outline-offset: 3px;
    border-radius: 6px;
}
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible {
    outline: 3px solid var(--mk-teal-500);
    outline-offset: 3px;
    box-shadow: none;
}

.skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--mk-navy-800);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 0 0 var(--mk-radius-sm) var(--mk-radius-sm);
    transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* =============================================================== buttons */
/*
 * Every button is a flex row with a real gap between icon and label.
 *
 * This is the fix for icons sitting on top of words: inside an inline-flex
 * box, the space character between an <svg> and the text after it is thrown
 * away, so a button that was flex but had no `gap` drew its icon touching —
 * or, with the icon's own padding, overlapping — the first letter.
 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-weight: 600;
    border-radius: var(--mk-radius-sm);
    padding: .62rem 1.3rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: background-color .25s, color .25s, border-color .25s, box-shadow .3s, transform .3s var(--mk-ease);
}
.btn > .mk-icon { flex-shrink: 0; }
.btn:active { transform: scale(.97); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: .42rem .95rem; font-size: .9rem; border-radius: 10px; }
.btn-pill { border-radius: 999px; }

/* A sweep of light across the button on hover. */
.btn-shine::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .8s var(--mk-ease);
}
.btn-shine:hover::after { transform: translateX(120%); }

/* Arrows: flipped for Arabic, and nudged forward on hover. */
.mk-arrow { transform: scaleX(var(--mk-flip)); transition: transform .35s var(--mk-ease); }
a:hover > .mk-arrow, button:hover > .mk-arrow,
a:hover .mk-more .mk-arrow, a:focus-visible .mk-more .mk-arrow {
    transform: translateX(var(--mk-nudge)) scaleX(var(--mk-flip));
}

/* The primary call to action. The gradient stays dark enough end to end that
   white text never drops below 5:1. */
.btn-primary-mk {
    background: linear-gradient(135deg, #0b7a7e, var(--mk-teal-800));
    border: 0;
    color: #fff;
    box-shadow: 0 10px 24px rgba(11, 114, 118, .30);
}
.btn-primary-mk:hover, .btn-primary-mk:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(11, 114, 118, .40);
}

.btn-navy { background: var(--mk-navy-700); border: 0; color: #fff; }
.btn-navy:hover, .btn-navy:focus-visible { background: var(--mk-navy-800); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(27, 51, 105, .25); }

.btn-outline-navy { background: #fff; border: 1.5px solid var(--mk-navy-200); color: var(--mk-navy-700); }
.btn-outline-navy:hover, .btn-outline-navy:focus-visible { background: var(--mk-navy-700); border-color: var(--mk-navy-700); color: #fff; }

/* On the navy hero and the call-to-action band. */
.btn-glass {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.btn-glass:hover, .btn-glass:focus-visible { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); color: #fff; transform: translateY(-2px); }

.btn-light-mk { background: #fff; border: 0; color: var(--mk-navy-800); box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }
.btn-light-mk:hover, .btn-light-mk:focus-visible { background: var(--mk-navy-050); color: var(--mk-navy-900); transform: translateY(-2px); }

/* Both return the moment their number is entered in the admin. */
.btn-emergency { background: var(--mk-red); border: 0; color: #fff; }
.btn-emergency:hover, .btn-emergency:focus-visible { background: var(--mk-emergency-dark); color: #fff; }
.btn-book { background: var(--mk-teal-700); border: 0; color: #fff; }
.btn-book:hover, .btn-book:focus-visible { background: var(--mk-teal-800); color: #fff; }

/* ======================================================== scroll progress */
.mk-progress {
    position: fixed;
    inset-inline: 0;
    top: 0;
    height: 3px;
    z-index: 1100;
    pointer-events: none;
}
.mk-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--mk-teal-300), var(--mk-teal-500) 55%, var(--mk-navy-500));
    transform: scaleX(0);
    transform-origin: var(--mk-origin-start);
}
[dir="rtl"] .mk-progress span { background: linear-gradient(270deg, var(--mk-teal-300), var(--mk-teal-500) 55%, var(--mk-navy-500)); }

/* ================================================================ topbar */
.mk-topbar {
    background: var(--mk-navy-950);
    color: #b9c7dd;
    font-size: .88rem;
}
.mk-topbar-item { display: inline-flex; align-items: center; gap: .5rem; }
.mk-topbar a {
    color: #d5deec;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .2rem .7rem;
    border-radius: 999px;
    transition: background .2s, color .2s;
}
.mk-topbar a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.mk-topbar .mk-icon { color: var(--mk-teal-300); }

/* ================================================================ header */
.mk-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid transparent;
    transition: background-color .35s, box-shadow .35s, border-color .35s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .mk-header {
        background: rgba(255, 255, 255, .84);
        -webkit-backdrop-filter: saturate(1.6) blur(16px);
        backdrop-filter: saturate(1.6) blur(16px);
    }
}
.mk-header .navbar { padding-block: .7rem; transition: padding .35s var(--mk-ease); }
.mk-header.is-scrolled { box-shadow: 0 10px 32px rgba(15, 31, 69, .09); border-bottom-color: var(--mk-line); }
.mk-header.is-scrolled .navbar { padding-block: .35rem; }

.mk-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
/* Tall enough for the three lines of type inside the full lockup. */
.mk-logo img { height: 64px; width: auto; transition: height .35s var(--mk-ease); }
.mk-header.is-scrolled .mk-logo img { height: 52px; }
.mk-logo-fallback {
    width: 46px; height: 46px; flex: 0 0 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mk-navy-700), var(--mk-navy-500));
    color: #fff; font-weight: 700; font-size: .95rem;
    display: grid; place-items: center;
}
.mk-logo-text { line-height: 1.3; }
.mk-logo-name { font-weight: 700; color: var(--mk-navy-900); font-size: 1.12rem; display: block; }
.mk-logo-tagline { font-size: .82rem; color: var(--mk-ink-muted); display: block; }

.mk-header-actions { display: flex; align-items: center; gap: .6rem; }

/* The navigation: a segmented track with a white pill that slides to
   whichever item the pointer is over, and rests on the current page. */
.mk-nav {
    --bs-nav-link-color: var(--mk-navy-800);
    --bs-nav-link-hover-color: var(--mk-navy-900);
    --bs-navbar-color: var(--mk-navy-800);
    --bs-navbar-hover-color: var(--mk-navy-900);
    --bs-navbar-active-color: var(--mk-teal-800);
    --bs-nav-link-font-weight: 600;
}
.mk-nav .nav-link { font-weight: 600; transition: color .25s, background-color .25s; }

@media (min-width: 992px) {
    .mk-nav-track {
        position: relative;
        padding: .3rem;
        background: var(--mk-navy-050);
        border: 1px solid var(--mk-line);
        border-radius: 999px;
    }
    .mk-nav {
        --bs-navbar-nav-link-padding-x: 1.15rem;
        --bs-nav-link-padding-y: .5rem;
        position: relative;
        z-index: 1;
        gap: .15rem;
    }
    .mk-nav .nav-link { border-radius: 999px; }
    .mk-nav-indicator {
        position: absolute;
        top: .3rem;
        bottom: .3rem;
        left: 0;
        width: 0;
        z-index: 0;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(15, 31, 69, .10), 0 0 0 1px rgba(15, 31, 69, .04);
        opacity: 0;
        transition: transform .5s var(--mk-ease-out), width .5s var(--mk-ease-out), opacity .3s;
        pointer-events: none;
    }
    .mk-nav-indicator.is-ready { opacity: 1; }
    /* Without JavaScript the current page carries the pill itself. */
    html:not(.js) .mk-nav .nav-link.active {
        background: #fff;
        box-shadow: 0 2px 10px rgba(15, 31, 69, .10);
    }
}

/* The menu button: three bars that fold into a cross. */
.mk-burger {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--mk-line);
    border-radius: 13px;
    background: #fff;
    display: inline-grid;
    place-content: center;
    gap: 5px;
}
.mk-burger:focus { box-shadow: none; }
.mk-burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--mk-navy-800);
    transition: transform .4s var(--mk-ease), opacity .25s;
}
.mk-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mk-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.mk-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
    .mk-header .navbar-collapse {
        margin-top: .8rem;
        padding: .6rem;
        background: #fff;
        border: 1px solid var(--mk-line);
        border-radius: var(--mk-radius);
        box-shadow: var(--mk-shadow);
    }
    .mk-nav-indicator { display: none; }
    .mk-nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .85rem 1rem;
        border-radius: var(--mk-radius-sm);
    }
    .mk-nav .nav-link:hover { background: var(--mk-navy-050); }
    .mk-nav .nav-link.active { background: var(--mk-teal-050); color: var(--mk-teal-800); }
    /* The items arrive one after another as the menu opens. */
    .navbar-collapse.collapsing .mk-nav .nav-item,
    .navbar-collapse.show .mk-nav .nav-item,
    .navbar-collapse.show .mk-menu-extra {
        animation: mk-fade-up .5s var(--mk-ease-out) both;
        animation-delay: calc(var(--i, 0) * 60ms + 40ms);
    }
}

/* ================================================================== hero */
/*
 * Navy all the way through. Teal arrives only as light: slow-drifting glows,
 * a faint grid, and medical crosses rising like particles in a lit room.
 */
.mk-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #d3ddee;
    background: linear-gradient(165deg, #0b1838 0%, var(--mk-navy-900) 42%, #142b5d 100%);
    padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0 clamp(6rem, 3.5rem + 8vw, 10rem);
}
.mk-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.mk-blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    animation: mk-drift 26s ease-in-out infinite alternate;
}
.mk-blob--1 {
    width: 64vmax; height: 64vmax;
    top: -34vmax; inset-inline-end: -20vmax;
    background: radial-gradient(circle, rgba(24, 163, 163, .40), rgba(24, 163, 163, 0) 62%);
}
.mk-blob--2 {
    width: 54vmax; height: 54vmax;
    bottom: -32vmax; inset-inline-start: -16vmax;
    background: radial-gradient(circle, rgba(58, 90, 166, .55), rgba(58, 90, 166, 0) 62%);
    animation-duration: 32s;
    animation-direction: alternate-reverse;
}
.mk-blob--3 {
    width: 36vmax; height: 36vmax;
    top: 14%; inset-inline-start: 34%;
    background: radial-gradient(circle, rgba(125, 199, 200, .20), rgba(125, 199, 200, 0) 65%);
    animation-duration: 21s;
}
@keyframes mk-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); }
    100% { transform: translate3d(-3vmax, 5vmax, 0) scale(.94); }
}

.mk-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 38%, #000 25%, transparent 80%);
    mask-image: radial-gradient(ellipse 72% 62% at 50% 38%, #000 25%, transparent 80%);
    animation: mk-grid-pan 48s linear infinite;
}
@keyframes mk-grid-pan { to { background-position: 56px 56px, 56px 56px; } }

.mk-particles i {
    position: absolute;
    bottom: -30px;
    left: var(--x, 50%);
    width: var(--s, 14px);
    height: var(--s, 14px);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237dc7c8' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0;
    animation: mk-rise var(--t, 16s) linear infinite;
    animation-delay: var(--d, 0s);
}
@keyframes mk-rise {
    0%   { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; }
    12%  { opacity: var(--o, .5); }
    85%  { opacity: var(--o, .5); }
    /* A slight turn only: spun much further, a + reads as ×. */
    100% { transform: translate3d(var(--sway, 30px), -820px, 0) rotate(8deg); opacity: 0; }
}

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

.mk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .45rem 1.05rem;
    margin-bottom: 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(125, 199, 200, .35);
    color: var(--mk-teal-300);
    font-weight: 600;
    font-size: .98rem;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.mk-badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--mk-teal-400);
    animation: mk-ping 2.2s var(--mk-ease) infinite;
}
@keyframes mk-ping {
    0%       { box-shadow: 0 0 0 0 rgba(69, 184, 185, .6); }
    80%, 100% { box-shadow: 0 0 0 11px rgba(69, 184, 185, 0); }
}

.mk-hero-title {
    color: #fff;
    font-size: clamp(2.35rem, 1.35rem + 3.8vw, 4rem);
    line-height: 1.32;
    /*
     * Room above and below the line. With the gradient clipped to the text,
     * anything outside the heading's box is painted with nothing at all — and
     * the dots under a final ي hang below the line. Without this padding,
     * «التخصصي» rendered as «التخصصى».
     */
    padding-block: .08em .22em;
    margin-bottom: .6rem;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .mk-hero-title {
        background: linear-gradient(100deg, #ffffff 35%, #c4ebeb 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}
/* The statement the administration asked to lead with, right under the name. */
.mk-hero-operator {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--mk-teal-300);
    font-weight: 600;
    font-size: clamp(1.1rem, .95rem + .75vw, 1.5rem);
    line-height: 1.5;
    margin-bottom: .6rem;
}
.mk-hero-operator .mk-icon { flex-shrink: 0; }
.mk-hero .mk-prose p,
.mk-hero-lead { color: #c9d5ea; font-size: 1.12rem; max-width: 54ch; }
.mk-hero .mk-prose p:last-child { margin-bottom: 0; }
.mk-hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.1rem; }

/* The brand card on the right, with its glow and two floating fact chips. */
.mk-hero-visual { position: relative; max-width: 520px; margin-inline: auto; }
.mk-hero-glow {
    position: absolute;
    inset: -12% -10%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(24, 163, 163, .45), rgba(24, 163, 163, 0));
    animation: mk-breathe 6s ease-in-out infinite alternate;
}
@keyframes mk-breathe { from { opacity: .65; transform: scale(.94); } to { opacity: 1; transform: scale(1.05); } }

.mk-hero-brand {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: clamp(1.75rem, 1rem + 3vw, 3.1rem);
    border-radius: 30px;
    background: linear-gradient(160deg, #ffffff, #eef4fa);
    box-shadow: 0 34px 80px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .7);
    animation: mk-float 7s ease-in-out infinite;
}
.mk-hero-brand img { width: 100%; max-width: 430px; height: auto; position: relative; }
/* One sweep of light across the card as it arrives. */
.mk-hero-brand::after {
    content: "";
    position: absolute;
    inset: -60% -30%;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .85) 50%, transparent 58%);
    transform: translateX(-75%);
    animation: mk-sweep 1.8s 1.5s var(--mk-ease) both;
    pointer-events: none;
}
@keyframes mk-sweep { to { transform: translateX(75%); } }
@keyframes mk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.mk-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem 1rem .7rem .8rem;
    border-radius: 18px;
    color: #fff;
    /* Near-opaque: the chip often sits over the white card, and light text
       on a see-through chip over white is unreadable. */
    background: rgba(15, 31, 69, .9);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation:
        mk-zoom-in .8s var(--mk-ease-out) var(--d, 1s) both,
        mk-float 6.5s ease-in-out calc(var(--d, 1s) + .8s) infinite;
}
.mk-chip-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(140deg, var(--mk-teal-500), var(--mk-teal-800));
}
.mk-chip-value { display: block; font-weight: 700; font-size: 1.2rem; line-height: 1.15; color: #fff; }
.mk-chip-label { display: block; font-size: .8rem; line-height: 1.35; color: #cfe0ef; }
.mk-chip--a { top: -7%; inset-inline-start: -7%; }
.mk-chip--b { bottom: -9%; inset-inline-end: -5%; animation-duration: .8s, 7.5s; }
@media (max-width: 575.98px) {
    .mk-chip { padding: .55rem .8rem .55rem .6rem; gap: .55rem; }
    .mk-chip-icon { width: 34px; height: 34px; border-radius: 10px; }
    .mk-chip--a { top: -12%; inset-inline-start: -2%; }
    .mk-chip--b { bottom: -12%; inset-inline-end: -2%; }
}

/* The curve the hero ends on, filled with the colour of the page below it. */
.mk-wave {
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    width: 100%;
    height: clamp(42px, 6vw, 96px);
    display: block;
    z-index: 1;
    pointer-events: none;
}
.mk-wave path { fill: var(--mk-canvas); }

/* ------------------------------------------------------ inner page header */
.mk-hero--page { padding: clamp(2.75rem, 1.8rem + 4vw, 5rem) 0 clamp(4.25rem, 2.6rem + 5vw, 7rem); }
.mk-hero--page h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); margin-bottom: .5rem; }
.mk-hero--page .mk-page-sub { color: #c9d5ea; font-size: 1.1rem; max-width: 60ch; margin: .75rem 0 0; }

.mk-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.1rem;
    font-size: .9rem;
}
.mk-crumbs li { display: inline-flex; align-items: center; gap: .45rem; }
.mk-crumbs a {
    color: #d3ddee;
    text-decoration: none;
    padding: .22rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
    transition: background .2s, color .2s;
}
.mk-crumbs a:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.mk-crumbs .mk-chev { opacity: .5; transform: scaleX(var(--mk-flip)); }
.mk-crumbs [aria-current] { color: var(--mk-teal-300); font-weight: 600; }

/* ============================================================== entrances */
/* The hero plays its entrance with CSS alone: nothing waits on JavaScript. */
@keyframes mk-fade-up { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes mk-zoom-in { from { opacity: 0; transform: scale(.88) translateY(18px); } to { opacity: 1; transform: none; } }
/* A wipe that runs the way the line reads. The clip box overshoots top and
   bottom so the dots and marks above and below Arabic letters are never cut. */
@keyframes mk-wipe-rtl { from { clip-path: inset(-30% 0 -30% 100%); } to { clip-path: inset(-30% 0 -30% 0); } }
@keyframes mk-wipe-ltr { from { clip-path: inset(-30% 100% -30% 0); } to { clip-path: inset(-30% 0 -30% 0); } }

.mk-enter { animation: mk-fade-up .95s var(--mk-ease-out) both; animation-delay: var(--d, 0s); }
.mk-enter-zoom { animation: mk-zoom-in 1.1s var(--mk-ease-out) both; animation-delay: var(--d, 0s); }
/* `backwards`, not `both`: once the wipe is done the clip is removed entirely. */
.mk-enter-wipe { animation: mk-wipe-rtl 1.15s cubic-bezier(.7, 0, .2, 1) backwards; animation-delay: var(--d, 0s); }
[dir="ltr"] .mk-enter-wipe { animation-name: mk-wipe-ltr; }

/* ============================================================ scroll reveal */
/*
 * Hidden only once JavaScript has announced itself (an inline script in the
 * <head> adds `.js` before first paint). With scripts off, or with reduced
 * motion, nothing is ever hidden.
 *
 * Put `data-reveal` on a wrapper, not on a card that has its own hover lift:
 * the revealed state sets `transform: none` and would otherwise win.
 */
html.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition: opacity .9s var(--mk-ease-out), transform .9s var(--mk-ease-out);
    transition-delay: calc(min(var(--i, 0), 8) * 85ms);
}
html.js [data-reveal="zoom"] { transform: scale(.94); }
html.js [data-reveal="start"] { transform: translate3d(calc(-28px * var(--mk-flip)), 0, 0); }
html.js [data-reveal="end"] { transform: translate3d(calc(28px * var(--mk-flip)), 0, 0); }
/* Below desktop width the columns are full width, so a sideways slide would
   push them past the screen edge and let the page scroll sideways. They rise
   instead, like everything else. */
@media (max-width: 1399.98px) {
    html.js [data-reveal="start"], html.js [data-reveal="end"] { transform: translate3d(0, 34px, 0); }
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* =================================================================== ECG */
.mk-ecg { display: block; max-width: 100%; height: auto; overflow: visible; }
.mk-ecg path { fill: none; stroke: var(--mk-red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Drawn on, like a monitor trace. */
@keyframes mk-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.mk-ecg--draw .mk-ecg-line,
.mk-ecg--load .mk-ecg-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
/* On scroll: hidden until the observer marks it visible. */
html.js .mk-ecg--draw .mk-ecg-line { stroke-dashoffset: 1; }
html.js .mk-ecg--draw.is-visible .mk-ecg-line {
    animation: mk-draw 1.9s cubic-bezier(.6, 0, .25, 1) forwards;
    animation-delay: var(--d, .1s);
}
/* On load: part of the first screen's entrance, CSS alone. */
.mk-ecg--load .mk-ecg-line {
    animation: mk-draw 1.9s cubic-bezier(.6, 0, .25, 1) both;
    animation-delay: var(--d, .6s);
}

/* The beat: a short bright dash that travels the line, then rests. */
.mk-ecg-pulse {
    stroke: var(--mk-red-glow) !important;
    stroke-width: 3.2 !important;
    stroke-dasharray: .07 2;
    stroke-dashoffset: .07;
    animation: mk-beat 2.6s linear infinite;
    animation-delay: calc(var(--d, .6s) + 1.6s);
}
@keyframes mk-beat {
    0%        { stroke-dashoffset: .07; }
    68%, 100% { stroke-dashoffset: -1; }
}
.mk-hero .mk-ecg, .mk-cta .mk-ecg { filter: drop-shadow(0 0 5px rgba(255, 80, 90, .45)); }

/* ============================================================== sections */
.mk-section { position: relative; padding: clamp(3.25rem, 2rem + 4.4vw, 6.25rem) 0; }
.mk-section--white { background: var(--mk-surface); }
.mk-section--tint { background: linear-gradient(180deg, var(--mk-canvas), var(--mk-navy-050)); }

.mk-section-title { margin-bottom: clamp(1.9rem, 1.3rem + 1.6vw, 3rem); }
.mk-section-title h2 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.45rem); margin-bottom: .75rem; }
.mk-section-title p { color: var(--mk-ink-muted); margin: .75rem 0 0; max-width: 62ch; font-size: 1.05rem; }
.mk-section-title--center { text-align: center; }
.mk-section-title--center p,
.mk-section-title--center .mk-title-accent { margin-inline: auto; }
.mk-section-title--center .mk-eyebrow { justify-content: center; }

.mk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .55rem;
    color: var(--mk-teal-700);
    font-weight: 600;
    font-size: .95rem;
}
.mk-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.mk-title-accent {
    display: block;
    width: 68px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--mk-teal-500), var(--mk-navy-600));
    transform-origin: var(--mk-origin-start);
}
[dir="rtl"] .mk-title-accent { background: linear-gradient(270deg, var(--mk-teal-500), var(--mk-navy-600)); }
html.js [data-reveal] .mk-title-accent { transform: scaleX(0); transition: transform 1s .3s var(--mk-ease-out); }
html.js [data-reveal].is-visible .mk-title-accent { transform: scaleX(1); }

/* ================================================== who runs the hospital */
/*
 * The band the administration asked to carry the most weight on the site.
 * On the home page it rises over the edge of the hero as a lifted card; on
 * the about page it stands on its own.
 */
.mk-trust { position: relative; z-index: 2; }
.mk-trust--lifted { margin-top: clamp(-5.5rem, -2rem - 4vw, -3rem); }
.mk-trust-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--mk-line);
    border-radius: 26px;
    box-shadow: var(--mk-shadow-lifted);
    padding: clamp(1.5rem, 1rem + 2vw, 2.6rem);
}
/* A hairline of the brand gradient along the top. */
.mk-trust-card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mk-teal-500), var(--mk-navy-600), var(--mk-teal-500));
    background-size: 200% 100%;
    animation: mk-slide-bg 6s linear infinite;
}
@keyframes mk-slide-bg { to { background-position: 200% 0; } }

.mk-trust-full { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.mk-trust-hospital { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 700; color: var(--mk-navy-900); margin: 0; }
.mk-trust-operator { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); font-weight: 600; color: var(--mk-teal-700); margin: 0; }

.mk-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
}
.mk-trust-full .mk-trust-row {
    width: min(100%, 560px);
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mk-line);
}
.mk-trust-group { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.25rem; }
.mk-trust-label { color: var(--mk-ink-muted); font-size: .95rem; font-weight: 500; }
.mk-trust-logo { height: 46px; width: auto; display: block; transition: transform .4s var(--mk-ease); }
a:hover > .mk-trust-logo { transform: scale(1.04); }
.mk-trust-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(140deg, var(--mk-navy-600), var(--mk-navy-900));
    box-shadow: 0 10px 22px rgba(27, 51, 105, .28);
}
@media (max-width: 575.98px) {
    .mk-trust-row, .mk-trust-group { justify-content: center; text-align: center; }
}

/* Fallback when no group logo is uploaded: the sentence as a pill. */
.mk-operator-group {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem 1rem;
    border: 1px solid var(--mk-line);
    border-radius: 999px;
    font-weight: 600;
    color: var(--mk-navy-700);
    text-decoration: none;
    background: var(--mk-navy-050);
}

/* ================================================================= stats */
.mk-stat {
    position: relative;
    height: 100%;
    overflow: hidden;
    text-align: center;
    padding: 1.7rem 1.2rem 1.5rem;
    background: #fff;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-lg);
    box-shadow: var(--mk-shadow-sm);
    transition: transform .45s var(--mk-ease), box-shadow .45s var(--mk-ease);
}
.mk-stat::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mk-teal-500), var(--mk-navy-600));
    transform: scaleX(0);
    transform-origin: var(--mk-origin-start);
    transition: transform .55s var(--mk-ease-out);
}
.mk-stat:hover { transform: translateY(-6px); box-shadow: var(--mk-shadow-lifted); }
.mk-stat:hover::before { transform: scaleX(1); }
.mk-stat-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: var(--mk-teal-700);
    background: linear-gradient(145deg, var(--mk-teal-050), var(--mk-teal-100));
    border: 1px solid var(--mk-teal-100);
    transition: transform .55s var(--mk-ease), background .35s, color .35s;
}
.mk-stat:hover .mk-stat-icon { color: #fff; background: linear-gradient(145deg, var(--mk-teal-600), var(--mk-teal-800)); transform: rotate(-8deg) scale(1.07); }
.mk-stat-value {
    font-size: clamp(2.1rem, 1.6rem + 1.3vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--mk-navy-800);
    font-variant-numeric: tabular-nums;
}
.mk-stat-label { color: var(--mk-ink-muted); font-size: .97rem; margin-top: .4rem; }

/* =========================================================== departments */
.mk-dept {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.7rem 1.45rem 1.45rem;
    background: #fff;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-lg);
    box-shadow: var(--mk-shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: transform .5s var(--mk-ease), box-shadow .5s var(--mk-ease), border-color .35s;
}
.mk-dept::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mk-teal-500), var(--mk-navy-600));
    transform: scaleX(0);
    transform-origin: var(--mk-origin-start);
    transition: transform .55s var(--mk-ease-out);
}
/* A soft light that follows the pointer across the card. */
.mk-dept::after, .mk-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(24, 163, 163, .11), transparent 62%);
    opacity: 0;
    transition: opacity .4s;
}
.mk-dept:hover, .mk-dept:focus-visible {
    transform: translateY(-8px);
    border-color: var(--mk-teal-200);
    box-shadow: var(--mk-shadow-lifted);
    color: inherit;
}
.mk-dept:hover::before, .mk-dept:focus-visible::before { transform: scaleX(1); }
.mk-dept:hover::after, .mk-tile:hover::after { opacity: 1; }

.mk-dept-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.2rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--mk-teal-700);
    background: linear-gradient(145deg, var(--mk-teal-050), var(--mk-teal-100));
    border: 1px solid var(--mk-teal-100);
    transition: transform .6s var(--mk-ease), background .35s, color .35s, box-shadow .35s;
}
.mk-dept:hover .mk-dept-icon, .mk-dept:focus-visible .mk-dept-icon {
    color: #fff;
    background: linear-gradient(145deg, var(--mk-teal-600), var(--mk-teal-800));
    box-shadow: 0 12px 24px rgba(11, 114, 118, .32);
    transform: rotate(-8deg) scale(1.08);
}
.mk-dept-badge {
    position: absolute;
    top: 1.35rem;
    inset-inline-end: 1.3rem;
    font-size: .78rem;
    font-weight: 600;
    padding: .15rem .65rem;
    border-radius: 999px;
    color: var(--mk-navy-600);
    background: var(--mk-navy-050);
    border: 1px solid var(--mk-line);
}
.mk-dept-title { font-size: 1.14rem; font-weight: 700; color: var(--mk-navy-900); margin-bottom: .5rem; }
.mk-dept-text { color: var(--mk-ink-muted); font-size: .96rem; margin-bottom: 1.15rem; flex-grow: 1; }
.mk-dept-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--mk-ink-muted); font-size: .86rem; margin-bottom: 1rem; }
.mk-dept-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.mk-more {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: auto;
    font-weight: 600;
    font-size: .94rem;
    color: var(--mk-teal-700);
}

/* =========================================================== specialties */
.mk-tile {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: .95rem;
    height: 100%;
    padding: 1.05rem 1.15rem;
    background: #fff;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    box-shadow: var(--mk-shadow-sm);
    transition: transform .45s var(--mk-ease), box-shadow .45s, border-color .3s;
}
.mk-tile:hover { transform: translateY(-4px); box-shadow: var(--mk-shadow); border-color: var(--mk-navy-200); }
.mk-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--mk-navy-700);
    background: var(--mk-navy-050);
    border: 1px solid var(--mk-navy-100);
    transition: transform .5s var(--mk-ease), background .3s, color .3s;
}
.mk-tile:hover .mk-tile-icon { color: #fff; background: var(--mk-navy-700); transform: scale(1.1) rotate(-6deg); }
.mk-tile-title { font-weight: 600; font-size: 1.02rem; color: var(--mk-navy-900); margin: 0; line-height: 1.45; }
.mk-tile-text { font-size: .88rem; color: var(--mk-ink-muted); margin: .2rem 0 0; line-height: 1.6; }

/* ====================================================== check lists, prose */
.mk-checklist { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .95rem 1.5rem; }
@media (min-width: 768px) { .mk-checklist--2 { grid-template-columns: 1fr 1fr; } }
.mk-checklist li { display: flex; align-items: flex-start; gap: .8rem; font-weight: 500; color: var(--mk-ink); line-height: 1.6; }
.mk-check {
    width: 28px;
    height: 28px;
    margin-top: .05rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(140deg, var(--mk-teal-500), var(--mk-teal-700));
    box-shadow: 0 5px 12px rgba(15, 138, 140, .3);
}
html.js [data-reveal].is-visible .mk-check { animation: mk-pop .65s var(--mk-ease-out) both; animation-delay: calc(min(var(--i, 0), 8) * 85ms + .2s); }
@keyframes mk-pop {
    0%   { transform: scale(0) rotate(-60deg); }
    65%  { transform: scale(1.18) rotate(6deg); }
    100% { transform: scale(1) rotate(0); }
}

.mk-prose p { margin-bottom: 1rem; }
.mk-prose p:last-child { margin-bottom: 0; }
.mk-prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); margin-bottom: 1rem; }
.mk-prose ol.mk-list { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .6rem; counter-reset: mk; }
.mk-prose ol.mk-list li { counter-increment: mk; display: flex; gap: .75rem; align-items: flex-start; }
.mk-prose ol.mk-list li::before {
    content: counter(mk);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-top: .15rem;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: .84rem;
    font-weight: 700;
    color: var(--mk-teal-800);
    background: var(--mk-teal-100);
}
.mk-legal { max-width: 78ch; }
.mk-legal p { color: var(--mk-ink); }

/* ========================================================== media & frames */
.mk-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--mk-radius-lg);
    background: var(--mk-navy-050);
}
.mk-card > .mk-media { border-radius: 0; }
.mk-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--mk-ease); }
a:hover .mk-media img, .mk-media:hover img { transform: scale(1.04); }
/* No photograph yet: the lockup on a soft brand panel, which reads as a design
   choice. The line naming the photo that belongs here is for the team only. */
.mk-media-brand {
    height: 100%;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: .5rem;
    padding: clamp(1rem, .5rem + 3vw, 2.5rem);
    text-align: center;
    background:
        radial-gradient(120% 90% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
        linear-gradient(160deg, var(--mk-navy-050), var(--mk-teal-050));
}
.mk-media .mk-media-brand img { width: 100%; max-width: 330px; height: auto; object-fit: contain; }
.mk-media-brand-label { font-size: .85rem; color: var(--mk-navy-600); opacity: .75; }

/* An offset outline behind a picture, for depth. */
.mk-frame { position: relative; }
.mk-frame::before {
    content: "";
    position: absolute;
    inset: 22px -22px -22px 22px;
    border: 2px solid var(--mk-teal-200);
    border-radius: var(--mk-radius-lg);
}
[dir="rtl"] .mk-frame::before { inset: 22px 22px -22px -22px; }
/* On a phone the picture already reaches the gutter, so a 22px offset would
   push past the screen edge; it stays inside the 12px gutter instead. */
@media (max-width: 991.98px) {
    .mk-frame::before { inset: 12px -10px -12px 10px; }
    [dir="rtl"] .mk-frame::before { inset: 12px 10px -12px -10px; }
}
.mk-frame > * { position: relative; box-shadow: var(--mk-shadow-lifted); }

.mk-avatar { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--mk-navy-050); }

/* =================================================================== cards */
.mk-card {
    background: var(--mk-surface);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-lg);
    box-shadow: var(--mk-shadow-sm);
    overflow: hidden;
}
.mk-card-body { padding: clamp(1.3rem, 1rem + 1vw, 2rem); }
.mk-card-title { font-size: 1.15rem; font-weight: 700; color: var(--mk-navy-900); margin-bottom: .6rem; }
.mk-card-text { color: var(--mk-ink-muted); font-size: .98rem; margin-bottom: 0; }

/* Vision, mission, values. */
.mk-pillar { position: relative; height: 100%; padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); }
.mk-pillar-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 1.2rem;
    border-radius: 19px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--mk-navy-600), var(--mk-navy-900));
    box-shadow: 0 12px 26px rgba(27, 51, 105, .26);
}
.mk-pillar-num {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1.4rem;
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--mk-navy-050);
    pointer-events: none;
}

/* =============================================================== info rows */
.mk-info { display: flex; gap: 1rem; align-items: flex-start; }
.mk-info + .mk-info { margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px dashed var(--mk-line); }
.mk-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--mk-teal-700);
    background: linear-gradient(145deg, var(--mk-teal-050), var(--mk-teal-100));
    border: 1px solid var(--mk-teal-100);
}
.mk-info-label { font-size: .86rem; color: var(--mk-ink-muted); margin-bottom: .2rem; }
.mk-info-value { font-weight: 600; color: var(--mk-navy-900); }
.mk-info-value a { color: var(--mk-navy-800); text-decoration: none; transition: color .2s; }
.mk-info-value a:hover { color: var(--mk-teal-700); }

/* Equipment chips on a department page. */
.mk-equip { height: 100%; padding: .85rem 1rem; border: 1px solid var(--mk-line); border-radius: var(--mk-radius-sm); background: var(--mk-navy-050); }
.mk-equip-name { font-weight: 600; font-size: .95rem; color: var(--mk-navy-900); }
.mk-equip-meta { font-size: .85rem; color: var(--mk-ink-muted); }

/* =============================================================== filters */
.mk-filter {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .35rem;
    background: #fff;
    border: 1px solid var(--mk-line);
    border-radius: 999px;
    box-shadow: var(--mk-shadow-sm);
}
.mk-filter a {
    padding: .5rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .94rem;
    color: var(--mk-navy-700);
    text-decoration: none;
    transition: background .25s, color .25s, box-shadow .25s;
}
.mk-filter a:hover { background: var(--mk-navy-050); }
.mk-filter a[aria-current="page"] { background: var(--mk-navy-700); color: #fff; box-shadow: 0 6px 16px rgba(27, 51, 105, .25); }

/* ============================================================ map stand-in */
.mk-map-link {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: var(--mk-radius);
    background: linear-gradient(160deg, var(--mk-navy-050), var(--mk-teal-050));
    border: 1px solid var(--mk-line);
}
.mk-map-pin {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--mk-teal-600), var(--mk-teal-800));
    box-shadow: 0 0 0 10px rgba(24, 163, 163, .12), 0 0 0 20px rgba(24, 163, 163, .06);
    animation: mk-bob 2.8s ease-in-out infinite;
}
@keyframes mk-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* =================================================================== forms */
.form-label { font-weight: 600; color: var(--mk-navy-900); font-size: .95rem; margin-bottom: .45rem; }
.form-control, .form-select {
    border: 1.5px solid var(--mk-line);
    border-radius: var(--mk-radius-sm);
    padding: .72rem 1rem;
    background-color: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:hover, .form-select:hover { border-color: var(--mk-navy-200); }
.form-control:focus, .form-select:focus { border-color: var(--mk-teal-500); box-shadow: 0 0 0 4px rgba(24, 163, 163, .15); }
.alert { border-radius: var(--mk-radius-sm); }

/* ============================================================ call to action */
.mk-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: 1.6rem;
    align-items: center;
    padding: clamp(2rem, 1.2rem + 3vw, 3.75rem);
    padding-bottom: clamp(2.75rem, 1.8rem + 3vw, 4.5rem);
    border-radius: 30px;
    color: #c9d5ea;
    background: linear-gradient(140deg, var(--mk-navy-950), var(--mk-navy-800));
    box-shadow: 0 34px 80px rgba(15, 31, 69, .28);
}
@media (min-width: 992px) { .mk-cta { grid-template-columns: minmax(0, 1.4fr) auto; } }
.mk-cta h2 { color: #fff; font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.4rem); margin-bottom: .6rem; }
.mk-cta p { margin: 0; font-size: 1.08rem; max-width: 52ch; }
.mk-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.mk-cta .mk-blob--1 { width: 40vmax; height: 40vmax; top: -24vmax; }
.mk-cta .mk-blob--2 { width: 34vmax; height: 34vmax; bottom: -24vmax; }
.mk-cta-ecg { position: absolute; inset-inline: 0; bottom: 18px; z-index: -1; opacity: .7; }
.mk-cta-ecg .mk-ecg { width: 100%; height: 34px; }

/* ================================================================== footer */
.mk-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #b6c4da;
    background: var(--mk-navy-950);
    padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem);
}
.mk-footer::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 64vmax;
    height: 64vmax;
    top: -44vmax;
    inset-inline-end: -22vmax;
    background: radial-gradient(circle, rgba(24, 163, 163, .16), rgba(24, 163, 163, 0) 62%);
}
.mk-footer-ecg { position: absolute; inset-inline: 0; top: -2px; }
.mk-footer-ecg .mk-ecg { width: 100%; height: 30px; }
.mk-footer h2, .mk-footer h3 { color: #fff; font-size: 1.06rem; margin-bottom: 1.15rem; }
.mk-footer a { color: #c7d3e6; text-decoration: none; transition: color .2s; }
.mk-footer a:hover { color: #fff; }
.mk-footer-logo {
    display: inline-block;
    margin-bottom: 1.15rem;
    padding: .8rem 1.1rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
}
.mk-footer-logo img { max-height: 88px; width: auto; display: block; }
.mk-footer-muted { color: #8a9bb8; }
.mk-footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.mk-footer-list a { display: inline-flex; align-items: center; gap: .5rem; }
.mk-footer-list .mk-arrow { color: var(--mk-teal-400); opacity: .6; }
.mk-footer-list a:hover .mk-arrow { opacity: 1; }
.mk-footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.mk-footer-contact li { display: flex; align-items: flex-start; gap: .7rem; }
.mk-footer-contact .mk-icon { color: var(--mk-teal-400); flex-shrink: 0; margin-top: .32rem; }
.mk-footer-hours { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); }

.mk-footer-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin: .2rem 0 1rem;
    font-size: .85rem;
    color: #8a9bb8;
}
.mk-footer-group img {
    height: 28px;
    width: auto;
    display: block;
    padding: 6px 10px;
    box-sizing: content-box;
    border-radius: 9px;
    background: #fff;
    transition: transform .3s var(--mk-ease);
}
.mk-footer-group a:hover img { transform: translateY(-2px); }

.mk-social { display: flex; flex-wrap: wrap; gap: .6rem; }
.mk-social a {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .09);
    transition: transform .35s var(--mk-ease), background .3s, border-color .3s;
}
.mk-social a:hover { color: #fff; background: var(--mk-teal-700); border-color: var(--mk-teal-700); transform: translateY(-3px); }

.mk-footer-bottom {
    margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    padding: 1.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .88rem;
    color: #8a9bb8;
}

/* =========================================================== floating UI */
/* Back to top, with a ring that fills as the page is read. */
.mk-totop {
    position: fixed;
    z-index: 1040;
    bottom: 1.25rem;
    inset-inline-end: 1.25rem;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--mk-navy-800);
    box-shadow: 0 12px 28px rgba(15, 31, 69, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.85);
    transition: opacity .4s, visibility .4s, transform .45s var(--mk-ease-out), background .25s;
}
.mk-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.mk-totop:hover { background: var(--mk-teal-700); }
.mk-totop-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.mk-totop-ring circle { fill: none; stroke: var(--mk-teal-300); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

/* WhatsApp, once a number is confirmed: bottom start, always visible. */
.mk-float {
    position: fixed;
    z-index: 1040;
    bottom: 1.25rem;
    inset-inline-start: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.mk-float a {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(10, 31, 54, .3);
    transition: transform .35s var(--mk-ease);
}
.mk-float a:hover { transform: scale(1.08); color: #fff; }
.mk-float .mk-float-wa { background: #25d366; }

/* On phones, the confirmed numbers live in a bar along the bottom edge. */
.mk-mobile-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1035;
    display: none;
    gap: .5rem;
    padding: .55rem;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--mk-line);
    box-shadow: 0 -8px 24px rgba(15, 31, 69, .08);
}
.mk-mobile-bar .btn { flex: 1; }
.mk-mobile-bar-spacer { display: none; height: 4.5rem; }
@media (max-width: 767.98px) {
    .mk-mobile-bar, .mk-mobile-bar-spacer { display: flex; }
    .mk-mobile-bar ~ .mk-float, .mk-mobile-bar ~ .mk-totop { bottom: 5.25rem; }
}

/* ============================================================ placeholders */
.mk-placeholder {
    display: inline-block;
    background: #fff6da;
    border: 1px dashed #d9a441;
    color: #7a5310;
    border-radius: 6px;
    padding: .05rem .45rem;
    font-size: .85em;
    font-weight: 600;
    line-height: 1.7;
    direction: rtl;
    unicode-bidi: isolate;
}
.mk-placeholder-block { display: block; margin: .35rem 0; }

.mk-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--mk-ink-muted);
    background: var(--mk-surface);
    border: 1px dashed var(--mk-line);
    border-radius: var(--mk-radius);
}

/*
 * Honeypot: off-screen rather than display:none, which some bots detect.
 * Parked past the *start* edge, never `left`: in a right-to-left page content
 * off the left edge is scrollable, and `left: -9999px` gave the Arabic contact
 * page a 9,999px sideways scroll on every phone.
 */
.mk-hp {
    position: absolute !important;
    top: 0;
    inset-inline-start: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =================================================================== admin */
.mk-admin { background: var(--mk-canvas); }
.mk-admin-sidebar { background: var(--mk-navy-950); color: #c3d3e3; min-height: 100vh; }
.mk-admin-sidebar .nav-link { color: #c3d3e3; border-radius: 9px; padding: .5rem .75rem; font-size: .95rem; }
.mk-admin-sidebar .nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.mk-admin-sidebar .nav-link.active { background: var(--mk-teal-700); color: #fff; }
.mk-admin-sidebar .mk-admin-group { font-size: .78rem; color: #7f95ab; padding: 1rem .75rem .35rem; }
.mk-panel { background: #fff; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); }
.mk-panel-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--mk-line); font-weight: 600; }
.mk-panel-body { padding: 1.25rem; }
.mk-missing-item { border-inline-start: 4px solid #d9a441; }
.mk-missing-item.is-decision { border-inline-start-color: var(--mk-red); }
.mk-missing-item.is-optional { border-inline-start-color: var(--mk-line); }

/* =================================================================== pause */
/* Decorative loops stop while their section is off screen. */
.is-paused .mk-blob, .is-paused .mk-hero-grid, .is-paused .mk-particles i,
.is-paused .mk-ecg-pulse, .is-paused .mk-hero-brand, .is-paused .mk-chip,
.is-paused .mk-hero-glow, .is-paused .mk-badge-dot { animation-play-state: paused; }

/* =================================================================== print */
@media print {
    .mk-header, .mk-topbar, .mk-footer, .mk-float, .mk-mobile-bar, .mk-totop, .mk-progress,
    .mk-hero-bg, .mk-wave, .mk-admin-sidebar, .no-print, .btn { display: none !important; }
    .mk-hero { background: none; color: var(--mk-ink); padding: 1rem 0; }
    .mk-hero h1, .mk-hero-title { color: var(--mk-ink); background: none; -webkit-background-clip: border-box; background-clip: border-box; }
    body { background: #fff; font-size: 12pt; }
    html.js [data-reveal] { opacity: 1; transform: none; }
    a[href]::after { content: ''; }
}

/* ========================================================== reduced motion */
/*
 * Everything above is decoration. Visitors who ask their device for less
 * motion get the finished page: nothing hidden, nothing drifting, no beat.
 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
    .mk-particles, .mk-ecg-pulse { display: none; }
    .mk-blob, .mk-hero-grid { animation: none !important; }
}
