/* Public site: slightly smaller overall scale (~90% browser zoom). Admin (body.admin-body) unchanged. */
html:has(body:not(.admin-body)) {
    zoom: 0.9;
}

:root {
    --brand: #1D1D6D; /* rgb(29, 29, 109) */
    --accent: #6ECD00; /* rgb(110, 205, 0) */
    --button-radius: 100px;
    --bg-soft: #f4f8fb;
    /* Public content stripes: solid light blue or mist gray (no gradients) */
    --bg-page-light-blue: #f5fbfe;
    --bg-page-mist: #fafafa;
    --text: #1d2a35;
    --text-muted: rgba(29, 42, 53, 0.65);
    --line: rgba(29, 42, 53, 0.12);
}

* { box-sizing: border-box; }

body:not(.admin-body) {
    margin: 0;
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg-page-mist);
    /* Avoid accidental horizontal scroll (e.g. header row) showing a stray scrollbar thumb */
    overflow-x: hidden;
}

/* Public headings: bold + slightly larger scale (body/UI stay medium where set separately) */
body:not(.admin-body) h1 {
    font-weight: 700;
    font-size: clamp(2.05rem, 4vw, 3.05rem);
    line-height: 1.2;
}

body:not(.admin-body) h2 {
    font-weight: 700;
    font-size: clamp(1.72rem, 2.95vw, 2.35rem);
    line-height: 1.22;
}

body:not(.admin-body) h3 {
    font-weight: 700;
    font-size: clamp(1.32rem, 2.2vw, 1.72rem);
    line-height: 1.28;
}

body:not(.admin-body) h4 {
    font-weight: 700;
    font-size: clamp(1.14rem, 1.75vw, 1.38rem);
    line-height: 1.32;
}

body:not(.admin-body) h5 {
    font-weight: 700;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.35;
}

body:not(.admin-body) h6 {
    font-weight: 700;
    font-size: clamp(0.98rem, 1.35vw, 1.12rem);
    line-height: 1.38;
}

/* Less space between headings and the block that follows (paragraphs, grids, etc.) */
body:not(.admin-body) :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

body:not(.admin-body) p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 16px;
    line-height: 1.6;
}

body:not(.admin-body) p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    body:not(.admin-body) p {
        font-size: 14px;
    }
}

/* Drop default top margin on grids/forms/etc. right under a heading */
body:not(.admin-body) main :is(h1, h2, h3, h4, h5, h6) + * {
    margin-top: 0;
}

/* Keep a sliver of space when one heading immediately follows another */
body:not(.admin-body) main :is(h1, h2, h3, h4, h5, h6) + :is(h2, h3, h4, h5, h6) {
    margin-top: 0.55rem;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e4e8ed;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding: 0.65rem 0;
    gap: 0.65rem 1rem;
}

/* Keep nav + CTAs on screen when the row wraps (mid-width viewports) */
body:not(.admin-body) .header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 1rem;
    grid-column: 2;
}

.brand { font-weight: 500; color: var(--brand); }

.brand-logo {
    height: 68px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Header logo should render in brand blue, footer keeps white logo. */
body:not(.admin-body) .brand--header-logo .brand-logo {
    filter: brightness(0) saturate(100%) invert(13%) sepia(39%) saturate(2852%) hue-rotate(216deg) brightness(94%) contrast(96%);
}

.brand-fallback-wordmark {
    font-weight: 500;
    letter-spacing: -0.01em;
}

body:not(.admin-body) .header nav a {
    margin-left: 0;
    text-decoration: none;
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

/* Pills (layouts/app.blade.php) */
.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    flex-shrink: 0;
    grid-column: 3;
    justify-self: end;
}

.brand.brand--header-logo {
    flex-shrink: 0;
    grid-column: 1;
    justify-self: start;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 1rem;
    border-radius: var(--button-radius);
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: var(--brand);
    white-space: nowrap;
    line-height: 1.1;
    position: relative;
    cursor: pointer;
}

.header-pill--accent { background: var(--accent); }
.header-pill--brand { background: var(--brand); }

/* Match site-wide CTA sizing + hover (admin uses body.admin-body) */
body:not(.admin-body) .header-pill {
    font-size: 14px;
    min-height: 42px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body:not(.admin-body) .header-pill:hover {
    transform: translateY(-1px);
}

body:not(.admin-body) .header-pill--accent:hover {
    background: #5db300;
    box-shadow: 0 4px 14px rgba(110, 205, 0, 0.35);
}

body:not(.admin-body) .header-pill--brand:hover {
    background: #15155c;
    box-shadow: 0 4px 14px rgba(29, 29, 109, 0.28);
}

body:not(.admin-body) .header-pill:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

body:not(.admin-body) .header-pill:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Mobile menu toggle (hidden on desktop via min-width breakpoint below) */
.header-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0.35rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--brand);
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: none;
}

.header-menu-toggle__icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 1.25rem;
}

.header-menu-toggle__icon span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--brand);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header.is-nav-open .header-menu-toggle__icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header.is-nav-open .header-menu-toggle__icon span:nth-child(2) {
    opacity: 0;
}

.header.is-nav-open .header-menu-toggle__icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.header-nav-open {
    overflow: hidden;
}

/* Hero (pages/home.blade.php) */
.hero {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    padding: 5rem 0;
}

.hero--video {
    position: relative;
    overflow: hidden;
    padding: 0;
    /* Override .hero gradient: video layer only, no brand/accent wash behind footage */
    background: #fff;
    /* Slightly shorter than before so less viewport is taken by the video band */
    min-height: min(84vh, 760px);
    /* Stack video layer + copy; pin copy to bottom-left of the hero */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* Border radius below only (bottom corners) */
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Calm busy footage slightly so type stays readable */
    filter: saturate(0.92) contrast(0.96);
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    /* Let .container control width (min(1120px, 92%)) — do not use 100% or hero text won’t line up with sections below */
    /* Anchor block to bottom of hero (see .hero--video flex column) */
    margin-top: auto;
    /* Extra ~80px breathing room under headline + lead before hero ends */
    padding-bottom: calc(80px + clamp(1.75rem, 5vh, 3.25rem));
    text-align: left;
}

/* Center the content column like every other .container (avoids full-bleed flex stretch) */
.hero--video .hero-content {
    align-self: center;
}

/* Hero h1: same bold as site headings, slightly larger than section h1s */
body:not(.admin-body) .hero h1 {
    font-size: clamp(2.15rem, 4.45vw, 3.5rem);
    margin: 0 0 0.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* Video hero: dark type only (no panel) so copy reads on bright footage */
body:not(.admin-body) .hero.hero--video h1 {
    color: var(--brand);
}

body:not(.admin-body) .hero.hero--video .hero-lead {
    color: var(--text);
}

body:not(.admin-body) .hero.hero--video .hero-badge {
    margin-bottom: 10px;
}

/* Oblong pill around the eyebrow: frosted blur so video shows through softly */
body:not(.admin-body) .hero.hero--video .hero-badge__circle {
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 20px rgba(29, 29, 109, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body:not(.admin-body) .hero.hero--video .hero-badge__line {
    color: var(--brand);
    text-shadow: none;
}

body:not(.admin-body) .hero.hero--video .hero-badge__line .hero-badge__line--accent {
    color: var(--accent);
    text-shadow: none;
}

.hero-badge__circle {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    max-width: 100%;
}

.hero-badge__line {
    display: block;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #fff;
    text-transform: uppercase;
    /* Tighter vw so one line fits on small phones */
    font-size: clamp(0.62rem, 2.8vw, 0.9rem);
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

/* Brighter lime on video so “Partner” reads on busy backgrounds */
.hero-badge__line .hero-badge__line--accent {
    color: #dfff9a;
    text-shadow:
        0 0 14px rgba(110, 205, 0, 0.45),
        0 1px 3px rgba(0, 0, 0, 0.55);
}

/* Context hero pages: use the same oblong badge style with brand text. */
body:not(.admin-body) .hero-badge--context {
    margin-bottom: 10px;
}

body:not(.admin-body) .hero-badge--context .hero-badge__circle {
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 20px rgba(29, 29, 109, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body:not(.admin-body) .hero-badge--context .hero-badge__line {
    color: var(--brand);
    text-shadow: none;
}

body:not(.admin-body) .hero-badge--context .hero-badge__line .hero-badge__line--accent {
    color: var(--accent);
    text-shadow: none;
}

.hero-lead {
    margin: 0;
    /* Font size follows public p scale (16px / 14px); keep hero line-height */
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    max-width: 42rem;
}

/* About page */
body:not(.admin-body) .about-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-top: clamp(5rem, 12vh, 7rem);
    padding-bottom: clamp(5rem, 12vh, 7rem);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    background-color: #1d1d6d;
    background-image: url('../images/about-hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: min(84vh, 760px);
}

/* Match doctors-page readability treatment on bright image areas. */
body:not(.admin-body) .about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.30) 50%,
        rgba(255, 255, 255, 0.24) 100%
    );
    pointer-events: none;
}

body:not(.admin-body) .about-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 46rem;
}

body:not(.admin-body) .about-hero__content h1 {
    color: var(--brand);
    font-size: clamp(1.85rem, 3.8vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0 0 0.65rem;
}

body:not(.admin-body) .about-hero__content .about-hero-title-line {
    display: block;
}

@media (min-width: 901px) {
    body:not(.admin-body) .about-hero__content .about-hero-title-line--nowrap {
        white-space: nowrap;
    }
}

body:not(.admin-body) .about-hero__content p {
    color: rgba(29, 42, 53, 0.88);
    margin-left: auto;
    margin-right: auto;
}

body:not(.admin-body) .about-story {
    max-width: 58rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

body:not(.admin-body) .about-story p {
    margin-left: auto;
    margin-right: auto;
    max-width: 52rem;
}

body:not(.admin-body) .about-services-grid,
body:not(.admin-body) .about-network-grid {
    margin-top: 1.6rem;
}

body:not(.admin-body) .about-network-intro,
body:not(.admin-body) .about-network-grid + .about-network-intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

body:not(.admin-body) .section.section--contact .container > h2 {
    text-align: center;
}

body:not(.admin-body) .about-service-card,
body:not(.admin-body) .about-network-card {
    height: 100%;
}

body:not(.admin-body) .about-network-card {
    display: flex;
    flex-direction: column;
}

body:not(.admin-body) .about-network-card__body {
    padding: 1rem var(--card-pad, 1.25rem) var(--card-pad, 1.25rem);
}

body:not(.admin-body) .about-network-grid .card > h3 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

body:not(.admin-body) .about-network-card__body p {
    margin-bottom: 0;
}

body:not(.admin-body) .about-network-card .ui-btn {
    margin-top: 0.9rem;
}

body:not(.admin-body) .about-network-card__btn {
    align-self: flex-start;
    width: auto;
    min-width: 124px;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

/* Sections */
.section { padding: 4rem 0; }
.bg-soft { background: var(--bg-soft); }
.section-intro { max-width: 760px; }

/* Section shells on the public site: alternate light blue / #f5f5f5 only (admin does not use body.site) */
body:not(.admin-body) .section--surface {
    background: var(--bg-page-light-blue);
}

body:not(.admin-body) .section--tint {
    background: var(--bg-page-mist);
}

body:not(.admin-body) .section--quote {
    background: var(--bg-page-light-blue);
}

body:not(.admin-body) .section--contact {
    background: var(--bg-page-mist);
}

body:not(.admin-body) .section--band {
    background: var(--bg-page-mist);
}

/* Doctors directory: results + form stripes (hero uses photo below) */
body:not(.admin-body) .section.doctors-directory-results {
    background: var(--bg-page-mist);
}

body:not(.admin-body) .section#find-doctors-form {
    background: var(--bg-page-light-blue);
}

/* Appointment page */
body:not(.admin-body) .section.appointment-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-top: clamp(5rem, 12vh, 7rem);
    padding-bottom: clamp(5rem, 12vh, 7rem);
    min-height: min(84vh, 760px);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    background-color: #1d1d6d;
    background-image: url('../images/medical-treatment-hero.png');
    background-size: cover;
    /* Keep doctors' faces visible in the hero crop. */
    background-position: center 22%;
    background-repeat: no-repeat;
}

/* Keep foreground copy readable on bright hero backgrounds. */
body:not(.admin-body) .section.appointment-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.30) 50%,
        rgba(255, 255, 255, 0.24) 100%
    );
    pointer-events: none;
}

body:not(.admin-body) .appointment-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 46rem;
}

body:not(.admin-body) .appointment-hero__content h1 {
    color: var(--brand);
    font-size: clamp(1.85rem, 3.8vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin-bottom: 0.65rem;
}

body:not(.admin-body) .appointment-hero__content .appointment-hero-title-line {
    display: block;
}

body:not(.admin-body) .appointment-hero__content p {
    color: rgba(29, 42, 53, 0.88);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* Claims services page */
body:not(.admin-body) .claims-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-top: clamp(5rem, 12vh, 7rem);
    padding-bottom: clamp(5rem, 12vh, 7rem);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    background-color: #1d1d6d;
    background-image: url('../images/claims-hero-bg.png');
    background-size: cover;
    /* Keep subject face on the right and away from title overlay. */
    background-position: 18% center;
    background-repeat: no-repeat;
    min-height: min(84vh, 760px);
}

/* Match doctors-page readability treatment on bright image areas. */
body:not(.admin-body) .claims-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.30) 50%,
        rgba(255, 255, 255, 0.24) 100%
    );
    pointer-events: none;
}

body:not(.admin-body) .claims-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 46rem;
}

body:not(.admin-body) .claims-hero__eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.84rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.84);
}

body:not(.admin-body) .claims-hero__content h1 {
    color: var(--brand);
    font-size: clamp(1.85rem, 3.8vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0 0 0.65rem;
}

body:not(.admin-body) .claims-hero__content .claims-hero-title-line {
    display: block;
}

body:not(.admin-body) .claims-hero__content .claims-hero-title-line--nowrap {
    white-space: nowrap;
}

body:not(.admin-body) .claims-hero__content p {
    color: rgba(29, 42, 53, 0.88);
    margin: 0 auto 1.25rem;
    max-width: 36rem;
}

/* Standalone public forms: centered column (wrap nested inside .container, not merged with it) */
body:not(.admin-body) .hg-form-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body:not(.admin-body) .hg-form-wrap {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
}

body:not(.admin-body) .hg-form-wrap > h2,
body:not(.admin-body) .hg-form-wrap > .section-intro {
    text-align: center;
}

body:not(.admin-body) .hg-form-wrap > h2 {
    margin-bottom: 1.25rem;
}

body:not(.admin-body) .hg-form-wrap > .section-intro {
    margin-left: auto;
    margin-right: auto;
    max-width: 36rem;
    margin-bottom: 40px;
}

body:not(.admin-body) .hg-form-wrap .errors {
    margin-bottom: 1rem;
    text-align: left;
    list-style-position: inside;
}

body:not(.admin-body) .hg-form-wrap .form-card {
    margin-top: 0;
}

body:not(.admin-body) .hg-form-wrap .doctor-booking-summary,
body:not(.admin-body) .hg-form-wrap .doctor-whatsapp-cta {
    text-align: center;
}

body:not(.admin-body) .hg-form-wrap .doctor-whatsapp-cta .ui-btn {
    margin-left: auto;
    margin-right: auto;
}

body:not(.admin-body) .hg-form-section .form-card button[type="submit"],
body:not(.admin-body) .hg-form-section .form-card .ui-btn[type="submit"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

body:not(.admin-body) .claims-form {
    margin-top: 0;
}

body:not(.admin-body) .claims-form__note {
    display: block;
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.86rem;
}

/* Custom file control: icon + status inside one bordered field (matches text inputs). */
.hg-file-input {
    position: relative;
    display: flex;
    align-items: stretch;
    margin-top: 0.3rem;
    border: 1px solid #c8d3df;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    min-height: 2.45rem;
}

.hg-file-input__native {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 0; /* shrink native text hit area in some engines */
    border: none;
    border-radius: 0;
    background: transparent;
    max-width: none;
}

/* Beat global form `input { width: 100%; margin-top: ... }` inside file slot */
body:not(.admin-body) .hg-file-input .hg-file-input__native {
    margin-top: 0;
}

.hg-file-input__row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    min-height: 2.35rem;
    padding: 0.45rem 0.6rem;
    pointer-events: none;
}

.hg-file-input__face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 auto;
    border-radius: 6px;
    border: none;
    background: rgba(29, 29, 109, 0.06);
    color: var(--brand);
    box-sizing: border-box;
}

.hg-file-input__icon {
    width: 0.82rem;
    height: 0.82rem;
    display: block;
}

.hg-file-input__status {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.35;
    word-break: break-word;
}

body:not(.admin-body) .hg-file-input:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: rgba(110, 205, 0, 0.35);
}

body:not(.admin-body) .appointment-specialization > h2 {
    margin: 0 0 1.25rem;
    padding: 0;
    text-align: center;
}

body:not(.admin-body) .appointment-specialization > .section-intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    max-width: 36rem;
}

body:not(.admin-body) .appointment-specialization__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.05rem 1.2rem;
    margin-top: 0;
}

@media (min-width: 1080px) {
    body:not(.admin-body) .appointment-specialization__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

body:not(.admin-body) .appointment-specialization__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    min-height: 0;
    padding: 1.35rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #d7e1ea;
    box-shadow: 0 4px 12px rgba(17, 28, 74, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body:not(.admin-body) .appointment-specialization__card:hover {
    transform: translateY(-1px);
    border-color: #c8d6e4;
    box-shadow: 0 8px 18px rgba(17, 28, 74, 0.08);
}

body:not(.admin-body) .appointment-specialization__card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
}

/* Icon: show PNG/SVG only — no extra ring or fill on the wrapper. */
body:not(.admin-body) .appointment-specialization__icon {
    flex-shrink: 0;
}

body:not(.admin-body) .appointment-specialization__icon--circle {
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    background: none;
    border: none;
    border-radius: 0;
    overflow: visible;
}

body:not(.admin-body) .appointment-specialization__icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

body:not(.admin-body) .appointment-specialization__icon-placeholder-svg {
    width: 100%;
    height: 100%;
    display: block;
}

body:not(.admin-body) .appointment-specialization__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.52rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #24563d;
    background: rgba(110, 205, 0, 0.16);
    border: 1px solid rgba(110, 205, 0, 0.3);
    flex-shrink: 0;
    max-width: 11rem;
    text-align: right;
    line-height: 1.25;
}

body:not(.admin-body) .appointment-specialization__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

body:not(.admin-body) .appointment-specialization__title {
    font-size: 1.08rem;
    line-height: 1.28;
    margin: 0;
    padding: 0;
    font-weight: 700;
    color: #102235;
    width: 100%;
}

body:not(.admin-body) .appointment-specialization__desc {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted);
    margin: 0;
    width: 100%;
}

body:not(.admin-body) .appointment-specialization__cta {
    align-self: flex-start;
    margin-top: 0.15rem;
    min-width: 170px;
    font-weight: 600;
    text-align: center;
}

body:not(.admin-body) .appointment-specialization__cta.ui-btn--secondary {
    background: #1d1d6d;
}

body:not(.admin-body) .appointment-specialization__cta.ui-btn--secondary:hover {
    background: #16165b;
    box-shadow: 0 6px 18px rgba(29, 29, 109, 0.25);
}

body:not(.admin-body) .appointment-specialization__card--hidden {
    display: none;
}

body:not(.admin-body) .appointment-specialization__card--hidden.is-visible {
    display: flex;
}

body:not(.admin-body) .appointment-specialization__actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

body:not(.admin-body) .appointment-specialization__toggle {
    min-width: 170px;
}


body:not(.admin-body) .section.appointment-hospitals {
    background: #fff;
}

body:not(.admin-body) .appointment-hospitals h2 {
    text-align: center;
    margin: 0 0 1.25rem;
}

body:not(.admin-body) .appointment-hospitals > .container > .section-intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    max-width: 36rem;
}

body:not(.admin-body) .hospitals-carousel {
    margin-top: 0;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 0.75rem;
}

body:not(.admin-body) .hospitals-carousel__viewport {
    overflow: hidden;
}

body:not(.admin-body) .hospitals-carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (2 * 1rem)) / 3);
    gap: 1rem;
    transition: transform 0.35s ease;
    will-change: transform;
}

body:not(.admin-body) .hospitals-card {
    border: 1px solid #d7e1ea;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

body:not(.admin-body) .hospitals-card__image-placeholder {
    height: 240px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e8f0fb 0%, #dbe8f9 100%);
    color: rgba(29, 29, 109, 0.65);
    font-weight: 600;
    font-size: 0.9rem;
}

body:not(.admin-body) .hospitals-card__image {
    width: 100%;
    height: 240px;
    display: block;
    object-fit: cover;
}

body:not(.admin-body) .hospitals-card__name {
    padding: 0.8rem 0.95rem;
    font-size: 1.08rem;
    line-height: 1.25;
    color: #fff;
    font-weight: 600;
    background: #1d1d6d;
}

body:not(.admin-body) .hospitals-carousel__arrow {
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid #ccd8e5;
    border-radius: 100px;
    background: #fff;
    color: #1d1d6d;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

body:not(.admin-body) .hospitals-carousel__arrow:hover {
    border-color: #1d1d6d;
    color: #fff;
    background: #1d1d6d;
}

body:not(.admin-body) .hospitals-carousel__dots {
    margin-top: 0.95rem;
    display: flex;
    justify-content: center;
    gap: 0.45rem;
}

body:not(.admin-body) .hospitals-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: #d6dde8;
    cursor: pointer;
}

body:not(.admin-body) .hospitals-carousel__dot.is-active {
    background: #1d1d6d;
}

body:not(.admin-body) .hospitals-carousel__actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}


@media (max-width: 640px) {
    body:not(.admin-body) .appointment-specialization__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    body:not(.admin-body) .hospitals-carousel {
        grid-template-columns: 40px 1fr 40px;
        gap: 0.5rem;
    }

    body:not(.admin-body) .hospitals-carousel__track {
        grid-auto-columns: 100%;
    }

    body:not(.admin-body) .hospitals-card__image-placeholder {
        height: 220px;
    }

    body:not(.admin-body) .hospitals-card__image {
        height: 220px;
    }
}

.section-intro { color: var(--text-muted); }

/* Layout / cards */
.grid { display: grid; gap: 1rem; }
.three-col { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
    --card-pad: 1.25rem;
    border: 1px solid #d7e1ea;
    background: #fff;
    border-radius: 8px;
    padding: var(--card-pad);
    overflow: hidden;
}

.card:hover { box-shadow: 0 10px 30px rgba(29, 29, 109, 0.08); }

/* Service + facility cards (home)
   Images use a fixed-height band + cover so every card aligns; contain() caused uneven letterboxing. */
.service-card {
    height: 100%;
}

/* Stack image then copy; works for services + facilities (same image class) */
.card:has(> img.service-card__image),
.card:has(> .service-card__image-placeholder) {
    display: flex;
    flex-direction: column;
}

/* Pull media to card edges (matches .card padding) for a clean header strip */
.service-card__image {
    width: calc(100% + 2 * var(--card-pad, 1.25rem));
    max-width: none;
    margin: calc(-1 * var(--card-pad, 1.25rem)) calc(-1 * var(--card-pad, 1.25rem)) 1rem;
    height: 168px;
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

.service-card__image-placeholder {
    width: calc(100% + 2 * var(--card-pad, 1.25rem));
    margin: calc(-1 * var(--card-pad, 1.25rem)) calc(-1 * var(--card-pad, 1.25rem)) 1rem;
    height: 168px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(29, 29, 109, 0.18);
    border-bottom: 1px dashed rgba(29, 29, 109, 0.18);
    border-radius: 0;
    background: rgba(29, 29, 109, 0.03);
    color: rgba(29, 29, 109, 0.75);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Titles sit on padded body; small top gap after image band */
.service-card h3,
.card > h3 {
    margin-top: 0;
}

/* Facilities section: merged “30+ networks” intro + cards (title uses same h2 scale as Medical Concierge Services) */
body:not(.admin-body) .facilities-networks__title {
    text-align: center;
}

body:not(.admin-body) .facilities-networks__intro {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    font-size: 16px;
}

@media (max-width: 640px) {
    body:not(.admin-body) .facilities-networks__intro {
        font-size: 14px;
    }
}

body:not(.admin-body) .facilities-networks .grid.three-col {
    margin-top: 40px;
    text-align: left;
}

/* Medical Facilities grid: country titles smaller than global h3 scale */
#facilities .card > h3 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

/* Medical Concierge service cards: same 18px titles + tight gap to description */
#services .service-card > h3 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

/* Center section title + intro; exactly 40px gap before the card grid */
#services .container > h2,
#services .container > .section-intro {
    text-align: center;
}

/* Slightly larger home section title to match requested emphasis */
body:not(.admin-body) #services .container > h2 {
    font-size: clamp(1.95rem, 3.4vw, 2.7rem);
}

#services .section-intro {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

#services .container > .grid.three-col {
    margin-top: 40px;
    text-align: left;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Contact list */
.contact-list { padding: 0; list-style: none; }
.contact-list li { margin-bottom: 0.5rem; }

.contact-list__item {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.contact-list__icon {
    flex: 0 0 auto;
    width: 1.9rem;
    height: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(110, 205, 0, 0.12);
    border: 1px solid rgba(110, 205, 0, 0.18);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    color: var(--accent);
}

.contact-list__icon-svg {
    display: block;
    flex-shrink: 0;
}

.contact-list__body { min-width: 0; }
.contact-list__label { font-weight: 500; }
.contact-list__value { color: var(--brand); font-weight: 500; text-decoration: none; }
.contact-list__value:hover { text-decoration: underline; }

/* Contact: breathing room under each section title (lists + form) */
#contact h2 {
    margin-bottom: 1.1rem;
}

/* Contact column: separate General Inquiries from Claims Assistance */
#contact .contact-list + h2 {
    margin-top: 2.25rem;
}

/* Header "Contact Us" links here; offset for sticky header */
body:not(.admin-body) #general-inquiry-form {
    scroll-margin-top: 5.5rem;
}

/* Form controls */
body:not(.admin-body) label { display: block; font-weight: 500; margin-bottom: 0.8rem; }
body:not(.admin-body) input,
body:not(.admin-body) select,
body:not(.admin-body) textarea {
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.65rem;
    border: 1px solid #c8d3df;
    border-radius: 6px;
    font: inherit;
}

body:not(.admin-body) button {
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: var(--button-radius);
    padding: 0.7rem 1rem;
    font-weight: 500;
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body:not(.admin-body) button:hover {
    background: #5db300;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(110, 205, 0, 0.35);
}

body:not(.admin-body) button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(110, 205, 0, 0.28);
    transition-duration: 0.1s;
}

body:not(.admin-body) button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* Hamburger: not a green pill — override global `button` styles */
body:not(.admin-body) .header-menu-toggle {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0.35rem;
    color: var(--brand);
    box-shadow: none;
    min-height: 0;
    font-size: inherit;
}

body:not(.admin-body) .header-menu-toggle:hover,
body:not(.admin-body) .header-menu-toggle:active {
    background: transparent;
    transform: none;
    box-shadow: none;
}

body:not(.admin-body) .header-menu-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* Doctors page (and similar): <a class="ui-btn"> should match real buttons + hover */
body:not(.admin-body) a.ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: var(--button-radius);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

body:not(.admin-body) a.ui-btn--primary {
    background: var(--accent);
    color: #fff;
}

body:not(.admin-body) a.ui-btn--primary:hover {
    background: #5db300;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(110, 205, 0, 0.35);
}

body:not(.admin-body) a.ui-btn--secondary {
    background: var(--brand);
    color: #fff;
}

body:not(.admin-body) a.ui-btn--secondary:hover {
    background: #15155c;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(29, 29, 109, 0.28);
}

body:not(.admin-body) a.ui-btn:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

body:not(.admin-body) a.ui-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Specialization cards: pill CTA, left column (after global `a.ui-btn`). */
body:not(.admin-body) a.appointment-specialization__cta.ui-btn {
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    justify-content: center;
}

/* Alerts / lists */
.alert-success {
    background: #dbf4e8;
    border: 1px solid #9fd6b8;
    color: #134f32;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.errors {
    margin: 0 0 1rem;
    color: #8d1e1e;
}

.testimonial {
    margin: 0 0 0.75rem;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--accent);
    background: #fff;
    border-radius: 6px;
}

body:not(.admin-body) .section .testimonial:last-child {
    margin-bottom: 0;
}

/* Testimonials section: centered title + quotes; 40px under h2; accent on top for centered copy */
body:not(.admin-body) .section--quote .container > h2 {
    text-align: center;
    margin-bottom: 0;
}

body:not(.admin-body) .section--quote .testimonial {
    text-align: center;
    border-left: none;
    border-top: 4px solid var(--accent);
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem 1.5rem 1.35rem;
}

body:not(.admin-body) .section--quote .testimonial:first-of-type {
    margin-top: 40px;
}

body:not(.admin-body) .section--quote .testimonial:not(:first-of-type) {
    margin-top: 0.75rem;
}

/* About page: testimonials carousel */
body:not(.admin-body) .about-testimonials .container > h2 {
    text-align: center;
}

body:not(.admin-body) .about-testimonials-carousel {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 0.75rem;
}

body:not(.admin-body) .about-testimonials-carousel__viewport {
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

body:not(.admin-body) .about-testimonials-carousel__track {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    width: max-content;
    transition: transform 0.35s ease;
    will-change: transform;
}

body:not(.admin-body) .section--quote .about-testimonials-carousel blockquote.testimonial.about-testimonial-card {
    max-width: none;
    margin: 0;
}

body:not(.admin-body) .about-testimonials-carousel .about-testimonial-card {
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 0;
    max-width: none;
    text-align: center;
    border-left: none;
    border-top: 4px solid var(--accent);
    padding: 1.1rem 1.2rem 1.15rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Keep carousel cards uniform: neutralize legacy static-testimonial spacing rules. */
body:not(.admin-body) .about-testimonials-carousel .about-testimonial-card:first-of-type,
body:not(.admin-body) .about-testimonials-carousel .about-testimonial-card:not(:first-of-type) {
    margin-top: 0;
}

body:not(.admin-body) .about-testimonial-card p {
    margin-bottom: 0.7rem;
}

/* Homepage testimonial rating row */
body:not(.admin-body) .home-testimonial-stars {
    margin-bottom: 0.55rem;
    color: #f5b301;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    line-height: 1;
}

body:not(.admin-body) .about-testimonial-card footer {
    font-weight: 600;
    color: var(--brand);
}

body:not(.admin-body) .about-testimonials-carousel__arrow {
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid #ccd8e5;
    border-radius: 100px;
    background: #fff;
    color: #1d1d6d;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

body:not(.admin-body) .about-testimonials-carousel__arrow:hover {
    border-color: #1d1d6d;
    color: #fff;
    background: #1d1d6d;
}

body:not(.admin-body) .about-testimonials-carousel__dots {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 0.45rem;
}

body:not(.admin-body) .about-testimonials-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: #d6dde8;
    cursor: pointer;
}

body:not(.admin-body) .about-testimonials-carousel__dot.is-active {
    background: #1d1d6d;
}

@media (max-width: 900px) {
    body:not(.admin-body) .about-testimonials-carousel {
        grid-template-columns: 40px 1fr 40px;
        gap: 0.5rem;
    }

}

/* --------------------------------------------------------------------------
   Doctors directory (resources/views/pages/doctors-directory.blade.php)
   Full layout + modal — classes existed in markup with almost no CSS before.
   -------------------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Doctors page hero: full-bleed photo backdrop (doctors-directory.blade.php) */
body:not(.admin-body) .section.doctor-hero--image {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-top: clamp(5rem, 12vh, 7rem);
    padding-bottom: clamp(5rem, 12vh, 7rem);
    min-height: min(84vh, 760px);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    /* Fallback if background fails to load */
    background-color: #1d1d6d;
    /* Doctors page hero photo */
    background-image: url('../images/doctors-hero-bg-photo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Subtle overlay: improves readability without washing out the hero photo. */
body:not(.admin-body) .section.doctor-hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.30) 50%,
        rgba(255, 255, 255, 0.24) 100%
    );
    pointer-events: none;
}

body:not(.admin-body) .section.doctor-hero--image .container {
    position: relative;
    z-index: 1;
}

body:not(.admin-body) .doctor-directory-hero {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto;
    padding: 2rem 0 2.25rem;
}

/* Light copy on the image hero only */
body:not(.admin-body) .doctor-hero--image .doctor-directory-hero {
    padding-top: 0;
    padding-bottom: 0;
}

body:not(.admin-body) .doctor-hero--image .doctor-directory-hero h1 {
    color: var(--brand);
    font-size: clamp(1.85rem, 3.8vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0 0 0.65rem;
}

body:not(.admin-body) .doctor-hero--image .doctor-directory-hero .doctor-hero-title-line {
    display: block;
}

@media (min-width: 901px) {
    body:not(.admin-body) .doctor-hero--image .doctor-directory-hero .doctor-hero-title-line--nowrap {
        white-space: nowrap;
    }
}

body:not(.admin-body) .doctor-directory-hero p {
    color: var(--text-muted);
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

body:not(.admin-body) .doctor-hero--image .doctor-directory-hero p {
    color: rgba(29, 42, 53, 0.88);
}

/* About + Doctors heroes: stack copy cleanly on narrow screens (no nowrap overlap). */
@media (max-width: 900px) {
    body:not(.admin-body) .about-hero,
    body:not(.admin-body) .section.doctor-hero--image {
        align-items: flex-start;
        min-height: auto;
        padding-top: clamp(4.25rem, 12vw, 5.5rem);
        padding-bottom: clamp(2.25rem, 7vw, 3.5rem);
        overflow: visible;
    }

    body:not(.admin-body) .section.doctor-hero--image .container,
    body:not(.admin-body) .about-hero > .container {
        min-width: 0;
        width: min(1120px, 92%);
    }

    body:not(.admin-body) .section.about-hero {
        padding-left: 0;
        padding-right: 0;
    }

    body:not(.admin-body) .about-hero__content,
    body:not(.admin-body) .doctor-directory-hero {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 1.25rem 0.15rem 1.5rem;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

    body:not(.admin-body) .about-hero .hero-badge--context,
    body:not(.admin-body) .doctor-hero--image .hero-badge--context {
        display: block;
        margin-bottom: 0.9rem;
    }

    body:not(.admin-body) .about-hero .hero-badge--context .hero-badge__circle,
    body:not(.admin-body) .doctor-hero--image .hero-badge--context .hero-badge__circle {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.65rem 0.85rem;
    }

    body:not(.admin-body) .about-hero .hero-badge--context .hero-badge__line,
    body:not(.admin-body) .doctor-hero--image .hero-badge--context .hero-badge__line {
        white-space: normal;
        text-align: center;
        font-size: clamp(0.58rem, 2.4vw, 0.78rem);
        letter-spacing: 0.04em;
        line-height: 1.35;
        overflow-wrap: break-word;
    }

    body:not(.admin-body) .about-hero__content h1,
    body:not(.admin-body) .doctor-hero--image .doctor-directory-hero h1 {
        font-size: clamp(1.35rem, 5.2vw, 2rem) !important;
        line-height: 1.32;
        margin: 0 0 0.75rem;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    body:not(.admin-body) .about-hero__content .about-hero-title-line + .about-hero-title-line,
    body:not(.admin-body) .doctor-hero--image .doctor-directory-hero .doctor-hero-title-line + .doctor-hero-title-line {
        margin-top: 0.12em;
    }

    body:not(.admin-body) .about-hero__content .about-hero-title-line,
    body:not(.admin-body) .doctor-hero--image .doctor-directory-hero .doctor-hero-title-line,
    body:not(.admin-body) .about-hero__content .about-hero-title-line--nowrap,
    body:not(.admin-body) .doctor-hero--image .doctor-directory-hero .doctor-hero-title-line--nowrap {
        display: block;
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-wrap: break-word;
        word-break: break-word;
    }

    body:not(.admin-body) .about-hero__content p,
    body:not(.admin-body) .doctor-hero--image .doctor-directory-hero p {
        font-size: 0.9375rem;
        line-height: 1.55;
        margin-bottom: 0.25rem;
        max-width: 100%;
    }

    body:not(.admin-body) .about-hero .cta-row,
    body:not(.admin-body) .doctor-hero--image .cta-row {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    body:not(.admin-body) .about-hero__content h1,
    body:not(.admin-body) .doctor-hero--image .doctor-directory-hero h1 {
        font-size: clamp(1.25rem, 6.5vw, 1.55rem);
        line-height: 1.35;
    }
}

body:not(.admin-body) .cta-row {
    display: flex;
    justify-content: center;
    margin-top: 1.35rem;
}

body:not(.admin-body) .doctors-directory-listing {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

body:not(.admin-body) .doctor-filter-panel {
    position: relative;
    background: #fff;
    border: 1px solid #d7e1ea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(29, 29, 109, 0.07);
}

body:not(.admin-body) .doctor-filter-panel__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

body:not(.admin-body) .doctor-filter-panel__inner {
    padding: 1.2rem 1.2rem 1.25rem 1.45rem;
}

body:not(.admin-body) .doctor-filter-form__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

body:not(.admin-body) h2.doctor-filter-form__title {
    font-size: clamp(1.12rem, 2.1vw, 1.38rem);
    line-height: 1.25;
    margin-bottom: 0;
}

body:not(.admin-body) .doctor-filter-form__per-page select {
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #c8d3df;
    font: inherit;
    background: #fff;
    color: var(--text);
}

body:not(.admin-body) .doctor-filter-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

body:not(.admin-body) .doctor-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

body:not(.admin-body) .doctor-filter-field__label {
    display: block;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Undo global form `label { margin-bottom }` and `select { margin-top }` inside this panel */
body:not(.admin-body) .doctor-filter-field__control select {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #c8d3df;
    font: inherit;
    background: #fff;
}

/* Name search: same box as specialty select (8px radius, same border) + inset icon; Enter submits */
body:not(.admin-body) .doctor-filter-field__control--search-field {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem 0.55rem 0.55rem;
    background: #fff;
    border: 1px solid #c8d3df;
    border-radius: 8px;
    font: inherit;
    transition: border-color 0.15s ease;
}

body:not(.admin-body) .doctor-filter-field__control--search-field:focus-within {
    border-color: #9eb0c4;
}

body:not(.admin-body) .doctor-filter-search-field__icon {
    display: flex;
    flex-shrink: 0;
    color: #64748b;
    pointer-events: none;
}

body:not(.admin-body) .doctor-filter-search-field__icon svg {
    display: block;
}

body:not(.admin-body) .doctor-filter-field__control--search-field input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 0;
    margin: 0;
    padding: 0;
    font: inherit;
    line-height: inherit;
    color: var(--text);
    background: transparent;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

body:not(.admin-body) .doctor-filter-field__control--search-field input[type="search"]:focus {
    outline: 0;
}

body:not(.admin-body) .doctor-filter-field__control--search-field input[type="search"]::placeholder {
    color: #94a3b8;
}

body:not(.admin-body) .doctor-filter-search-combo {
    position: relative;
    width: 100%;
}

body:not(.admin-body) .doctors-directory-live-results.is-directory-loading {
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

body:not(.admin-body) .doctor-list-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2.5rem 1rem;
    margin: 0;
}

body:not(.admin-body) .doctor-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 1.15rem;
}

body:not(.admin-body) .doctor-card {
    position: relative;
    background: #fff;
    border: 1px solid #d7e1ea;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

body:not(.admin-body) .doctor-card:hover {
    box-shadow: 0 12px 36px rgba(29, 29, 109, 0.11);
    transform: translateY(-2px);
}

body:not(.admin-body) .doctor-card:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

body:not(.admin-body) .doctor-card:focus:not(:focus-visible) {
    outline: none;
}

body:not(.admin-body) .doctor-card__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

body:not(.admin-body) .doctor-card__inner {
    display: flex;
    gap: 1rem;
    padding: 1.15rem 1.15rem 1.2rem 1.35rem;
    position: relative;
}

body:not(.admin-body) .doctor-avatar {
    flex-shrink: 0;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 50%;
    background: rgba(29, 29, 109, 0.07);
    border: 1px solid rgba(29, 29, 109, 0.12);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--brand);
}

body:not(.admin-body) .doctor-avatar--image {
    object-fit: cover;
    background: #fff;
}

body:not(.admin-body) .doctor-card__body {
    min-width: 0;
}

body:not(.admin-body) .doctor-card__body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.06rem;
}

body:not(.admin-body) .doctor-specialty-pill {
    margin: 0 0 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body:not(.admin-body) .doctor-clinic {
    margin: 0 0 0.55rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

body:not(.admin-body) .doctor-card__cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand);
}

body:not(.admin-body) .doctor-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 50px;
}

body:not(.admin-body) a.page-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: 0.42rem 0.55rem;
    border-radius: 100px;
    border: 1px solid #c8d3df;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body:not(.admin-body) a.page-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
}

body:not(.admin-body) a.page-chip.is-active,
body:not(.admin-body) span.page-chip.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    border-radius: 100px;
}

body:not(.admin-body) .doctor-pagination .page-chip--nav {
    min-width: auto;
    padding: 0.42rem 0.8rem;
    font-size: 0.82rem;
}

body:not(.admin-body) .doctor-pagination .page-chip.is-disabled {
    opacity: 0.42;
    cursor: not-allowed;
    pointer-events: none;
    color: var(--text-muted);
    background: rgba(241, 245, 252, 0.95);
    border-style: dashed;
    border-radius: 100px;
}

body:not(.admin-body) .doctor-pagination .page-chip--ellipsis {
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: default;
    min-width: auto;
    padding: 0 0.3rem;
    font-weight: 500;
    color: var(--text-muted);
}

body:not(.admin-body) .form-card {
    background: #fff;
    border: 1px solid #d7e1ea;
    border-radius: 12px;
    padding: 1.35rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    body:not(.admin-body) .form-card {
        width: 100%;
    }
}

body:not(.admin-body) .doctor-booking-summary {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(110, 205, 0, 0.08);
    border: 1px solid rgba(110, 205, 0, 0.22);
    font-size: 0.95rem;
}

body:not(.admin-body) .doctor-booking-summary:empty {
    display: none;
}

body:not(.admin-body) .doctor-form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-muted);
}

body:not(.admin-body) .doctor-whatsapp-cta {
    text-align: center;
    margin-top: 0.25rem;
}

body:not(.admin-body) .doctor-whatsapp-cta p {
    margin-bottom: 0.65rem;
    color: var(--text-muted);
}

/* Availability modal */
body:not(.admin-body) .doctor-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

body:not(.admin-body) .doctor-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

body:not(.admin-body) .doctor-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 36, 0.48);
    cursor: pointer;
}

body:not(.admin-body) .doctor-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    max-height: min(90vh, 680px);
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 56px rgba(29, 29, 109, 0.22);
}

body:not(.admin-body) .doctor-modal__header {
    padding: 1.2rem 3rem 0.85rem 1.25rem;
    border-bottom: 1px solid #e8ecf1;
    position: relative;
}

body:not(.admin-body) .doctor-modal__header-main {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

body:not(.admin-body) .doctor-modal__header-copy {
    flex: 1 1 auto;
    min-width: 0;
}

body:not(.admin-body) .doctor-modal__avatar {
    position: relative;
    flex: 0 0 4.5rem;
    width: 4.5rem;
    height: 4.5rem;
    min-width: 4.5rem;
    min-height: 4.5rem;
    max-width: 4.5rem;
    max-height: 4.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #d7e1ea;
    background-color: #f3f5f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.admin-body) .doctor-modal__avatar-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

body:not(.admin-body) .doctor-modal__avatar-initials {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    color: var(--brand);
}

body:not(.admin-body) .doctor-modal__avatar-photo[hidden],
body:not(.admin-body) .doctor-modal__avatar-initials[hidden] {
    display: none !important;
}

/* Modal header avatar: enforce circle + left-of-name layout if other rules conflict on deploy. */
body:not(.admin-body) #doctorModal .doctor-modal__header-main {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

body:not(.admin-body) #doctorModal .doctor-modal__avatar {
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid #d7e1ea !important;
}

body:not(.admin-body) #doctorModal .doctor-modal__avatar-photo:not([hidden]) {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

body:not(.admin-body) button.doctor-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.35rem;
    height: 2.35rem;
    min-width: unset;
    min-height: unset;
    padding: 0;
    border-radius: var(--button-radius);
    background: rgba(29, 29, 109, 0.06);
    color: var(--brand);
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.admin-body) button.doctor-modal__close:hover {
    background: rgba(29, 29, 109, 0.12);
    transform: none;
    box-shadow: none;
}

body:not(.admin-body) button.doctor-modal__close:active {
    background: rgba(29, 29, 109, 0.18);
}

body:not(.admin-body) .doctor-modal__close span {
    display: block;
    width: 14px;
    height: 14px;
    position: relative;
}

body:not(.admin-body) .doctor-modal__close span::before,
body:not(.admin-body) .doctor-modal__close span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    background: var(--brand);
    border-radius: 1px;
}

body:not(.admin-body) .doctor-modal__close span::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

body:not(.admin-body) .doctor-modal__close span::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

body:not(.admin-body) .doctor-modal__eyebrow {
    margin: 0 0 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

body:not(.admin-body) .doctor-modal__title {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 700;
}

body:not(.admin-body) .doctor-modal__body {
    padding: 1.1rem 1.25rem 1.45rem;
}

body:not(.admin-body) .doctor-modal__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

body:not(.admin-body) .doctor-modal__chip {
    display: inline-block;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(29, 29, 109, 0.06);
    color: var(--text);
}

body:not(.admin-body) .doctor-modal__chip--accent {
    background: rgba(110, 205, 0, 0.16);
    color: var(--brand);
    font-weight: 600;
}

/* Clinic contact (address / phone / email) under chips; filled from admin doctor fields */
body:not(.admin-body) .doctor-modal__clinic-contact {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

body:not(.admin-body) .doctor-modal__clinic-contact[hidden] {
    display: none !important;
}

body:not(.admin-body) .doctor-modal__contact-block {
    margin: 0 0 0.55rem;
}

body:not(.admin-body) .doctor-modal__contact-block:last-child {
    margin-bottom: 0;
}

body:not(.admin-body) .doctor-modal__contact-block[hidden] {
    display: none !important;
}

body:not(.admin-body) .doctor-modal__contact-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4a5568;
    margin-bottom: 0.35rem;
}

body:not(.admin-body) .doctor-modal__contact-value {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text);
    word-break: break-word;
}

body:not(.admin-body) .doctor-modal__locations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body:not(.admin-body) .doctor-modal__location {
    margin: 0;
    padding: 0 0 0.65rem;
    border-bottom: 1px solid #e2e8f0;
}

body:not(.admin-body) .doctor-modal__location:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

body:not(.admin-body) .doctor-modal__location-heading {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--brand);
}

body:not(.admin-body) .doctor-modal__contact-value--hours {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

body:not(.admin-body) .doctor-modal__hours-line {
    margin: 0;
}

body:not(.admin-body) .doctor-modal__contact-link {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

body:not(.admin-body) .doctor-modal__contact-link:hover {
    text-decoration: underline;
}

body:not(.admin-body) .doctor-modal__contact-emails {
    margin: 0;
}

body:not(.admin-body) .doctor-modal__contact-value--email-line {
    margin: 0 0 0.35rem;
}

body:not(.admin-body) .doctor-modal__contact-value--email-line:last-child {
    margin-bottom: 0;
}

body:not(.admin-body) .doctor-modal__description-section {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

body:not(.admin-body) .doctor-modal__description-section[hidden] {
    display: none !important;
}

body:not(.admin-body) .doctor-modal__description-body {
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
    white-space: pre-wrap;
}

/* Modal: available slot + CTA (“Pick a slot” heading removed per design) */
body:not(.admin-body) .doctor-modal__location-picker {
    margin-bottom: 1rem;
}

body:not(.admin-body) .doctor-modal__location-picker[hidden],
body:not(.admin-body) .doctor-modal__pick-section[hidden] {
    display: none !important;
}

body:not(.admin-body) .doctor-modal__pick-section {
    margin-top: 0.15rem;
}

body:not(.admin-body) .doctor-modal__pick-section .doctor-modal__field--slot {
    margin: 0;
}

body:not(.admin-body) .doctor-modal__select-shell--block {
    width: 100%;
}

body:not(.admin-body) .doctor-modal__pick-section .doctor-modal__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
}

body:not(.admin-body) .doctor-modal__pick-section .doctor-modal__select-shell select {
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #c8d3df;
    font: inherit;
    background: #fff;
}

body:not(.admin-body) .doctor-modal__actions {
    margin-top: 30px;
}

body:not(.admin-body) .doctor-modal__confirm {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--brand);
    color: #f6f8fa;
    padding: 2rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.35;
}

/* Brand column capped so link + contact columns stay readable; gutters breathe on wide viewports */
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
    gap: clamp(0.85rem, 2.2vw, 1.5rem);
    align-items: start;
    padding-bottom: 1.35rem;
}

body:not(.admin-body) .footer h3 {
    margin: 0 0 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;
}

/* Grid children: allow shrinking so long emails / numbers wrap instead of stretching the layout */
.footer-col {
    min-width: 0;
}

.footer-col--contacts {
    overflow-wrap: anywhere;
}

.footer-brand {
    min-width: 0;
}

.footer-brand-link {
    display: inline-flex;
    text-decoration: none;
    margin-bottom: 0.4rem;
}

.footer-brand-logo {
    width: 76px;
    height: auto;
    display: block;
}

/* Slightly tighter spacing under the logo than other column headings */
body:not(.admin-body) .footer .footer-brand__title {
    margin: 0 0 0.4rem;
}

body:not(.admin-body) .footer-brand__text {
    margin: 0;
    line-height: 1.45;
    font-size: inherit;
    color: rgba(246, 248, 250, 0.88);
}

body:not(.admin-body) .footer-brand__text + .footer-brand__text {
    margin-top: 0.35rem;
}

.footer-links,
.footer-contacts {
    margin: 0;
    padding: 0;
    list-style: none;
}

body:not(.admin-body) .footer-links li,
body:not(.admin-body) .footer-contacts li {
    margin: 0.18rem 0;
    color: rgba(246, 248, 250, 0.9);
    font-size: inherit;
}

body:not(.admin-body) .footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

body:not(.admin-body) .footer-contact-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-top: 0.15rem;
    color: #fff;
}

body:not(.admin-body) .footer-contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

/* Footer: two concise contact blocks (General vs Claims); replaces flat icon list */
body:not(.admin-body) .footer-support-groups {
    margin: 0.1rem 0 0;
}

body:not(.admin-body) .footer-support-group {
    margin: 0 0 0.5rem;
}

body:not(.admin-body) .footer-support-group:last-child {
    margin-bottom: 0;
}

body:not(.admin-body) .footer-support-title {
    margin: 0 0 0.15rem;
    font-weight: 700;
    font-size: inherit;
    color: rgba(246, 248, 250, 0.95);
}

body:not(.admin-body) .footer-support-line {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: rgba(246, 248, 250, 0.9);
}

body:not(.admin-body) .footer-support-line a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

body:not(.admin-body) .footer-support-line a:hover {
    text-decoration: underline;
}

body:not(.admin-body) .footer-links a {
    color: rgba(246, 248, 250, 0.92);
    text-decoration: none;
    font-weight: 400;
    font-size: inherit;
}

.footer-links a:hover { text-decoration: underline; }

.footer-bottom {
    margin-top: 0;
    padding: 0.45rem 1rem;
    background: #022448;
    color: rgba(246, 248, 250, 0.92);
    font-size: 0.7rem;
    font-weight: 400;
    text-align: center;
}

.brand--with-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #fff;
}

.brand-mark {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 12px;
    background: rgba(110, 205, 0, 0.15);
    border: 1px solid rgba(110, 205, 0, 0.35);
    display: grid;
    place-items: center;
    font-weight: 500;
}

.brand-text { font-weight: 500; }

/* ----- Header: tablet / mobile ----- */
@media (max-width: 992px) {
    .nav-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        padding: 0.55rem 0;
    }

    .brand.brand--header-logo {
        grid-column: unset;
        justify-self: unset;
    }

    .brand-logo {
        height: 54px;
    }

    .header-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header-nav-panel {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        order: 3;
        gap: 0.85rem;
        padding: 0.85rem 0 0.35rem;
        border-top: 1px solid #e4e8ed;
    }

    .header.is-nav-open .header-nav-panel {
        display: flex;
    }

    body:not(.admin-body) .header nav {
        grid-column: unset;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
    }

    body:not(.admin-body) .header nav a {
        display: block;
        padding: 0.65rem 0.5rem;
        border-radius: 8px;
        font-size: 0.9375rem;
    }

    body:not(.admin-body) .header nav a:hover,
    body:not(.admin-body) .header nav a[aria-current="page"] {
        background: rgba(29, 29, 109, 0.06);
    }

    .header-actions {
        grid-column: unset;
        justify-self: unset;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    body:not(.admin-body) .header-pill {
        width: 100%;
        min-height: 44px;
        font-size: 0.875rem;
        padding: 0.55rem 0.85rem;
    }
}

/* Desktop: 3-column header grid; panel children participate via display: contents */
@media (min-width: 993px) {
    .header-menu-toggle {
        display: none;
    }

    .header-nav-panel {
        display: contents;
    }

    body:not(.admin-body) .header nav a[aria-current="page"] {
        text-decoration: underline;
        text-underline-offset: 0.2em;
    }
}

/* ----- Footer: tablet ----- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ----- Footer: mobile ----- */
@media (max-width: 640px) {
    .footer {
        padding: 1.5rem 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
        padding-bottom: 1.1rem;
    }

    .footer-brand-logo {
        width: 64px;
    }

    body:not(.admin-body) .footer-support-line {
        line-height: 1.5;
    }
}

@media (max-width: 800px) {
    .two-col { grid-template-columns: 1fr; }
    body:not(.admin-body) .doctor-card-grid {
        grid-template-columns: 1fr;
    }
    body:not(.admin-body) .section.appointment-hero {
        /* Slightly higher focal point on smaller screens to keep faces visible. */
        background-position: 58% 16%;
    }
    body:not(.admin-body) .claims-hero {
        background-position: 12% center;
    }
    .hero-content {
        padding-bottom: calc(56px + clamp(1.5rem, 4vh, 2.75rem));
    }

    body:not(.admin-body) .hg-form-wrap > .section-intro {
        max-width: none;
    }
}

/* ----- Toast notifications (layouts.app + layouts.admin + admin login) ----- */
.hg-toast-root {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 12000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    max-width: min(22rem, calc(100vw - 2rem));
    pointer-events: none;
}

body.admin-body .hg-toast-root {
    z-index: 50000;
}

.hg-toast-root .hg-toast {
    pointer-events: auto;
}

.hg-toast {
    /* Center copy in the card; close is position:absolute and ignored by the grid */
    display: grid;
    place-items: center;
    position: relative;
    min-height: 3.75rem;
    box-sizing: border-box;
    /* Room for upper-right dismiss + left accent stripe */
    padding: 0.85rem 1.65rem 0.85rem 0.95rem;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(12, 18, 36, 0.2);
    background: #fff;
    border: 1px solid rgba(29, 29, 109, 0.1);
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.hg-toast--in {
    opacity: 1;
    transform: translateX(0);
}

.hg-toast--out {
    opacity: 0;
    transform: translateX(12px);
}

.hg-toast__body {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    max-width: 100%;
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 500;
    color: var(--text, #1a1a2e);
    text-align: center;
}

.hg-toast__close {
    box-sizing: border-box;
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    min-width: 1.15rem;
    min-height: 1.15rem;
    aspect-ratio: 1;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
    background: var(--accent, #6ecd00);
    box-shadow: 0 1px 2px rgba(29, 29, 109, 0.12);
}

.hg-toast__close:hover {
    filter: brightness(0.9);
}

.hg-toast__close:focus-visible {
    outline: 2px solid var(--brand, #1d1d6d);
    outline-offset: 2px;
}

/*
 * Site-wide `body:not(.admin-body) button` uses pill radius + padding — that
 * steals the toast dismiss control and makes it oblong. Force a real circle here.
 */
body:not(.admin-body) .hg-toast .hg-toast__close {
    border-radius: 50%;
    padding: 0;
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    min-height: 0;
    transform: none;
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

body:not(.admin-body) .hg-toast .hg-toast__close:hover,
body:not(.admin-body) .hg-toast .hg-toast__close:active {
    transform: none;
    box-shadow: 0 1px 3px rgba(29, 29, 109, 0.16);
}

/* Keep variant hues on hover (beat generic green `button:hover` background). */
body:not(.admin-body) .hg-toast.hg-toast--success .hg-toast__close:hover,
body:not(.admin-body)
    .hg-toast:not(.hg-toast--error):not(.hg-toast--warning):not(.hg-toast--info)
    .hg-toast__close:hover {
    background: var(--accent, #6ecd00);
    filter: brightness(0.92);
}

body:not(.admin-body) .hg-toast.hg-toast--error .hg-toast__close:hover {
    background: #b91c1c;
    filter: brightness(0.94);
}

body:not(.admin-body) .hg-toast.hg-toast--warning .hg-toast__close:hover {
    background: #c2410c;
    filter: brightness(0.94);
}

body:not(.admin-body) .hg-toast.hg-toast--info .hg-toast__close:hover {
    background: var(--brand, #1d1d6d);
    filter: brightness(0.94);
}

.hg-toast--error .hg-toast__close {
    background: #b91c1c;
}

.hg-toast--warning .hg-toast__close {
    background: #c2410c;
}

.hg-toast--info .hg-toast__close {
    background: var(--brand, #1d1d6d);
}

.hg-toast--success {
    border-left: 4px solid var(--accent, #6ecd00);
}

.hg-toast--error {
    border-left: 4px solid #c53030;
}

.hg-toast--warning {
    border-left: 4px solid #d97706;
}

.hg-toast--info {
    border-left: 4px solid var(--brand, #1d1d6d);
}

@media (max-width: 520px) {
    .hg-toast-root {
        left: 1rem;
        right: 1rem;
        align-items: stretch;
        max-width: none;
    }

    .hg-toast-root .hg-toast {
        width: 100%;
    }
}

