@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
    --green: #98e22a;
    --green-deep: #0f7f72;
    --green-soft: #eaffcf;
    --blue: #07179f;
    --yellow: #ffed00;
    --ink: #14201e;
    --muted: #61706d;
    --line: rgba(20, 32, 30, 0.12);
    --bg: #f7faf6;
    --surface: #ffffff;
    --surface-2: #eef7ec;
    --shadow: 0 24px 70px rgba(13, 57, 50, 0.14);
    --radius: 8px;
    --container: min(1160px, calc(100vw - 40px));
}

[data-theme="dark"] {
    --ink: #eef8f3;
    --muted: #afc1bd;
    --line: rgba(238, 248, 243, 0.14);
    --bg: #071312;
    --surface: #0d1d1b;
    --surface-2: #132b27;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
    width: 100%;
}

body.is-loading {
    overflow: hidden;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    color: var(--ink);
    background:
        radial-gradient(circle at 50% 42%, rgba(152, 226, 42, 0.18), transparent 0 190px),
        color-mix(in srgb, var(--surface) 92%, var(--green-soft));
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 108px;
    height: 108px;
}

.site-loader-mark img {
    position: relative;
    z-index: 1;
    width: 70px;
    height: 70px;
    object-fit: contain;
    padding: 8px;
    background: var(--surface);
    border-radius: 50%;
    box-shadow: 0 16px 36px rgba(13, 57, 50, 0.12);
}

.site-loader-ring {
    position: absolute;
    inset: 0;
    border: 4px solid color-mix(in srgb, var(--green-deep) 12%, transparent);
    border-top-color: var(--green-deep);
    border-radius: 50%;
}

.site-loader[data-loader-effect="spin"] .site-loader-ring {
    animation: loaderSpin 1s linear infinite;
}

.site-loader[data-loader-effect="pulse"] .site-loader-mark {
    animation: loaderPulse 1.15s ease-in-out infinite;
}

.site-loader[data-loader-effect="bars"] .site-loader-ring {
    border-radius: 18px;
    animation: loaderBars 0.95s ease-in-out infinite;
}

[data-loader-effect="spin"] .site-loader-ring {
    animation: loaderSpin 1s linear infinite;
}

[data-loader-effect="pulse"] .site-loader-mark {
    animation: loaderPulse 1.15s ease-in-out infinite;
}

[data-loader-effect="bars"] .site-loader-ring {
    border-radius: 18px;
    animation: loaderBars 0.95s ease-in-out infinite;
}

.site-loader p {
    margin: 0;
    color: var(--muted);
    font-weight: 900;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(0.94); opacity: 0.82; }
    50% { transform: scale(1); opacity: 1; }
}

@keyframes loaderBars {
    0%, 100% { transform: scaleY(0.82); }
    50% { transform: scaleY(1.08); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

textarea {
    resize: vertical;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.topbar {
    background: #102638;
    color: #fff;
    font-size: 0.86rem;
}

.topbar-inner,
.topbar-contact,
.social-links,
.header-inner,
.header-actions,
.carousel-actions,
.contact-list,
.footer-bottom,
.admin-header-inner,
.admin-header-actions {
    display: flex;
    align-items: center;
}

.topbar-inner {
    min-height: 44px;
    justify-content: space-between;
    gap: 18px;
}

.topbar-title {
    min-width: 0;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}

.topbar-contact {
    gap: 18px;
    flex-wrap: wrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
}

.topbar-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    gap: 8px;
    padding: 0 13px;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
}

.topbar-chip .icon {
    width: 15px;
    height: 15px;
}

.topbar-social {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.topbar-socials {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}


@media (min-width: 901px) {
    .topbar-socials + .topbar-title {
        margin-left: 24px;
    }
}

.topbar-social:hover {
    transform: translateY(-2px);
    color: var(--green);
    border-color: rgba(152, 226, 42, 0.5);
    background: rgba(152, 226, 42, 0.12);
}

.topbar-social .icon {
    width: 16px;
    height: 16px;
}

.topbar-chip.is-whatsapp {
    background: #13b99a;
    border-color: #13b99a;
}

.topbar-chip.is-call {
    background: #a9163d;
    border-color: #a9163d;
}

.topbar-chip.is-email {
    color: #fff;
    background: var(--green-deep);
    border-color: var(--green-deep);
}

.topbar-chip.is-email:hover {
    background: color-mix(in srgb, var(--green-deep) 86%, #000);
    border-color: color-mix(in srgb, var(--green-deep) 86%, #000);
}

.topbar-chip.is-emergency {
    background: #d82137;
    border-color: #d82137;
}

.topbar-contact a,
.topbar-contact span,
.contact-list a,
.site-footer a,
.site-footer span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-links {
    gap: 8px;
}

.social-links a {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--surface) 98%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: calc(var(--header-logo-height, 64px) + 24px);
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.brand img {
    width: min(var(--header-logo-width, 210px), 42vw);
    max-height: var(--header-logo-height, 64px);
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.7vw, 24px);
    flex: 1;
    min-width: 0;
    font-family: var(--nav-font-family, "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: var(--nav-font-size, 16px);
    font-weight: 900;
    color: var(--ink);
}

.main-nav a,
.nav-dropdown-trigger {
    color: inherit;
    transition: color 0.18s ease, background 0.18s ease;
}

.main-nav a:hover {
    color: var(--green-deep);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 19;
    width: min(620px, calc(100vw - 32px));
    height: 28px;
    transform: translateX(-50%);
    pointer-events: auto;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-dropdown-trigger::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: 0.72;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    gap: 8px 12px;
    width: min(560px, calc(100vw - 40px));
    min-width: 320px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 46px rgba(10, 31, 48, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-hover-open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.main-nav > .nav-dropdown:last-child .nav-dropdown-menu {
    right: 0;
    left: auto;
    transform: translateY(8px);
}

.main-nav > .nav-dropdown:last-child:hover .nav-dropdown-menu,
.main-nav > .nav-dropdown:last-child:focus-within .nav-dropdown-menu,
.main-nav > .nav-dropdown:last-child.is-hover-open .nav-dropdown-menu {
    transform: translateY(0);
}

.nav-dropdown-menu a {
    padding: 10px;
    color: var(--ink);
    border-radius: 6px;
    white-space: normal;
}

.nav-dropdown-menu a:hover {
    color: var(--green-deep);
    background: var(--surface-2);
}

.nav-dropdown-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
}

.nav-dropdown-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--green-deep);
    background: color-mix(in srgb, var(--green-soft) 76%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--green-deep) 12%, var(--line));
    border-radius: 8px;
}

.nav-dropdown-icon .icon {
    width: 19px;
    height: 19px;
}

.nav-dropdown-copy {
    display: grid;
    gap: 3px;
}

.nav-dropdown-copy strong {
    font-size: var(--nav-dropdown-title-size, 15px);
    line-height: 1.18;
}

.nav-dropdown-copy small {
    color: var(--muted);
    font-size: var(--nav-dropdown-desc-size, 13px);
    font-weight: 700;
    line-height: 1.25;
}

.nav-dropdown-all {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 13px !important;
    color: var(--green-deep) !important;
    border-top: 1px solid var(--line);
    font-weight: 900;
}

.nav-dropdown-all .icon {
    width: 16px;
    height: 16px;
}

.header-actions {
    gap: 10px;
}

.appointment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    gap: 8px;
    padding: 0 14px;
    color: #fff;
    background: var(--green-deep);
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(15, 127, 114, 0.18);
}

.appointment-button:hover {
    background: color-mix(in srgb, var(--green-deep) 88%, #000);
}

.appointment-button .icon {
    width: 17px;
    height: 17px;
}

.language-toggle {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--green-deep);
    background: color-mix(in srgb, var(--green-soft) 48%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--green-deep) 20%, var(--line));
    border-radius: 999px;
    font-weight: 950;
    font-size: 0.78rem;
    cursor: pointer;
}

.language-toggle:hover {
    border-color: color-mix(in srgb, var(--green-deep) 55%, var(--line));
}

.icon-button,
.modal-close {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-button:hover,
.modal-close:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--green-deep) 45%, var(--line));
}

.theme-moon,
[data-theme="dark"] .theme-sun {
    display: none;
}

[data-theme="dark"] .theme-moon {
    display: inline-flex;
}

.menu-button {
    display: none;
}

.admin-link,
.primary-button,
.danger-button,
.text-button,
.danger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.admin-link,
.primary-button {
    border: 0;
    color: #06201d;
    background: linear-gradient(135deg, var(--green), var(--yellow));
    box-shadow: 0 14px 30px rgba(111, 187, 33, 0.24);
    padding: 0 18px;
}

.danger-button {
    width: 100%;
    padding: 0 16px;
    color: #fff;
    background: #b42318;
    border: 0;
}

.text-button,
.danger-link {
    color: var(--green-deep);
    background: transparent;
    border: 0;
    padding: 0;
}

.danger-link {
    color: #cf3b2d;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(520px, 72vh, 760px);
    background: #081716;
}

.hero-track {
    display: flex;
    height: 100%;
    min-height: inherit;
    transition: transform 0.65s ease;
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(4, 20, 18, 0.88), rgba(4, 20, 18, 0.55) 48%, rgba(4, 20, 18, 0.22)),
        linear-gradient(0deg, rgba(4, 20, 18, 0.58), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-block: 80px;
}

.section-kicker {
    margin: 0 0 10px;
    color: var(--green);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
    line-height: 0.98;
}

.hero p:not(.section-kicker) {
    max-width: 620px;
    margin: 22px 0 30px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    transform: translateY(-50%);
    cursor: pointer;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 2;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 30px;
    height: 8px;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 54px;
    background: var(--green);
}

.quick-service-strip {
    position: relative;
    z-index: 5;
    margin-top: -62px;
    padding-bottom: 26px;
}

.quick-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.quick-service-card {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr 22px;
    grid-template-areas:
        "icon title arrow"
        "icon text arrow";
    gap: 4px 16px;
    min-height: 112px;
    padding: 26px;
    color: #071d2a;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(10, 31, 48, 0.12);
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.quick-service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0));
    opacity: 0.85;
}

.quick-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 56px rgba(10, 31, 48, 0.18);
    filter: saturate(1.04);
}

.quick-service-card.is-outpatient {
    background: #fb6580;
}

.quick-service-card.is-inpatient {
    background: #ffc326;
}

.quick-service-card.is-booking {
    background: #38cf98;
}

.quick-service-icon {
    grid-area: icon;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 8px;
}

.quick-service-card strong {
    grid-area: title;
    align-self: end;
    font-size: 1.05rem;
    font-weight: 950;
}

.quick-service-card span:not(.quick-service-icon) {
    grid-area: text;
    color: rgba(7, 29, 42, 0.78);
    font-weight: 700;
    line-height: 1.35;
}

.quick-service-card i {
    grid-area: arrow;
    align-self: center;
    justify-self: end;
    display: inline-flex;
    opacity: 0.7;
}

.outpatient-section {
    padding-top: 42px;
}

.outpatient-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
    gap: 28px;
    align-items: start;
}

.outpatient-copy {
    position: sticky;
    top: 142px;
    display: grid;
    gap: 14px;
}

.outpatient-copy h2,
.outpatient-copy p {
    margin: 0;
}

.outpatient-copy p:not(.section-kicker) {
    color: var(--muted);
}

.outpatient-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 52px rgba(13, 57, 50, 0.10);
}

.outpatient-page-layout {
    align-items: start;
}

.outpatient-page .outpatient-copy {
    padding: 24px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(10, 31, 48, 0.08);
}

.elegant-form {
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, transparent), var(--surface)),
        var(--surface);
    box-shadow: 0 24px 70px rgba(10, 31, 48, 0.12);
}

.outpatient-step-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--ink);
    background: color-mix(in srgb, var(--green-soft) 58%, var(--surface));
    border: 1px solid var(--line);
    border-radius: 8px;
}

.outpatient-step-card span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: var(--green-deep);
    border-radius: 999px;
    font-weight: 950;
}

.quota-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border: 1px dashed color-mix(in srgb, var(--green-deep) 36%, var(--line));
    border-radius: 8px;
}

.outpatient-patient-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    animation: softFadeUp 0.28s ease both;
}

.insurance-extra-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.insurance-extra-fields[hidden] {
    display: none;
}

.patient-type-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.patient-type-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 9px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.payment-info-box {
    display: grid;
    gap: 4px;
    padding: 12px;
    color: var(--ink);
    background: color-mix(in srgb, var(--green-soft) 48%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--green-deep) 24%, var(--line));
    border-radius: 8px;
}

.payment-info-box span {
    color: var(--muted);
    font-size: 0.9rem;
}

.outpatient-patient-fields[hidden],
.outpatient-step-card[hidden] {
    display: none;
}

@keyframes softFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quota-info {
    display: inline-flex;
    margin-top: 4px;
    color: var(--green-deep);
    font-size: 0.9rem;
    font-weight: 900;
}

.queue-ticket {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    color: #063f36;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

.ticket-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.queue-ticket strong {
    font-size: 2rem;
    line-height: 1;
}

.ticket-label,
.whatsapp-status {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.wa-sticky {
    position: fixed;
    right: clamp(14px, 3vw, 28px);
    bottom: clamp(20px, 3vw, 34px);
    z-index: 1200;
    display: grid;
    justify-items: end;
    gap: 10px;
    max-height: calc(100dvh - 42px);
    pointer-events: none;
}

.wa-sticky button,
.wa-sticky a {
    pointer-events: auto;
}

.wa-float-button {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #fff;
    background: #22c55e;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 16px 36px rgba(15, 127, 114, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 127, 114, 0.36);
}

.wa-float-button svg {
    width: 29px;
    height: 29px;
    stroke-width: 2.6;
}

.wa-float-button svg path {
    stroke: currentColor;
}

.wa-chat-teaser {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-right: 48px;
    padding: 8px 14px;
    color: #fff;
    background: #08aeea;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 12px 28px rgba(8, 174, 234, 0.22);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.wa-chat-teaser span {
    width: 10px;
    height: 10px;
    background: #fff;
    border: 3px solid #8bed22;
    border-radius: 50%;
}

.wa-chat-panel {
    width: min(380px, calc(100vw - 28px));
    max-height: min(620px, calc(100dvh - 150px));
    margin-bottom: 8px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(7, 19, 18, 0.24);
    animation: softFadeUp 0.18s ease;
    pointer-events: auto;
}

.wa-chat-panel[hidden] {
    display: none;
}

.wa-chat-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px 12px;
    color: #fff;
    background: #0f7f72;
}

.wa-chat-avatar {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #22c55e;
    border: 3px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.wa-chat-avatar svg {
    display: block;
    width: 26px;
    height: 26px;
    color: #fff;
    transform: translate(0.5px, 0.5px);
}

.wa-chat-avatar svg path {
    stroke: currentColor;
}

.wa-chat-header strong,
.wa-chat-header span {
    display: block;
}

.wa-chat-header strong {
    font-size: 0.95rem;
}

.wa-chat-header span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
}

.wa-chat-header i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    background: #8bed22;
    border-radius: 50%;
}

.wa-chat-header button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #fff;
    background: rgba(7, 19, 18, 0.24);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.wa-chat-body {
    display: grid;
    gap: 10px;
    padding: 14px;
    max-height: calc(100dvh - 330px);
    overflow-y: auto;
    background: color-mix(in srgb, var(--green-soft) 36%, var(--surface));
}

.wa-bubble {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.wa-bubble.is-answer {
    justify-self: end;
    color: #063f36;
    background: #d9f99d;
    border-color: rgba(15, 127, 114, 0.24);
}

.wa-answer-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wa-answer-list button {
    padding: 8px 10px;
    color: var(--green-deep);
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--green-deep) 22%, var(--line));
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 850;
    cursor: pointer;
}

.wa-chat-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: #fff;
    background: #22c55e;
    font-weight: 900;
    text-decoration: none;
}

.wa-chat-link svg {
    width: 20px;
    height: 20px;
}

.wa-chat-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.wa-chat-tabs button {
    min-height: 40px;
    color: var(--muted);
    background: transparent;
    border: 0;
    font-weight: 900;
    cursor: pointer;
}

.wa-chat-tabs button.is-active {
    color: #063f36;
    background: #d9f99d;
}

.agent-chat-start,
.agent-chat-room,
.agent-chat-survey {
    display: grid;
    gap: 10px;
}

.agent-chat-start label,
.agent-chat-survey label {
    display: grid;
    gap: 5px;
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.agent-chat-start input,
.agent-chat-start textarea,
.agent-chat-compose input,
.agent-chat-survey textarea {
    width: 100%;
    min-height: 38px;
    background: var(--surface);
    border-radius: 6px;
}

.agent-chat-start textarea,
.agent-chat-survey textarea {
    resize: vertical;
}

.agent-chat-messages,
.agent-admin-messages {
    display: grid;
    align-content: start;
    gap: 8px;
    overflow-y: auto;
}

.agent-chat-messages {
    max-height: min(240px, 28dvh);
}

.agent-message {
    display: grid;
    justify-items: start;
    gap: 3px;
}

.agent-message.is-mine {
    justify-items: end;
}

.agent-message strong {
    color: var(--muted);
    font-size: 0.72rem;
}

.agent-message p {
    max-width: min(82%, 360px);
    margin: 0;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.wa-sticky .agent-message:not(.is-mine):not(.is-system) p {
    color: #ffffff;
    background: #0f7f72;
    border-color: rgba(15, 127, 114, 0.42);
}

.wa-sticky .agent-message:not(.is-mine):not(.is-system) strong {
    color: #0f7f72;
}

.agent-message.is-mine p {
    color: #063f36;
    background: #d9f99d;
    border-color: rgba(15, 127, 114, 0.2);
}

.agent-message.is-system {
    justify-items: center;
}

.agent-message.is-system p {
    max-width: 100%;
    color: var(--muted);
    background: transparent;
    border-style: dashed;
    font-size: 0.82rem;
}

.agent-chat-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 8px;
}

.agent-chat-compose button {
    display: grid;
    place-items: center;
    color: #fff;
    background: #0f7f72;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.agent-chat-survey {
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.agent-rating {
    display: flex;
    gap: 6px;
}

.agent-rating label {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.agent-rating input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    opacity: 0;
}

.agent-rating span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--green-deep);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 0.86rem;
    font-weight: 900;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
    pointer-events: none;
}

.agent-rating label:hover span,
.agent-rating input:focus-visible + span {
    border-color: var(--green-deep);
    transform: translateY(-1px);
}

.agent-rating input:checked + span,
.agent-rating label.is-selected span {
    color: #06201d;
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 8px 16px rgba(152, 226, 42, 0.24);
}

.chat-error {
    margin: 0;
    color: #9f1239;
    font-size: 0.82rem;
    font-weight: 850;
}

.wa-contact-number {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-align: center;
}

.agent-dashboard {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 16px;
}

.agent-session-list {
    display: grid;
    align-content: start;
    gap: 8px;
    max-height: 680px;
    overflow-y: auto;
}

.agent-session-card {
    display: grid;
    gap: 3px;
    padding: 12px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.agent-session-card.is-active {
    border-color: var(--green-deep);
    box-shadow: inset 3px 0 0 var(--green-deep);
}

.agent-session-card span,
.agent-session-card small,
.agent-session-card em {
    color: var(--muted);
    font-size: 0.82rem;
    font-style: normal;
}

.agent-session-card em {
    color: var(--green-deep);
    font-weight: 900;
}

.agent-chat-workspace {
    display: grid;
    gap: 14px;
    min-height: 560px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.agent-chat-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.agent-chat-info h2,
.agent-chat-info p {
    margin: 0;
}

.agent-chat-info p {
    color: var(--muted);
}

.agent-admin-messages {
    min-height: 280px;
    max-height: 420px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.agent-admin-compose {
    display: grid;
    gap: 10px;
}

.agent-admin-compose textarea {
    resize: vertical;
}

.agent-admin-compose .agent-emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.agent-admin-compose .agent-emoji-picker button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.agent-admin-compose .agent-emoji-picker button:hover,
.agent-admin-compose .agent-emoji-picker button:focus-visible {
    background: var(--green-soft);
    border-color: var(--green-deep);
    transform: translateY(-1px);
}

.agent-template-box {
    display: grid;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.agent-template-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.agent-template-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 36px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    text-align: left;
}

.agent-template-toggle::after {
    content: "+";
    display: inline-grid;
    flex: 0 0 26px;
    place-items: center;
    width: 26px;
    height: 26px;
    color: var(--green-deep);
    background: var(--green-soft);
    border-radius: 999px;
    font-size: 1rem;
    line-height: 1;
}

.agent-template-toggle.is-open::after {
    content: "-";
}

.agent-template-toggle em {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.agent-template-panel {
    display: grid;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.agent-template-panel[hidden] {
    display: none;
}

.agent-template-heading .soft-button,
.agent-template-item .soft-button,
.agent-template-form .soft-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
}

.agent-template-tools {
    display: flex;
    justify-content: flex-end;
}

.agent-template-editor {
    display: grid;
    gap: 8px;
    padding: 10px;
    background: var(--bg);
    border: 1px dashed var(--line);
    border-radius: 8px;
}

.agent-template-editor-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 32px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 900;
    text-align: left;
}

.agent-template-editor-toggle::after {
    content: "+";
    display: inline-grid;
    flex: 0 0 22px;
    place-items: center;
    width: 22px;
    height: 22px;
    color: var(--green-deep);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    line-height: 1;
}

.agent-template-editor-toggle.is-open::after {
    content: "-";
}

.agent-template-editor-toggle em {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 800;
}

.agent-template-list {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
}

.agent-template-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.agent-template-item strong,
.agent-template-item p {
    margin: 0;
}

.agent-template-item p {
    display: -webkit-box;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.agent-template-item > div:last-child,
.agent-template-form > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.agent-template-item .danger-button {
    width: auto;
    color: #fff;
}

.agent-template-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.agent-template-form {
    display: grid;
    gap: 8px;
}

.agent-template-form[hidden] {
    display: none;
}

.agent-template-form input,
.agent-template-form textarea {
    width: 100%;
}

.agent-template-form textarea {
    resize: vertical;
}

.agent-template-form small {
    min-height: 1.1em;
    color: var(--muted);
    font-weight: 800;
}

.agent-template-form small[data-status="success"] {
    color: var(--green-deep);
}

.agent-template-form small[data-status="error"] {
    color: #b42318;
}

.agent-admin-compose > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.agent-closed-note {
    display: grid;
    gap: 6px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.agent-closed-note p {
    margin: 0;
}

.chat-performance-stats {
    margin-bottom: 16px;
}

.chat-report-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.chat-report-card {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.chat-report-card h3,
.chat-report-card p {
    margin: 0;
}

.chat-report-card p {
    color: var(--muted);
}

.rating-report-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
}

.rating-report-row strong,
.rating-report-row em,
.agent-report-row span,
.agent-report-row em {
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 850;
}

.rating-report-row span {
    overflow: hidden;
    height: 9px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.rating-report-row i {
    display: block;
    height: 100%;
    min-width: 3px;
    background: linear-gradient(90deg, var(--green-deep), var(--green));
    border-radius: inherit;
}

.agent-report-row {
    display: grid;
    gap: 3px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.agent-report-row strong {
    color: var(--ink);
}

@media (max-width: 520px) {
    .testimonial-public-layout,
    .post-comment-form,
    .testimonial-submit-form {
        grid-template-columns: 1fr;
    }

    .wa-sticky {
        right: 12px;
        bottom: 14px;
    }

    .wa-float-button {
        width: 58px;
        height: 58px;
    }

    .wa-chat-teaser {
        max-width: calc(100vw - 92px);
        margin-right: 44px;
        font-size: 0.76rem;
        white-space: normal;
    }

    .wa-chat-panel {
        width: calc(100vw - 24px);
    }
}

.ticket-booking-code {
    display: block;
    margin: 2px 0 8px;
    color: var(--green-deep);
    font-size: 1rem;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.ticket-qr,
.public-ticket-qr {
    display: grid;
    place-items: center;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.ticket-qr canvas,
.public-ticket-qr canvas,
.ticket-qr img,
.public-ticket-qr img {
    width: 132px !important;
    height: 132px !important;
    object-fit: contain;
}

.ticket-wa-button {
    width: fit-content;
}

.ticket-actions,
.ticket-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ticket-actions {
    grid-column: 1 / -1;
}

.ticket-page-actions {
    grid-column: 1 / -1;
}

.public-ticket-card {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 18px;
    width: min(760px, 100%);
    margin-inline: auto;
    padding: clamp(22px, 4vw, 34px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.public-ticket-main {
    display: grid;
    gap: 8px;
}

.public-ticket-main h1,
.public-ticket-main p {
    margin: 0;
}

.public-ticket-main strong {
    color: var(--green-deep);
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.95;
}

.ticket-detail-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.ticket-detail-list div {
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.ticket-detail-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.ticket-detail-list dd {
    margin: 4px 0 0;
    color: var(--ink);
    font-weight: 900;
}

.ticket-note {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
}

.queue-filter-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 22px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(10, 31, 48, 0.08);
}

.queue-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.queue-doctor-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface)),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(10, 31, 48, 0.10);
}

.queue-card-top,
.queue-card-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.queue-card-top span,
.queue-card-top strong {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 950;
}

.queue-card-top span {
    color: #063f36;
    background: var(--green-soft);
}

.queue-card-top strong {
    color: var(--green-deep);
    background: var(--bg);
}

.queue-doctor-card h2,
.queue-doctor-card p {
    margin: 0;
}

.queue-doctor-card p {
    color: var(--muted);
}

.queue-meter {
    overflow: hidden;
    height: 9px;
    background: var(--bg);
    border-radius: 999px;
}

.queue-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--green-deep), var(--green));
    border-radius: inherit;
}

.queue-card-stats span {
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.queue-card-stats strong {
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1;
}

.section {
    padding-block: clamp(62px, 8vw, 104px);
}

.compact-section {
    padding-block: clamp(34px, 4vw, 56px);
}

.section-band-surface {
    background: var(--surface);
}

.section-band-muted {
    background: linear-gradient(180deg, var(--surface-2), var(--bg));
}

.welcome-section {
    background: var(--surface);
    border-top: 4px solid var(--green-deep);
}

.welcome-grid,
.director-grid,
.location-grid,
.service-layout,
.footer-grid {
    display: grid;
    gap: 32px;
}

.welcome-grid {
    display: block;
    max-width: 1180px;
    text-align: left;
}

.welcome-grid h2 {
    margin: 0 0 20px;
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.08;
    text-transform: uppercase;
}

.welcome-grid p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    line-height: 1.75;
}

.welcome-grid .welcome-lead {
    font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}

.welcome-read-more {
    color: #ef1f1f;
    font-weight: 800;
    text-decoration: none;
}

.welcome-read-more:hover {
    text-decoration: underline;
}

.welcome-copy p:last-child,
.welcome-grid p:last-of-type {
    margin-bottom: 0;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

.welcome-grid h2,
.director-copy h2,
.location-grid h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.7vw, 2.45rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.welcome-grid p:last-child,
.director-copy p,
.location-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.director-section {
    background:
        linear-gradient(180deg, var(--surface-2), var(--bg));
}

.welcome-detail-hero {
    text-align: center;
    background:
        linear-gradient(180deg, var(--surface), var(--surface-2));
    border-top: 4px solid var(--green-deep);
}

.welcome-detail-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.welcome-detail-hero p:not(.section-kicker) {
    max-width: 760px;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.22rem);
}

.welcome-detail-card {
    max-width: 980px;
    padding: clamp(22px, 4vw, 46px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(13, 57, 50, 0.08);
}

.director-grid {
    grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
    align-items: center;
}

.director-photo {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.director-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.director-copy {
    padding: clamp(10px, 3vw, 34px);
}

.director-copy h3 {
    margin: 8px 0 22px;
    color: var(--green-deep);
    font-size: 1.05rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.carousel-actions {
    gap: 8px;
}

.scroll-carousel {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.doctor-card,
.news-card,
.partner-card {
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(13, 57, 50, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.doctor-card:hover,
.news-card:hover,
.featured-card:hover,
.collection-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--green-deep) 34%, var(--line));
    box-shadow: 0 20px 46px rgba(13, 57, 50, 0.13);
}

.doctor-card {
    flex: 0 0 280px;
    display: grid;
    gap: 10px;
    padding: 12px;
    color: var(--ink);
    text-align: left;
    border-color: var(--line);
    cursor: pointer;
}

.doctor-card img {
    width: 100%;
    aspect-ratio: 4 / 4.4;
    border-radius: 8px;
    object-fit: cover;
    background: var(--surface-2);
}

.doctor-card strong {
    font-size: 1.12rem;
    line-height: 1.25;
}

.doctor-poli {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: #053530;
    background: var(--green-soft);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
}

.schedule-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-deep);
    font-weight: 800;
}

.services-section {
    background: var(--surface);
}

.room-section {
    background: #f3f8f7;
}

.room-heading {
    max-width: 760px;
    text-align: center;
}

.room-heading h2,
.room-heading p {
    margin: 0;
}

.room-heading .section-kicker {
    justify-content: center;
    margin-inline: auto;
}

.room-heading p:not(.section-kicker) {
    color: var(--muted);
}

.room-capacity-summary {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
}

.room-capacity-summary span {
    padding: 7px 12px;
    color: var(--green-deep);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 900;
}

.room-list {
    display: grid;
    gap: 42px;
    margin-top: 38px;
}

.room-card {
    display: grid;
    grid-template-columns: minmax(320px, 0.98fr) minmax(320px, 1.02fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(10, 31, 48, 0.10);
    opacity: 0;
    transform: translateY(18px);
    animation: softFadeUp 0.55s ease both;
}

.room-card:nth-child(2) {
    animation-delay: 0.08s;
}

.room-card:nth-child(3) {
    animation-delay: 0.16s;
}

.room-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 58px rgba(10, 31, 48, 0.14);
}

.inpatient-bed-section {
    background: var(--surface);
}

.room-availability-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.room-availability-heading h2,
.room-availability-heading p {
    margin: 0;
}

.room-availability-heading p:not(.section-kicker) {
    color: var(--muted);
}

.room-availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.room-availability-card {
    position: relative;
    display: grid;
    gap: 14px;
    overflow: hidden;
    padding: 18px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--surface) 88%, transparent), var(--surface)),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(10, 31, 48, 0.08);
}

.room-availability-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--green-deep);
}

.room-availability-card.is-full::before {
    background: #b42318;
}

.room-card-number {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #063f36;
    background: var(--green-soft);
    border-radius: 999px;
    font-weight: 950;
}

.room-availability-card strong,
.room-availability-card span {
    display: block;
}

.room-availability-card > div > span {
    color: var(--muted);
    font-size: 0.9rem;
}

.room-availability-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.room-availability-card dl div {
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.room-availability-card dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
}

.room-availability-card dd {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 1.4rem;
    font-weight: 950;
    line-height: 1;
}

.room-card.is-reverse {
    grid-template-columns: minmax(320px, 1.02fr) minmax(320px, 0.98fr);
}

.room-card.is-reverse .room-media {
    order: 2;
}

.room-media {
    position: relative;
    min-height: 330px;
    padding: 0;
    overflow: hidden;
    background: var(--surface-2);
    border: 0;
    cursor: pointer;
}

.room-media img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
}

.room-badge,
.room-bed-count {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 950;
    font-size: 0.78rem;
}

.room-badge {
    top: 14px;
    left: 14px;
    color: #fff;
    background: var(--green-deep);
}

.room-bed-count {
    right: 14px;
    bottom: 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
}

.room-body {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: clamp(24px, 4vw, 42px);
}

.room-body h3,
.room-body p {
    margin: 0;
}

.room-body p {
    color: var(--muted);
}

.facility-list {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.facility-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--ink);
}

.facility-list .icon,
.room-gallery-link .icon {
    color: var(--green-deep);
}

.room-gallery-link {
    justify-self: start;
    gap: 8px;
}

.doctor-register-button {
    width: fit-content;
    margin-top: 6px;
    padding-inline: 14px;
}

.modal-register-link {
    width: fit-content;
    margin-top: 14px;
}

.room-gallery-dialog {
    position: relative;
    width: min(920px, calc(100vw - 34px));
    max-width: none;
    padding: 18px;
}

.room-gallery-dialog h2 {
    margin: 0 52px 14px 0;
}

.room-gallery-dialog img {
    width: 100%;
    max-height: min(70vh, 640px);
    object-fit: contain;
    background: #081716;
    border-radius: 8px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transform: translateY(-50%);
}

.gallery-prev {
    left: 28px;
}

.gallery-next {
    right: 28px;
}

.service-layout {
    grid-template-columns: minmax(220px, 0.38fr) minmax(320px, 1fr);
    align-items: start;
}

.tab-list {
    display: grid;
    gap: 10px;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 10px 14px;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    font-weight: 800;
}

.tab-button.is-active {
    color: #06201d;
    background: linear-gradient(135deg, var(--green), var(--yellow));
    border-color: transparent;
}

.service-panel {
    display: none;
    grid-template-columns: minmax(240px, 0.78fr) minmax(260px, 1fr);
    gap: 26px;
    align-items: center;
    min-height: 420px;
    padding: 22px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.service-panel.is-active {
    display: grid;
}

.service-panel img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--surface-2);
    border-radius: 6px;
}

.service-panel h3 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.08;
}

.service-panel p {
    margin: 0;
    color: var(--muted);
}

.news-card {
    flex: 0 0 310px;
    overflow: hidden;
}

.news-card-link {
    display: block;
    color: inherit;
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 7.2;
    object-fit: contain;
    background: var(--surface-2);
}

.news-body {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.news-body time,
.news-modal-dialog time {
    color: var(--green-deep);
    font-weight: 900;
    font-size: 0.84rem;
}

.news-body h3 {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.28;
}

.news-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.location-section {
    background: var(--surface-2);
}

.location-grid {
    grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
    align-items: center;
}

.location-grid iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-list {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    color: var(--green-deep);
    font-weight: 800;
}

.testimonials-section {
    background: var(--surface);
}

.testimonial-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.testimonial-card {
    flex: 0 0 360px;
    scroll-snap-align: start;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: grid;
    gap: 16px;
    box-shadow: 0 16px 44px rgba(13, 57, 50, 0.08);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
    border: 2px solid var(--green-soft);
}

.testimonial-avatar-initial {
    display: grid;
    place-items: center;
    color: #063f36;
    background: linear-gradient(135deg, var(--green), var(--yellow));
    font-weight: 950;
}

.testimonial-info {
    display: grid;
    gap: 6px;
}

.testimonial-info strong {
    font-size: 1.1rem;
    color: var(--ink);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
}

.testimonial-rating .star {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1;
}

.testimonial-rating .star.filled {
    color: var(--yellow);
}

.testimonial-rating .star svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.testimonial-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.testimonial-date {
    color: var(--green-deep);
    font-size: 0.82rem;
    font-weight: 700;
}

.partner-card {
    flex: 0 0 220px;
    display: grid;
    min-height: 160px;
    place-items: center;
    gap: 10px;
    padding: 22px;
    text-align: center;
    font-weight: 900;
}

.partner-card img {
    width: 130px;
    height: 70px;
    object-fit: contain;
}

.site-footer {
    padding-block: 54px 24px;
    color: #dcece8;
    background: #24272e;
}

.footer-grid {
    grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.9fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
    align-items: start;
}

.footer-logo {
    width: min(250px, 70vw);
    margin-bottom: 18px;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 1.18rem;
    color: #fff;
    text-transform: uppercase;
}

.site-footer p {
    margin: 0;
    color: #b9cbc7;
}

.site-footer a,
.site-footer span {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #dcece8;
    font-weight: 850;
}

.footer-accreditation {
    display: grid;
    gap: 16px;
}

.footer-accreditation img {
    width: min(420px, 100%);
    max-height: 180px;
    object-fit: contain;
    object-position: left center;
}

.footer-bottom {
    justify-content: space-between;
    gap: 18px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9fb5b0;
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #eef8f3;
    font-weight: 800;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.footer-social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(152, 226, 42, 0.5);
    background: rgba(152, 226, 42, 0.12);
}

.footer-social-link .icon {
    width: 18px;
    height: 18px;
    color: var(--green);
}

.social-manager {
    display: grid;
    gap: 14px;
}

.social-manager-list {
    display: grid;
    gap: 12px;
}

.social-manager-row {
    display: grid;
    grid-template-columns: minmax(140px, .8fr) minmax(140px, .8fr) minmax(240px, 1.6fr) minmax(110px, .6fr) auto;
    align-items: end;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
}

.social-manager-row label {
    margin: 0;
}

.social-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 2px;
}

.social-row-actions .soft-button,
.social-row-actions .danger-link {
    min-height: 42px;
    padding-inline: 12px;
}

@media (max-width: 980px) {
    .social-manager-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .social-url-field,
    .social-row-actions {
        grid-column: 1 / -1;
    }
}

.footer-social-link,
.footer-social-link span,
.footer-bottom > span,
.footer-bottom > a {
    margin-bottom: 0;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 22px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 9, 8, 0.72);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(240px, 440px);
    gap: 24px;
    width: min(760px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    padding: 18px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.modal-dialog > img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 6px;
    background: var(--surface-2);
}

.modal-dialog h2 {
    margin: 12px 0 10px;
    line-height: 1.1;
}

.modal-dialog p {
    color: var(--muted);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.promo-popup-dialog {
    grid-template-columns: minmax(260px, 1.05fr) minmax(240px, 0.95fr);
    align-items: center;
    width: min(880px, 100%);
    padding: 16px;
    overflow: hidden;
}

.promo-popup-media {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface-2);
}

.promo-popup-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.36s ease;
    will-change: transform;
}

.promo-popup-media:hover img,
.promo-popup-media:focus-visible img {
    transform: scale(1.07);
}

.promo-popup-copy {
    padding: 12px 8px 12px 0;
}

.promo-popup-copy .primary-button {
    margin-top: 8px;
}

.news-card,
.featured-card,
.doctor-card,
.service-panel,
.partner-card,
.related-post-card,
.director-photo,
.post-cover,
.related-post-thumb {
    overflow: hidden;
}

.news-card img,
.featured-card img,
.doctor-card img,
.service-panel img,
.partner-card img,
.related-post-card img,
.director-photo img,
img.post-cover {
    transition: transform 0.32s ease;
    will-change: transform;
}

.news-card:hover img,
.featured-card:hover img,
.doctor-card:hover img,
.service-panel:hover img,
.partner-card:hover img,
.related-post-card:hover img,
.director-photo:hover img,
img.post-cover:hover {
    transform: scale(1.05);
}

.modal-schedule {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    color: #06201d;
    background: var(--green-soft);
    border-radius: var(--radius);
    font-weight: 800;
}

.doctor-modal-dialog {
    grid-template-columns: minmax(230px, 0.78fr) minmax(320px, 1.22fr);
    gap: 0;
    width: min(860px, 100%);
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

.doctor-modal-profile {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 10px;
    padding: clamp(24px, 4vw, 42px) 22px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.86), transparent 0 74px),
        color-mix(in srgb, var(--green-soft) 55%, var(--surface));
}

.doctor-modal-photo {
    display: grid;
    width: min(170px, 58vw);
    aspect-ratio: 1;
    place-items: center;
    padding: 7px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(10, 31, 48, 0.15);
}

.doctor-modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    background: var(--surface-2);
}

.doctor-modal-profile h2 {
    margin: 10px 0 0;
    font-size: 1.08rem;
    line-height: 1.25;
}

.doctor-modal-profile > p {
    margin: 0;
    color: var(--green-deep);
    font-weight: 900;
}

.doctor-modal-meta {
    display: grid;
    width: 100%;
    gap: 8px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    text-align: left;
}

.doctor-modal-meta > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.doctor-modal-meta .icon {
    width: 15px;
    height: 15px;
    color: var(--green-deep);
}

.doctor-modal-detail {
    display: grid;
    gap: 18px;
    align-content: start;
    padding: clamp(24px, 4vw, 38px);
    background: var(--surface);
}

.doctor-modal-detail .section-kicker {
    margin-bottom: 12px;
}

.doctor-modal-schedules {
    display: grid;
    gap: 10px;
}

.doctor-schedule-row {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    min-height: 48px;
    padding: 8px 10px 8px 14px;
    color: var(--ink);
    background: color-mix(in srgb, var(--surface-2) 62%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    border-radius: 8px;
}

.doctor-schedule-row strong {
    font-size: 0.9rem;
}

.doctor-schedule-row span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.doctor-schedule-row.is-off {
    opacity: 0.68;
}

.doctor-schedule-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    color: var(--green-deep);
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--green-deep) 34%, var(--line));
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
}

.doctor-schedule-book[aria-disabled="true"] {
    pointer-events: none;
    color: var(--muted);
    border-color: var(--line);
}

.doctor-modal-info {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.doctor-modal-info h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.doctor-modal-info p {
    margin: 0;
    line-height: 1.6;
}

.doctor-modal-actions {
    display: grid;
    gap: 10px;
}

.doctor-modal-actions .primary-button,
.doctor-modal-actions .soft-button {
    width: 100%;
    gap: 8px;
}

.news-modal-dialog {
    grid-template-columns: 1fr;
    width: min(720px, 100%);
}

.news-modal-dialog > img {
    aspect-ratio: 16 / 8;
}

.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--green) 22%, transparent), transparent 30%),
        var(--bg);
}

.dashboard-body {
    background: var(--bg);
}

.dashboard-shell {
    min-height: 100vh;
}

.dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    display: flex;
    width: 260px;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    overflow-y: auto;
    padding: 26px 18px;
    background: var(--surface);
    border-right: 1px solid var(--line);
}

.dashboard-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    margin-bottom: 28px;
}

.dashboard-logo img {
    width: 210px;
}

.dashboard-nav {
    display: grid;
    gap: 8px;
}

.dashboard-nav p {
    margin: 18px 10px 8px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    border-radius: 999px;
    font-weight: 800;
}

.dashboard-nav a:hover,
.dashboard-nav a.is-active {
    color: #06201d;
    background: linear-gradient(135deg, var(--green), var(--yellow));
}

.dashboard-promo {
    display: grid;
    gap: 10px;
    padding: 18px;
    color: #dcece8;
    background: #061917;
    border-radius: var(--radius);
}

.dashboard-promo .icon {
    width: 34px;
    height: 34px;
    padding: 7px;
    color: #06201d;
    background: var(--green);
    border-radius: 999px;
}

.dashboard-promo h2,
.dashboard-promo p {
    margin: 0;
}

.dashboard-promo h2 {
    color: #fff;
    font-size: 1rem;
}

.dashboard-promo p {
    color: #b9cbc7;
    font-size: 0.9rem;
}

.dashboard-content {
    min-height: 100vh;
    padding-left: 260px;
}

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
    padding: 16px 28px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.dashboard-search {
    position: relative;
    width: min(500px, 48vw);
}

.dashboard-search input {
    min-height: 50px;
    padding-right: 52px;
    border-radius: 999px;
    background: var(--bg);
}

.dashboard-search .icon {
    position: absolute;
    top: 50%;
    right: 17px;
    color: var(--green-deep);
    transform: translateY(-50%);
}

.admin-mobile-bar {
    display: none;
}

.admin-main {
    padding: 28px 28px 70px;
}

.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 26px;
}

.dashboard-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.02;
}

.dashboard-hero p:not(.section-kicker) {
    margin: 0;
    color: var(--muted);
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.soft-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 800;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.dashboard-stat-card {
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 44px rgba(13, 57, 50, 0.08);
}

.stat-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #06201d;
    background: linear-gradient(135deg, var(--green), var(--yellow));
    border-radius: 999px;
}

.dashboard-stat-card strong {
    color: var(--ink);
    font-size: 1.8rem;
    line-height: 1;
}

.dashboard-stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-card,
.admin-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.login-card {
    width: min(440px, 100%);
    padding: 28px;
}

.login-card img {
    width: 240px;
    margin-bottom: 18px;
}

.login-card h1 {
    margin: 0 0 8px;
    line-height: 1.1;
}

.login-card p,
.login-note,
.admin-title p,
.admin-panel-heading span {
    color: var(--muted);
}

.login-card form,
.admin-item-card form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--green-deep);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 24%, transparent);
}

input[type="file"] {
    padding: 8px;
}

.form-field {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.field-label {
    display: block;
}

.rich-editor.is-enhanced {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.wysiwyg-shell {
    overflow: hidden;
    width: 100%;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.wysiwyg-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.wysiwyg-toolbar select,
.wysiwyg-toolbar button {
    width: auto;
    min-height: 34px;
    padding: 0 10px;
    color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
}

.wysiwyg-toolbar button:hover,
.wysiwyg-toolbar select:focus {
    border-color: color-mix(in srgb, var(--green-deep) 45%, var(--line));
}

.wysiwyg-editor {
    min-height: 240px;
    padding: 14px;
    color: var(--ink);
    background: var(--bg);
    outline: none;
    font-weight: 500;
}

.wysiwyg-editor:focus {
    box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
}

.wysiwyg-editor p,
.wysiwyg-editor h2,
.wysiwyg-editor h3,
.wysiwyg-editor blockquote,
.wysiwyg-editor ul,
.wysiwyg-editor ol {
    margin-top: 0;
}

.wysiwyg-editor blockquote {
    padding-left: 14px;
    border-left: 4px solid var(--green-deep);
    color: var(--muted);
}

.schedule-builder {
    gap: 10px;
}

.schedule-builder-rows {
    display: grid;
    gap: 10px;
}

.schedule-builder-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.schedule-builder-row label {
    min-width: 0;
}

.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.gallery-admin-thumb {
    position: relative;
    display: grid;
    gap: 7px;
    padding: 8px;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.gallery-admin-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.gallery-admin-thumb input {
    position: absolute;
    top: 10px;
    left: 10px;
    width: auto;
    min-height: 0;
}

.alert {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 800;
}

.alert-success {
    color: #064d2c;
    background: #d8f8df;
}

.alert-error {
    color: #8b1d14;
    background: #ffe0dc;
}

.login-note {
    margin: 14px 0 8px;
    font-size: 0.92rem;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.admin-header-inner {
    min-height: 78px;
    justify-content: space-between;
    gap: 18px;
}

.admin-header-actions {
    gap: 14px;
    flex-wrap: wrap;
}

.admin-title {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: end;
    margin-bottom: 24px;
}

.admin-title h1 {
    margin: 0;
    line-height: 1.1;
}

.admin-panel {
    padding: 22px;
    margin-top: 22px;
}

.admin-panel h2 {
    margin: 0 0 18px;
}

.admin-panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.admin-panel-heading h2 {
    margin: 0;
}

.admin-list-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto;
    gap: 12px;
    align-items: end;
    margin: -4px 0 16px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-list-tools label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.admin-list-tools input,
.admin-list-tools select {
    min-height: 42px;
    background: var(--bg);
}

.admin-list-count {
    justify-self: end;
    padding: 10px 12px;
    color: var(--green-deep);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
}

.admin-list-empty {
    margin-top: 12px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-subheading {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.settings-subheading h3,
.settings-subheading p {
    margin: 0;
}

.settings-subheading p {
    color: var(--muted);
}

.compact-subheading {
    margin-top: 0;
    padding-top: 8px;
}

.settings-cover-preview {
    display: block;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.settings-cover-preview img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.loader-admin-preview {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 210px;
    padding: 22px;
    background:
        radial-gradient(circle at 50% 44%, rgba(152, 226, 42, 0.16), transparent 0 120px),
        var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.loader-admin-preview .site-loader-mark {
    width: 92px;
    height: 92px;
}

.loader-admin-preview .site-loader-mark img {
    width: 60px;
    height: 60px;
}

.loader-admin-preview p {
    margin: 0;
    color: var(--muted);
    font-weight: 900;
}

.settings-header-preview {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.settings-header-preview-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: calc(var(--header-logo-height, 64px) + 14px);
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.settings-header-preview-bar img {
    width: min(var(--header-logo-width, 210px), 42vw);
    max-height: var(--header-logo-height, 64px);
    object-fit: contain;
}

.settings-header-preview-bar nav {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    min-width: 0;
    color: var(--ink);
    font-family: var(--nav-font-family, "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: var(--nav-font-size, 16px);
    font-weight: 900;
}

.settings-dropdown-preview {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    width: min(360px, 100%);
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--nav-font-family, "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.theme-palette {
    display: flex;
    min-height: 42px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.theme-swatch {
    width: 34px;
    height: 34px;
    border: 2px solid var(--surface);
    border-radius: 999px;
    box-shadow: 0 0 0 1px var(--line);
    cursor: pointer;
}

.span-2 {
    grid-column: span 2;
}

.admin-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.admin-item-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-image-preview {
    display: grid;
    min-height: 150px;
    place-items: center;
    overflow: hidden;
    background: var(--surface);
    border-radius: 6px;
}

.admin-image-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.admin-image-preview video,
.admin-row-main video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #061917;
    border-radius: 6px;
}

.admin-row-main video {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
}

.admin-row-list {
    display: grid;
    gap: 10px;
}

.admin-list-entry {
    display: grid;
    gap: 10px;
}

.row-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
}

.admin-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(140px, auto) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-row-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-row-main img,
.row-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 8px;
}

.admin-row-main img {
    object-fit: cover;
    background: var(--surface);
}

.row-icon {
    display: grid;
    place-items: center;
    color: #06201d;
    background: linear-gradient(135deg, var(--green), var(--yellow));
}

.admin-row-main strong,
.admin-row-main span {
    display: block;
    min-width: 0;
}

.admin-row-main strong {
    color: var(--ink);
    line-height: 1.2;
}

.admin-row-main span {
    color: var(--muted);
    font-size: 0.9rem;
}

#admin-doctors .admin-row-list {
    gap: 8px;
}

#admin-doctors .admin-row {
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px;
    padding: 8px 10px;
}

#admin-doctors .admin-row-main {
    gap: 9px;
}

#admin-doctors .admin-row-main img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

#admin-doctors .admin-row-main strong {
    font-size: 0.95rem;
}

#admin-doctors .admin-row-main span,
#admin-doctors .admin-row-meta,
#admin-doctors .admin-row-actions {
    font-size: 0.82rem;
}

.admin-row-meta,
.admin-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.9rem;
}

.outpatient-row-actions {
    min-width: 220px;
}

.outpatient-row-actions .soft-button {
    min-height: 38px;
    padding-inline: 12px;
}

.transaction-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    margin: 0 0 18px;
    border-radius: 999px;
    background: #eef1f4;
    color: var(--muted);
    font-weight: 800;
}

.transaction-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.transaction-feature-grid article {
    display: grid;
    gap: 6px;
    min-height: 86px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 92%, #eef7f4);
}

.transaction-feature-grid strong {
    font-weight: 900;
}

.transaction-feature-grid span {
    color: var(--muted);
    font-weight: 700;
}

.transaction-order-button {
    padding: 0;
    text-align: left;
    font-weight: 900;
}

.transaction-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e8f8ea;
    color: #42504a;
    font-weight: 900;
}

.transaction-status::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 999px;
    background: #12b35b;
}

.transaction-status.is-refund::before,
.transaction-status.is-failed::before,
.transaction-status.is-expired::before {
    background: #e99516;
}

.transaction-detail-dialog {
    max-width: min(760px, 92vw);
}

.transaction-detail-amount {
    display: block;
    margin: 8px 0 24px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
}

.transaction-detail-status > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: 8px;
    background: #dfe8f1;
}

.transaction-action-form {
    display: grid;
    gap: 12px;
}

.transaction-detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.transaction-detail-list dl {
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
    gap: 16px 28px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.transaction-detail-list dt {
    font-weight: 900;
}

.integration-test-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.integration-test-actions form {
    margin: 0;
}

#integrations .alert {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

#integrations .alert code {
    display: block;
    max-height: 180px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: #6d2a1d;
    background: #ffe0dc;
    border-radius: 999px;
    font-weight: 900;
}

.status-pill.is-active {
    color: #064d2c;
    background: #d8f8df;
}

.career-disabled-action {
    cursor: default;
    opacity: 0.78;
}

.row-copy-input {
    min-height: 32px;
    margin-top: 6px;
    padding: 6px 8px;
    color: var(--muted);
    font-size: 0.82rem;
    border-radius: 6px;
}

.compact-danger {
    width: auto;
    min-height: 38px;
    padding: 0 14px;
}

.admin-form-modal .admin-modal-dialog {
    grid-template-columns: 1fr;
    width: min(860px, 100%);
    padding: 24px;
}

.admin-modal-dialog h2 {
    margin: 0 48px 4px 0;
}

.admin-modal-dialog form {
    display: grid;
    gap: 14px;
}

.builder-details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.builder-details summary {
    cursor: pointer;
    padding: 14px 16px;
    color: var(--green-deep);
    font-weight: 900;
}

.builder-details .admin-row-list {
    padding: 0 16px 16px;
}

.career-step-workspace {
    display: grid;
    gap: 14px;
    padding: 0 16px 16px;
}

.career-step-import {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.career-step-schedule-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.career-step-place-field {
    grid-column: span 2;
}

.career-step-public-file {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 12px;
    align-items: end;
}

.career-step-public-file-actions,
.career-result-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.career-step-public-file-actions {
    grid-column: 1 / -1;
}

.career-step-table input,
.career-step-table select,
.career-step-table textarea {
    min-width: 140px;
    width: 100%;
}

.career-step-table .compact-score-input {
    min-width: 96px;
}

.career-step-save {
    margin-top: 12px;
}

.career-step-source-note {
    margin: 0;
    color: var(--green-deep);
    font-weight: 900;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 14px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 900;
}

.quick-action .icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 7px;
    color: #06201d;
    background: linear-gradient(135deg, var(--green), var(--yellow));
    border-radius: 999px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(160px, 1fr));
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    min-width: 940px;
    border-collapse: collapse;
    background: var(--bg);
}

.admin-table th,
.admin-table td {
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.admin-table th {
    color: var(--green-deep);
    background: var(--surface);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.admin-table td span {
    display: block;
    color: var(--muted);
}

.role-permissions-form {
    display: grid;
    gap: 14px;
}

.role-permission-table {
    min-width: 900px;
}

.role-permission-table th:not(:first-child),
.role-permission-table td:not(:first-child) {
    width: 130px;
    text-align: center;
}

.role-table-note {
    display: block;
    margin-top: 3px;
    color: #8b1d14;
    font-size: 0.72rem;
    text-transform: none;
}

.role-permission-table td strong,
.role-permission-table td span {
    display: block;
}

.role-permission-group td {
    color: var(--green-deep);
    background: color-mix(in srgb, var(--green) 12%, var(--surface));
    font-weight: 900;
}

.permission-check {
    display: inline-grid;
    min-width: 82px;
    gap: 5px;
    justify-items: center;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
}

.permission-check input {
    width: 20px;
    height: 20px;
    min-height: 0;
    accent-color: var(--green);
}

.permission-check.is-locked {
    cursor: not-allowed;
    opacity: 0.72;
}

.form-help {
    margin: 0;
    color: var(--muted);
}

.integration-url-list {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.9rem;
}

.integration-url-list code {
    color: var(--green-deep);
    overflow-wrap: anywhere;
    font-weight: 900;
}

.response-answer-list {
    display: grid;
    min-width: 330px;
    gap: 8px;
}

.response-answer-list div {
    display: grid;
    gap: 2px;
}

.response-answer-list strong {
    color: var(--ink);
    font-size: 0.86rem;
}

.response-answer-list span {
    color: var(--muted);
    font-size: 0.9rem;
}

.response-file {
    display: grid;
    gap: 6px;
}

.response-file .response-file-name {
    color: var(--ink);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.response-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.response-file-actions .text-button {
    min-height: 0;
    font-size: 0.86rem;
    line-height: 1.35;
}

.career-upload-control {
    display: grid;
    gap: 8px;
}

.career-upload-control[data-upload-kind="pdf"],
.career-upload-control[data-upload-kind="image"] {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.career-upload-control[data-upload-kind="pdf"] {
    background: color-mix(in srgb, #fee2e2 42%, var(--surface));
    border-color: color-mix(in srgb, #dc2626 24%, var(--line));
}

.career-upload-control[data-upload-kind="image"] {
    background: color-mix(in srgb, var(--green-soft) 38%, var(--surface));
    border-color: color-mix(in srgb, var(--green-deep) 24%, var(--line));
}

.career-upload-control[data-upload-kind="pdf"] .field-hint {
    color: #9f1239;
}

.career-upload-control[data-upload-kind="image"] .field-hint {
    color: var(--green-deep);
}

.career-upload-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.career-upload-preview[hidden] {
    display: none;
}

.career-upload-preview span {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.career-upload-preview .text-button {
    min-height: 0;
    font-size: 0.9rem;
}

.career-upload-preview.is-error {
    color: #b42318;
    background: #fff1f0;
    border-color: #ffc9c4;
}

.career-upload-preview.is-error span {
    color: #b42318;
}

.field-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.field-example {
    color: var(--muted);
    font-size: 0.9em;
    font-weight: 600;
}

.empty-state {
    display: grid;
    gap: 8px;
    padding: 22px;
    background: var(--bg);
    border: 1px dashed var(--line);
    border-radius: 8px;
}

.empty-state h2,
.empty-state p {
    margin: 0;
}

.empty-state p {
    color: var(--muted);
}

.featured-card {
    flex: 0 0 330px;
    display: grid;
    gap: 0;
    overflow: hidden;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(13, 57, 50, 0.08);
    scroll-snap-align: start;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.featured-card-link {
    color: inherit;
}

.featured-card img {
    width: 100%;
    aspect-ratio: 16 / 7.4;
    object-fit: contain;
    background: var(--surface-2);
}

.featured-card .doctor-poli {
    margin: 16px 16px 8px;
}

.featured-card h3 {
    margin: 0;
    padding: 0 16px;
    font-size: 1.04rem;
    line-height: 1.28;
}

.featured-card p,
.rich-content {
    color: var(--muted);
}

.featured-card p {
    margin: 10px 0 0;
    padding: 0 16px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.featured-card .text-button {
    margin: 14px 16px 16px;
}

.rich-content > :first-child,
.rich-content > :last-child {
    margin-top: 0;
}

.rich-content > :last-child {
    margin-bottom: 0;
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.25rem;
}

.rich-content figure.rich-image,
.wysiwyg-editor figure.rich-image {
    margin: 20px 0;
}

.rich-content figure.rich-image img,
.wysiwyg-editor figure.rich-image img {
    display: block;
    width: 100%;
    max-height: 720px;
    object-fit: contain;
    background: var(--surface-2);
    border-radius: 8px;
}

.rich-content figure.rich-image figcaption,
.wysiwyg-editor figure.rich-image figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.promo-card {
    border-color: color-mix(in srgb, var(--green) 38%, var(--line));
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.media-panel,
.leaflet-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 44px rgba(13, 57, 50, 0.08);
}

.media-preview,
.leaflet-preview,
.post-media-frame {
    overflow: hidden;
    background: #061917;
    border-radius: 8px;
}

.media-preview {
    aspect-ratio: 16 / 9;
}

.media-preview iframe,
.media-preview video,
.leaflet-preview iframe,
.leaflet-preview img,
.post-media-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.media-preview video,
.leaflet-preview img {
    object-fit: cover;
}

.media-empty {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--green);
}

.media-empty .icon {
    width: 58px;
    height: 58px;
}

.media-panel h3,
.leaflet-card h3 {
    margin: 0;
}

.media-panel p,
.leaflet-card p {
    margin: 0;
    color: var(--muted);
}

.leaflet-track {
    display: flex;
    gap: 18px;
}

.leaflet-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.leaflet-button {
    width: 100%;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.leaflet-preview {
    aspect-ratio: 3 / 4;
    background: var(--bg);
    border: 1px solid var(--line);
}

.leaflet-modal-dialog {
    width: min(920px, 100%);
}

.leaflet-modal-media {
    overflow: hidden;
    min-height: 420px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.leaflet-modal-media iframe,
.leaflet-modal-media img {
    width: 100%;
    min-height: 420px;
    border: 0;
}

.leaflet-modal-media img {
    object-fit: contain;
    background: #fff;
}

.career-file-modal-dialog {
    grid-template-columns: minmax(360px, 1.4fr) minmax(220px, 0.65fr);
    width: min(980px, 100%);
}

.career-file-preview {
    overflow: hidden;
    min-height: min(70vh, 620px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.career-file-preview iframe {
    width: 100%;
    height: min(70vh, 620px);
    border: 0;
    background: #fff;
}

.career-file-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 4px 34px 4px 0;
}

.career-file-detail h2,
.career-file-detail p {
    margin: 0;
}

.career-file-detail p:not(.section-kicker) {
    overflow-wrap: anywhere;
}

.career-file-detail .primary-button {
    width: fit-content;
}

.role-pill {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    color: #06201d;
    background: var(--green-soft);
    border-radius: 999px;
    font-weight: 900;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.inline-check input,
.choice-line input,
.scale-line input,
.rating-line input {
    width: 18px;
    min-height: 18px;
}

select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-inline-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.career-builder {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.career-builder h3 {
    margin: 0 0 14px;
}

.career-post-card {
    grid-column: 1 / -1;
}

.compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.career-question-card label {
    font-size: 0.92rem;
}

.ck.ck-editor {
    color: #1b1f23;
}

.post-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(20px, 3vw, 34px);
    align-items: start;
}

.post-layout {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.post-cover {
    width: 100%;
    aspect-ratio: 16 / 7.4;
    object-fit: contain;
    background: var(--surface-2);
    border-radius: 10px;
    box-shadow: none;
}

.content-image-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: var(--surface-2);
}

.content-image-slider-track {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.content-image-slider img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.content-image-slider img.is-active {
    opacity: 1;
}

.content-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 7px;
    background: rgba(6, 25, 23, 0.44);
    border-radius: 999px;
    transform: translateX(-50%);
}

.content-slider-dots button,
.content-slider-dots span {
    display: block;
    width: 7px;
    height: 7px;
    padding: 0;
    background: rgba(255, 255, 255, 0.58);
    border: 0;
    border-radius: 999px;
}

.content-slider-dots button {
    cursor: pointer;
}

.content-slider-dots .is-active {
    width: 18px;
    background: #fff;
}

.content-slider-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 999px;
    cursor: pointer;
    transform: translateY(-50%);
}

.content-slider-nav svg {
    width: 18px;
    height: 18px;
}

.content-slider-nav.is-prev {
    left: 12px;
}

.content-slider-nav.is-next {
    right: 12px;
}

.post-cover-slider {
    aspect-ratio: 16 / 7.4;
    border-radius: 10px;
}

.home-card-slider,
.collection-card-slider {
    aspect-ratio: 16 / 7.5;
}

.news-card .content-image-slider,
.featured-card .content-image-slider {
    display: block;
    width: 100%;
    flex: 0 0 auto;
}

.news-card .content-image-slider img,
.featured-card .content-image-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    opacity: 0;
}

.news-card .content-image-slider img.is-active,
.featured-card .content-image-slider img.is-active {
    opacity: 1;
}

.home-service-slider {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}

.post-layout h1,
.career-form-shell h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.02;
}

.post-excerpt {
    margin: 0;
    color: var(--muted);
    font-size: 1.16rem;
}

.post-content {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.post-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.post-section-heading h2,
.post-section-heading h3 {
    margin: 0;
}

.post-section-heading span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 850;
}

.post-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.post-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
}

.post-meta-row svg {
    width: 17px;
    height: 17px;
    color: var(--green-deep);
}

.post-period {
    color: var(--muted);
    font-weight: 800;
}

.post-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.post-share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.post-share-row > strong {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 950;
    letter-spacing: 0;
}

.post-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-share-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #fff;
    background: #9ca3af;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, filter 0.16s ease;
}

.post-share-icon:hover,
.post-share-icon.is-copied {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.post-share-icon svg {
    width: 21px;
    height: 21px;
    color: currentColor;
}

.post-share-icon.is-facebook {
    background: #3b5998;
}

.post-share-icon.is-x {
    background: #000;
}

.post-share-icon.is-whatsapp {
    background: #25d366;
}

.post-share-icon.is-telegram {
    background: #229ed9;
}

.post-share-icon.is-native,
.post-share-icon.is-link {
    background: #9ca3af;
}

.post-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 13px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.post-action-button:hover,
.post-action-button.is-copied {
    border-color: color-mix(in srgb, var(--green-deep) 28%, var(--line));
    box-shadow: 0 10px 22px rgba(13, 57, 50, 0.08);
}

.post-action-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--green-deep);
}

.post-like-button.is-liked {
    color: #063f36;
    background: linear-gradient(135deg, var(--green), var(--yellow));
    border-color: transparent;
}

.post-like-button.is-liked svg {
    fill: currentColor;
}

.post-action-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.post-comments {
    display: grid;
    gap: 18px;
    margin-top: 24px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.post-comment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(13, 57, 50, 0.08);
}

.post-comment-form h3 {
    grid-column: 1 / -1;
    margin: 0;
}

.testimonial-submit-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: clamp(18px, 3vw, 28px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(13, 57, 50, 0.08);
}

.comment-list,
.testimonial-public-list {
    display: grid;
    gap: 12px;
}

.comment-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(13, 57, 50, 0.06);
}

.comment-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #063f36;
    background: #d9f99d;
    border-radius: 50%;
    font-weight: 950;
}

.comment-card strong,
.comment-card time {
    display: block;
}

.comment-card time,
.muted-text {
    color: var(--muted);
    font-size: 0.86rem;
}

.comment-card p {
    margin: 8px 0 0;
    line-height: 1.55;
}

.comment-empty {
    padding: 16px;
    color: var(--muted);
    background: color-mix(in srgb, var(--green-soft) 34%, var(--surface));
    border: 1px dashed color-mix(in srgb, var(--green-deep) 22%, var(--line));
    border-radius: 8px;
}

.post-sidebar {
    position: sticky;
    top: 96px;
    min-width: 0;
}

.post-sidebar-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(13, 57, 50, 0.08);
}

.related-post-list {
    display: grid;
    gap: 10px;
}

.related-post-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
}

.related-post-card:hover {
    background: color-mix(in srgb, var(--green-soft) 34%, var(--surface));
    border-color: color-mix(in srgb, var(--green-deep) 18%, var(--line));
}

.related-post-thumb {
    display: grid;
    place-items: center;
    width: 84px;
    aspect-ratio: 1.18 / 1;
    object-fit: cover;
    background: var(--green-soft);
    border-radius: 8px;
}

.related-post-video svg {
    width: 28px;
    height: 28px;
    color: var(--green-deep);
}

.related-post-card span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.related-post-card small,
.related-post-card em {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.related-post-card strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.testimonial-public-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
    gap: 28px;
    align-items: start;
}

.testimonial-submit-form h2 {
    grid-column: 1 / -1;
    margin: 0;
}

.testimonial-ajax-message {
    grid-column: 1 / -1;
}

.testimonial-choice-group,
.testimonial-rating-field {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.testimonial-choice-group legend,
.testimonial-rating-field legend {
    padding: 0;
    color: var(--muted);
    font-weight: 900;
}

.testimonial-chip-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.testimonial-chip-options label {
    cursor: pointer;
}

.testimonial-chip-options input,
.testimonial-rating-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.testimonial-chip-options span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 900;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.testimonial-chip-options label:has(input:checked) span {
    color: #063f36;
    background: linear-gradient(135deg, var(--green), var(--yellow));
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(152, 226, 42, 0.18);
}

.testimonial-rating-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
}

.testimonial-rating-picker label {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #cbd5d1;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.testimonial-rating-picker span {
    font-size: 1.34rem;
    line-height: 1;
}

.testimonial-rating-picker label:hover,
.testimonial-rating-picker label:hover ~ label,
.testimonial-rating-picker label:has(input:checked),
.testimonial-rating-picker label:has(input:checked) ~ label {
    color: #f7c600;
    background: color-mix(in srgb, var(--yellow) 13%, var(--surface));
    border-color: color-mix(in srgb, var(--yellow) 54%, var(--line));
}

.testimonial-rating-picker label:hover {
    transform: translateY(-2px);
}

.testimonial-rating-field small {
    color: var(--muted);
    font-weight: 700;
}

.visitor-testimonial-card {
    display: grid;
    gap: 12px;
}

.collection-results {
    transition: opacity 0.18s ease;
}

.collection-results.is-loading {
    opacity: 0.48;
    pointer-events: none;
}

.about-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.about-layout-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1120px;
}

.about-side-nav {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 4px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(13, 57, 50, 0.06);
}

.about-side-nav a {
    padding: 13px 14px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 900;
}

.about-side-nav a:hover,
.about-side-nav a.is-active {
    color: #063f36;
    background: linear-gradient(135deg, color-mix(in srgb, var(--green) 76%, var(--surface)), var(--yellow));
}

.about-content-panel {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.about-gallery {
    overflow: hidden;
}

.about-gallery-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.about-gallery-track img {
    flex: 0 0 min(520px, 86vw);
    width: min(520px, 86vw);
    aspect-ratio: 1.72 / 1;
    object-fit: cover;
    border-radius: 8px;
    scroll-snap-align: start;
}

.about-preview-trigger {
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: zoom-in;
}

.about-gallery-track .about-preview-trigger {
    flex: 0 0 min(520px, 86vw);
    width: min(520px, 86vw);
    scroll-snap-align: start;
}

.about-gallery-track .about-preview-trigger img {
    width: 100%;
}

.about-rich {
    font-size: 1.03rem;
}

.about-timeline {
    position: relative;
    display: grid;
    gap: 18px;
}

.about-timeline::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 74px;
    width: 3px;
    background: linear-gradient(var(--green-deep), var(--green), var(--yellow));
    border-radius: 999px;
}

.about-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 64px 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.about-timeline-item > span {
    color: var(--green-deep);
    font-weight: 950;
}

.about-timeline-item img,
.about-timeline-media,
.about-timeline-item i {
    display: grid;
    place-items: center;
    width: 64px;
    aspect-ratio: 1;
    object-fit: cover;
    color: #063f36;
    background: var(--green-soft);
    border: 4px solid var(--surface);
    border-radius: 50%;
    z-index: 1;
}

.about-timeline-media img {
    width: 100%;
    border: 0;
}

.about-timeline-item h2,
.about-timeline-item p {
    margin: 0;
}

.about-timeline-item p {
    color: var(--muted);
    line-height: 1.6;
}

.about-vision-grid,
.about-award-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.about-vision-grid article,
.about-award-card,
.about-person-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(13, 57, 50, 0.07);
}

.about-vision-grid article {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.about-vision-grid small,
.about-person-card small {
    color: var(--green-deep);
    font-weight: 950;
}

.about-vision-grid h2 {
    margin: 0;
}

.about-vision-card .rich-content,
.about-vision-card .rich-content p,
.about-vision-card .rich-content li {
    color: var(--ink);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    font-weight: 850;
    line-height: 1.55;
}

.about-motto-card {
    background: color-mix(in srgb, var(--green-soft) 40%, var(--surface));
}

.about-motto-card h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: 0;
}

.about-team-groups {
    display: grid;
    gap: 26px;
}

.about-team-groups h2 {
    margin: 0 0 12px;
}

.about-team-levels {
    display: grid;
    gap: 28px;
}

.about-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.about-team-grid.is-primary-level {
    grid-template-columns: minmax(280px, 560px);
    justify-content: start;
}

.about-team-grid.is-primary-level .about-person-card {
    min-height: 170px;
}

.about-person-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
}

.about-person-card img {
    width: 110px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}

.about-person-card h3,
.about-person-card p {
    margin: 0;
}

.about-person-card strong {
    display: block;
    margin: 4px 0;
    color: var(--green-deep);
}

.about-person-card p {
    color: var(--muted);
    line-height: 1.55;
}

.about-award-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.about-award-card img {
    width: 100%;
    aspect-ratio: 1.25 / 1;
    object-fit: cover;
    background: var(--surface-2);
    border-radius: 8px;
}

.about-award-card .about-preview-trigger {
    width: 100%;
}

.about-award-card h2,
.about-award-card p {
    margin: 0 0 8px;
}

.about-award-card span {
    color: var(--muted);
    line-height: 1.55;
}

.about-award-file {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 140px;
    color: var(--green-deep);
    background: var(--green-soft);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 900;
    border: 0;
    cursor: zoom-in;
}

.about-preview-dialog.modal-dialog {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    width: min(1160px, calc(100vw - 32px));
    height: min(860px, calc(100vh - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
}

.about-preview-dialog .modal-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    color: #0b201d;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(13, 57, 50, 0.12);
}

.about-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 16px 72px 16px 22px;
    border-bottom: 1px solid var(--line);
}

.about-preview-head h2 {
    min-width: 0;
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.about-preview-head .soft-button {
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
}

.about-preview-body {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 18px;
    overflow: auto;
    background:
        linear-gradient(45deg, rgba(15, 127, 114, 0.04) 25%, transparent 25% 75%, rgba(15, 127, 114, 0.04) 75%),
        #f7faf8;
    background-size: 28px 28px;
    border-radius: 0;
}

.about-preview-body img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(13, 57, 50, 0.18);
}

.about-preview-body iframe {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(13, 57, 50, 0.18);
}

.testimonial-media img,
.testimonial-media video {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.testimonial-reply {
    padding: 12px;
    background: color-mix(in srgb, var(--green-soft) 54%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--green-deep) 18%, var(--line));
    border-radius: 8px;
}

.testimonial-reply p {
    margin: 6px 0 0;
}

.testimonial-admin-list {
    gap: 10px;
}

.testimonial-admin-card {
    padding: 0;
    overflow: hidden;
}

.testimonial-admin-card summary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    cursor: pointer;
    list-style: none;
}

.testimonial-admin-card summary::-webkit-details-marker {
    display: none;
}

.testimonial-admin-card summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.testimonial-admin-card[open] summary::after {
    transform: rotate(225deg);
}

.testimonial-admin-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #063f36;
    background: var(--green-soft);
    border-radius: 50%;
    font-weight: 950;
}

.testimonial-admin-summary {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.testimonial-admin-summary strong,
.testimonial-admin-summary small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.testimonial-admin-summary small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.testimonial-admin-summary em {
    color: #cbd5d1;
    font-style: normal;
    letter-spacing: 1px;
}

.testimonial-admin-summary em .is-filled {
    color: #f7c600;
}

.testimonial-admin-badge {
    padding: 5px 9px;
    color: #063f36;
    background: color-mix(in srgb, var(--green) 72%, var(--surface));
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 950;
}

.testimonial-admin-detail {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
    gap: 16px;
    padding: 0 14px 14px;
    border-top: 1px solid var(--line);
}

.testimonial-admin-message {
    display: grid;
    align-content: start;
    gap: 10px;
    padding-top: 14px;
}

.testimonial-admin-message p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.about-admin-form {
    display: grid;
    gap: 14px;
}

.about-builder-section .admin-form-grid {
    padding-top: 16px;
}

.about-admin-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-admin-gallery label {
    display: grid;
    gap: 6px;
    width: 120px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.about-admin-gallery img {
    width: 120px;
    aspect-ratio: 1.4 / 1;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.about-admin-gallery .about-preview-trigger {
    width: 120px;
}

.about-admin-repeat {
    display: grid;
    gap: 12px;
}

.about-admin-repeat h3 {
    margin: 0;
}

.about-admin-current-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: var(--muted);
}

.about-repeat-list {
    display: grid;
    gap: 12px;
}

.about-repeat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.about-repeat-row textarea,
.about-repeat-row input[type="file"] {
    grid-column: 1 / -1;
}

.about-current-preview {
    justify-self: start;
}

.about-repeat-add {
    justify-self: start;
}

.about-repeat-remove {
    justify-self: start;
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.compact-admin-form {
    min-width: min(100%, 420px);
}

.unread-badge {
    color: #063f36;
    background: #d9f99d;
    border: 1px solid rgba(15, 127, 114, 0.2);
}

.agent-session-card.is-locked {
    opacity: 0.72;
}

.collection-page {
    background: var(--bg);
}

.collection-hero {
    position: relative;
    min-height: clamp(360px, 52vh, 560px);
    display: flex;
    align-items: end;
    overflow: hidden;
    color: #fff;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
}

.collection-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 20, 18, 0.86), rgba(4, 20, 18, 0.56) 52%, rgba(4, 20, 18, 0.18)),
        linear-gradient(0deg, rgba(4, 20, 18, 0.72), rgba(4, 20, 18, 0.08));
}

.collection-hero-content {
    position: relative;
    z-index: 1;
    padding-block: 86px 52px;
}

.collection-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.4rem, 5.8vw, 5.2rem);
    line-height: 0.98;
}

.collection-hero p:not(.section-kicker) {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.collection-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.collection-hero-stats span,
.collection-kicker,
.tag-row small {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
}

.collection-hero-stats span {
    color: #06201d;
    background: color-mix(in srgb, var(--green) 86%, #fff);
}

.collection-browser {
    padding-top: clamp(34px, 5vw, 64px);
}

.collection-layout {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.collection-filter {
    position: sticky;
    top: 104px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(13, 57, 50, 0.10);
}

.collection-filter form {
    display: grid;
    gap: 14px;
}

.collection-filter label {
    gap: 8px;
    color: var(--ink);
    font-size: 0.9rem;
}

.collection-filter input,
.collection-filter select {
    min-height: 46px;
    background: color-mix(in srgb, var(--surface) 64%, var(--bg));
}

.collection-filter .filter-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.auto-filter-submit {
    display: none;
}

.collection-results {
    display: grid;
    gap: 18px;
}

.collection-results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.collection-results-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.08;
}

.collection-results-heading p:not(.section-kicker) {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.collection-results-heading span {
    color: var(--muted);
    font-weight: 900;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.collection-grid-leaflets {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.collection-grid.is-list {
    grid-template-columns: 1fr;
}

.collection-card {
    display: grid;
    overflow: hidden;
    color: inherit;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(13, 57, 50, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

button.collection-card {
    width: 100%;
    padding: 0;
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--green-deep) 34%, var(--line));
    box-shadow: 0 20px 46px rgba(13, 57, 50, 0.13);
}

.collection-grid.is-list .collection-card {
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    align-items: stretch;
}

.collection-media {
    display: block;
    overflow: hidden;
    background: var(--surface-2);
}

.collection-media img,
.collection-media iframe {
    width: 100%;
    aspect-ratio: 16 / 7.5;
    border: 0;
    object-fit: contain;
}

.collection-grid.is-list .collection-media img,
.collection-grid.is-list .collection-media iframe,
.collection-grid.is-list .collection-media .collection-card-slider {
    height: 100%;
    min-height: 210px;
    aspect-ratio: auto;
}

.collection-grid-leaflets .collection-media img,
.collection-grid-leaflets .collection-media iframe {
    aspect-ratio: 3 / 4;
    object-fit: contain;
}

.collection-card-body {
    display: grid;
    gap: 9px;
    padding: 16px;
    align-content: start;
}

.collection-card-body strong {
    color: var(--ink);
    font-size: 1.04rem;
    line-height: 1.28;
}

.collection-card-body span:not(.collection-kicker):not(.tag-row),
.collection-card-body time {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.collection-card-body time {
    font-weight: 900;
}

.collection-card-body .schedule-line {
    color: var(--green-deep);
    font-weight: 900;
}

.collection-card-cta {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    color: var(--green-deep) !important;
    font-size: 0.88rem !important;
    font-weight: 900;
}

.collection-card-cta .icon {
    width: 15px;
    height: 15px;
}

.collection-kicker {
    color: #053530;
    background: var(--green-soft);
}

.collection-kicker.is-expired {
    color: #8b1d14;
    background: #ffe0dc;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row small {
    color: var(--green-deep);
    background: var(--bg);
    border: 1px solid var(--line);
}

.collection-card-doctors .collection-media img {
    aspect-ratio: 4 / 4.2;
    min-height: 170px;
}

.collection-card-doctors .collection-card-body {
    gap: 7px;
    padding: 13px;
}

.collection-card-doctors .collection-card-body strong {
    font-size: 0.98rem;
}

.collection-card-doctors .collection-card-body span {
    font-size: 0.84rem;
}

.collection-card-services .collection-media img,
.collection-card-featured_services .collection-media img,
.collection-card-services .collection-media .collection-card-slider,
.collection-card-featured_services .collection-media .collection-card-slider {
    aspect-ratio: 16 / 7.5;
}

.career-page-hero {
    background-color: #061917;
    background-repeat: no-repeat;
}

.career-page-hero .rich-content {
    max-width: 720px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.86);
}

.career-page-hero .rich-content p {
    margin-bottom: 0;
}

.career-hero {
    background: var(--surface);
}

.career-list,
.career-form-shell {
    display: grid;
    gap: 18px;
}

.career-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.career-list.is-list {
    grid-template-columns: 1fr;
}

.career-card,
.career-question {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(13, 57, 50, 0.10);
}

.career-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.career-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--green-deep) 40%, var(--line));
    box-shadow: 0 24px 60px rgba(13, 57, 50, 0.14);
}

.career-list.is-list .career-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.career-list.is-list .career-card .primary-button,
.career-list.is-list .career-card .soft-button {
    align-self: end;
    grid-column: 2;
    grid-row: 1 / span 6;
    white-space: nowrap;
}

.career-list.is-list .career-card .career-card-actions {
    align-self: end;
    grid-column: 2;
    grid-row: 1 / span 8;
    justify-content: flex-end;
}

.career-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 900;
}

.career-card h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.18;
}

.career-card h3 a {
    color: inherit;
}

.career-card h3 a:hover {
    color: var(--green-deep);
}

.career-date {
    margin: 0;
    color: var(--green-deep);
    font-weight: 900;
}

.career-result-summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.career-card-actions,
.career-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.career-summary {
    padding-top: 4px;
}

.career-form {
    display: grid;
    gap: 18px;
}

.career-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    gap: 18px;
    align-items: start;
}

.career-detail-results {
    grid-column: 1 / -1;
}

.career-detail-main,
.career-detail-side,
.career-detail-results {
    box-shadow: 0 18px 48px rgba(13, 57, 50, 0.08);
}

.career-result-public {
    display: grid;
    gap: 16px;
}

.career-result-step {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.career-result-step:first-child {
    padding-top: 0;
    border-top: 0;
}

.career-result-step-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.career-result-step-heading h2 {
    margin: 0;
    font-size: 1.25rem;
}

.career-step-schedule-public {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.career-step-schedule-public > span:not(.status-pill) {
    color: var(--muted);
    font-weight: 800;
}

.career-result-step-heading span,
.career-result-step-note,
.career-result-empty {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.career-result-list {
    display: grid;
    gap: 10px;
}

.career-result-file {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.career-result-file-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.career-result-file-heading strong,
.career-result-file-heading span {
    display: block;
}

.career-result-file-heading strong {
    color: var(--ink);
}

.career-result-file-heading span,
.career-result-file p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.career-result-file img,
.career-result-file iframe {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.career-result-file img {
    max-height: 520px;
    object-fit: contain;
}

.career-result-file iframe {
    min-height: 520px;
}

.career-result-file-admin iframe {
    min-height: 360px;
}

.career-result-preview-accordion {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.career-result-preview-accordion summary {
    cursor: pointer;
    color: var(--green-deep);
    font-weight: 900;
}

.career-result-preview-dialog {
    width: min(1060px, 100%);
    max-height: calc(100dvh - 44px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.career-result-preview-dialog > .primary-button {
    justify-self: start;
}

.career-result-preview-body {
    display: grid;
    gap: 14px;
    min-height: 0;
    max-height: 70vh;
    overflow: auto;
    overscroll-behavior: contain;
    padding-top: 12px;
}

.career-result-preview-body img,
.career-result-preview-body iframe {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.career-result-preview-body img {
    max-height: 64vh;
    object-fit: contain;
}

.career-result-preview-body iframe {
    display: block;
    height: 64vh;
    min-height: 420px;
}

.career-result-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.career-result-preview-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    background: var(--surface);
}

.career-result-preview-table th,
.career-result-preview-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.9rem;
}

.career-result-preview-table th {
    color: var(--green-deep);
    background: var(--surface-2);
    font-weight: 900;
}

.career-result-person {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.career-result-person strong,
.career-result-person span {
    display: block;
}

.career-result-person strong {
    color: var(--ink);
}

.career-result-person span {
    color: var(--muted);
    font-size: 0.9rem;
}

.career-result-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.career-question {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 20px;
}

.career-question legend,
.career-question h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.12rem;
    font-weight: 900;
}

.career-question p {
    margin: 0;
    color: var(--muted);
}

.contact-hero {
    min-height: clamp(340px, 48vh, 520px);
}

.contact-section {
    background: var(--surface);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
    gap: 22px;
    align-items: start;
}

.contact-card {
    display: grid;
    gap: 16px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(13, 57, 50, 0.10);
}

.contact-card h2,
.contact-card p {
    margin: 0;
}

.contact-card p:not(.section-kicker) {
    color: var(--muted);
}

.contact-methods {
    display: grid;
    gap: 10px;
}

.contact-methods a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
}

.contact-methods .icon {
    color: var(--green-deep);
}

.contact-form-card {
    gap: 18px;
}

.contact-form-heading h2,
.contact-form-heading p {
    margin: 0;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.choice-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 600;
}

.scale-line,
.rating-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.rating-line label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green-deep);
}

.grid-question {
    overflow-x: auto;
}

.grid-question table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

.grid-question th,
.grid-question td {
    padding: 10px;
    border: 1px solid var(--line);
    text-align: center;
}

.grid-question th:first-child {
    text-align: left;
}

.terms-box {
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.terms-box h2 {
    margin: 0 0 10px;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .post-detail-grid {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
    }

    .post-action-bar,
    .post-share-row {
        align-items: stretch;
        width: 100%;
    }

    .post-share-buttons {
        align-items: center;
        width: auto;
    }

    .post-action-button {
        flex: 1 1 132px;
    }

    .admin-mobile-bar {
        position: sticky;
        top: 0;
        z-index: 80;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 72px;
        padding: 12px 18px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
    }

    .admin-mobile-bar .brand img {
        width: min(190px, 56vw);
    }

    .dashboard-sidebar {
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: var(--shadow);
    }

    .dashboard-sidebar.is-open {
        transform: translateX(0);
    }

    .dashboard-content {
        padding-left: 0;
    }

    .dashboard-topbar {
        position: static;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 18px;
    }

    .dashboard-search {
        width: 100%;
    }

    .admin-main {
        padding: 22px 18px 64px;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar,
    .admin-list-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-list-count {
        justify-self: start;
    }

    .career-step-import {
        grid-template-columns: 1fr;
    }

    .career-step-public-file {
        grid-template-columns: 1fr;
    }

    .career-step-schedule-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .career-step-place-field {
        grid-column: 1 / -1;
    }

    .admin-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-row-meta,
    .admin-row-actions,
    .row-toolbar {
        justify-content: flex-start;
    }

    .topbar-contact,
    .topbar-actions {
        gap: 10px;
    }

    .topbar-contact span span,
    .topbar-contact a span,
    .topbar-chip span {
        max-width: 220px;
    }

    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 10px;
    }

    .topbar-actions {
        justify-content: flex-start;
    }

    .appointment-button {
        min-height: 42px;
        padding: 0 14px;
    }

    .appointment-button span {
        display: none;
    }

    .menu-button {
        display: inline-grid;
    }

    .main-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px;
        border-radius: 6px;
    }

    .main-nav a:hover {
        background: var(--surface-2);
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown::after {
        display: none;
    }

    .nav-dropdown-trigger {
        display: flex;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
        min-width: 0;
        width: 100%;
        margin-top: 2px;
        max-height: 0;
        overflow: hidden;
        padding: 0 0 0 12px;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 0;
        pointer-events: none;
        transform: none;
        transition: max-height 0.22s ease, opacity 0.18s ease, padding 0.18s ease;
    }

    .main-nav > .nav-dropdown:last-child .nav-dropdown-menu,
    .main-nav > .nav-dropdown:last-child:hover .nav-dropdown-menu,
    .main-nav > .nav-dropdown:last-child:focus-within .nav-dropdown-menu {
        right: auto;
        left: auto;
        transform: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        max-height: 0;
        padding: 0 0 0 12px;
        opacity: 0;
        pointer-events: none;
        transform: none;
    }

    .nav-dropdown.is-open .nav-dropdown-menu,
    .nav-dropdown.is-open:hover .nav-dropdown-menu,
    .nav-dropdown.is-open:focus-within .nav-dropdown-menu {
        max-height: min(58vh, 440px);
        padding: 4px 0 6px 12px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .nav-dropdown-menu a {
        padding: 10px 12px;
        color: var(--muted);
        white-space: normal;
    }

    .nav-dropdown-item {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .nav-dropdown-icon {
        width: 34px;
        height: 34px;
    }

    .nav-dropdown-all {
        padding-inline: 12px !important;
    }

    .welcome-grid,
    .director-grid,
    .location-grid,
    .service-layout,
    .quick-service-grid,
    .outpatient-layout,
    .room-card,
    .room-card.is-reverse,
    .footer-grid,
    .contact-layout,
    .collection-layout,
    .service-panel,
    .modal-dialog {
        grid-template-columns: 1fr;
    }

    .room-card.is-reverse .room-media {
        order: 0;
    }

    .outpatient-copy {
        position: static;
    }

    .schedule-builder-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-filter {
        position: static;
    }

    .collection-filter form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-filter .filter-actions {
        align-self: end;
    }

    .service-panel {
        min-height: 0;
    }

    .promo-popup-dialog {
        grid-template-columns: 1fr;
        width: min(520px, 100%);
    }

    .promo-popup-copy {
        padding: 4px 4px 8px;
    }

    .footer-bottom,
    .admin-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-socials {
        justify-content: flex-start;
    }

    .doctor-modal-dialog {
        grid-template-columns: 1fr;
    }

    .doctor-modal-profile {
        padding-bottom: 24px;
    }
}

@media (max-width: 640px) {
    :root {
        --container: min(100vw - 28px, 1160px);
    }

    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 10px;
    }

    .topbar-title {
        white-space: normal;
        line-height: 1.35;
    }

    .doctor-schedule-row {
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: start;
    }

    .doctor-schedule-book {
        width: 100%;
    }

    .topbar-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .topbar-chip {
        justify-content: center;
        min-width: 0;
        padding-inline: 10px;
    }

    .topbar-chip.is-call {
        flex: 1 1 auto;
    }

    .social-links a {
        width: 30px;
        height: 30px;
    }

    .header-inner {
        min-height: max(72px, calc(var(--header-logo-height, 64px) + 16px));
        gap: 10px;
    }

    .brand img {
        width: min(var(--header-logo-width, 210px), 46vw);
    }

    .admin-link {
        display: none;
    }

    .hero {
        min-height: 610px;
    }

    .hero-content {
        padding: 70px 18px 86px;
    }

    .hero-control {
        top: auto;
        bottom: 24px;
        transform: none;
    }

    .hero-prev {
        left: 20px;
    }

    .hero-next {
        right: 20px;
    }

    .hero-dots {
        bottom: 38px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .doctor-card {
        flex-basis: min(82vw, 300px);
    }

    .news-card {
        flex-basis: min(86vw, 340px);
    }

    .featured-card {
        flex-basis: min(86vw, 330px);
    }

    .leaflet-card {
        flex-basis: min(86vw, 300px);
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .partner-card {
        flex-basis: min(68vw, 220px);
    }

    .testimonial-card {
        flex-basis: min(86vw, 360px);
    }

    .testimonial-admin-card summary {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .testimonial-admin-card summary::after {
        grid-column: 2;
        justify-self: end;
        margin-top: -24px;
    }

    .testimonial-admin-badge {
        grid-column: 2;
        width: max-content;
    }

    .testimonial-admin-detail {
        grid-template-columns: 1fr;
    }

    .about-layout,
    .about-vision-grid,
    .about-team-grid,
    .about-award-grid {
        grid-template-columns: 1fr;
    }

    .about-side-nav {
        position: static;
    }

    .about-timeline::before {
        left: 44px;
    }

    .about-timeline-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .about-timeline-item img,
    .about-timeline-item i {
        width: 52px;
    }

    .about-timeline-item > div {
        grid-column: 1 / -1;
    }

    .about-person-card,
    .about-award-card,
    .about-repeat-row {
        grid-template-columns: 1fr;
    }

    .about-preview-dialog.modal-dialog {
        width: calc(100vw - 18px);
        height: calc(100vh - 18px);
        max-height: calc(100vh - 18px);
        border-radius: 12px;
    }

    .about-preview-head {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 14px 58px 14px 16px;
    }

    .about-preview-head .soft-button {
        min-height: 38px;
    }

    .about-preview-body {
        padding: 10px;
    }

    .about-preview-body img {
        max-height: calc(100vh - 180px);
    }

    .about-preview-body iframe {
        min-height: 0;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .login-card,
    .admin-panel {
        padding: 18px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .filter-bar,
    .admin-list-tools,
    .quick-action-grid,
    .outpatient-form,
    .outpatient-patient-fields,
    .insurance-extra-fields,
    .queue-filter-card,
    .public-ticket-card,
    .ticket-detail-list,
    .collection-filter form,
    .collection-filter .filter-actions {
        grid-template-columns: 1fr;
    }

    .ticket-card {
        grid-template-columns: 1fr;
    }

    .ticket-qr,
    .public-ticket-qr {
        justify-self: start;
    }

    .quick-service-strip {
        margin-top: -28px;
    }

    .quick-service-card {
        grid-template-columns: 48px 1fr;
        grid-template-areas:
            "icon title"
            "icon text";
        padding: 18px;
    }

    .quick-service-card i {
        display: none;
    }

    .room-media,
    .room-media img {
        min-height: 240px;
    }

    .schedule-builder-row {
        grid-template-columns: 1fr;
    }

    .collection-hero {
        min-height: 420px;
    }

    .collection-hero-content {
        padding-block: 58px 38px;
    }

    .collection-results-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-grid.is-list .collection-card,
    .career-list.is-list .career-card {
        grid-template-columns: 1fr;
    }

    .career-detail-layout {
        grid-template-columns: 1fr;
    }

    .career-result-person {
        align-items: flex-start;
        flex-direction: column;
    }

    .career-result-file-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .career-result-file-actions,
    .career-step-public-file-actions {
        justify-content: flex-start;
    }

    .career-result-meta {
        justify-content: flex-start;
    }

    .collection-grid.is-list .collection-media img,
    .collection-grid.is-list .collection-media iframe {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .career-list.is-list .career-card .primary-button,
    .career-list.is-list .career-card .soft-button {
        grid-column: auto;
        grid-row: auto;
        justify-self: stretch;
        white-space: normal;
    }

    .career-list.is-list .career-card .career-card-actions {
        grid-column: auto;
        grid-row: auto;
        justify-content: flex-start;
    }

    .dashboard-topbar .admin-header-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .agent-dashboard {
        grid-template-columns: 1fr;
    }

    .chat-report-grid {
        grid-template-columns: 1fr;
    }

    .agent-session-list {
        max-height: 280px;
    }

    .agent-chat-info {
        align-items: flex-start;
        flex-direction: column;
    }

    .agent-template-item {
        grid-template-columns: 1fr;
    }
}
