/* ============================================
   PREMIUM 2026 MEDICAL WEBSITE DESIGN
   Modern, Professional, Healthcare Focused
   ============================================ */

:root {
    --brand-dark: #0f2942;
    --brand-primary: #137d9a;
    --brand-light: #f0f9fc;
    --accent: #ff8a3a;
    --accent-strong: #f15a24;
    --accent-soft: #ffd699;
    --white: #ffffff;
    --ink: #1a2332;
    --ink-soft: #5a6b7a;
    --muted: #7a8a9a;
    --surface: #f8fbfc;
    --soft: #f3f7f9;
    --line: rgba(6, 30, 37, 0.08);
    --line-soft: rgba(6, 30, 37, 0.04);
    --shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
    --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 32px 72px rgba(0, 0, 0, 0.16);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: var(--ink);
    background: linear-gradient(135deg, #f8fbfd 0%, #f0f9fc 50%, #e8f4f8 100%);
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1;
    overflow-x: hidden;
    overflow-wrap: normal;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    width: min(1340px, calc(100% - 48px));
    margin: 0 auto;
}

main {
    width: 100%;
}

html,
body {
    min-height: 100%;
}

main {
    min-height: 1px;
}

img,
picture,
video,
canvas,
svg,
iframe {
    max-width: 100%;
    height: auto;
}

iframe {
    border: 0;
}

.table-list {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-list th,
.table-list td {
    white-space: nowrap;
}

/* HEADER & NAVIGATION */
.site-header {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        rgba(248, 252, 253, 0.95)
    );
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.top-strip {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-dark));
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.top-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.top-strip__inner span,
.top-strip__inner a {
    color: #ffffff;
    transition: all 0.3s ease;
}

.top-strip__contacts {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}

.top-strip__inner a:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 16px 0;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 1 430px;
    min-width: 0;
    max-width: 430px;
}

.brand-logos {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: max-content;
}

.brand-logos img {
    flex: 0 0 48px;
}

.brand > span:last-child {
    min-width: 0;
}

.brand img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.brand:hover img {
    transform: scale(1.05);
}

.brand strong {
    display: block;
    font-size: 15px;
    line-height: 1.3;
    color: var(--brand-dark);
    font-weight: 700;
    overflow-wrap: normal;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    overflow-wrap: normal;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 26px);
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.nav-links a {
    position: relative;
    padding: -1px 0;
    font-size: 14px;
    font-weight: 600;
    /* color: var(--ink-soft); */
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--brand-primary);
    transform: translateY(-2px);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, #ff9a4d, #f15a24);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(255, 138, 58, 0.25);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-cta:hover,
.nav-cta:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 138, 58, 0.35);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: var(--soft);
    border-color: var(--brand-primary);
}

/* HERO SECTION */
.hero {
    padding: 88px 0 64px;
    color: var(--white);
    min-height: 540px;
    display: grid;
    align-items: center;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 45, 66, 0.96) 0%,
        rgba(19, 125, 154, 0.92) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    z-index: 3;
}

.hero-copy {
    position: relative;
    z-index: 3;
    max-width: 950px;
}

.hero-logo-panel {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    max-width: 100%;
}

.hero-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 132px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.hero-logo-badge--primary {
    width: 140px;
    height: 135px;
}

.hero-logo-panel img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-copy h1 {
    margin: 16px 0 20px;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-copy p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 32px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.eyebrow {
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
    opacity: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
    position: relative;
    z-index: 3;
}

.hero-actions .btn {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* BUTTONS */
.btn {
    min-height: 50px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff9a4d, #f15a24);
    color: #fff;
    box-shadow: 0 12px 32px rgba(255, 138, 58, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(255, 138, 58, 0.35);
}

.btn-soft {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-soft:hover,
.btn-soft:focus {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* SECTIONS */
.section {
    padding: 6px 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(19, 125, 154, 0.08),
        transparent 60%
    );
    filter: blur(40px);
    pointer-events: none;
}

.section::after {
    content: "";
    position: absolute;
    bottom: -15%;
    left: -8%;
    width: 350px;
    height: 350px;
    background: radial-gradient(
        circle,
        rgba(255, 138, 58, 0.06),
        transparent 60%
    );
    filter: blur(40px);
    pointer-events: none;
}

.section-muted {
    background: linear-gradient(
        135deg,
        rgba(19, 125, 154, 0.04) 0%,
        rgba(255, 138, 58, 0.02) 100%
    );
}

.split {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    align-items: start;
}

h2 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 8px;
    color: var(--ink);
}

h3 {
    font-size: 1.35rem;
    color: var(--ink);
    margin-bottom: 12px;
}

.copy p,
.section-heading p,
.feature-band p,
.content-card p {
    color: var(--muted);
    line-height: 1.8;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 48px;
}

.section-heading .eyebrow {
    color: var(--accent);
}

.section-heading h2 {
    color: var(--brand-dark);
    position: relative;
    margin-bottom: 16px;
}

.section-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 80px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

/* GRIDS */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.service-grid > article {
    height: 100%;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 28px;
    align-items: stretch;
}

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 5vw, 64px);
}

/* CARDS */
.card,
.service-card,
.content-card,
.doctor-card,
.contact-card,
.sidebar-card,
.service-icon-card {
    border: 1px solid rgba(218, 227, 232, 0.9);
    border-radius: var(--radius-md);
    background-color: #eefaf8;
    box-shadow: 0 18px 42px rgba(14, 36, 51, 0.09);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
    backdrop-filter: blur(8px);
}

.service-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.service-card:hover img {
    transform: scale(1.06);
}

.service-card div,
.content-card,
.doctor-card,
.contact-card {
    padding: 40px;
}

.service-card:hover,
.content-card:hover,
.doctor-card:hover,
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(19, 125, 154, 0.15);
}

.service-card span {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

/* Equal card heights and aligned buttons */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card > div {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-card .btn {
    margin-top: auto;
}

.content-card h2,
.contact-card h2,
.doctor-card h3 {
    color: var(--brand-dark);
    margin-bottom: 12px;
}

.content-card p,
.contact-card p {
    color: var(--ink-soft);
    line-height: 1.8;
}

.contact-form-card {
    display: grid;
    gap: 20px;
    padding: 40px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        rgba(248, 252, 253, 0.96)
    );
    border-radius: 18px;
    border: 1.5px solid rgba(19, 125, 154, 0.12);
    box-shadow: 0 16px 48px rgba(18, 33, 43, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    min-width: 0;
}

.contact-form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 64px rgba(18, 33, 43, 0.12);
    border-color: rgba(19, 125, 154, 0.2);
}

.input-group {
    display: grid;
    gap: 10px;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.input-group input,
.input-group textarea {
    width: 100%;
    border-radius: 12px;
    border: 1.5px solid rgba(15, 39, 47, 0.15);
    background: linear-gradient(180deg, #fafbfc, #f5f8f9);
    padding: 14px 18px;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(19, 125, 154, 0.1);
    background: #ffffff;
}

.contact-form-card button {
    width: max-content;
    padding: 14px 32px;
    margin-top: 8px;
}

/* PAGE HERO */
.page-hero {
    padding: 88px 0 64px;
    color: var(--white);
    min-height: 540px;
    display: grid;
    align-items: center;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    position: relative;
    margin-bottom: 40px;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 255, 255, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 15%,
            rgba(255, 138, 58, 0.1),
            transparent 22%
        );
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    margin: 12px 0 16px;
    font-size: clamp(36px, 5.5vw, 60px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    font-weight: 800;
}

/* FEATURE BAND */
.feature-band {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 60px;
    align-items: center;
    padding: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        rgba(248, 252, 252, 0.94)
    );
    box-shadow: 0 24px 60px rgba(18, 33, 43, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-band::before {
    content: "";
    position: absolute;
    right: -12%;
    top: -18%;
    width: 320px;
    height: 320px;
    background: radial-gradient(
        circle,
        rgba(19, 125, 154, 0.1),
        transparent 50%
    );
    filter: blur(40px);
    pointer-events: none;
}

.feature-band::after {
    content: "";
    position: absolute;
    left: -10%;
    bottom: -12%;
    width: 260px;
    height: 260px;
    background: radial-gradient(
        circle,
        rgba(255, 138, 58, 0.08),
        transparent 50%
    );
    filter: blur(40px);
    pointer-events: none;
}

.feature-band h2 {
    color: var(--brand-dark);
}

.feature-band__media {
    position: relative;
    border-radius: calc(var(--radius-md) + 4px);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(18, 33, 43, 0.14);
    border: 1px solid rgba(19, 125, 154, 0.12);
    background: linear-gradient(
        135deg,
        rgba(19, 125, 154, 0.06),
        rgba(255, 138, 58, 0.05)
    );
}

.feature-band__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 45, 66, 0.08),
        rgba(255, 255, 255, 0)
    );
    pointer-events: none;
}

.feature-band__image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

/* DEPARTMENT LAYOUT */
.department-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.sidebar-card {
    position: sticky;
    top: 120px;
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
}

.sidebar-card h3 {
    padding-bottom: 16px;
    border-bottom: 1.5px solid var(--line);
    color: var(--brand-dark);
    margin-bottom: 16px;
}

.sidebar-card a {
    display: block;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 600;
    padding: 12px 14px;
    transition: all 0.25s ease;
    margin: 4px 0;
}

.sidebar-card a:hover,
.sidebar-card a.is-active {
    background: linear-gradient(
        135deg,
        rgba(19, 125, 154, 0.1),
        rgba(255, 138, 58, 0.05)
    );
    color: var(--brand-primary);
    transform: translateX(4px);
}

/* TABLES */
.table-list {
    width: 100%;
    border-collapse: collapse;
}

.table-list th,
.table-list td {
    border-bottom: 1px solid var(--line);
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
}

.table-list th {
    background: linear-gradient(180deg, rgba(19, 125, 154, 0.05), transparent);
    color: var(--brand-dark);
    font-weight: 700;
}

.check-list {
    margin: 0;
    padding-left: 24px;
    color: var(--muted);
}

.check-list li {
    margin: 10px 0;
    line-height: 1.6;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: all 0.35s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* FOOTER */
.site-footer {
    background: linear-gradient(135deg, #081a24 0%, #0f2942 100%);
    color: #c5d9e0;
    padding: 64px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 40px;
}

.site-footer h3,
.site-footer h4 {
    color: var(--white);
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.site-footer p {
    line-height: 1.7;
}

.footer-logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.footer-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    padding: 7px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.footer-logo-badge--primary {
    width: 82px;
    height: 82px;
}

.footer-logo-badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    color: #c5d9e0;
    line-height: 1.7;
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(255, 138, 58, 0.14);
    color: var(--accent);
    font-size: 16px;
    line-height: 1;
}

.footer-contact-item a {
    display: inline;
    margin: 0;
}

.footer-parent-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    line-height: 1.7;
}

.footer-parent-line a {
    display: inline;
    margin: 0;
}

.site-footer a {
    display: block;
    margin: 10px 0;
    transition: all 0.3s ease;
    color: #c5d9e0;
}

.site-footer a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0b5be;
    font-size: 13px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-bottom__links {
    display: flex;
    gap: 24px;
}

.footer-bottom__links a {
    display: inline;
    margin: 0;
}

/* ALERTS & MESSAGES */
.alert {
    margin: 16px 0;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid;
}

.alert-success {
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.1),
        rgba(16, 185, 129, 0.05)
    );
    color: #065f46;
    border-color: #10b981;
}

.error-message {
    background: linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.1),
        rgba(239, 68, 68, 0.05)
    );
    color: #7f1d1d;
    border-color: #ef4444;
}

.text-danger {
    color: #dc2626;
    font-size: 13px;
    display: block;
    margin-top: 6px;
    font-weight: 500;
}

.map-container {
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 320px;
}

.embedded-map {
    width: 100%;
    margin-top: 32px;
}

.content-card,
.contact-card,
.doctor-card,
.service-icon-card {
    min-width: 0;
    overflow-wrap: break-word;
}

.department-layout .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    width: 100%;
}

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

.services-grid--single {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}

.contact-main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    align-items: start;
}

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

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

.department-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.single-card-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.feature-card-grid,
.anaesthesia-grid,
.dental-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.feature-card-grid > article:first-child,
.anaesthesia-grid article:first-child,
.dental-grid article:first-child {
    grid-column: 1 / -1;
}

.card-grid > article,
.department-card-grid > article,
.feature-card-grid > article,
.faq-grid > article,
.legal-grid > article,
.services-grid > article,
.contact-main-grid > article,
.contact-department-grid > article {
    height: 100%;
}

.content-card.service-icon-card,
.department-card-grid .content-card,
.feature-card-grid .content-card,
.faq-grid .content-card,
.legal-grid .content-card,
.services-grid .content-card,
.contact-main-grid .content-card,
.contact-department-grid .contact-card {
    display: flex;
    flex-direction: column;
}

.service-icon-card .service-icon {
    flex: 0 0 auto;
}
.single-card-grid .content-card,
.service-icon-card h2,
.service-icon-card h3,
.department-card-grid h3,
.feature-card-grid h3,
.faq-grid h3,
.services-grid h3,
.contact-department-grid h3 {
    min-height: 2.7em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.department-card-grid .check-list,
.feature-card-grid .check-list,
.services-grid ul,
.services-grid ol,
.service-icon-card p:last-child,
.content-card.service-icon-card .check-list {
    margin-bottom: 0;
    margin-top: -10px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1280px) {
    .container {
        width: min(1180px, calc(100% - 40px));
    }

    .navbar {
        gap: 18px;
    }

    .brand {
        flex-basis: 360px;
        max-width: 360px;
    }

    .brand strong {
        font-size: 13px;
    }

    .brand small {
        font-size: 11px;
    }

    .nav-links a {
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    .top-strip__inner {
        justify-content: center;
    }

    .navbar {
        flex-wrap: nowrap;
        gap: 14px;
    }

    .brand {
        flex-basis: 330px;
        max-width: 330px;
        gap: 10px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand-logos img {
        flex-basis: 42px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .nav-cta {
        padding: 10px 14px;
    }

    .hero,
    .page-hero {
        min-height: auto;
        background-attachment: scroll !important;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-band {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .sidebar-card {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }

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

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

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

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

    .doctor-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-list {
        display: block;
    }

    .table-list th,
    .table-list td {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .brand {
        gap: 10px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand strong {
        font-size: 13px;
    }

    .brand small {
        font-size: 11px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 12px);
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 16px;
        box-shadow: var(--shadow-hover);
        z-index: 999;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .navbar {
        gap: 16px;
        flex-wrap: nowrap;
        align-items: center;
    }

    .hero,
    .section,
    .page-hero {
        padding: 48px 0;
    }

    .brand {
        flex: 1 1 auto;
        max-width: calc(100% - 92px);
        gap: 10px;
    }

    .brand-logos {
        gap: 6px;
    }

    .brand-logos img {
        flex-basis: 42px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand small {
        display: none;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .service-grid,
    .services-grid,
    .contact-main-grid,
    .contact-department-grid,
    .legal-grid,
    .department-card-grid,
    .faq-grid,
    .feature-card-grid,
    .anaesthesia-grid,
    .dental-grid,
    .card-grid,
    .doctor-grid,
    .contact-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-grid > article:first-child,
    .anaesthesia-grid article:first-child,
    .dental-grid article:first-child {
        grid-column: auto;
    }

    .hero-grid,
    .page-hero-grid,
    .split,
    .feature-band,
    .department-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .feature-band {
        padding: 32px 24px;
    }

    .feature-band__media {
        max-height: 320px;
    }

    .feature-band__image {
        max-height: 320px;
    }

    .content-card,
    .service-card div,
    .doctor-card,
    .contact-card {
        padding: 24px;
    }

    .page-hero,
    .hero {
        min-height: auto;
    }

    .page-hero h1 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .gallery-grid {
        gap: 20px;
    }

    .contact-form-card {
        padding: 24px;
    }

    .contact-form-card button {
        width: 100%;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .hero-logo-panel {
        gap: 12px;
        margin-bottom: 20px;
    }

    .hero-logo-badge {
        width: 112px;
        height: 112px;
        padding: 8px;
        border-radius: 14px;
    }

    .hero-logo-badge--primary {
        width: 126px;
        height: 126px;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 24px);
    }

    .top-strip__inner {
        flex-direction: column;
        gap: 12px;
    }

    .brand strong {
        font-size: 11px;
        line-height: 1.2;
    }

    .navbar {
        gap: 12px;
        padding: 12px 0;
    }

    .brand {
        gap: 8px;
        max-width: calc(100% - 78px);
    }

    .brand-logos {
        gap: 4px;
    }

    .brand-logos img {
        flex-basis: 34px;
    }

    .brand img {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .nav-toggle {
        padding: 8px 12px;
        font-size: 13px;
    }

    .hero,
    .page-hero {
        padding: 40px 0;
        min-height: auto;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .hero-copy p,
    .page-hero p {
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-actions {
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-logo-panel {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }

    .hero-logo-badge {
        width: calc(50% - 4px);
        height: auto;
        aspect-ratio: 1;
        padding: 8px;
    }

    .hero-logo-badge--primary {
        width: calc(50% - 4px);
        height: auto;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
    }

    .content-card,
    .service-card div,
    .doctor-card,
    .contact-card,
    .contact-form-card {
        padding: 20px;
    }

    .top-strip {
        font-size: 12px;
        text-align: center;
    }

    .map-container iframe {
        min-height: 260px;
    }

    .service-icon {
        width: 64px;
        height: 64px;
    }

    .service-icon img {
        width: 32px;
        height: 32px;
    }

    h2 {
        font-size: clamp(24px, 5vw, 32px);
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .section {
        padding: 50px 0;
    }

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

    .footer-logo-row {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

[data-aos] {
    opacity: 0;
}

[data-aos="fade-up"] {
    animation: fadeInUp 0.6s ease forwards;
}

[data-aos="fade-in"] {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.success-message {
    background: rgba(84, 182, 209, 0.92) 100%;
    color: #155724;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid rgba(6, 56, 70, 0.92) 100%;
}

.contact-card {
    text-align: center;
    padding: 35px 25px;
    transition: all 0.35s ease;
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    /* border-radius: 50%; */
    /* background: linear-gradient(135deg, #137d9a, #0f2942); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    /* box-shadow: 0 10px 30px rgba(19, 125, 154, 0.25); */
}

.contact-card h3 {
    color: var(--brand-dark);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.contact-card p {
    margin: 10px 0;
    color: var(--ink-soft);
}

.contact-card p i {
    color: var(--accent);
    margin-right: 8px;
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.service-icon-card {
    text-align: center;
    padding: 35px 25px;
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    /* border-radius: 50%; */
    /* background: linear-gradient(135deg, #137d9a, #0f2942); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    /* box-shadow: 0 10px 30px rgba(19, 125, 154, 0.25); */
}

.service-icon img {
    width: 77px;
    height: 77px;
    object-fit: contain;
}

.service-icon-card h2 {
    color: var(--brand-dark);
    margin-bottom: 15px;
    font-size: 2rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-card ul,
.service-icon-card ol {
    text-align: left;
    color: var(--ink-soft);
    margin-top: 15px;
    padding-left: 20px;
    flex-grow: 1;
}

.service-icon-card li {
    margin-bottom: 8px;
}

.service-icon-card:hover {
    transform: translateY(-10px);
}

.service-icon-card:hover .service-icon {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Consistent card alignment across all frontend pages */
.card-grid,
.service-grid,
.doctor-grid,
.contact-grid,
.feature-card-grid,
.anaesthesia-grid,
.dental-grid {
    align-items: stretch;
    grid-auto-rows: 1fr;
    width: 100%;
}

.department-layout > .card-grid {
    min-width: 0;
}

.card-grid > article,
.service-grid > article,
.doctor-grid > article,
.contact-grid > article,
.feature-card-grid > article,
.anaesthesia-grid > article,
.dental-grid > article {
    min-width: 0;
    height: 100%;
}

.content-card,
.doctor-card,
.contact-card,
.service-icon-card,
.service-card {
    min-height: 100%;
}

.content-card,
.doctor-card,
.contact-card,
.service-icon-card {
    display: flex;
    flex-direction: column;
}

.content-card > :last-child,
.doctor-card > :last-child,
.contact-card > :last-child,
.service-icon-card > :last-child {
    margin-bottom: 0;
}

.service-icon-card {
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
}

.service-icon-card .service-icon,
.contact-card .contact-icon {
    flex: 0 0 auto;
}

.service-icon-card h2,
.service-icon-card h3,
.contact-card h3 {
    min-height: 2.8em;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card:not(.service-icon-card) h3 {
    margin-bottom: 14px;
}

.service-icon-card p,
.service-icon-card ul,
.service-icon-card ol,
.content-card p,
.content-card ul,
.content-card ol,
.contact-card p {
    width: 100%;
}

.service-icon-card ul,
.service-icon-card ol,
.content-card ul,
.content-card ol {
    flex: 1 1 auto;
}

.service-icon-card > .btn,
.contact-card > .btn,
.content-card > .btn {
    margin-top: auto;
    align-self: center;
}

.contact-main-grid {
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.contact-main-grid > article {
    height: 100%;
    min-height: 100%;
    align-self: stretch;
}

.contact-main-grid .content-card {
    min-height: 100%;
}

.contact-main-grid > article:nth-child(2) {
    justify-content: flex-start;
}

.contact-main-grid > article {
    padding: 18px 20px;
}

.contact-main-grid .embedded-map {
    margin-top: 14px;
}

.contact-main-grid .map-container {
    margin-top: 12px !important;
}

.contact-main-grid .map-container iframe {
    min-height: 180px;
    height: 210px;
}

.contact-main-grid > article:nth-child(2) .contact-form-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.contact-main-grid > article:nth-child(2) .input-group:has(textarea) {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.contact-main-grid > article:nth-child(2) textarea {
    min-height: 82px;
    flex: 1 1 auto;
    resize: vertical;
}

.contact-main-grid h3 {
    margin-bottom: 8px;
}

.contact-main-grid p {
    margin: 6px 0;
    line-height: 1.55;
}

.contact-main-grid .service-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
}

.contact-main-grid .service-icon img {
    width: 54px;
    height: 54px;
}

.contact-main-grid .section-heading h2 {
    font-size: 1.45rem;
    margin-bottom: 4px;
}

.contact-main-grid .input-group {
    gap: 6px;
}

.contact-main-grid .input-group input,
.contact-main-grid .input-group textarea {
    padding: 10px 12px;
}

.contact-main-grid .contact-form-card button {
    margin-top: auto;
    min-height: 44px;
}

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

.department-layout .obstetrics-about-grid {
    gap: 24px;
}

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

.department-layout .anaesthesia-grid > article:first-child {
    grid-column: auto;
}

.card-grid:has(> article:nth-child(4):last-child):not(.contact-main-grid):not(
        .services-grid
    ):not(.legal-grid):not(.faq-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid:has(> article:nth-child(3):last-child):not(.contact-main-grid):not(
        .single-card-grid
    ) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid:has(> article:nth-child(3):last-child):not(.contact-main-grid):not(
        .single-card-grid
    )
    > article:first-child {
    grid-column: auto;
}
a[href^="tel:"] {
    display: inline;
}

@media (max-width: 1024px) {
    .department-layout .card-grid.obstetrics-about-grid,
    .department-layout
        .card-grid.obstetrics-about-grid:has(
            > article:nth-child(4):last-child
        ):not(.contact-main-grid):not(.services-grid):not(.legal-grid):not(
            .faq-grid
        ) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .department-layout .department-card-grid,
    .department-layout .obstetrics-about-grid,
    .feature-card-grid,
    .anaesthesia-grid,
    .dental-grid,
    .department-layout .anaesthesia-grid,
    .card-grid:has(> article:nth-child(3):last-child):not(
            .contact-main-grid
        ):not(.single-card-grid) {
        grid-template-columns: 1fr;
    }

    .feature-card-grid > article:first-child,
    .anaesthesia-grid article:first-child,
    .dental-grid article:first-child {
        grid-column: auto;
    }

    .service-icon-card {
        padding: 24px;
    }

    .department-layout .obstetrics-about-grid {
        gap: 20px;
    }

    .department-layout .obstetrics-about-grid .service-icon-card {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .service-icon-card {
        padding: 20px;
    }

    .department-layout .obstetrics-about-grid {
        gap: 16px;
    }

    .department-layout .obstetrics-about-grid .service-icon-card {
        padding: 18px;
    }
}
