:root {
    --ink: #10212f;
    --muted: #607282;
    --line: #d9e4ea;
    --paper: #f7fbfd;
    --white: #ffffff;
    --red: #df2339;
    --red-dark: #b31327;
    --teal: #0e9f9a;
    --blue: #1769aa;
    --navy: #0b2d4a;
    --shadow: 0 24px 60px rgba(16, 33, 47, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(223, 35, 57, 0.10), transparent 34%),
        linear-gradient(315deg, rgba(14, 159, 154, 0.13), transparent 35%),
        var(--paper);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: #ffffff;
    transition: opacity 420ms ease, visibility 420ms ease;
}

.site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.preloader-inner img {
    width: min(220px, 54vw);
    height: auto;
    object-fit: contain;
    animation: preloaderPulse 1150ms ease-in-out infinite;
}

.preloader-inner span {
    color: #07166d;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

@keyframes preloaderPulse {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(0.96);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

.site-shell {
    min-height: 100vh;
}

.not-found-page {
    min-height: 100vh;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 28px;
    padding: 32px 16px;
    background:
        linear-gradient(135deg, rgba(23, 105, 170, 0.12), transparent 34%),
        linear-gradient(315deg, rgba(223, 35, 57, 0.10), transparent 35%),
        #f7fbfd;
}

.not-found-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.not-found-brand img {
    width: 66px;
    height: 66px;
    object-fit: contain;
}

.not-found-brand span {
    display: grid;
    gap: 2px;
}

.not-found-brand strong {
    color: #07166d;
    font-size: 1.35rem;
    font-weight: 900;
}

.not-found-brand small {
    max-width: 320px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

.not-found-card {
    width: min(720px, 100%);
    padding: clamp(28px, 6vw, 54px);
    border: 1px solid rgba(217, 228, 234, 0.9);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(16, 33, 47, 0.14);
    text-align: center;
}

.not-found-code {
    display: inline-flex;
    margin-bottom: 16px;
    color: #df2339;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.not-found-card h1 {
    max-width: 560px;
    margin: 0 auto 14px;
    color: #07166d;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
}

.not-found-card p {
    max-width: 520px;
    margin: 0 auto 14px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.not-found-path {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f0f6fb;
    color: #34495e !important;
    font-size: 0.88rem !important;
    word-break: break-word;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.gallery-hero,
.gallery-grid-section,
.gallery-note {
    width: min(1180px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.gallery-hero {
    padding: clamp(54px, 8vw, 96px) 0 34px;
    text-align: center;
}

.gallery-hero h1 {
    max-width: 760px;
    margin: 10px auto 16px;
    color: #07166d;
    font-size: clamp(2.3rem, 6vw, 4.6rem);
    line-height: 1;
}

.gallery-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.gallery-grid-section {
    padding: 28px 0 76px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gallery-album-block {
    margin-bottom: 46px;
}

.gallery-album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 34px;
}

.gallery-album-card {
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 0;
    border: 1px solid rgba(217, 228, 234, 0.92);
    border-radius: 8px;
    color: inherit;
    background: #ffffff;
    text-align: left;
    box-shadow: 0 16px 36px rgba(16, 33, 47, 0.10);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gallery-album-card:hover,
.gallery-album-card.is-active {
    transform: translateY(-3px);
    border-color: rgba(23, 105, 170, 0.38);
    box-shadow: 0 22px 48px rgba(16, 33, 47, 0.15);
}

.gallery-album-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    display: block;
    overflow: hidden;
    background: #f0f6fb;
}

.gallery-album-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(7, 22, 109, 0.44));
}

.gallery-album-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-album-meta {
    display: grid;
    gap: 7px;
    padding: 16px;
}

.gallery-album-meta strong {
    color: #07166d;
    font-size: 1.05rem;
    line-height: 1.25;
}

.gallery-album-meta small {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.gallery-album-meta em {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    color: #1769aa;
    background: rgba(23, 105, 170, 0.10);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 900;
}

.gallery-album-panel {
    display: none;
    scroll-margin-top: 112px;
}

.gallery-album-panel.is-active {
    display: block;
}

.gallery-panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(217, 228, 234, 0.9);
}

.gallery-panel-heading h2 {
    margin-bottom: 0;
    color: #07166d;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.gallery-panel-heading p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.compact-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.album-detail-hero {
    padding-bottom: 26px;
}

.gallery-back-link {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 9px 12px;
    border: 1px solid rgba(23, 105, 170, 0.18);
    border-radius: 8px;
    color: #1769aa;
    background: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(16, 33, 47, 0.08);
}

.gallery-back-link:hover {
    color: #ffffff;
    background: #1769aa;
}

.gallery-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.gallery-pagination a,
.gallery-pagination span {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border: 1px solid rgba(217, 228, 234, 0.95);
    border-radius: 8px;
    color: #07166d;
    background: #ffffff;
    font-weight: 900;
}

.gallery-pagination a:hover,
.gallery-pagination .is-current {
    color: #ffffff;
    border-color: #1769aa;
    background: #1769aa;
}

.gallery-pagination .is-disabled {
    color: #98a8b4;
    background: #f0f6fb;
}

.gallery-card {
    overflow: hidden;
    border: 1px solid rgba(217, 228, 234, 0.92);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(16, 33, 47, 0.10);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(16, 33, 47, 0.15);
}

.gallery-image {
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(23, 105, 170, 0.12), transparent),
        #f0f6fb;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card-body {
    padding: 18px;
}

.gallery-card-body h2 {
    margin-bottom: 8px;
    color: #07166d;
    font-size: 1rem;
    line-height: 1.25;
}

.gallery-card-body p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.gallery-note {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 84px;
    padding: 28px;
    border: 1px solid rgba(23, 105, 170, 0.14);
    border-radius: 8px;
    background: #ffffff;
}

.gallery-note h2 {
    margin-bottom: 0;
    color: #07166d;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    line-height: 1.15;
}

.gallery-note p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}

.editor-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 24px 20px;
    padding: 18px;
    border: 1px solid rgba(23, 105, 170, 0.16);
    border-radius: 8px;
    background: #f7fbfd;
}

.editor-callout div {
    display: grid;
    gap: 4px;
}

.editor-callout strong {
    color: #07166d;
}

.editor-callout span,
.empty-editor-note {
    color: var(--muted);
}

.gallery-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.gallery-quick-grid.single-tool {
    grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
}

.gallery-tool-card {
    margin-bottom: 0;
}

.gallery-help-card {
    background:
        linear-gradient(135deg, rgba(23, 105, 170, 0.08), transparent 42%),
        #ffffff;
}

.gallery-tool-card .admin-card-heading,
.gallery-text-card .admin-card-heading {
    padding: 16px 18px 12px;
}

.gallery-tool-card .admin-card-heading h2,
.gallery-text-card .admin-card-heading h2 {
    font-size: 1.05rem;
}

.gallery-tool-card .admin-card-heading p,
.gallery-text-card .admin-card-heading p {
    font-size: 0.88rem;
    line-height: 1.45;
}

.gallery-text-card .editor-form {
    padding: 16px 18px;
    gap: 12px;
}

.gallery-text-card .editor-form .editor-input {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.88rem;
}

.gallery-text-card .editor-form textarea.editor-input {
    min-height: 70px;
}

.editor-mini-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #1769aa;
    background: rgba(23, 105, 170, 0.10);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-text-card .editor-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-text-card .editor-form textarea,
.gallery-text-card .editor-form small {
    grid-column: 1 / -1;
}

.gallery-editor-form,
.gallery-album-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 12px;
    padding: 16px 18px;
}

.compact-gallery-form {
    padding-top: 0;
}

.gallery-editor-form > div,
.gallery-album-form > div,
.gallery-picture-fields,
.gallery-picture-side {
    display: grid;
    gap: 6px;
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 800;
}

.gallery-editor-form .editor-input,
.gallery-album-form .editor-input,
.gallery-picture-row .editor-input {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.88rem;
}

.gallery-editor-form textarea.editor-input,
.gallery-album-form textarea.editor-input,
.gallery-picture-row textarea.editor-input {
    min-height: 64px;
}

.gallery-editor-form .wide-field,
.gallery-album-form .wide-field {
    grid-column: 1 / -1;
}

.gallery-admin-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    padding: 16px 18px 18px;
}

.gallery-admin-album {
    overflow: hidden;
    border: 1px solid rgba(23, 105, 170, 0.13);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 33, 47, 0.07);
}

.gallery-admin-album[open] {
    grid-column: 1 / -1;
}

.gallery-album-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #07166d, #1769aa);
    cursor: pointer;
    list-style: none;
}

.gallery-album-titlebar::-webkit-details-marker {
    display: none;
}

.gallery-album-titlebar span {
    display: block;
    margin-bottom: 3px;
    color: #bfcaff;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gallery-album-titlebar h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
}

.gallery-album-summary-meta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-album-summary-meta strong {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.10);
}

.gallery-album-summary-meta em {
    color: #ffffff;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    opacity: 0.82;
}

.gallery-admin-album[open] .gallery-album-summary-meta em {
    opacity: 1;
}

.gallery-admin-album[open] .gallery-album-summary-meta em {
    font-size: 0;
}

.gallery-admin-album[open] .gallery-album-summary-meta em::after {
    content: "Close album";
    font-size: 0.72rem;
}

.gallery-album-panel-editor {
    border-top: 1px solid rgba(217, 228, 234, 0.8);
}

.gallery-album-form {
    grid-template-columns: minmax(0, 1fr) 110px;
    align-items: end;
    border-bottom: 1px solid var(--line);
    background: #f7fbfd;
}

.gallery-album-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.gallery-drop-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.gallery-drop-box {
    min-height: 66px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 12px 14px;
    border: 1px dashed rgba(23, 105, 170, 0.38);
    border-radius: 8px;
    color: #07166d;
    background: #f7fbfd;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.gallery-drop-box.is-dragging {
    border-color: #1769aa;
    background: rgba(23, 105, 170, 0.10);
    box-shadow: inset 0 0 0 1px rgba(23, 105, 170, 0.18);
}

.gallery-drop-box input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.gallery-drop-box span {
    font-size: 0.9rem;
    font-weight: 900;
}

.gallery-drop-box small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.gallery-picture-list {
    display: grid;
    gap: 8px;
    padding: 12px;
    background: #fbfdff;
}

.gallery-picture-item {
    overflow: hidden;
    border: 1px solid rgba(217, 228, 234, 0.82);
    border-radius: 8px;
    background: #ffffff;
}

.gallery-picture-item[open] {
    border-color: rgba(23, 105, 170, 0.24);
    box-shadow: 0 8px 20px rgba(16, 33, 47, 0.06);
}

.gallery-picture-summary {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    list-style: none;
}

.gallery-picture-summary::-webkit-details-marker {
    display: none;
}

.gallery-picture-summary-text {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.gallery-picture-summary-text strong {
    overflow: hidden;
    color: #07166d;
    font-size: 0.9rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-picture-summary-text small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.gallery-picture-summary em {
    color: #1769aa;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 900;
}

.gallery-picture-item[open] .gallery-picture-summary em {
    font-size: 0;
}

.gallery-picture-item[open] .gallery-picture-summary em::after {
    content: "Close picture";
    font-size: 0.74rem;
}

.gallery-picture-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 142px;
    gap: 10px;
    align-items: start;
    padding: 9px;
    border: 1px solid rgba(217, 228, 234, 0.82);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.gallery-picture-thumb {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(217, 228, 234, 0.92);
    background: #f0f6fb;
    aspect-ratio: 4 / 3;
    max-height: 74px;
}

.gallery-picture-thumb.small {
    width: 56px;
    height: 42px;
    aspect-ratio: auto;
    max-height: none;
}

.gallery-picture-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-picture-side .mini-button {
    width: 100%;
}

.empty-editor-note {
    margin: 0;
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.topbar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.nav-links,
.hero-actions,
.stats,
.panel-header,
.patient-card,
.contact {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--white);
    background: var(--red);
    font-size: 1.55rem;
    line-height: 1;
    box-shadow: 0 12px 26px rgba(223, 35, 57, 0.28);
}

.nav-links {
    gap: 26px;
    color: var(--muted);
    font-weight: 600;
}

.nav-links a:hover,
.nav-action:hover {
    color: var(--red-dark);
}

.nav-action {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--action-text, inherit);
    background: var(--action-bg, rgba(255, 255, 255, 0.72));
    font-weight: 700;
}

.hero {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 92px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
    align-items: center;
    gap: clamp(36px, 7vw, 86px);
    padding: 28px 0 78px;
}

.hero-copy {
    max-width: 700px;
}

.eyebrow {
    display: inline-flex;
    color: var(--red-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: clamp(3rem, 6.8vw, 5.9rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero p {
    max-width: 610px;
    color: var(--muted);
    font-size: 1.14rem;
    line-height: 1.75;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0 30px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.button.primary {
    color: var(--white);
    background: var(--red);
    box-shadow: 0 16px 32px rgba(223, 35, 57, 0.28);
}

.button.secondary {
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
}

.stats {
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
}

.stats div {
    min-width: 132px;
    padding: 16px 18px;
    border: 1px solid rgba(217, 228, 234, 0.82);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
}

.stats dt {
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 800;
}

.stats dd {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.response-panel {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.response-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(23, 105, 170, 0.14), transparent 45%);
    pointer-events: none;
}

.response-panel > * {
    position: relative;
}

.panel-header {
    justify-content: space-between;
    margin-bottom: 16px;
    font-weight: 800;
}

.panel-header strong {
    padding: 7px 10px;
    border-radius: 999px;
    color: #0d6f3f;
    background: #dff7e9;
    font-size: 0.78rem;
}

.map-card {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(16, 33, 47, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(16, 33, 47, 0.06) 1px, transparent 1px),
        linear-gradient(135deg, #e9f4f6, #fefefe);
    background-size: 38px 38px;
}

.route-line {
    position: absolute;
    width: 76%;
    height: 6px;
    left: 12%;
    top: 52%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--teal), var(--blue), var(--red));
    transform: rotate(-18deg);
    box-shadow: 0 10px 18px rgba(23, 105, 170, 0.2);
}

.pin {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 4px solid var(--white);
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 10px 18px rgba(16, 33, 47, 0.24);
}

.pin-a {
    left: 18%;
    top: 58%;
}

.pin-b {
    left: 48%;
    top: 40%;
    background: var(--blue);
}

.pin-c {
    right: 17%;
    top: 29%;
    background: var(--teal);
}

.patient-card {
    gap: 12px;
    margin: -34px 14px 16px;
    padding: 16px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 36px rgba(16, 33, 47, 0.14);
}

.status-dot {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 7px rgba(223, 35, 57, 0.12);
}

.patient-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.time {
    margin-left: auto;
    color: var(--red-dark);
    font-weight: 800;
}

.patient-grid,
.features {
    display: grid;
    gap: 16px;
}

.patient-grid {
    grid-template-columns: 1fr 1fr;
}

.patient-grid article,
.features article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.patient-grid span,
.timeline span {
    color: var(--muted);
}

.patient-grid strong {
    display: block;
    margin-top: 8px;
    color: var(--navy);
    font-size: 1.15rem;
}

.feature-band,
.workflow,
.new-section,
.contact {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 28px;
    padding: clamp(30px, 6vw, 58px);
    border-radius: 8px;
}

.feature-band {
    background: var(--white);
    box-shadow: 0 18px 46px rgba(16, 33, 47, 0.08);
}

.section-heading {
    max-width: 620px;
    margin-bottom: 26px;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 3.8vw, 3.6rem);
    line-height: 1;
}

.features {
    grid-template-columns: repeat(3, 1fr);
}

.icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: var(--white);
    background: var(--navy);
    font-weight: 800;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.features p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.workflow {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
    gap: 42px;
    background: var(--navy);
    color: var(--white);
}

.workflow .eyebrow {
    color: #7ee3db;
}

.timeline {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: steps;
}

.timeline li {
    position: relative;
    padding: 18px 18px 18px 62px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    counter-increment: steps;
}

.timeline li::before {
    content: counter(steps);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--red);
    font-weight: 800;
}

.timeline strong,
.timeline span {
    display: block;
}

.timeline span {
    margin-top: 8px;
    color: #c6d7e4;
}

.new-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: start;
    background: var(--white);
    border: 1px solid var(--line);
}

.new-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.new-section-grid article {
    min-height: 150px;
    padding: 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(14, 159, 154, 0.12), rgba(23, 105, 170, 0.08));
    border: 1px solid rgba(14, 159, 154, 0.18);
}

.new-section-grid strong,
.new-section-grid span {
    display: block;
}

.new-section-grid strong {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 1.08rem;
}

.new-section-grid span {
    color: var(--muted);
    line-height: 1.65;
}

.contact {
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 48px;
    background: linear-gradient(135deg, #ffffff, #eaf7f7);
    border: 1px solid var(--line);
}

.contact h2 {
    max-width: 760px;
}

.contact-hero,
.contact-main,
.locations-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 28px;
}

.inner-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(58px, 9vw, 104px) 0 clamp(34px, 6vw, 58px);
    text-align: center;
}

.inner-hero h1 {
    max-width: 860px;
    margin-right: auto;
    margin-bottom: 18px;
    margin-left: auto;
    color: #07166d;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1;
}

.inner-hero p {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    color: var(--muted);
    font-size: 1.16rem;
    line-height: 1.75;
}

.inner-hero .eyebrow {
    justify-content: center;
}

.inner-card-grid,
.inner-news-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto clamp(52px, 8vw, 88px);
}

.inner-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.inner-card-grid article {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 38px rgba(16, 33, 47, 0.08);
    text-align: center;
}

.inner-card-grid h2 {
    margin-bottom: 12px;
    color: #07166d;
    font-size: 1.35rem;
    line-height: 1.25;
}

.inner-card-grid p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}

.contact-hero {
    padding: clamp(42px, 8vw, 86px) 0 clamp(28px, 5vw, 48px);
}

.contact-hero-pro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

.contact-hero h1 {
    margin-bottom: 16px;
}

.contact-hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.16rem;
    line-height: 1.75;
}

.contact-hero-card {
    padding: 24px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, #07166d, #df2339);
    box-shadow: 0 18px 38px rgba(16, 33, 47, 0.16);
}

.contact-hero-card span,
.contact-hero-card strong {
    display: block;
}

.contact-hero-card span {
    margin-bottom: 10px;
    color: #dce5ff;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-hero-card strong {
    font-size: 1.6rem;
    line-height: 1.15;
}

.contact-hero-card p {
    margin: 14px 0 0;
    color: #eef3ff;
}

.contact-process {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 28px;
}

.process-grid article > span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 50%;
    color: var(--white);
    background: #07166d;
    font-size: 0.78rem;
    font-weight: 900;
}

.contact-main-pro {
    margin-top: clamp(36px, 5vw, 72px);
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.contact-info-panel h2 {
    margin-bottom: 14px;
    color: #07166d;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.05;
}

.contact-info-panel > p {
    color: var(--muted);
    line-height: 1.7;
}

.contact-note-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.contact-note-list div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.contact-note-list strong,
.contact-note-list span {
    display: block;
}

.contact-note-list strong {
    color: #07166d;
    margin-bottom: 5px;
}

.contact-note-list span {
    color: var(--muted);
    line-height: 1.55;
}

.contact-process {
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 38px rgba(16, 33, 47, 0.08);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.process-grid article {
    padding: 20px;
    border-radius: 8px;
    background: var(--paper);
}

.process-grid h3 {
    color: #07166d;
}

.process-grid p {
    color: var(--muted);
    line-height: 1.65;
}

.contact-main {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: 28px;
    align-items: start;
}

.talk-panel,
.enquiry-panel,
.locations-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 46px rgba(16, 33, 47, 0.08);
}

.talk-panel,
.enquiry-panel {
    padding: clamp(24px, 4vw, 38px);
}

.contact-methods {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.contact-methods article {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.contact-methods article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-methods h2 {
    margin-bottom: 8px;
    font-size: 1.18rem;
    line-height: 1.25;
}

.contact-methods p,
.section-heading.compact p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.section-heading.compact {
    margin-bottom: 22px;
}

.section-heading.compact h2 {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.contact-input {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.contact-input:focus {
    outline: 3px solid rgba(14, 159, 154, 0.18);
    border-color: var(--teal);
}

.contact-form button {
    justify-self: start;
    border: 0;
    cursor: pointer;
}

.contact-editor-card .admin-card-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px 18px;
}

.contact-editor-card .admin-card-heading h2,
.contact-editor-card .admin-card-heading p {
    grid-column: 1;
}

.contact-editor-card .admin-card-heading .mini-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    text-decoration: none;
}

.editor-section-note {
    grid-column: 1 / -1;
    margin: -2px 0 4px;
    padding: 10px 12px;
    border-left: 3px solid #1769aa;
    border-radius: 8px;
    color: #486174;
    background: #f5f9fc;
    font-size: 0.9rem;
    line-height: 1.55;
}

.locations-section {
    padding: clamp(28px, 5vw, 48px);
    margin-bottom: 54px;
}

.auth-shell,
.editor-shell {
    min-height: 100vh;
}

.auth-shell {
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.auth-card {
    width: min(480px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.auth-card .brand {
    margin-bottom: 28px;
}

.auth-card h1,
.editor-heading h1 {
    margin-bottom: 12px;
    font-size: clamp(2.1rem, 6vw, 3.4rem);
    line-height: 1;
}

.login-form,
.editor-form {
    display: grid;
    gap: 18px;
}

.login-form label,
.editor-form label {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.login-form input,
.editor-input {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.login-form input:focus,
.editor-input:focus {
    outline: 3px solid rgba(14, 159, 154, 0.18);
    border-color: var(--teal);
}

.form-message {
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.form-message.error {
    color: var(--red-dark);
    background: rgba(223, 35, 57, 0.1);
}

.form-message.success {
    color: #0d6f3f;
    background: #dff7e9;
}

.auth-switch {
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.auth-switch a {
    color: var(--red-dark);
    font-weight: 800;
}

.editor-topbar {
    align-items: center;
}

.editor-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-actions form {
    margin: 0;
}

.logout-button {
    cursor: pointer;
    color: var(--ink);
    font: inherit;
}

.editor-panel {
    width: min(1040px, calc(100% - 32px));
    margin: 12px auto 56px;
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 46px rgba(16, 33, 47, 0.08);
}

.editor-heading {
    max-width: 680px;
    margin-bottom: 28px;
}

.editor-heading p {
    color: var(--muted);
    line-height: 1.65;
}

.editor-form {
    gap: 22px;
}

.editor-form fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.editor-form legend {
    padding: 0 8px;
    color: var(--red-dark);
    font-weight: 800;
}

.editor-form textarea,
.editor-form small,
.editor-form label[for="id_hero_text"],
.editor-form label[for="id_stats_text"],
.editor-form label[for="id_features_text"],
.editor-form label[for="id_workflow_text"],
.editor-form label[for="id_new_section_cards_text"],
.editor-form label[for="id_page_subtitle"],
.editor-form label[for="id_form_intro"],
#id_hero_text,
#id_stats_text,
#id_features_text,
#id_workflow_text,
#id_new_section_cards_text,
#id_page_subtitle,
#id_form_intro {
    grid-column: 1 / -1;
}

.editor-form small {
    margin-top: -8px;
    color: var(--muted);
}

.save-button {
    justify-self: start;
    border: 0;
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(217, 228, 234, 0.82);
    background: var(--header-bg, rgba(255, 255, 255, 0.94));
    backdrop-filter: blur(16px);
}

.home-nav,
.home-hero,
.stats-band,
.page-section,
.cta-section,
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.home-nav {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-brand,
.home-links,
.footer-brand,
.footer-links {
    display: flex;
    align-items: center;
}

.home-brand {
    gap: 12px;
}

.home-brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.home-brand span {
    display: grid;
    gap: 2px;
}

.home-brand strong {
    color: #07166d;
    font-size: 1.35rem;
    font-weight: 900;
}

.home-brand small {
    max-width: 280px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

.home-links {
    gap: 8px;
    color: var(--nav-text, var(--muted));
    font-weight: 800;
}

.home-menu-toggle {
    position: relative;
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    grid-template-rows: repeat(3, auto);
    place-items: center;
    gap: 5px;
    border: 1px solid rgba(7, 22, 109, 0.10);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 33, 47, 0.07);
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-menu-toggle::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 11px;
    background: rgba(7, 22, 109, 0.04);
    pointer-events: none;
}

.home-menu-toggle span {
    position: relative;
    width: 19px;
    height: 2.5px;
    display: block;
    border-radius: 999px;
    background: #07166d;
    transition: transform 180ms ease, opacity 160ms ease, background 180ms ease;
}

.home-menu-toggle span:nth-child(1) {
    width: 19px;
    justify-self: center;
    margin-right: 0;
}

.home-menu-toggle span:nth-child(2) {
    width: 19px;
}

.home-menu-toggle span:nth-child(3) {
    width: 19px;
    justify-self: center;
    margin-left: 0;
}

.home-menu-toggle:hover,
.home-menu-toggle:focus-visible {
    border-color: rgba(7, 22, 109, 0.18);
    box-shadow: 0 12px 26px rgba(16, 33, 47, 0.10);
}

.home-menu-toggle:focus-visible {
    outline: 3px solid rgba(23, 105, 170, 0.18);
    outline-offset: 3px;
}

.home-nav.is-open .home-menu-toggle {
    border-color: rgba(223, 35, 57, 0.22);
}

.home-nav.is-open .home-menu-toggle span:nth-child(1) {
    width: 19px;
    margin-right: 0;
    transform: translateY(7px) rotate(45deg);
}

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

.home-nav.is-open .home-menu-toggle span:nth-child(3) {
    width: 19px;
    margin-left: 0;
    transform: translateY(-7px) rotate(-45deg);
}

.home-nav-overlay {
    display: none;
}

.home-links > a,
.nav-dropdown > a {
    position: relative;
    padding: 10px 12px;
    border-radius: 6px;
    transition: color 160ms ease, background 160ms ease;
}

.home-links > a::after,
.nav-dropdown > a::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 5px;
    left: 12px;
    height: 2px;
    border-radius: 999px;
    background: #df2339;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.home-links > a:hover,
.nav-dropdown:hover > a,
.nav-dropdown:focus-within > a {
    color: var(--nav-hover, #07166d);
    background: rgba(7, 22, 109, 0.06);
}

.home-links > a:hover::after,
.nav-dropdown:hover > a::after,
.nav-dropdown:focus-within > a::after {
    transform: scaleX(1);
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 16px 0;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    display: grid;
    gap: 2px;
    padding: 8px;
    border: 1px solid rgba(7, 22, 109, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(16, 33, 47, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

.nav-dropdown-menu a {
    position: relative;
    padding: 11px 12px 11px 16px;
    border-radius: 6px;
    color: #24384a;
    white-space: nowrap;
    font-weight: 800;
}

.nav-dropdown-menu a:hover {
    color: #07166d;
    background: rgba(7, 22, 109, 0.08);
}

.nav-dropdown-menu a::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 6px;
    width: 3px;
    border-radius: 999px;
    background: #df2339;
    opacity: 0;
}

.nav-dropdown-menu a:hover::before {
    opacity: 1;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.home-links a:hover,
.footer-links a:hover {
    color: var(--nav-hover, #07166d);
}

.home-main {
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-banner {
    width: 100%;
    margin: 0;
}

.hero-track {
    position: relative;
    height: var(--slider-max-height, 760px);
    min-height: var(--slider-min-height, 560px);
}

.home-hero {
    min-height: calc(100vh - 86px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
    align-items: center;
    gap: clamp(34px, 6vw, 76px);
    padding: clamp(42px, 7vw, 88px) 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateX(28px);
    transition: opacity 760ms ease, transform 760ms ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.banner-slide {
    height: var(--slider-max-height, 760px);
    min-height: var(--slider-min-height, 560px);
    overflow: hidden;
    display: grid;
    align-items: center;
    background: #07166d;
}

.banner-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(7, 16, 50, 0.84), rgba(7, 16, 50, 0.50) 46%, rgba(7, 16, 50, 0.10) 72%),
        linear-gradient(0deg, rgba(7, 16, 50, 0.40), rgba(7, 16, 50, 0.04) 48%);
    clip-path: none;
}

.banner-slide::after {
    content: none;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 12px;
    background: linear-gradient(90deg, #0b8f25, #25a936);
}

.banner-slide img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--slider-image-zoom, 105%);
    height: var(--slider-image-zoom, 105%);
    object-fit: cover;
    transform: translate(-50%, -50%);
    transition: transform 6800ms ease;
}

.banner-slide.is-active img {
    transform: translate(-50%, -50%) scale(1.04);
}

.banner-slide .banner-overlay span,
.banner-slide .banner-overlay h1,
.banner-slide .banner-overlay h2,
.banner-slide .banner-overlay p {
    opacity: 0;
    transform: translateY(18px);
}

.banner-slide.is-active .banner-overlay span {
    animation: heroTextIn 620ms ease forwards;
}

.banner-slide.is-active .banner-overlay h1,
.banner-slide.is-active .banner-overlay h2 {
    animation: heroTextIn 720ms ease 120ms forwards;
}

.banner-slide.is-active .banner-overlay p {
    animation: heroTextIn 720ms ease 240ms forwards;
}

@keyframes heroTextIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-overlay {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(110px, 15vh, 170px) 0 clamp(130px, 17vh, 190px);
    color: var(--white);
}

.banner-overlay span {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-left: 4px solid #df2339;
    color: #07166d;
    background: rgba(255, 255, 255, 0.96);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.banner-overlay h1,
.banner-overlay h2 {
    max-width: 760px;
    margin-bottom: 18px;
    color: var(--white);
    font-size: clamp(24px, var(--slider-title-size, 46px), 90px);
    line-height: 1.08;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.banner-overlay p {
    max-width: 680px;
    margin-bottom: 0;
    color: #eef3ff;
    font-size: clamp(12px, var(--slider-text-size, 18px), 32px);
    line-height: 1.72;
}

.hero-content {
    position: relative;
    padding-left: clamp(0px, 2vw, 22px);
}

.hero-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 5px;
    height: 118px;
    border-radius: 999px;
    background: #07166d;
}

.hero-content h1 {
    max-width: 780px;
    margin-bottom: 22px;
    color: #07166d;
    font-size: clamp(2.65rem, 5.7vw, 5.05rem);
    line-height: 1;
}

.hero-content h2 {
    max-width: 780px;
    margin-bottom: 22px;
    color: #07166d;
    font-size: clamp(2.55rem, 5.1vw, 4.7rem);
    line-height: 1.02;
}

.hero-content p {
    max-width: 660px;
    color: var(--muted);
    font-size: 1.16rem;
    line-height: 1.75;
}

.hero-emblem {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(7, 22, 109, 0.12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 28%, rgba(7, 22, 109, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 241, 255, 0.92)),
        var(--white);
    box-shadow: var(--shadow);
}

.hero-image-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(7, 22, 109, 0.12);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.hero-image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 10px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    pointer-events: none;
}

.hero-image-frame img {
    width: 100%;
    min-height: 430px;
    display: block;
    object-fit: cover;
}

.hero-emblem::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(7, 22, 109, 0.10);
    border-radius: 8px;
    pointer-events: none;
}

.emblem-ring {
    position: relative;
    width: min(310px, 78vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, #07166d, #df2339) border-box;
    border: 10px solid transparent;
    box-shadow: 0 22px 42px rgba(7, 22, 109, 0.18);
}

.hero-emblem img {
    width: 86%;
    height: auto;
}

.motto-card {
    position: relative;
    width: 100%;
    padding: 18px;
    border-radius: 8px;
    color: var(--white);
    background: #07166d;
}

.motto-card span,
.motto-card strong {
    display: block;
}

.motto-card span {
    margin-bottom: 6px;
    color: #c9d7ff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.motto-card strong {
    font-size: 1.12rem;
    line-height: 1.35;
}

.hero-badges {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.hero-badges span {
    padding: 8px 10px;
    border: 1px solid rgba(7, 22, 109, 0.14);
    border-radius: 999px;
    color: #07166d;
    background: var(--white);
    font-size: 0.78rem;
    font-weight: 900;
}

.hero-feature-card,
.hero-quote-card {
    min-height: 420px;
    display: grid;
    align-content: center;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(7, 22, 109, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(7, 22, 109, 0.96), rgba(13, 28, 121, 0.9)),
        #07166d;
    color: var(--white);
    box-shadow: var(--shadow);
}

.hero-feature-card span {
    margin-bottom: 16px;
    color: #d7ddff;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-feature-card strong {
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1;
}

.hero-feature-card p {
    margin: 22px 0 0;
    color: #d7ddff;
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-quote-card {
    justify-items: center;
    text-align: center;
    background:
        radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.18), transparent 35%),
        linear-gradient(145deg, #ffffff, #e9edff);
    color: #07166d;
}

.hero-quote-card img {
    width: min(220px, 70vw);
    height: auto;
    margin-bottom: 24px;
}

.hero-quote-card blockquote {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.12;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    backdrop-filter: none;
}

.slider-button,
.slider-dots button {
    border: 0;
    cursor: pointer;
}

.slider-button {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--white);
    background: rgba(7, 16, 50, 0.50);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 24px rgba(7, 22, 109, 0.18);
    backdrop-filter: blur(10px);
    font-size: 1.35rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 160ms ease, transform 160ms ease;
}

.slider-button:hover {
    background: rgba(223, 35, 57, 0.92);
    transform: translateY(-50%) scale(1.05);
}

.slider-prev {
    left: 28px;
    right: auto;
}

.slider-next {
    right: 28px;
}

.slider-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.slider-dots button {
    width: 40px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.slider-dots button.is-active {
    width: 40px;
    border-radius: 999px;
    background: #f4df22;
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: clamp(34px, 5vw, 64px);
    margin-bottom: clamp(46px, 6vw, 76px);
}

.stats-band article {
    position: relative;
    overflow: hidden;
    min-height: 164px;
    padding: 22px 22px 24px;
    border: 1px solid rgba(7, 22, 109, 0.10);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.96)),
        var(--white);
    box-shadow: 0 18px 34px rgba(16, 33, 47, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.stats-band article:hover {
    transform: translateY(-3px);
    border-color: rgba(7, 22, 109, 0.18);
    box-shadow: 0 22px 42px rgba(16, 33, 47, 0.10);
}

.stats-band article::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #07166d 0%, #1769aa 58%, #df2339 100%);
}

.stats-band article::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-right: 2px solid rgba(223, 35, 57, 0.18);
    border-bottom: 2px solid rgba(7, 22, 109, 0.14);
    border-radius: 0 0 8px 0;
}

.stats-band strong,
.stats-band span {
    display: block;
}

.stat-icon {
    width: 38px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 16px;
    border: 1px solid rgba(7, 22, 109, 0.12);
    border-radius: 8px;
    color: #07166d;
    background: rgba(7, 22, 109, 0.05);
    font-size: 0.72rem;
    font-weight: 900;
}

.stats-band strong {
    position: relative;
    color: #07166d;
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    font-weight: 900;
    line-height: 1;
    z-index: 1;
}

.stats-band article > span:not(.stat-icon) {
    position: relative;
    margin-top: 9px;
    color: #425466;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 1;
}

.page-section {
    padding: clamp(42px, 7vw, 78px) 0;
}

.section-kicker {
    max-width: 760px;
    margin-bottom: 30px;
}

.section-kicker h2 {
    color: #07166d;
}

.about-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 5vw, 58px);
    align-items: start;
}

.about-grid,
.service-grid {
    display: grid;
    gap: 16px;
}

.about-grid {
    grid-template-columns: 1fr 1fr;
}

.about-grid article,
.service-grid article {
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(16, 33, 47, 0.07);
}

.about-grid h3,
.service-grid h3 {
    color: #07166d;
}

.about-grid p,
.service-grid p,
.purpose-list p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}

.purpose-section {
    padding-top: clamp(44px, 7vw, 82px);
    padding-bottom: clamp(48px, 7vw, 88px);
    background: transparent;
}

.purpose-section::before {
    content: none;
}

.purpose-section::after {
    content: none;
}

.purpose-shell {
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid rgba(217, 228, 234, 0.95);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(16, 33, 47, 0.06);
}

.purpose-heading {
    max-width: none;
    margin: 0 0 30px;
    padding-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid #d8e3eb;
    text-align: left;
}

.purpose-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 7px 11px;
    border: 1px solid rgba(11, 45, 74, 0.14);
    border-radius: 999px;
    color: #0b2d4a;
    background: #f4f8fb;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.purpose-section h2 {
    max-width: 620px;
    margin: 0;
    color: var(--navy);
    font-size: var(--purpose-heading-size, 30px);
    font-weight: 800;
    line-height: 1.25;
}

.purpose-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.purpose-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 26px;
    border: 1px solid #d8e3eb;
    border-radius: 8px;
    background: #fbfdfe;
    box-shadow: none;
    transition: border-color 160ms ease, transform 160ms ease;
}

.purpose-card::before {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: var(--purpose-accent, var(--red));
}

.purpose-card::after {
    content: none;
}

.purpose-card:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 45, 74, 0.22);
    background: #ffffff;
    box-shadow: none;
}

.purpose-card-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    color: var(--purpose-accent, #0b2d4a);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.purpose-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: var(--navy);
    font-size: var(--purpose-card-title-size, 1.3rem);
    font-weight: 800;
    line-height: 1.22;
}

.purpose-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: var(--purpose-card-text-size, 0.98rem);
    line-height: 1.68;
}

.purpose-card-1 {
    --purpose-accent: var(--red);
    --purpose-accent-soft: rgba(223, 35, 57, 0.11);
    --purpose-shadow: rgba(223, 35, 57, 0.18);
}

.purpose-card-2 {
    --purpose-accent: var(--blue);
    --purpose-accent-soft: rgba(23, 105, 170, 0.11);
    --purpose-shadow: rgba(23, 105, 170, 0.18);
}

.purpose-card-3 {
    --purpose-accent: var(--teal);
    --purpose-accent-soft: rgba(14, 159, 154, 0.12);
    --purpose-shadow: rgba(14, 159, 154, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .purpose-card {
        transition: none;
    }
}

.service-grid {
    grid-template-columns: repeat(3, 1fr);
}

.news-section {
    padding-top: clamp(48px, 8vw, 86px);
    padding-bottom: clamp(52px, 8vw, 92px);
}

.news-heading {
    display: grid;
    justify-items: center;
    gap: 18px;
    max-width: 780px;
    margin-right: auto;
    margin-bottom: 34px;
    margin-left: auto;
    text-align: center;
}

.news-heading .eyebrow {
    justify-content: center;
    margin-bottom: 8px;
}

.news-heading > div {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.news-heading h2 {
    color: #07166d;
    max-width: 720px;
}

.section-link {
    flex: 0 0 auto;
    padding: 12px 18px;
    border: 1px solid #07166d;
    border-radius: 8px;
    color: #07166d;
    background: var(--white);
    font-weight: 900;
}

.section-link:hover {
    color: var(--white);
    background: #07166d;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-footer-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.news-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 38px rgba(16, 33, 47, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(16, 33, 47, 0.14);
}

.news-thumb {
    min-height: 170px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background:
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.28), transparent 28%),
        linear-gradient(135deg, #07166d, #df2339);
}

.news-thumb img {
    width: calc(100% + 36px);
    height: calc(100% + 36px);
    min-height: 206px;
    margin: -18px;
    display: block;
    object-fit: cover;
}

.news-thumb span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #07166d;
    background: var(--white);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.news-card time,
.news-card h3,
.news-card p,
.news-card a {
    margin-right: 20px;
    margin-left: 20px;
}

.news-card time {
    display: block;
    margin-top: 20px;
    color: var(--red-dark);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.news-card h3 {
    margin-top: 10px;
    color: #07166d;
    font-size: 1.22rem;
    line-height: 1.3;
}

.news-card p {
    color: var(--muted);
    line-height: 1.65;
}

.news-card a {
    display: inline-flex;
    margin-bottom: 22px;
    color: #07166d;
    font-weight: 900;
}

.partners-section {
    margin-bottom: clamp(48px, 7vw, 86px);
    padding: clamp(32px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 253, 0.96));
    box-shadow: 0 18px 42px rgba(16, 33, 47, 0.08);
}

.partners-heading {
    display: grid;
    justify-items: center;
    max-width: 620px;
    margin: 0 auto 26px;
    text-align: center;
}

.partners-heading .eyebrow {
    justify-content: center;
    margin-bottom: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(223, 35, 57, 0.16);
    border-radius: 8px;
    background: rgba(223, 35, 57, 0.06);
}

.partners-heading h2 {
    margin-bottom: 8px;
    color: #07166d;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.18;
}

.partners-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    font-weight: 650;
    line-height: 1.6;
}

.partners-marquee {
    position: relative;
    overflow: hidden;
    padding: 4px 0;
}

.partners-marquee::before,
.partners-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: min(90px, 16vw);
    pointer-events: none;
}

.partners-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
}

.partners-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #ffffff, rgba(255, 255, 255, 0));
}

.partners-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: partnersScroll 28s linear infinite;
}

.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

@keyframes partnersScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 8px));
    }
}

.partner-card {
    width: clamp(240px, 23vw, 300px);
    min-height: 174px;
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 22px 18px;
    border: 1px solid #d9e4ea;
    border-radius: 8px;
    background: #ffffff;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    border-color: rgba(7, 22, 109, 0.18);
    box-shadow: 0 20px 36px rgba(16, 33, 47, 0.12);
}

.partner-mark {
    width: 72px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #07166d, #1769aa);
    font-size: 0.9rem;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.partner-card:nth-child(2) .partner-mark {
    background: linear-gradient(135deg, #df2339, #b31327);
}

.partner-card:nth-child(3) .partner-mark {
    background: linear-gradient(135deg, #0e9f9a, #1769aa);
}

.partner-card:nth-child(4) .partner-mark {
    background: linear-gradient(135deg, #07166d, #df2339);
}

.partner-card strong {
    display: block;
    color: #07166d;
    font-size: 1rem;
    line-height: 1.35;
}

.partner-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.55;
}

.cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 56px;
    padding: clamp(30px, 5vw, 54px);
    border-radius: 8px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(223, 35, 57, 0.94), rgba(7, 22, 109, 0.96));
}

.cta-section .eyebrow,
.cta-section h2 {
    color: var(--white);
}

.cta-section h2 {
    max-width: 780px;
}

.cta-section .button.primary {
    flex: 0 0 auto;
    color: #07166d;
    background: var(--white);
    box-shadow: none;
}

.site-footer {
    color: var(--white);
    background: #071032;
}

.footer-inner {
    padding: clamp(34px, 6vw, 64px) 0 24px;
}

.footer-subscribe {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 28px;
    align-items: center;
    padding-bottom: 34px;
    margin-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-subscribe .eyebrow {
    color: #bfcaff;
}

.footer-subscribe h2 {
    max-width: 720px;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.subscribe-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.subscribe-form input {
    min-height: 52px;
    min-width: 0;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    font: inherit;
}

.subscribe-form input::placeholder {
    color: #c8d1f4;
}

.subscribe-form button {
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    color: #07166d;
    background: var(--white);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.subscribe-messages {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.subscribe-message {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    line-height: 1.45;
}

.subscribe-message.success {
    border-color: rgba(110, 231, 183, 0.45);
    background: rgba(20, 108, 67, 0.24);
}

.subscribe-message.error,
.subscribe-message.warning {
    border-color: rgba(252, 211, 77, 0.55);
    background: rgba(138, 90, 0, 0.24);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}

.footer-brand {
    align-items: flex-start;
    gap: 14px;
}

.footer-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: var(--white);
    border-radius: 50%;
}

.footer-brand strong {
    font-size: 1.2rem;
    font-weight: 900;
}

.footer-brand p {
    margin: 4px 0 0;
    color: #c8d1f4;
    line-height: 1.5;
}

.footer-columns h3 {
    margin-top: 0;
    color: var(--white);
    font-size: 1rem;
}

.footer-columns ul {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    color: #c8d1f4;
    line-height: 1.55;
    list-style: none;
}

.footer-columns a:hover,
.footer-bottom a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #c8d1f4;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #e8edff;
    font-weight: 900;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    background: #f7fbfd;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    color: #ffffff;
    background: linear-gradient(180deg, #071f36 0%, #0b2d4a 58%, #061a2d 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 18px 0 42px rgba(11, 45, 74, 0.16);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 18px 16px 16px;
    color: var(--white);
    font-size: 0.98rem;
    font-weight: 900;
    background: rgba(5, 14, 22, 0.20);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--white);
    padding: 4px;
}

.admin-menu {
    display: grid;
    gap: 8px;
    padding: 18px 12px 30px;
}

.admin-menu p {
    margin: 18px 4px 4px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-menu a:hover,
.admin-menu a.is-active {
    background: rgba(23, 105, 170, 0.28);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
}

.admin-menu span {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 22px;
    flex: 0 0 24px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.62rem;
    font-weight: 800;
}

.admin-menu a:hover span,
.admin-menu a.is-active span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.admin-menu-group {
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.045);
}

.admin-menu-group summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.admin-menu-group summary::-webkit-details-marker {
    display: none;
}

.admin-menu-group summary::after {
    content: "›";
    margin-left: auto;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    font-weight: 900;
    transform: rotate(0deg);
    transition: transform .16s ease;
}

.admin-menu-group[open] summary {
    background: rgba(255, 255, 255, 0.08);
}

.admin-menu-group[open] summary::after {
    content: "›";
    transform: rotate(90deg);
}

.admin-menu-group summary span {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 22px;
    flex: 0 0 24px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.62rem;
    font-weight: 800;
}

.admin-submenu {
    display: grid;
    gap: 3px;
    padding: 6px 7px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-menu .admin-submenu a {
    position: relative;
    min-height: 32px;
    padding: 7px 10px 7px 34px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.74rem;
    font-weight: 600;
}

.admin-menu .admin-submenu a::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.34);
    transform: translateY(-50%);
}

.admin-menu .admin-submenu a:hover,
.admin-menu .admin-submenu a.is-active {
    background: #ffffff;
    color: #0b2d4a;
    border-color: #ffffff;
    box-shadow: 0 8px 18px rgba(5, 14, 22, 0.18);
}

.admin-menu .admin-submenu a:hover::before,
.admin-menu .admin-submenu a.is-active::before {
    background: #0b2d4a;
}

.admin-content {
    min-width: 0;
    width: min(1180px, 100%);
    padding: 30px 34px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-header h1 {
    margin-bottom: 0;
    color: #07166d;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.admin-card {
    margin-bottom: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 14px 34px rgba(16, 33, 47, 0.08);
}

.admin-card-heading {
    max-width: none;
    margin-bottom: 0;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    background: #fbfdfc;
}

.admin-card-heading h2 {
    margin-bottom: 8px;
    color: #07166d;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.admin-card-heading p {
    color: var(--muted);
    line-height: 1.65;
}

.compact-admin-form,
.color-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    padding: 22px 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--paper);
}

.branding-grid {
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
}

.logo-upload-field {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.compact-admin-form label,
.color-grid label,
.row-grid label,
.slide-fields label {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.editable-list,
.slide-list {
    display: grid;
    gap: 14px;
    margin-top: 0;
    padding: 22px 24px;
}

.editable-row,
.slide-editor {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.row-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr 0.55fr 0.45fr;
    gap: 14px;
    align-items: end;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.danger-button {
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: #b31327;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.slide-create-form {
    padding: 22px 24px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--line);
}

.slide-editor {
    grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
    align-items: start;
}

.slide-preview {
    overflow: hidden;
    border-radius: 8px;
    background: var(--paper);
}

.slide-preview img {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
}

.slide-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.slide-fields label:nth-of-type(3),
.slide-fields textarea,
.slide-fields .row-actions {
    grid-column: 1 / -1;
}

.navbar-add-form {
    display: grid;
    grid-template-columns: 1.1fr 1.35fr 0.45fr 0.9fr auto auto;
    gap: 14px;
    align-items: end;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.navbar-add-form > div,
.navbar-add-form label:not(.check-field) {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.check-field {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    font-weight: 800;
}

.check-field input {
    width: 18px;
    height: 18px;
    accent-color: #07166d;
}

.check-field.compact {
    min-height: 0;
}

.nav-editor-list {
    padding: 22px 24px 24px;
}

.nav-editor-head,
.nav-editor-row {
    display: grid;
    grid-template-columns: 46px 1.1fr 1.35fr 0.45fr 0.9fr 0.65fr 0.9fr;
    gap: 12px;
    align-items: center;
}

.nav-editor-head {
    padding: 0 12px 10px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-editor-row {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-editor-row.is-dragging {
    border-color: rgba(23, 105, 170, 0.45);
    box-shadow: 0 18px 36px rgba(16, 33, 47, 0.18);
    opacity: 0.86;
}

.nav-reorder-form,
.nav-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.drag-handle {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(23, 105, 170, 0.24);
    border-radius: 8px;
    color: #1769aa;
    background: rgba(23, 105, 170, 0.08);
    font-size: 1rem;
    font-weight: 900;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.nav-editor-row .editor-input {
    min-height: 40px;
    padding: 9px 11px;
}

.mini-button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #07166d;
    border-radius: 8px;
    color: #07166d;
    background: var(--white);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.mini-button.danger {
    border-color: #b31327;
    color: #b31327;
}

.mini-button:hover {
    color: var(--white);
    background: #07166d;
}

.mini-button.danger:hover {
    background: #b31327;
}

.slide-add-form {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr 0.45fr auto;
    gap: 14px;
    align-items: end;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.slide-add-form > div {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.slide-add-form .wide-field {
    grid-column: 1 / 3;
}

.slide-add-form textarea {
    min-height: 92px;
}

.slide-editor-list {
    padding: 22px 24px 24px;
}

.slide-editor-head,
.slide-editor-row {
    display: grid;
    grid-template-columns: 46px 180px minmax(0, 1fr) 80px 92px 130px;
    gap: 14px;
    align-items: center;
}

.slide-editor-head {
    padding: 0 12px 10px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.slide-editor-row {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.slide-editor-row.is-dragging {
    border-color: rgba(23, 105, 170, 0.45);
    box-shadow: 0 18px 36px rgba(16, 33, 47, 0.18);
    opacity: 0.86;
}

.slide-reorder-form {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.slide-editor-row .slide-preview img {
    aspect-ratio: 16 / 9;
}

.slide-content-fields {
    display: grid;
    gap: 8px;
}

.slide-content-fields textarea {
    min-height: 76px;
}

.slide-editor-row .editor-input {
    min-height: 40px;
    padding: 9px 11px;
}

.page-editor-list {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.page-editor-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.page-editor-title span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--white);
    background: #07166d;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.page-editor-title h3 {
    color: #07166d;
}

.page-editor-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.page-editor-fields label {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.page-editor-fields label:nth-of-type(3),
.page-editor-fields label:nth-of-type(4),
.page-editor-fields textarea,
.page-editor-fields small {
    grid-column: 1 / -1;
}

.news-page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(30px, 5vw, 54px) 0 22px;
    text-align: center;
}

.news-page-hero .eyebrow {
    justify-content: center;
}

.news-page-hero h1 {
    max-width: 760px;
    margin-right: auto;
    margin-bottom: 14px;
    margin-left: auto;
    color: #07166d;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
}

.news-layout {
    width: min(1180px, calc(100% - 32px));
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 0 auto clamp(52px, 8vw, 86px);
}

.news-filter-panel {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 22px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 38px rgba(16, 33, 47, 0.08);
}

.news-filter-panel label,
.filter-block {
    display: grid;
    gap: 10px;
}

.news-filter-panel span {
    color: var(--navy);
    font-weight: 900;
}

.news-filter-panel input {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.filter-block h2 {
    margin-bottom: 4px;
    color: #07166d;
    font-size: 1rem;
}

.filter-block a {
    color: var(--muted);
    font-weight: 800;
}

.filter-block a:hover {
    color: #07166d;
}

.filter-block button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: #07166d;
    font: inherit;
    font-weight: 900;
}

.news-list-stack {
    display: grid;
    gap: 22px;
}

.nvi-news-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 38px rgba(16, 33, 47, 0.08);
}

.nvi-news-image {
    overflow: hidden;
    border-radius: 8px;
    background: var(--paper);
}

.nvi-news-image img {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
}

.nvi-news-content time {
    display: block;
    margin-bottom: 10px;
    color: var(--red-dark);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.nvi-news-content h2 {
    margin-bottom: 10px;
    color: #07166d;
    font-size: clamp(1.25rem, 2.3vw, 1.75rem);
    line-height: 1.22;
}

.nvi-news-content p {
    color: var(--muted);
    line-height: 1.65;
}

.news-column-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto clamp(52px, 8vw, 86px);
}

.news-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 120px auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.news-filter-row input,
.news-filter-row select,
.news-filter-row button {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font: inherit;
}

.news-filter-row button {
    border-color: #07166d;
    color: var(--white);
    background: #07166d;
    font-weight: 900;
    cursor: pointer;
}

.news-clear-filter {
    color: #07166d;
    font-weight: 900;
    text-align: center;
}

.news-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-empty-state {
    grid-column: 1 / -1;
    padding: 34px;
    border: 1px dashed #c8d2e1;
    border-radius: 10px;
    background: #f8fafc;
    text-align: center;
}

.news-empty-state strong {
    display: block;
    color: var(--navy);
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.news-empty-state p {
    color: var(--muted);
    margin-bottom: 14px;
}

.news-column-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 38px rgba(16, 33, 47, 0.08);
}

.news-column-image img {
    width: 100%;
    height: 210px;
    display: block;
    object-fit: cover;
}

.news-column-content {
    padding: 20px;
}

.news-column-content time {
    display: block;
    margin-bottom: 10px;
    color: var(--red-dark);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.news-column-content h2 {
    margin-bottom: 10px;
    color: #07166d;
    font-size: 1.22rem;
    line-height: 1.28;
}

.news-column-content p {
    color: var(--muted);
    line-height: 1.65;
}

.news-page-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.news-page-grid {
    width: min(1180px, calc(100% - 32px));
    display: grid;
    gap: 22px;
    margin: 0 auto clamp(52px, 8vw, 86px);
}

.news-list-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 38px rgba(16, 33, 47, 0.08);
}

.news-list-image img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: block;
    object-fit: cover;
}

.news-list-content {
    padding: clamp(22px, 4vw, 34px);
}

.news-list-content span,
.news-list-content time {
    display: inline-flex;
    margin-right: 10px;
    color: var(--red-dark);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.news-list-content h2 {
    margin: 12px 0;
    color: #07166d;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.12;
}

.news-list-content p {
    color: var(--muted);
    line-height: 1.7;
}

.read-link {
    color: #07166d;
    font-weight: 900;
}

.news-detail {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(22px, 4vw, 44px) 0 clamp(40px, 6vw, 64px);
}

.news-detail h1 {
    max-width: 720px;
    margin-top: 10px;
    margin-bottom: 12px;
    color: #07166d;
    font-size: clamp(1.65rem, 2.5vw, 2.35rem);
    line-height: 1.18;
    letter-spacing: 0;
}

.news-detail time {
    display: block;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.news-detail-cover {
    overflow: hidden;
    max-width: 580px;
    margin-bottom: 22px;
    margin-right: auto;
    margin-left: auto;
    border-radius: 8px;
    background: var(--paper);
}

.news-detail-cover img {
    width: 100%;
    height: clamp(170px, 28vw, 260px);
    display: block;
    object-fit: cover;
}

.news-detail .lead {
    color: var(--navy);
    font-size: 1.05rem;
    line-height: 1.7;
}

.news-body {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.news-add-form,
.news-editor-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.news-add-form {
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.news-add-form label,
.news-editor-fields label {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.news-add-form textarea,
.news-add-form label:nth-of-type(5),
.news-add-form label:nth-of-type(6),
.news-add-form .check-field,
.news-add-form .save-button,
.news-editor-fields textarea,
.news-editor-fields label:nth-of-type(5),
.news-editor-fields label:nth-of-type(6),
.news-editor-fields .check-field,
.news-editor-fields .row-actions {
    grid-column: 1 / -1;
}

.news-editor-list {
    display: grid;
    gap: 16px;
    padding: 22px 24px 24px;
}

.news-editor-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.news-editor-preview {
    overflow: hidden;
    border-radius: 8px;
    background: var(--paper);
}

.news-editor-preview img {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
}

.compact-news-add {
    grid-template-columns: 1.4fr 0.8fr 0.75fr 1fr;
}

.compact-news-add > div {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.compact-news-add .wide-field {
    grid-column: 1 / -1;
}

.news-manage-list {
    padding: 22px 24px 24px;
}

.news-manage-head,
.news-manage-item summary {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 130px 110px 90px;
    gap: 14px;
    align-items: center;
}

.news-manage-head {
    padding: 0 12px 10px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.news-manage-item {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.news-manage-item summary {
    padding: 12px;
    cursor: pointer;
    list-style: none;
}

.news-manage-item summary::-webkit-details-marker {
    display: none;
}

.news-manage-cover {
    overflow: hidden;
    border-radius: 8px;
}

.news-manage-cover img {
    width: 92px;
    height: 64px;
    display: block;
    object-fit: cover;
}

.news-manage-title {
    display: grid;
    gap: 5px;
}

.news-manage-title strong {
    color: #07166d;
}

.news-manage-title small {
    color: var(--muted);
    font-weight: 800;
}

.publish-pill {
    display: inline-flex;
    justify-content: center;
    padding: 7px 9px;
    border-radius: 999px;
    color: #7a2832;
    background: rgba(223, 35, 57, 0.12);
    font-size: 0.74rem;
    font-weight: 900;
}

.publish-pill.is-live {
    color: #0d6f3f;
    background: #dff7e9;
}

.news-edit-panel {
    padding: 0 16px 16px;
}

.admin-card > .editor-form {
    padding: 24px;
}

.admin-card > .editor-form fieldset {
    background: #fbfdfc;
}

.admin-card .editor-form {
    gap: 18px;
}

.admin-card .editor-form fieldset {
    padding: 20px;
}

.admin-card .editor-form legend {
    color: #064d22;
}

.admin-card .save-button {
    margin-top: 2px;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .site-header {
        text-align: left;
    }

    .home-nav {
        min-height: 74px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    .home-brand {
        flex: 1 1 0;
        min-width: 0;
        margin-right: auto;
        justify-content: flex-start;
        text-align: left;
    }

    .home-brand img {
        width: 54px;
        height: 54px;
    }

    .home-brand span {
        min-width: 0;
        justify-items: start;
        text-align: left;
    }

    .home-brand strong,
    .home-brand small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-menu-toggle {
        display: grid;
        width: 40px;
        height: 40px;
        margin-left: auto;
    }

    .home-menu-toggle span {
        width: 18px;
    }

    .home-nav > .nav-action {
        flex: 0 0 auto;
        padding: 8px 10px;
        border-radius: 7px;
        font-size: 0.78rem;
        line-height: 1;
        white-space: nowrap;
    }

    .home-links {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 42;
        width: min(292px, 82vw);
        height: 100vh;
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
        padding: 78px 12px 18px;
        color: var(--navy);
        background: #ffffff;
        border-right: 1px solid var(--line);
        box-shadow: 24px 0 54px rgba(16, 33, 47, 0.22);
        transform: translateX(-104%);
        visibility: hidden;
        transition: transform 220ms ease, visibility 220ms ease;
    }

    .home-nav.is-open .home-links {
        transform: translateX(0);
        visibility: visible;
    }

    .home-nav-overlay {
        position: fixed;
        inset: 0;
        z-index: 41;
        display: block;
        background: rgba(11, 45, 74, 0.42);
        opacity: 0;
        visibility: hidden;
        transition: opacity 220ms ease, visibility 220ms ease;
    }

    .home-nav.is-open .home-nav-overlay {
        opacity: 1;
        visibility: visible;
    }

    .home-links > a,
    .nav-dropdown > a,
    .nav-dropdown-menu a {
        width: 100%;
        display: block;
        text-align: left;
        padding: 10px 12px;
        border-radius: 8px;
    }

    .home-links > a::after,
    .nav-dropdown > a::after {
        display: none;
    }

    .nav-dropdown {
        width: 100%;
        display: block;
        padding: 0;
    }

    .nav-dropdown > a {
        color: #07166d;
        font-size: 0.9rem;
        font-weight: 900;
        background: rgba(7, 22, 109, 0.04);
    }

    .nav-dropdown:has(.nav-dropdown-menu) > a::before {
        content: "+";
        float: right;
        color: #1769aa;
        font-size: 1rem;
        font-weight: 900;
    }

    .nav-dropdown.is-submenu-open > a::before {
        content: "-";
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        display: none;
        gap: 2px;
        margin: 4px 0 8px 10px;
        padding: 2px 0 2px 10px;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: 0;
        border-left: 2px solid rgba(223, 35, 57, 0.28);
        background: transparent;
    }

    .nav-dropdown.is-submenu-open .nav-dropdown-menu {
        display: grid;
    }

    .nav-dropdown-menu a {
        color: #34495e;
        font-size: 0.84rem;
        font-weight: 750;
        padding: 8px 10px;
        background: transparent;
    }

    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a:focus {
        color: #07166d;
        background: rgba(223, 35, 57, 0.08);
    }

    .hero,
    .contact-main,
    .contact-hero-pro,
    .workflow,
    .new-section {
        grid-template-columns: 1fr;
    }

    .home-hero,
    .about-section,
    .purpose-section,
    .gallery-note,
    .gallery-quick-grid,
    .gallery-quick-grid.single-tool,
    .gallery-text-card .editor-form,
    .gallery-editor-form,
    .gallery-album-form,
    .gallery-drop-upload,
    .gallery-picture-row {
        grid-template-columns: 1fr;
    }

    .gallery-album-titlebar {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-album-actions {
        justify-content: flex-start;
    }

    .editor-callout {
        align-items: stretch;
        flex-direction: column;
        margin-right: 18px;
        margin-left: 18px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-album-grid,
    .compact-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-track,
    .home-hero {
        min-height: auto;
    }

    .hero-slide {
        min-height: var(--slider-min-height, 370px);
    }

    .banner-slide {
        min-height: var(--slider-min-height, 370px);
    }

    .banner-overlay {
        padding-top: clamp(46px, 8vw, 76px);
        padding-bottom: clamp(68px, 10vw, 96px);
    }

    .stats-band,
    .service-grid,
    .news-grid,
    .inner-card-grid,
    .purpose-list,
    .footer-subscribe,
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .news-heading,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .purpose-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .purpose-shell {
        padding: 24px;
    }

    .hero {
        min-height: auto;
        padding-top: 34px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .new-section-grid {
        grid-template-columns: 1fr;
    }

    .partners-track {
        animation-duration: 22s;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .response-panel {
        max-width: 560px;
    }

    .contact {
        align-items: flex-start;
        flex-direction: column;
    }

    .editor-form fieldset {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
    }

    .admin-menu {
        grid-template-columns: repeat(2, 1fr);
        padding: 12px;
    }

    .admin-menu p {
        grid-column: 1 / -1;
    }

    .admin-menu a {
        border-radius: 8px;
    }

    .compact-admin-form,
    .color-grid,
    .navbar-add-form,
    .nav-editor-head,
    .nav-editor-row,
    .slide-add-form,
    .slide-editor-head,
    .slide-editor-row,
    .page-editor-card,
    .page-editor-fields,
    .news-list-card,
    .news-layout,
    .news-filter-row,
    .nvi-news-card,
    .news-add-form,
    .compact-news-add,
    .news-editor-row,
    .news-editor-fields,
    .news-manage-head,
    .news-manage-item summary,
    .row-grid,
    .slide-editor,
    .slide-fields {
        grid-template-columns: 1fr;
    }

    .nav-editor-head {
        display: none;
    }

    .slide-editor-head {
        display: none;
    }

    .nav-editor-row,
    .slide-editor-row {
        align-items: stretch;
    }

    .slide-add-form .wide-field {
        grid-column: auto;
    }

    .news-manage-head {
        display: none;
    }

    .news-manage-item summary {
        align-items: start;
    }

    .news-filter-panel {
        position: static;
    }
}

@media (max-width: 560px) {
    .home-nav,
    .home-hero,
    .stats-band,
    .page-section,
    .cta-section,
    .footer-inner,
    .gallery-hero,
    .gallery-grid-section,
    .gallery-note {
        width: min(100% - 20px, 1180px);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gallery-album-grid,
    .compact-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-note {
        padding: 22px 18px;
        margin-bottom: 48px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-action {
        width: auto;
        align-self: center;
        text-align: center;
    }

    .home-nav {
        justify-content: flex-start;
        padding: 10px 0;
    }

    .home-brand {
        width: auto;
        justify-content: flex-start;
        text-align: left;
    }

    .home-brand strong {
        font-size: 1rem;
    }

    .home-brand small {
        display: block;
        max-width: 170px;
        color: #607282;
        font-size: 0.58rem;
        font-weight: 800;
        line-height: 1.2;
        white-space: normal;
    }

    .home-hero {
        min-height: auto;
        padding-bottom: 96px;
    }

    .hero-track,
    .banner-slide,
    .hero-slide {
        min-height: var(--slider-min-height, 370px);
    }

    .banner-overlay {
        padding-top: 44px;
        padding-bottom: 76px;
    }

    .hero-content {
        padding-left: 0;
    }

    .hero-content::before {
        display: none;
    }

    .hero-content h1 {
        font-size: clamp(2.35rem, 14vw, 3.3rem);
    }

    .hero-content h2 {
        font-size: clamp(2.2rem, 12vw, 3.1rem);
    }

    .hero-dots {
        bottom: 22px;
    }

    .slider-prev {
        left: 18px;
        right: auto;
    }

    .stats-band,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .purpose-shell {
        padding: 20px;
    }

    .cta-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .subscribe-form {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(2.55rem, 16vw, 3.55rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .patient-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .stats {
        display: grid;
    }

    .feature-band,
    .workflow,
    .new-section,
    .contact,
    .locations-section {
        padding: 24px;
    }

    .auth-card,
    .editor-panel {
        padding: 24px;
    }

    .editor-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .editor-actions .nav-action,
    .editor-actions form,
    .editor-actions button {
        width: 100%;
    }

    .admin-content {
        padding: 16px;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-menu {
        grid-template-columns: 1fr;
    }
}
