/* ==================================================
   THE REHAB CLINIC — COMPLETE WEBSITE CSS
   ================================================== */

:root {
    --blue: #0271ba;
    --green: #026637;
    --ink: #17212b;
    --muted: #627180;
    --pale: #f4f8fb;
    --white: #ffffff;
    --border: #dfe9ee;
    --shadow: 0 18px 45px rgba(17, 63, 91, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.7rem;
    font-family: "Manrope", sans-serif;
    line-height: 1.12;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5.5rem);
    letter-spacing: -0.055em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.035em;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0.4rem 0 1.2rem;
    color: var(--muted);
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

/* Accessibility */

.skip {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 500;
    padding: 12px 18px;
    color: var(--blue);
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.skip:focus {
    top: 20px;
}

/* ==================================================
   HEADER AND NAVIGATION
   ================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    height: 80px;
    align-items: center;
    gap: 2rem;
    padding: 0 4vw;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e8eff3;
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    white-space: nowrap;
}

.site-logo {
    width: 58px;
    height: 54px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-text {
    display: block;
}

.brand b {
    display: block;
    color: var(--blue);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

.brand small {
    display: block;
    color: var(--green);
    font-size: 0.63rem;
    letter-spacing: 0.2em;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.site-header nav a {
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
}

.site-header nav a:hover,
.site-header nav a:focus {
    color: var(--blue);
}

.menu-btn {
    display: none;
    padding: 0.6rem 0.9rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid #cad7df;
    border-radius: 10px;
}

/* ==================================================
   BUTTONS
   ================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.82rem 1.25rem;
    color: var(--white);
    background: var(--blue);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(2, 113, 186, 0.23);
}

.btn:focus {
    outline: 3px solid rgba(2, 113, 186, 0.25);
    outline-offset: 3px;
}

.btn.green {
    background: var(--green);
}

.btn.white {
    color: var(--blue);
    background: var(--white);
}

.btn.outline {
    color: var(--blue);
    background: transparent;
    border: 1px solid var(--blue);
}

.btn.outline-light {
    color: var(--white);
    background: transparent;
    border: 1px solid var(--white);
}

/* ==================================================
   GENERAL LAYOUT
   ================================================== */

section {
    padding: 6rem 0;
}

.container,
.hero-inner {
    width: min(1180px, 90vw);
    margin: 0 auto;
}

.pale {
    background: var(--pale);
}

.eyebrow,
.portal-eyebrow {
    display: block;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.light {
    color: var(--white);
}

.section-head {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.section-head.center {
    margin: 0 auto 3rem;
    text-align: center;
}

.section-head h2,
.page-hero h1,
.card h3 {
    color: var(--blue);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

/* ==================================================
   HOMEPAGE HERO
   ================================================== */

.hero {
    position: relative;
    display: flex;
    min-height: 700px;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 84% 20%,
            rgba(2, 113, 186, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 72% 88%,
            rgba(0, 107, 67, 0.10),
            transparent 24%
        ),
        linear-gradient(135deg, #f4f8fb 0%, #ffffff 100%);
}

.hero .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5.5rem);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 5.5rem 0;
}

.hero h1 span {
    color: var(--blue);
}

.hero p {
    max-width: 620px;
    font-size: 1.18rem;
}

.hero-media {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    justify-self: end;
}

.hero-media::before,
.hero-media::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 999px;
}

.hero-media::before {
    top: -34px;
    right: -38px;
    width: 150px;
    height: 150px;
    background: rgba(2, 113, 186, 0.12);
}

.hero-media::after {
    bottom: -30px;
    left: -34px;
    width: 116px;
    height: 116px;
    background: rgba(0, 107, 67, 0.13);
}

.hero-media picture,
.hero-media img {
    display: block;
    width: 100%;
}

.hero-media img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border: 8px solid rgba(255, 255, 255, 0.90);
    border-radius: 32px;
    box-shadow: 0 28px 70px rgba(19, 42, 61, 0.20);
}

.trust {
    margin-top: 1.5rem;
    color: var(--green);
    font-weight: 700;
}

/* ==================================================
   PAGE HERO
   ================================================== */

.page-hero {
    padding: 7rem 0 5rem;
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--pale),
        #e6f5ef
    );
}

.page-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.page-hero p {
    max-width: 720px;
    margin: 1rem auto;
}

/* ==================================================
   GRIDS AND CARDS
   ================================================== */

.grid {
    display: grid;
    gap: 1.3rem;
}

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

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

.card {
    padding: 1.55rem;
    background: var(--white);
    border: 1px solid #e5edf2;
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(26, 75, 102, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 1rem;
    color: var(--green);
    background: linear-gradient(145deg, #ffffff, #dceef7);
    border-radius: 18px;
    box-shadow:
        inset 0 0 0 1px #d4e7f0,
        0 10px 22px rgba(2, 113, 186, 0.14);
    font-family: "Manrope", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
}

.text-link {
    color: var(--blue);
    font-weight: 800;
}

.tag {
    display: inline-block;
    margin: 0.15rem;
    padding: 0.35rem 0.7rem;
    color: var(--blue);
    background: #e6f3fa;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

/* ==================================================
   SERVICE AND BLOG CARDS
   ================================================== */

.service-card {
    padding: 0;
    overflow: hidden;
}

.service-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.service-card > div {
    padding: 1.4rem;
}

/* ==================================================
   SPLIT SECTIONS
   ================================================== */

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    align-items: center;
}

.split img {
    min-height: 420px;
    object-fit: cover;
    border-radius: 34px;
    box-shadow: var(--shadow);
}

/* ==================================================
   PATIENT JOURNEY
   ================================================== */

.journey {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.step {
    text-align: center;
}

.step .icon {
    margin: 0 auto 1rem;
    color: var(--white);
    background: linear-gradient(
        135deg,
        var(--blue),
        var(--green)
    );
}

/* ==================================================
   STATISTICS
   ================================================== */

.stats {
    color: var(--white);
    background: linear-gradient(
        120deg,
        var(--blue),
        var(--green)
    );
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.2rem;
    text-align: center;
}

.stat strong {
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
}

.stat span {
    display: block;
    font-size: 0.84rem;
}

/* ==================================================
   TEAM AND PROFILE
   ================================================== */

.team-card {
    padding: 0;
    overflow: hidden;
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
}

.team-card h3,
.team-card p,
.team-card .text-link {
    margin-right: 1.55rem;
    margin-left: 1.55rem;
}

.team-card h3 {
    margin-top: 1.4rem;
}

.team-card .text-link {
    display: block;
    margin-bottom: 1.55rem;
}

.profile {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 4rem;
}

.profile-photo,
.profile img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center top;
    border-radius: 18px;
}

/* ==================================================
   SEARCH
   ================================================== */

.filter {
    width: 100%;
    margin-bottom: 2rem;
    padding: 1rem 1.2rem;
    border: 1px solid #cbd9e1;
    border-radius: 14px;
    font: inherit;
}

.filter:focus {
    outline: 3px solid rgba(2, 113, 186, 0.15);
    border-color: var(--blue);
}

/* ==================================================
   GENERAL FORMS
   ================================================== */

.form {
    display: grid;
    gap: 1rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form label {
    font-size: 0.9rem;
    font-weight: 700;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 0.9rem;
    background: var(--white);
    border: 1px solid #bdccd5;
    border-radius: 12px;
    font: inherit;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: 3px solid rgba(2, 113, 186, 0.15);
    border-color: var(--blue);
}

.form textarea {
    min-height: 120px;
    resize: vertical;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.success {
    padding: 1rem;
    color: var(--green);
    background: #e8f7ef;
    border-radius: 12px;
    font-weight: 700;
}

/* ==================================================
   VIDEO
   ================================================== */

.video-card {
    display: grid;
    aspect-ratio: 16 / 9;
    place-items: center;
    background:
        linear-gradient(
            120deg,
            rgba(2, 113, 186, 0.65),
            rgba(2, 102, 55, 0.45)
        ),
        var(--video-thumbnail) center / cover no-repeat;
    border-radius: 28px;
}

.play {
    width: 78px;
    height: 78px;
    color: var(--blue);
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    place-items: center;
    padding: 5vw;
    background: rgba(5, 20, 28, 0.88);
}

.modal.open {
    display: grid;
}

.modal-inner {
    position: relative;
    width: min(900px, 95vw);
    aspect-ratio: 16 / 9;
}

.modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: var(--white);
    background: transparent;
    border: none;
    font-size: 2rem;
}

/* ==================================================
   FAQ
   ================================================== */

.faq details {
    padding: 1rem 0;
    border-bottom: 1px solid #dce6eb;
}

.faq summary {
    font-weight: 700;
    cursor: pointer;
}

/* ==================================================
   STAFF PORTAL
   ================================================== */

.portal {
    min-height: calc(100vh - 80px);
    padding: 75px 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(2, 113, 186, 0.11),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f4f8fb 0%,
            #edf7f3 100%
        );
}

.portal-layout {
    display: grid;
    grid-template-columns: minmax(360px, 500px) 1fr;
    gap: 75px;
    align-items: center;
}

.portal-box {
    width: 100%;
    max-width: 500px;
}

.login-card {
    width: 100%;
    padding: 38px;
    background: var(--white);
    border: 1px solid #dce7ed;
    border-top: 5px solid var(--blue);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(23, 33, 43, 0.13);
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.portal-brand .site-logo {
    width: 65px;
    height: 58px;
    object-fit: contain;
}

.portal-brand b {
    display: block;
    color: var(--blue);
    font-size: 14px;
    letter-spacing: 0.04em;
}

.portal-brand small {
    display: block;
    color: var(--green);
    font-size: 10px;
    letter-spacing: 0.15em;
}

.login-card h1 {
    margin: 8px 0 12px;
    color: var(--ink);
    font-size: 42px;
    line-height: 1.1;
}

.login-introduction {
    margin: 0 0 25px;
}

.staff-login {
    display: grid;
    gap: 10px;
}

.staff-login label {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.staff-login input[type="email"],
.staff-login input[type="password"] {
    display: block;
    width: 100%;
    height: 54px;
    margin-bottom: 7px;
    padding: 0 16px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #b9cad4;
    border-radius: 12px;
}

.staff-login input:focus {
    outline: 3px solid rgba(2, 113, 186, 0.16);
    border-color: var(--blue);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 75px !important;
}

.show-password {
    position: absolute;
    top: 27px;
    right: 12px;
    transform: translateY(-50%);
    padding: 6px;
    color: var(--blue);
    background: transparent;
    border: none;
    font-weight: 700;
}

.remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 5px 0 8px;
    font-weight: 500 !important;
}

.remember input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--blue);
}

.login-button {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    color: var(--white);
    background: var(--blue);
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
}

.login-button:hover {
    background: #0265a7;
    box-shadow: 0 12px 25px rgba(2, 113, 186, 0.22);
    transform: translateY(-1px);
}

.login-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
}

.login-links a {
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}

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

.portal-message {
    margin-top: 10px;
    padding: 13px;
    color: var(--green);
    background: #e8f7ef;
    border: 1px solid #c6e9d6;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.security-note {
    margin: 22px 0 0;
    font-size: 12px;
    text-align: center;
}

.portal-intro h2 {
    max-width: 650px;
    margin: 10px 0 18px;
    color: var(--blue);
    font-size: clamp(34px, 4vw, 55px);
}

.portal-intro > p {
    max-width: 650px;
    font-size: 17px;
}

.portal-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin: 30px 0;
}

.portal-feature {
    padding: 17px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 7px 20px rgba(26, 75, 102, 0.06);
    font-size: 14px;
    font-weight: 700;
}

.feature-icon {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
    color: var(--white);
    background: var(--green);
    border-radius: 50%;
    font-size: 13px;
}

.role-information {
    padding: 17px;
    color: #526270;
    background: rgba(255, 255, 255, 0.65);
    border-left: 4px solid var(--green);
    border-radius: 0 12px 12px 0;
    font-size: 14px;
}

/* ==================================================
   FINAL CALL TO ACTION
   ================================================== */

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4.5rem max(5vw, calc((100vw - 1180px) / 2));
    color: var(--white);
    background: linear-gradient(
        115deg,
        var(--blue),
        var(--green)
    );
}

.final-cta p {
    color: var(--white);
}

/* ==================================================
   FOOTER
   ================================================== */

footer {
    padding: 4.5rem 5vw 1.5rem;
    background: #f2f7fa;
}

.footer-grid {
    display: grid;
    width: min(1180px, 100%);
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 3rem;
    margin: 0 auto;
}

.footer-grid > div > a {
    display: block;
    margin: 0.55rem 0;
    font-size: 0.9rem;
}

.legal {
    display: flex;
    width: min(1180px, 100%);
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem auto 0;
    padding-top: 1.4rem;
    border-top: 1px solid #d2dfe6;
    font-size: 0.78rem;
}

/* ==================================================
   WHATSAPP BUTTON
   ================================================== */

.whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;

    display: flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: #25d366;
    border: 3px solid #ffffff;
    border-radius: 50%;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.22),
        0 0 0 7px rgba(37, 211, 102, 0.12);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.whatsapp svg {
    display: block;
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.whatsapp:hover {
    color: #ffffff;
    background: #1ebe5d;
    transform: translateY(-4px) scale(1.04);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.26),
        0 0 0 9px rgba(37, 211, 102, 0.15);
}

.whatsapp:focus {
    outline: 3px solid rgba(2, 113, 186, 0.35);
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .whatsapp {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }

    .whatsapp svg {
        width: 31px;
        height: 31px;
    }
}

/* ==================================================
   RESPONSIVE TABLET
   ================================================== */

@media (max-width: 1100px) {
    .site-header nav {
        position: absolute;
        top: 80px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem 5vw;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .site-header nav.open {
        display: flex;
    }

    .menu-btn {
        display: block;
        margin-left: auto;
    }

    .nav-cta {
        display: none;
    }

    .hero .hero-inner {
        grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
        gap: 2.5rem;
    }

    .hero-media {
        max-width: 445px;
    }

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

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

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

    .portal-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .portal-box {
        max-width: 600px;
        margin: 0 auto;
    }

    .portal-intro {
        max-width: 700px;
        margin: 0 auto;
        text-align: center;
    }

    .portal-intro h2,
    .portal-intro > p {
        margin-right: auto;
        margin-left: auto;
    }

    .portal-features,
    .role-information {
        text-align: left;
    }
}

@media (max-width: 900px) {
    .hero .hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-copy {
        padding: 4.5rem 0 3rem;
    }

    .hero-media {
        width: min(100%, 520px);
        max-width: none;
        justify-self: center;
        margin: 0 auto 4.5rem;
    }
}

/* ==================================================
   RESPONSIVE MOBILE
   ================================================== */

@media (max-width: 720px) {
    .site-header {
        height: 68px;
        padding: 0 5vw;
    }

    .site-header nav {
        top: 68px;
    }

    .site-logo {
        width: 48px;
        height: 45px;
    }

    .brand b {
        font-size: 0.72rem;
    }

    .hero {
        min-height: auto;
    }

    .hero .hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-copy {
        padding: 4rem 0 2.5rem;
    }

    .hero-media {
        width: min(100%, 430px);
        max-width: none;
        justify-self: center;
        margin: 0 auto 4rem;
    }

    .hero-media::before {
        top: -22px;
        right: -18px;
        width: 110px;
        height: 110px;
    }

    .hero-media::after {
        bottom: -18px;
        left: -18px;
        width: 88px;
        height: 88px;
    }

    .hero-media img {
        border-width: 6px;
        border-radius: 24px;
    }

    section {
        padding: 4rem 0;
    }

    .grid-3,
    .grid-4,
    .split,
    .profile,
    .form-row {
        grid-template-columns: 1fr;
    }

    .split {
        gap: 2rem;
    }

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

    .portal {
        min-height: auto;
        padding: 35px 0;
    }

    .login-card {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .login-card h1 {
        font-size: 32px;
    }

    .portal-brand {
        margin-bottom: 24px;
    }

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

    .login-links {
        display: grid;
        gap: 7px;
    }

    .final-cta {
        display: block;
        padding: 3.5rem 5vw;
    }

    .final-cta .actions {
        margin-top: 1.5rem;
    }

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

    .legal {
        display: block;
    }
}

@media (max-width: 460px) {
    .footer-grid,
    .journey,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .actions .btn {
        width: 100%;
    }

    .login-card {
        padding: 22px 17px;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
/* ==================================================
   FOOTER AND SOCIAL-MEDIA LINKS
   ================================================== */

.site-footer {
    padding: 4.5rem 5vw 1.5rem;
    background: #f2f7fa;
}

.footer-grid {
    display: grid;
    width: min(1180px, 100%);
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 3rem;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 1.2rem;
}

.footer-about > p {
    max-width: 340px;
}

.footer-about address {
    color: #627180;
    font-style: normal;
    line-height: 1.7;
}

.footer-column h3,
.footer-social-section h3 {
    margin-bottom: 1rem;
    color: #17212b;
    font-size: 1rem;
}

.footer-column > a {
    display: block;
    width: fit-content;
    margin: 0.55rem 0;
    color: #526270;
    font-size: 0.9rem;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-column > a:hover {
    color: #0271ba;
    transform: translateX(3px);
}

.footer-social-section {
    display: flex;
    width: min(1180px, 100%);
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem auto 0;
    padding: 2rem 0;
    border-top: 1px solid #d2dfe6;
    border-bottom: 1px solid #d2dfe6;
}

.footer-social-section p {
    max-width: 470px;
    margin-bottom: 0;
    font-size: 0.88rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.social-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    color: #17212b;
    background: #ffffff;
    border: 1px solid #dbe7ed;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(26, 75, 102, 0.06);
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.social-link svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: currentColor;
}

.social-link:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(23, 33, 43, 0.15);
}

.social-link:focus {
    outline: 3px solid rgba(2, 113, 186, 0.22);
    outline-offset: 3px;
}

.social-link.tiktok:hover {
    background: #111111;
    border-color: #111111;
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link.instagram:hover {
    background: #c13584;
    border-color: #c13584;
}

.social-link.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.footer-bottom {
    display: flex;
    width: min(1180px, 100%);
    justify-content: space-between;
    gap: 2rem;
    margin: 0 auto;
    padding-top: 1.5rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.76rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-social-section {
        display: block;
    }

    .social-links {
        margin-top: 1.5rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .social-link {
        justify-content: center;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom p + p {
        margin-top: 0.6rem;
    }
}

@media (max-width: 400px) {
    .social-links {
        grid-template-columns: 1fr;
    }
}
/* ==================================================
   STAFF PORTAL SECURE GATEWAY
   ================================================== */

.staff-gateway {
    min-height: calc(100vh - 80px);
    padding: 75px 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(2, 113, 186, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(2, 102, 55, 0.10),
            transparent 35%
        ),
        #f4f8fb;
}

.gateway-heading {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.gateway-heading h1 {
    margin: 10px 0 16px;
    color: #0271ba;
    font-size: clamp(40px, 5vw, 65px);
}

.gateway-heading p {
    max-width: 680px;
    margin: 0 auto;
    font-size: 17px;
}

.gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 1050px;
    margin: 0 auto;
}

.gateway-card {
    position: relative;
    display: grid;
    grid-template-columns: 65px 1fr 35px;
    gap: 18px;
    align-items: center;
    min-height: 175px;
    padding: 28px;
    color: #17212b;
    background: #ffffff;
    border: 1px solid #dce7ed;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(23, 33, 43, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.gateway-card:hover {
    color: #17212b;
    border-color: rgba(2, 113, 186, 0.35);
    box-shadow: 0 22px 45px rgba(23, 33, 43, 0.14);
    transform: translateY(-5px);
}

.gateway-card:focus {
    outline: 3px solid rgba(2, 113, 186, 0.25);
    outline-offset: 4px;
}

.gateway-icon {
    display: flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0271ba, #026637);
    border-radius: 18px;
    box-shadow: 0 12px 25px rgba(2, 113, 186, 0.20);
}

.gateway-icon svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
}

.gateway-card-content {
    display: block;
}

.gateway-label {
    display: block;
    margin-bottom: 5px;
    color: #026637;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gateway-card-content strong {
    display: block;
    margin-bottom: 7px;
    color: #0271ba;
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    line-height: 1.25;
}

.gateway-card-content > span:last-child {
    display: block;
    color: #627180;
    font-size: 13px;
    line-height: 1.55;
}

.gateway-arrow {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #0271ba;
    background: #edf6fb;
    border-radius: 50%;
    font-size: 20px;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.gateway-card:hover .gateway-arrow {
    color: #ffffff;
    background: #0271ba;
    transform: translateX(4px);
}

.webmail-card .gateway-icon {
    background: linear-gradient(135deg, #0271ba, #0396d6);
}

.clinic-system-card .gateway-icon {
    background: linear-gradient(135deg, #026637, #079554);
}

.microsoft-card .gateway-icon {
    background: linear-gradient(135deg, #f25022, #ff8c00);
}

.support-card .gateway-icon {
    background: #25d366;
}

.gateway-security {
    display: flex;
    max-width: 1050px;
    align-items: flex-start;
    gap: 16px;
    margin: 30px auto 0;
    padding: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #dce7ed;
    border-left: 5px solid #026637;
    border-radius: 16px;
}

.security-shield {
    display: flex;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #026637;
    background: #e5f5ec;
    border-radius: 13px;
}

.security-shield svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.gateway-security strong {
    display: block;
    margin-bottom: 4px;
    color: #17212b;
}

.gateway-security p {
    margin: 0;
    font-size: 13px;
}

@media (max-width: 850px) {
    .gateway-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .staff-gateway {
        min-height: auto;
        padding: 45px 0;
    }

    .gateway-heading {
        margin-bottom: 30px;
    }

    .gateway-heading h1 {
        font-size: 38px;
    }

    .gateway-card {
        grid-template-columns: 55px 1fr 30px;
        min-height: 150px;
        padding: 20px 17px;
    }

    .gateway-icon {
        width: 53px;
        height: 53px;
        border-radius: 15px;
    }

    .gateway-icon svg {
        width: 27px;
        height: 27px;
    }

    .gateway-card-content strong {
        font-size: 16px;
    }

    .gateway-arrow {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 420px) {
    .gateway-card {
        grid-template-columns: 50px 1fr;
    }

    .gateway-arrow {
        display: none;
    }

    .gateway-icon {
        width: 48px;
        height: 48px;
    }
}

/* Medical icon system */
.medical-icon{width:30px;height:30px;display:block}.icon .medical-icon{width:29px;height:29px}.gateway-icon .medical-icon{width:32px;height:32px}.blog-admin-card .gateway-icon{color:#0879bd;background:#eaf6fd}.card .icon{display:inline-flex;align-items:center;justify-content:center}.service-field-icon{margin-top:-34px;position:relative;border:4px solid #fff;box-sizing:content-box}

/* Public health journal */
.blog-search{max-width:760px;margin:0 auto 38px}.blog-search>label{display:block;font-weight:800;margin-bottom:9px}.blog-search>div{display:flex;gap:10px}.blog-search input{flex:1;min-width:0;padding:15px 17px;border:1px solid #cfdce5;border-radius:12px;font:inherit}.blog-grid h3 a{color:inherit}.empty-state{text-align:center;max-width:650px;margin:20px auto;padding:45px;background:#fff;border:1px solid #dde7ed;border-radius:22px}.empty-state .icon{margin:auto}.article-hero{padding:75px 0 45px;background:#f1f7fa}.article-narrow{max-width:820px}.article-hero h1{font-size:clamp(38px,6vw,64px);line-height:1.08;margin:18px 0}.article-lead{font-size:21px}.article-image{width:100%;max-height:500px;object-fit:cover;border-radius:24px;margin:45px 0 15px}.article-content{font-size:18px;line-height:1.85;padding:35px 0}.article-content p{margin:0 0 1.4em}.article-cta{margin:20px 0 80px;padding:35px;border-radius:22px;background:#eaf6fd}

/* Blog administration — kept in this single site stylesheet */
.admin-body{margin:0;background:#f3f7f9;color:#17212b}.admin-body *{box-sizing:border-box}.setup-wrap,.admin-login-wrap{min-height:100vh;display:grid;place-items:center;padding:28px}.admin-card{background:#fff;border:1px solid #dbe5ea;border-radius:18px;padding:25px;box-shadow:0 12px 35px rgba(25,52,68,.07)}.setup-card,.admin-login{width:min(100%,590px)}.admin-card label,.admin-search{display:block;font-weight:750;margin:0 0 18px}.admin-card input,.admin-card textarea,.admin-card select,.admin-search input{display:block;width:100%;margin-top:7px;padding:12px 13px;border:1px solid #c7d5dd;border-radius:9px;background:#fff;font:inherit;color:#17212b}.admin-card textarea{resize:vertical}.admin-alert{max-width:1180px;margin:0 auto 22px;padding:14px 17px;border-radius:10px}.admin-alert.error{background:#fff0f0;color:#9d2424;border:1px solid #f2caca}.admin-alert.success{background:#ebf8ef;color:#176538;border:1px solid #bde4c8}.admin-header{min-height:72px;padding:12px max(22px,calc((100% - 1240px)/2));display:flex;align-items:center;gap:24px;background:#fff;border-bottom:1px solid #dbe5ea}.admin-brand{font-weight:900;color:#0879bd}.admin-brand span{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#157343}.admin-nav{display:flex;align-items:center;gap:17px;margin-left:auto}.admin-nav a{font-weight:750;color:#263642}.admin-user{font-size:13px;color:#65747d}.admin-menu{display:none}.admin-main{max-width:1240px;min-height:calc(100vh - 130px);margin:auto;padding:38px 22px}.admin-footer{text-align:center;padding:20px;color:#65747d}.admin-title-row{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:25px}.admin-title-row h1{margin:0}.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:25px 0}.admin-stats .admin-card strong{display:block;font-size:36px;color:#0879bd}.admin-actions{display:flex;flex-wrap:wrap;gap:12px}.admin-search{display:flex;gap:10px;margin-bottom:22px}.admin-search input{margin:0}.admin-table-wrap{overflow:auto;background:#fff;border:1px solid #dbe5ea;border-radius:14px}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{text-align:left;padding:15px;border-bottom:1px solid #e7eef2;vertical-align:middle}.admin-table th{background:#edf5f8;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.admin-badge{display:inline-block;margin:3px;padding:4px 8px;border-radius:99px;font-size:11px;font-weight:850;background:#e8edf0}.admin-badge.published{background:#e2f5e8;color:#146331}.admin-badge.draft{background:#fff3d8;color:#735410}.admin-badge.featured{background:#eaf1ff;color:#1a4f9c}.table-actions,.table-actions form{display:flex;gap:9px;align-items:center}.table-actions button{border:0;background:none;color:#a22525;font:inherit;cursor:pointer}.admin-editor{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:22px}.admin-editor-side{display:flex;flex-direction:column;gap:22px}.content-editor{min-height:460px;line-height:1.65}.seo-panel{margin-top:20px;padding-top:18px;border-top:1px solid #e1e8ec}.seo-panel summary{font-weight:850;cursor:pointer;margin-bottom:18px}.admin-check{display:flex!important;align-items:center;gap:9px}.admin-check input{width:auto!important;margin:0!important}.admin-image-preview{display:block;width:100%;margin-top:15px;border-radius:10px}.admin-two-column{display:grid;grid-template-columns:1fr 1fr;gap:22px}.category-list{list-style:none;padding:0}.category-list li{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e5ecef}
@media(max-width:850px){.admin-menu{display:block;margin-left:auto}.admin-nav{display:none;position:absolute;z-index:20;top:70px;left:15px;right:15px;padding:18px;background:#fff;border:1px solid #dbe5ea;border-radius:12px;box-shadow:0 15px 35px rgba(0,0,0,.12)}.admin-nav.open{display:grid}.admin-user{display:none}.admin-stats{grid-template-columns:1fr 1fr}.admin-editor,.admin-two-column{grid-template-columns:1fr}.blog-search>div{display:grid}.admin-title-row{align-items:flex-start;flex-direction:column}.admin-search{flex-direction:column}}@media(max-width:520px){.admin-stats{grid-template-columns:1fr}.admin-main{padding:25px 14px}.admin-card{padding:18px}.article-hero{padding:50px 0 35px}}

/* ==================================================
   FORM FEEDBACK AND EMBEDS
   ================================================== */

.form-message {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
}

.form-message p {
    margin-top: 0;
}

.form-message ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.form-message.error {
    color: #8a1f1f;
    background: #fff0f0;
    border: 1px solid #efc2c2;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.form-consent input {
    width: auto;
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.map-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 18px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
