/* ==========================================================================
   Sihatuna home page.

   A port of the supplied home-page template (sihatuna-home-template.html),
   kept as close to the original as a page that shares a document with the
   site layout can be. Three mechanical changes were needed, the same three
   every template port here has needed:

     * the template's palette lived on :root; it lives on .sihatuna-home so
       it cannot re-point tokens for the header, footer and every other page
       that shares this document;
     * html[data-theme="dark"] became [data-bs-theme="dark"], the attribute
       js/sihatuna/theme-init.js actually sets;
     * every selector is scoped to .sihatuna-home. Several template class
       names (.hero, .section, .eyebrow, .search-panel, .doctor-avatar,
       .section-heading) already exist in site.css, and scoping is what
       keeps the two sets apart in both directions. Two names were renamed
       instead: .container, because Bootstrap owns it, and .doctor-card,
       because site.css declares its border with !important and would win.

   The template's header, mobile navigation, footer, theme toggle, skip link
   and back-to-top rules are not here: the site layout already renders all of
   those, and duplicating them would style nothing.
   ========================================================================== */

.sihatuna-home {
    --green-950: #043a2e;
    --green-900: #075b45;
    --green-850: #08664e;
    --green-800: #08745a;
    --green-700: #0b8a69;
    --green-600: #13a27c;
    --green-100: #dff3eb;
    --green-50: #f1faf6;

    --blue-900: #123f69;
    --blue-700: #286a9a;
    --gold: #c39a3c;
    --gold-soft: #f5ead0;

    --page: #f3f8f6;
    --page-soft: #edf6f2;
    --surface: rgba(255, 255, 255, .90);
    --surface-solid: #ffffff;
    --surface-soft: rgba(247, 252, 250, .88);
    --surface-muted: #eef7f3;
    --ink: #15382e;
    --heading: #073e31;
    --muted: #687d75;
    --border: rgba(7, 91, 69, .14);
    --border-strong: rgba(7, 91, 69, .28);

    --shadow-xl: 0 36px 90px rgba(4, 68, 51, .16);
    --shadow-lg: 0 22px 58px rgba(4, 68, 51, .13);
    --shadow-md: 0 14px 34px rgba(4, 68, 51, .10);
    --shadow-sm: 0 8px 22px rgba(4, 68, 51, .08);

    --icon: url("/images/branding/sihatuna-main-website-icon.png");
    --hero-art: url("/images/home/sihatuna-home-landmarks-full.webp");
    --pattern: url("/images/patterns/sihatuna-pure-damascene-pattern.png");

    position: relative;
    isolation: isolate;
    color: var(--ink);
    background:
        radial-gradient(circle at 84% 6%, rgba(19, 162, 124, .10), transparent 24%),
        radial-gradient(circle at 12% 8%, rgba(38, 106, 154, .08), transparent 25%),
        var(--page);
}

[data-bs-theme="dark"] .sihatuna-home {
    --page: #071b16;
    --page-soft: #0a241c;
    --surface: rgba(12, 43, 34, .92);
    --surface-solid: #0d2f26;
    --surface-soft: rgba(14, 49, 39, .90);
    --surface-muted: #10382d;
    --ink: #e8f5ef;
    --heading: #f2fbf7;
    --muted: #a7bbb3;
    --border: rgba(153, 215, 189, .14);
    --border-strong: rgba(153, 215, 189, .28);

    --green-100: #173f34;
    --green-50: #10362c;

    --shadow-xl: 0 36px 100px rgba(0, 0, 0, .43);
    --shadow-lg: 0 24px 65px rgba(0, 0, 0, .34);
    --shadow-md: 0 16px 38px rgba(0, 0, 0, .26);
    --shadow-sm: 0 9px 24px rgba(0, 0, 0, .21);

    background:
        radial-gradient(circle at 84% 6%, rgba(19, 162, 124, .14), transparent 26%),
        radial-gradient(circle at 12% 8%, rgba(38, 106, 154, .11), transparent 27%),
        var(--page);
}

.sihatuna-home *,
.sihatuna-home *::before,
.sihatuna-home *::after {
    box-sizing: border-box;
}

.sihatuna-home a {
    color: inherit;
}

.sihatuna-home img {
    max-width: 100%;
}

.sihatuna-home svg {
    display: block;
}

/* The template's own container: narrower than Bootstrap's and without its
   gutter padding, which is why it is not the Bootstrap one. */
.sihatuna-home .home-container {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}

/* ----- Buttons ----- */

.sihatuna-home .button {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.sihatuna-home .button:hover {
    transform: translateY(-2px);
}

.sihatuna-home .button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    box-shadow: 0 13px 28px rgba(7, 91, 69, .23);
}

.sihatuna-home .button-secondary {
    color: #fff;
    background: linear-gradient(135deg, #173e62, #21577e);
    box-shadow: 0 13px 28px rgba(22, 63, 102, .20);
}

.sihatuna-home .button-soft {
    color: var(--green-900);
    border-color: var(--border-strong);
    background: var(--surface);
}

[data-bs-theme="dark"] .sihatuna-home .button-soft {
    color: #b7ead6;
}

/* ----- Hero ----- */

.sihatuna-home .hero {
    position: relative;
    padding: clamp(42px, 7vw, 86px) 0 42px;
    overflow: hidden;
    background: none;
}

.sihatuna-home .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 66% 38%, rgba(7, 91, 69, .06), transparent 31%),
        linear-gradient(180deg, transparent, color-mix(in srgb, var(--page-soft) 75%, transparent));
}

.sihatuna-home .hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 150px;
    z-index: -1;
    background: linear-gradient(180deg, transparent, var(--page-soft));
    pointer-events: none;
}

.sihatuna-home .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    grid-template-areas: "art copy";
    align-items: center;
    gap: clamp(32px, 6vw, 78px);
}

.sihatuna-home .hero-copy {
    grid-area: copy;
    min-width: 0;
}

.sihatuna-home .hero-art {
    grid-area: art;
    min-width: 0;
}

/* The template swaps the two areas for English but leaves the track sizes
   alone, which hands the wider column to the artwork and squeezes the copy —
   the reverse of what the Arabic layout does. The tracks swap with them. */
[dir="ltr"] .sihatuna-home .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-areas: "copy art";
}

.sihatuna-home .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--green-800);
    font-size: .88rem;
    font-weight: 900;
    letter-spacing: normal;
    text-transform: none;
}

[data-bs-theme="dark"] .sihatuna-home .eyebrow {
    color: #94dabb;
}

.sihatuna-home .eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 99px;
    background: var(--gold);
}

.sihatuna-home .hero-title {
    max-width: 680px;
    margin: 0;
    color: var(--heading);
    font-size: clamp(2.55rem, 5.6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.sihatuna-home .hero-title .accent {
    color: var(--green-800);
}

[data-bs-theme="dark"] .sihatuna-home .hero-title .accent {
    color: #87dab7;
}

.sihatuna-home .hero-description {
    max-width: 650px;
    margin: 19px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.85;
}

.sihatuna-home .trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 23px;
}

.sihatuna-home .trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: .82rem;
    font-weight: 750;
}

.sihatuna-home .trust-chip svg {
    width: 16px;
    height: 16px;
    stroke: var(--green-800);
}

/* ----- Hero search ----- */

.sihatuna-home .search-panel {
    max-width: none;
    margin-top: 26px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 23px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.sihatuna-home .search-form {
    display: grid;
    grid-template-columns: 1fr .88fr auto;
    gap: 10px;
    align-items: center;
}

.sihatuna-home .search-control {
    position: relative;
    min-width: 0;
    margin: 0;
}

.sihatuna-home .search-control svg {
    position: absolute;
    top: 50%;
    inset-inline-start: 15px;
    width: 19px;
    height: 19px;
    color: var(--green-800);
    stroke: currentColor;
    transform: translateY(-50%);
    pointer-events: none;
}

.sihatuna-home .search-control input,
.sihatuna-home .search-control select {
    width: 100%;
    height: 51px;
    padding-inline: 45px 14px;
    border: 1px solid var(--border);
    border-radius: 15px;
    outline: none;
    color: var(--ink);
    background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
    font: inherit;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.sihatuna-home .search-control select {
    appearance: none;
    cursor: pointer;
    padding-inline-end: 34px;
}

/* The template strips the native select arrow and puts nothing back, which
   leaves the specialty field looking like a text box. This is that arrow,
   drawn rather than fetched so it inherits the field's colour. */
.sihatuna-home .search-control-select::after {
    content: "";
    position: absolute;
    top: calc(50% - 3px);
    inset-inline-end: 18px;
    width: 8px;
    height: 8px;
    /* Physical sides on purpose: a chevron pointing down means the same thing
       in both directions, and the logical pair would mirror it in Arabic. */
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

.sihatuna-home .search-control input:focus,
.sihatuna-home .search-control select:focus {
    border-color: rgba(8, 116, 90, .55);
    box-shadow: 0 0 0 4px rgba(8, 116, 90, .10);
}

.sihatuna-home .search-submit {
    min-width: 112px;
    height: 51px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    box-shadow: 0 12px 25px rgba(7, 91, 69, .22);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.sihatuna-home .search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(7, 91, 69, .27);
}

/* ----- Hero artwork ----- */

/* Taller than the template's 540: the artwork is a portrait poster, and this
   is the height at which the caption below lands on the landmarks instead of
   across the wordmark. */
.sihatuna-home .hero-art-card {
    position: relative;
    min-height: 670px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 42px;
    background: var(--surface);
    box-shadow: var(--shadow-xl);
    isolation: isolate;
}

.sihatuna-home .hero-art-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: var(--hero-art);
    background-size: cover;
    /* The artwork is a full portrait poster, roughly 1:2, so a square-ish card
       only ever shows part of it. Anchored to the top, that part is the
       calligraphy, the wordmark and the skyline beneath them — the half worth
       showing. The template's 48% would have cropped straight past all three. */
    background-position: center top;
    filter: saturate(.90) contrast(.98);
}

.sihatuna-home .hero-art-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .06),
            rgba(3, 71, 53, .05) 50%,
            rgba(2, 54, 41, .55) 100%);
}

[data-bs-theme="dark"] .sihatuna-home .hero-art-card::before {
    filter: saturate(.78) brightness(.68);
}

.sihatuna-home .art-brand {
    position: absolute;
    top: 22px;
    inset-inline-start: 22px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .50);
    border-radius: 17px;
    color: #fff;
    background: rgba(4, 67, 51, .64);
    box-shadow: 0 14px 34px rgba(0, 38, 29, .24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.sihatuna-home .art-brand img {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

/* The badge carries the same serif lockup as the site chrome. */
.sihatuna-home .art-brand strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    letter-spacing: .3px;
}

.sihatuna-home .art-brand span span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .78);
    font-family: Georgia, "Times New Roman", serif;
    font-size: .72rem;
}

.sihatuna-home .art-brand span span::before { content: "— "; }
.sihatuna-home .art-brand span span::after { content: " —"; }

.sihatuna-home .art-caption {
    position: absolute;
    inset-inline: 24px;
    bottom: 24px;
    z-index: 2;
    padding: 21px 22px;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 24px;
    color: #fff;
    background: rgba(2, 58, 44, .68);
    box-shadow: 0 22px 55px rgba(0, 35, 26, .24);
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
}

.sihatuna-home .art-caption strong {
    display: block;
    font-size: 1.17rem;
}

.sihatuna-home .art-caption p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .82);
    line-height: 1.65;
    font-size: .91rem;
}

/* ----- Quick actions ----- */

.sihatuna-home .quick-actions-wrap {
    position: relative;
    z-index: 3;
    margin-top: 31px;
}

.sihatuna-home .quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 27px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.sihatuna-home .quick-card {
    position: relative;
    min-height: 126px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 13px;
    align-items: center;
    padding: 18px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 20px;
    text-decoration: none;
    background: color-mix(in srgb, var(--surface-solid) 75%, transparent);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.sihatuna-home .quick-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.sihatuna-home .quick-icon,
.sihatuna-home .specialty-icon,
.sihatuna-home .step-icon,
.sihatuna-home .doctor-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.sihatuna-home .quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: var(--green-800);
    background: var(--green-50);
    box-shadow: inset 0 0 0 1px var(--border);
}

.sihatuna-home .quick-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.sihatuna-home .quick-card:nth-child(2) .quick-icon {
    color: #246c8e;
    background: rgba(74, 160, 197, .10);
}

.sihatuna-home .quick-card:nth-child(3) .quick-icon {
    color: #7652a2;
    background: rgba(118, 82, 162, .10);
}

.sihatuna-home .quick-card:nth-child(4) .quick-icon {
    color: #ad7423;
    background: rgba(195, 154, 60, .13);
}

.sihatuna-home .quick-card strong {
    display: block;
    color: var(--heading);
    font-size: .98rem;
}

.sihatuna-home .quick-card span span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .80rem;
    line-height: 1.5;
}

.sihatuna-home .quick-arrow {
    position: absolute;
    inset-inline-end: 14px;
    bottom: 12px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--green-800);
    background: var(--surface);
}

.sihatuna-home .quick-arrow svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

/* ----- Sections ----- */

.sihatuna-home .section {
    position: relative;
    padding: clamp(70px, 9vw, 112px) 0;
}

.sihatuna-home .section-soft {
    background: linear-gradient(180deg, var(--page-soft), color-mix(in srgb, var(--page) 78%, var(--page-soft)));
}

.sihatuna-home .section-pattern {
    position: relative;
    overflow: hidden;
}

.sihatuna-home .section-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .055;
    background-image: var(--pattern);
    background-repeat: repeat;
    background-size: 270px auto;
    pointer-events: none;
}

[data-bs-theme="dark"] .sihatuna-home .section-pattern::before {
    opacity: .07;
    filter: brightness(1.45);
}

.sihatuna-home .section-heading {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}

.sihatuna-home .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--green-800);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: .80rem;
    font-weight: 850;
}

[data-bs-theme="dark"] .sihatuna-home .section-label {
    color: #a0dfc5;
}

.sihatuna-home .section-heading h2 {
    margin: 15px 0 0;
    color: var(--heading);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.sihatuna-home .section-heading h2::after {
    content: "";
    display: block;
    width: 58px;
    height: 3px;
    margin: 15px auto 0;
    border-radius: 999px;
    background: var(--gold);
}

.sihatuna-home .section-heading p {
    margin: 16px auto 0;
    color: var(--muted);
    line-height: 1.8;
}

.sihatuna-home .section-action {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

/* A section that ends on a "view all" button already reads as finished. Left at
   full padding, its closing space and the next section's opening space stacked
   into a visible hole under the button, so both ends of that seam come in. */
.sihatuna-home .section-with-action {
    padding-bottom: clamp(28px, 3vw, 40px);
}

.sihatuna-home .section-with-action + .section {
    padding-top: clamp(48px, 5vw, 72px);
}

/* ----- Carousels -----

   Specialties and doctors scroll sideways rather than listing everything, and
   the arrows below drive them through the [data-carousel] handler in site.js —
   the markup contract (track, cells, prev/next) is that script's, the look is
   the template's. */

.sihatuna-home .care-carousel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sihatuna-home .carousel-track {
    display: flex;
    flex: 1 1 auto;
    gap: 14px;
    margin: 0;
    padding: 6px 2px;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.sihatuna-home .carousel-track::-webkit-scrollbar {
    display: none;
}

.sihatuna-home .carousel-cell {
    display: flex;
    flex: 0 0 calc((100% - 70px) / 6);
    min-width: 150px;
    scroll-snap-align: start;
}

.sihatuna-home .carousel-cell > * {
    width: 100%;
}

.sihatuna-home .carousel-cell-wide {
    flex-basis: calc((100% - 28px) / 3);
    min-width: 280px;
}

.sihatuna-home .carousel-nav {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--green-800);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

.sihatuna-home .carousel-nav svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* The resting green is a dark ink meant for a pale card; on the dark card it
   is barely a shade off the background. */
[data-bs-theme="dark"] .sihatuna-home .carousel-nav {
    color: #a0dfc5;
}

.sihatuna-home .carousel-nav:hover,
.sihatuna-home .carousel-nav:focus-visible {
    color: #fff;
    background: var(--green-800);
    border-color: var(--green-800);
}

/* ----- Specialties ----- */

.sihatuna-home .specialty-card {
    height: 100%;
    min-height: 194px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border: 1px solid var(--border);
    border-radius: 24px;
    text-align: center;
    text-decoration: none;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.sihatuna-home .specialty-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.sihatuna-home .specialty-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    border-radius: 20px;
    color: var(--green-800);
    background: linear-gradient(145deg, rgba(255, 255, 255, .85), var(--green-50));
    box-shadow:
        0 12px 28px rgba(7, 91, 69, .11),
        inset 0 0 0 1px var(--border);
}

[data-bs-theme="dark"] .sihatuna-home .specialty-icon {
    background: linear-gradient(145deg, rgba(255, 255, 255, .035), var(--green-50));
}

/* The specialty artwork is a raster icon per specialty, not the template's
   inline SVG, because the set is whatever the directory holds. */
.sihatuna-home .specialty-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.sihatuna-home .specialty-card strong {
    color: var(--heading);
    font-size: .91rem;
    line-height: 1.45;
}

.sihatuna-home .specialty-card small {
    margin-top: 7px;
    color: var(--muted);
    font-size: .76rem;
}

/* ----- Doctors -----

   The doctor cards themselves moved to the shared _PublicDoctorCard partial,
   styled by pages/directory.css inside its .care-directory scope — the home
   view loads that sheet and wraps the carousel in the scope class. Only the
   carousel shell is styled here. */

/* ----- How it works ----- */

.sihatuna-home .how-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 78% 20%, rgba(24, 160, 121, .18), transparent 32%),
        linear-gradient(135deg, #062d25, #075b45 60%, #0b6c53);
}

.sihatuna-home .how-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .085;
    background-image: var(--pattern);
    background-size: 300px auto;
    pointer-events: none;
}

.sihatuna-home .how-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(38px, 7vw, 86px);
    align-items: center;
}

.sihatuna-home .how-copy .section-label {
    color: #c6f2df;
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .07);
    box-shadow: none;
}

.sihatuna-home .how-copy h2 {
    margin: 16px 0 0;
    max-width: 510px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.sihatuna-home .how-copy p {
    margin: 17px 0 0;
    max-width: 550px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.85;
}

.sihatuna-home .security-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 23px;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .065);
}

.sihatuna-home .security-note svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    stroke: #d6b45e;
}

.sihatuna-home .security-note strong {
    display: block;
    color: #fff;
    font-size: .90rem;
}

.sihatuna-home .security-note a {
    display: inline-block;
    margin-top: 4px;
    color: #d8ba70;
    font-size: .80rem;
    font-weight: 800;
}

.sihatuna-home .steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.sihatuna-home .step {
    position: relative;
    min-height: 185px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 24px;
    background: rgba(255, 255, 255, .065);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sihatuna-home .step-number {
    position: absolute;
    inset-inline-end: 17px;
    bottom: 10px;
    color: rgba(255, 255, 255, .16);
    font-size: 2rem;
    font-weight: 950;
}

.sihatuna-home .step-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #9fe3c7;
    background: rgba(255, 255, 255, .085);
}

.sihatuna-home .step-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.sihatuna-home .step h3 {
    margin: 17px 0 0;
    color: #fff;
    font-size: 1rem;
}

.sihatuna-home .step p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: .82rem;
    line-height: 1.65;
}

/* ----- Closing call to action ----- */

.sihatuna-home .cta-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
    padding: clamp(27px, 4vw, 43px);
    border: 1px solid var(--border);
    border-radius: 32px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.sihatuna-home .cta-card::before {
    content: "";
    position: absolute;
    inset-inline-end: -60px;
    top: -70px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(19, 162, 124, .14), transparent 68%);
    pointer-events: none;
}

.sihatuna-home .cta-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--green-800), #2a8fb6);
    box-shadow: 0 18px 40px rgba(5, 94, 74, .24);
}

.sihatuna-home .cta-icon img {
    width: 62px;
    height: 62px;
    border-radius: 20px;
}

.sihatuna-home .cta-copy h2 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.sihatuna-home .cta-copy p {
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.sihatuna-home .cta-actions {
    display: flex;
    gap: 10px;
}

/* ----- Focus ----- */

.sihatuna-home a:focus-visible,
.sihatuna-home button:focus-visible,
.sihatuna-home input:focus-visible,
.sihatuna-home select:focus-visible {
    outline: 3px solid rgba(33, 153, 112, .34);
    outline-offset: 3px;
}

/* ----- Responsive ----- */

@media (max-width: 1100px) {
    .sihatuna-home .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
        gap: 34px;
    }

    [dir="ltr"] .sihatuna-home .hero-grid {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    }

    .sihatuna-home .carousel-cell {
        flex-basis: calc((100% - 28px) / 3);
    }
}

@media (max-width: 860px) {
    .sihatuna-home .hero {
        padding-top: 38px;
    }

    .sihatuna-home .hero-grid {
        display: flex;
        flex-direction: column;
    }

    .sihatuna-home .hero-copy,
    .sihatuna-home .hero-art {
        width: 100%;
    }

    .sihatuna-home .hero-copy {
        order: 1;
    }

    .sihatuna-home .hero-art {
        order: 2;
        display: flex;
        justify-content: center;
    }

    /* Stacked, the card would run the full width and crop the poster down to
       its top border. Capped, it keeps a portrait shape and the composition. */
    .sihatuna-home .hero-art-card {
        width: min(100%, 460px);
    }

    .sihatuna-home .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sihatuna-home .search-form {
        grid-template-columns: 1fr 1fr;
    }

    .sihatuna-home .search-submit {
        grid-column: 1 / -1;
    }

    .sihatuna-home .carousel-cell-wide {
        flex-basis: 100%;
    }

    /* Arrows go with the pointer; a touch screen swipes the track instead. */
    .sihatuna-home .carousel-nav {
        display: none;
    }

    .sihatuna-home .how-grid {
        grid-template-columns: 1fr;
    }

    .sihatuna-home .cta-card {
        grid-template-columns: auto 1fr;
    }

    .sihatuna-home .cta-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .sihatuna-home .home-container {
        width: min(100% - 24px, 1180px);
    }

    .sihatuna-home .hero {
        padding-top: 26px;
    }

    .sihatuna-home .hero-title {
        font-size: clamp(2.35rem, 12vw, 3.35rem);
    }

    .sihatuna-home .hero-description {
        font-size: .96rem;
    }

    .sihatuna-home .trust-row {
        gap: 8px;
    }

    .sihatuna-home .trust-chip {
        font-size: .77rem;
    }

    .sihatuna-home .search-panel {
        padding: 10px;
        border-radius: 20px;
    }

    .sihatuna-home .search-form {
        grid-template-columns: 1fr;
    }

    .sihatuna-home .search-submit {
        grid-column: auto;
    }

    .sihatuna-home .hero-art-card {
        min-height: 600px;
        border-radius: 30px;
    }

    .sihatuna-home .art-caption {
        inset-inline: 15px;
        bottom: 15px;
        padding: 17px;
        border-radius: 20px;
    }

    .sihatuna-home .quick-actions {
        grid-template-columns: 1fr;
        padding: 10px;
        border-radius: 22px;
    }

    .sihatuna-home .quick-card {
        min-height: 105px;
    }

    .sihatuna-home .carousel-cell {
        flex-basis: calc((100% - 14px) / 2);
        min-width: 0;
    }

    .sihatuna-home .carousel-cell-wide {
        flex-basis: 100%;
    }

    .sihatuna-home .specialty-card {
        min-height: 175px;
    }

    .sihatuna-home .section {
        padding: 70px 0;
    }

    .sihatuna-home .steps {
        grid-template-columns: 1fr;
    }

    .sihatuna-home .cta-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sihatuna-home .cta-icon {
        margin-inline: auto;
    }

    .sihatuna-home .cta-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------------------
   Telling the three kinds of care apart.

   A reader scanning the home page should know without reading whether a card is
   a doctor, a medical centre or a pharmacy. Each kind gets its own accent and
   its own icon, and every card also names its kind in words: colour alone would
   leave anyone who cannot separate these hues with nothing to go on, which the
   rest of this product is careful to avoid.
   --------------------------------------------------------------------------- */
.sihatuna-home .provider-section-centre {
    --provider-accent: #1d6fa5;
    --provider-tint: rgba(29, 111, 165, 0.09);
}

.sihatuna-home .provider-section-pharmacy {
    --provider-accent: #0e7f63;
    --provider-tint: rgba(14, 127, 99, 0.09);
}

.sihatuna-home .provider-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    height: 100%;
    padding: 1.15rem 1.25rem;
    /* The sheet's own theme tokens, not free-standing --card-* names: nothing
       defines those on this page, so their fallbacks kept the card white and
       the name unreadable once dark mode swapped the ink. */
    background: var(--surface);
    border: 1px solid var(--border);
    /* The accent runs down the inline-start edge, so it follows the reading
       direction rather than sitting on the left in Arabic. */
    border-inline-start: 4px solid var(--provider-accent);
    border-radius: 16px;
}

.sihatuna-home .provider-kind {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--provider-accent);
    text-transform: uppercase;
}

.sihatuna-home .provider-kind-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--provider-tint);
    border-radius: 8px;
}

.sihatuna-home .provider-kind-icon svg {
    width: 15px;
    height: 15px;
    stroke: var(--provider-accent);
    fill: none;
}

.sihatuna-home .provider-name {
    margin: 0;
    color: var(--heading);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
}

.sihatuna-home .provider-city,
.sihatuna-home .provider-open {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Open is a fact worth spotting, so it gets weight as well as colour. */
.sihatuna-home .provider-open {
    font-weight: 600;
    color: var(--provider-accent);
}

.sihatuna-home .provider-link {
    margin-block-start: auto;
    /* Comfortably past the 44px target the rest of the site keeps to. */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--provider-accent);
    text-decoration: none;
}

.sihatuna-home .provider-link:hover,
.sihatuna-home .provider-link:focus-visible {
    text-decoration: underline;
}

/* Keyed to the chosen theme, like every other dark rule on this sheet. */
[data-bs-theme="dark"] .sihatuna-home .provider-section-centre {
    --provider-accent: #6ab6e4;
    --provider-tint: rgba(106, 182, 228, 0.14);
}

[data-bs-theme="dark"] .sihatuna-home .provider-section-pharmacy {
    --provider-accent: #53d3b0;
    --provider-tint: rgba(83, 211, 176, 0.14);
}
