
:root {
    --navy: #082a45;
    --navy-2: #0d3a5d;
    --blue: #1677c8;
    --blue-dark: #0d5fa8;
    --teal: #0aa6a6;
    --teal-dark: #078687;
    --aqua: #e8f8f7;
    --sky: #eef7ff;
    --white: #ffffff;
    --ink: #14283a;
    --text: #526477;
    --muted: #738496;
    --line: #dce7ef;
    --soft: #f5f9fc;
    --danger: #ef5f64;
    --gold: #ffbf47;
    --shadow-sm: 0 8px 24px rgba(8, 42, 69, .08);
    --shadow: 0 18px 50px rgba(8, 42, 69, .13);
    --shadow-lg: 0 28px 75px rgba(8, 42, 69, .18);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --transition: .3s ease;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-weight: 750;
    line-height: 1.2;
    margin-top: 0;
}
p { margin-top: 0; }
.container { max-width: 1220px; }
.skip-link {
    position: fixed;
    left: 20px;
    top: -70px;
    z-index: 9999;
    padding: 12px 18px;
    color: white;
    background: var(--navy);
    border-radius: 8px;
}
.skip-link:focus { top: 20px; }
.section { padding: 95px 0; position: relative; }
.section-sm { padding: 70px 0; }
.section-soft { background: linear-gradient(180deg, #f8fbfd, #f1f8fb); }
.section-aqua { background: linear-gradient(135deg, #e9f9f8, #eff8ff); }
.section-dark { background: var(--navy); color: white; }
.section-kicker, .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.section-kicker::before, .eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 99px;
    background: var(--teal);
}
.section-title {
    max-width: 760px;
    margin: 0 auto 18px;
    font-size: clamp(32px, 4vw, 50px);
    text-align: center;
}
.section-intro {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
    color: var(--text);
}
.text-left .section-title, .text-left .section-intro { text-align: left; margin-left: 0; }
.text-white { color: white !important; }
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    font-weight: 700;
}
.text-link:hover { color: var(--teal-dark); gap: 13px; }

.btn {
    min-height: 50px;
    padding: 13px 23px;
    border-radius: 12px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 750;
    box-shadow: none;
    transition: var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: white !important;
    box-shadow: 0 12px 30px rgba(22,119,200,.24);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--blue-dark), var(--teal-dark)); box-shadow: 0 16px 34px rgba(22,119,200,.3); }
.btn-light { color: var(--navy) !important; background: white; box-shadow: var(--shadow-sm); }
.btn-outline-light { color: white !important; border: 1px solid rgba(255,255,255,.55); background: transparent; }
.btn-outline-light:hover { background: white; color: var(--navy) !important; }
.btn-outline-primary { border: 1px solid var(--blue); color: var(--blue); background: white; }
.btn-outline-primary:hover { background: var(--blue); color: white; }
.btn-block { width: 100%; }

/* Topbar */
.topbar {
    position: relative;
    z-index: 1001;
    background: linear-gradient(90deg, var(--navy), var(--navy-2));
    color: rgba(255,255,255,.88);
    font-size: 13px;
}
.topbar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 24px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: white; }
.topbar i { color: #57d8d7; }
.emergency-link {
    align-self: stretch;
    padding: 0 18px;
    background: var(--danger);
    color: white !important;
    font-weight: 800;
}
.emergency-link i { color: white; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(220,231,239,.8);
    transition: var(--transition);
}
.site-header.is-scrolled { box-shadow: 0 10px 35px rgba(8,42,69,.12); }
.header-inner {
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.brand-mark {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    padding: 3px;
    background: linear-gradient(145deg, #e7f8ff, #e4fbf8);
    box-shadow: 0 8px 22px rgba(22, 119, 200, .16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-copy strong {
    font-size: 28px;
    color: var(--navy);
    letter-spacing: -.5px;
}

.brand-copy em {
    color: var(--teal);
    font-style: normal;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .25px;
}
@media (max-width: 767px) {
    .header-inner {
        min-height: 82px;
    }

    .brand-mark {
        width: 68px;
        height: 68px;
    }

    .brand-copy strong {
        font-size: 21px;
    }

    .brand-copy small {
        font-size: 9px;
    }
}
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; padding: 0; margin: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a, .dropdown-toggle {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    color: var(--ink);
    border: 0;
    background: transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 720;
}
.main-nav > ul > li > a:hover, .dropdown-toggle:hover,
.main-nav > ul > li > a.active, .dropdown-toggle.active {
    color: var(--blue);
    background: var(--sky);
}
.dropdown-toggle::after { display: none; }
.dropdown-toggle i { font-size: 10px; transition: var(--transition); }
.nav-dropdown:hover > .dropdown-toggle i { transform: rotate(180deg); }
.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    min-width: 285px;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}
.dropdown-menu-custom::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 20px;
}
.nav-dropdown:hover > .dropdown-menu-custom,
.nav-dropdown.open > .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu-custom > a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border-radius: 11px;
}
.dropdown-menu-custom > a:hover { background: var(--soft); color: var(--blue); }
.dropdown-menu-custom > a > i {
    width: 37px; height: 37px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--aqua); color: var(--teal-dark);
}
.dropdown-menu-custom span { display: flex; flex-direction: column; color: var(--ink); font-weight: 700; line-height: 1.3; }
.dropdown-menu-custom small { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.mega-menu {
    left: 50%;
    transform: translate(-50%, 10px);
    width: min(780px, calc(100vw - 40px));
    padding: 18px;
}
.nav-dropdown:hover > .mega-menu,
.nav-dropdown.open > .mega-menu { transform: translate(-50%, 0); }
.mega-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 3px 13px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
}
.mega-heading span { color: var(--navy); font-weight: 800; }
.mega-heading a { color: var(--blue); font-size: 13px; font-weight: 700; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mega-grid a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--ink);
    font-weight: 650;
}
.mega-grid a:hover { background: var(--sky); color: var(--blue); }
.mega-grid i { width: 22px; color: var(--teal); text-align: center; }
.header-appointment { min-height: 46px; white-space: nowrap; font-size: 13px; }
.menu-toggle {
    width: 46px; height: 46px; display: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    border: 0; border-radius: 12px; background: var(--sky);
}
.menu-toggle span { width: 23px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
    position: relative;
    min-height: 670px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4,30,50,.96) 0%, rgba(5,44,68,.88) 42%, rgba(5,57,84,.48) 66%, rgba(5,57,84,.10) 100%),
        url('../images/bannerimage.png') 68% center / cover no-repeat;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to right, black, transparent 68%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto auto -170px -140px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    border: 80px solid rgba(255,255,255,.035);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 760px);
    justify-content: start;
    align-items: center;
    width: 100%;
    padding-top: 92px;
    padding-bottom: 145px;
}
.hero-copy {
    color: white;
    max-width: 750px;
    text-shadow: 0 2px 18px rgba(0,31,52,.16);
}
.hero-copy .eyebrow { color: #a9f3ef; }
.hero-copy h1 {
    color: white;
    font-size: clamp(45px, 6vw, 76px);
    letter-spacing: -2.8px;
    margin-bottom: 22px;
}
.hero-copy h1 span { color: #78e3df; }
.hero-copy > p {
    max-width: 630px;
    color: rgba(255,255,255,.82);
    font-size: 18px;
    margin-bottom: 31px;
}
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.88); font-size: 13px; font-weight: 650; }
.hero-trust-item i { color: #78e3df; }
.hero-visual { position: relative; min-height: 470px; }
.hero-image-main {
    position: absolute;
    inset: 0 0 0 35px;
    border-radius: 45px 45px 45px 130px;
    overflow: hidden;
    border: 7px solid rgba(255,255,255,.13);
    box-shadow: var(--shadow-lg);
}
.hero-image-main img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-image-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,42,69,.32), transparent 50%); }
.hero-building-card {
    position: absolute;
    left: -10px;
    bottom: 25px;
    z-index: 2;
    width: 230px;
    padding: 10px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: floatCard 4s ease-in-out infinite;
}
.hero-building-card img { width: 100%; height: 125px; object-fit: cover; border-radius: 13px; }
.hero-building-card div { padding: 10px 7px 3px; }
.hero-building-card strong { display: block; color: var(--navy); font-size: 14px; }
.hero-building-card span { color: var(--muted); font-size: 11px; }
.hero-badge {
    position: absolute;
    z-index: 3;
    right: -25px;
    top: 45px;
    width: 125px; height: 125px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--teal), #3dd5cd);
    border: 7px solid rgba(255,255,255,.9);
    box-shadow: var(--shadow);
    color: white;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    animation: pulseSoft 3s ease-in-out infinite;
}
.hero-badge i { font-size: 25px; margin-bottom: 5px; }
.hero-badge strong { font-size: 20px; line-height: 1; }
.hero-badge span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseSoft { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

.quick-access-wrap { position: relative; z-index: 5; margin-top: -74px; }
.quick-access {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.quick-card {
    min-height: 148px;
    padding: 27px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-right: 1px solid var(--line);
}
.quick-card:last-child { border-right: 0; }
.quick-card:hover { background: var(--soft); }
.quick-icon {
    width: 58px; height: 58px; border-radius: 17px; flex: 0 0 auto;
    display: grid; place-items: center;
    color: white; font-size: 23px;
    background: linear-gradient(145deg, var(--blue), var(--teal));
    box-shadow: 0 10px 25px rgba(22,119,200,.25);
}
.quick-card:nth-child(2) .quick-icon { background: linear-gradient(145deg, var(--teal), #48cec7); }
.quick-card:nth-child(3) .quick-icon { background: linear-gradient(145deg, var(--danger), #ff8b79); }
.quick-card small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; }
.quick-card h3 { margin: 3px 0 5px; font-size: 18px; }
.quick-card a, .quick-card p { margin: 0; color: var(--blue); font-size: 13px; font-weight: 700; }

/* About */
.about-grid { display: grid; grid-template-columns: .94fr 1.06fr; gap: 72px; align-items: center; }
.about-visual { position: relative; padding: 25px 25px 45px 0; }
.about-main-img {
    height: 520px;
    border-radius: 28px 85px 28px 28px;
    object-fit: cover;
    width: 100%;
    box-shadow: var(--shadow);
}
.about-small-img {
    position: absolute;
    width: 245px;
    height: 175px;
    object-fit: cover;
    right: -20px;
    bottom: 0;
    border: 9px solid white;
    border-radius: 25px;
    box-shadow: var(--shadow);
}
.about-experience {
    position: absolute;
    left: -18px; top: 50px;
    width: 138px; min-height: 138px;
    border-radius: 24px;
    padding: 22px;
    color: white;
    background: linear-gradient(145deg, var(--blue), var(--teal));
    box-shadow: var(--shadow);
}
.about-experience strong { display: block; font-size: 35px; line-height: 1; }
.about-experience span { font-size: 12px; line-height: 1.35; display: block; margin-top: 8px; font-weight: 700; }
.about-copy h2 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 20px; }
.about-copy .lead-copy { font-size: 17px; color: var(--text); }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin: 25px 0 30px; }
.check-list div { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-weight: 650; }
.check-list i { width: 23px; height: 23px; border-radius: 50%; background: var(--aqua); color: var(--teal-dark); display: grid; place-items: center; font-size: 10px; margin-top: 2px; }

/* Department cards */
.department-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.department-card {
    position: relative;
    min-height: 335px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: white;
    isolation: isolate;
}
.department-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4,31,52,.94) 0%, rgba(4,31,52,.58) 42%, rgba(4,31,52,.02) 78%);
    z-index: 1;
}
.department-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: .55s ease; }
.department-card-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 25px; }
.department-card-icon {
    width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
    color: white; background: var(--teal); margin-bottom: 13px; font-size: 19px;
}
.department-card h3 { color: white; font-size: 20px; margin-bottom: 6px; }
.department-card p { color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
.department-card a { color: white; font-weight: 750; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }
.department-card:hover img { transform: scale(1.08); }
.department-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.department-card:hover .department-card-icon { background: var(--blue); transform: rotate(-5deg); }

/* Stats */
.stats-strip {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--navy), #0a526c);
    color: white;
}
.stats-strip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 50%, rgba(62,217,209,.18), transparent 26%), radial-gradient(circle at 82% 30%, rgba(22,119,200,.22), transparent 30%); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 48px 25px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: 0; }
.stat-item i { color: #69dcd8; font-size: 28px; margin-bottom: 13px; }
.stat-item strong { display: block; color: white; font-size: 40px; line-height: 1; margin-bottom: 9px; }
.stat-item span { color: rgba(255,255,255,.72); font-size: 13px; }

/* Why */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 65px; align-items: center; }
.why-image {
    position: relative;
    min-height: 590px;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.why-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.why-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,42,69,.35), transparent 50%); }
.why-floating {
    position: absolute;
    z-index: 2;
    left: 25px; right: 25px; bottom: 25px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    padding: 21px;
    border-radius: 19px;
    display: flex; align-items: center; gap: 15px;
}
.why-floating i { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--aqua); color: var(--teal-dark); font-size: 20px; }
.why-floating strong { display: block; color: var(--navy); }
.why-floating span { color: var(--muted); font-size: 12px; }
.feature-list { display: grid; gap: 16px; margin-top: 30px; }
.feature-item {
    display: flex; gap: 16px; padding: 18px;
    border-radius: 16px; background: white; border: 1px solid var(--line);
    transition: var(--transition);
}
.feature-item:hover { border-color: #b9e5e2; transform: translateX(7px); box-shadow: var(--shadow-sm); }
.feature-icon {
    width: 50px; height: 50px; border-radius: 15px; flex: 0 0 auto;
    display: grid; place-items: center; background: var(--sky); color: var(--blue); font-size: 19px;
}
.feature-item h3 { margin-bottom: 5px; font-size: 17px; }
.feature-item p { margin: 0; font-size: 13px; }

/* Doctor */
.doctor-showcase {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.doctor-photo { min-height: 570px; position: relative; overflow: hidden; background: #eef5f7; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.doctor-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,42,69,.25), transparent 45%); }
.doctor-copy { padding: 62px; display: flex; flex-direction: column; justify-content: center; }
.doctor-copy h2 { font-size: 42px; margin-bottom: 6px; }
.doctor-degree { color: var(--blue); font-weight: 800; margin-bottom: 20px; }
.doctor-quote {
    padding: 19px 22px;
    border-left: 4px solid var(--teal);
    background: var(--aqua);
    border-radius: 0 14px 14px 0;
    color: var(--navy);
    font-weight: 650;
    margin: 25px 0;
}
.doctor-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.doctor-tags span { padding: 8px 12px; background: var(--soft); color: var(--navy); border-radius: 999px; font-size: 12px; font-weight: 700; }

/* Gallery */
.gallery-preview { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: 235px 235px; gap: 14px; }
.gallery-preview a { position: relative; overflow: hidden; border-radius: 18px; }
.gallery-preview a:first-child { grid-row: 1 / 3; }
.gallery-preview img { width: 100%; height: 100%; object-fit: cover; transition: .5s ease; }
.gallery-preview a::after { content: "\f00e"; font-family: "Font Awesome 5 Pro","Font Awesome 5 Free"; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center; color: white; font-size: 25px; background: rgba(8,42,69,.55); opacity: 0; transition: var(--transition); }
.gallery-preview a:hover::after { opacity: 1; }
.gallery-preview a:hover img { transform: scale(1.08); }
.gallery-grid { columns: 3; column-gap: 18px; }
.gallery-item { break-inside: avoid; margin-bottom: 18px; border-radius: 18px; overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: auto; transition: .5s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,42,69,.65), transparent 45%); opacity: 0; transition: var(--transition); }
.gallery-item span { position: absolute; z-index: 2; bottom: 17px; left: 18px; color: white; font-weight: 750; opacity: 0; transform: translateY(10px); transition: var(--transition); }
.gallery-item:hover::after, .gallery-item:hover span { opacity: 1; }
.gallery-item:hover span { transform: translateY(0); }
.gallery-item:hover img { transform: scale(1.04); }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { padding: 30px; border-radius: var(--radius); background: white; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stars { color: var(--gold); margin-bottom: 17px; letter-spacing: 3px; }
.testimonial-card p { font-size: 14px; }
.patient { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.patient-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--blue), var(--teal)); font-weight: 800; }
.patient strong { display: block; color: var(--ink); }
.patient span { font-size: 11px; color: #ffffff; }

/* Page banner */
.page-banner {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4,30,50,.96) 0%, rgba(5,45,69,.88) 44%, rgba(5,57,84,.48) 68%, rgba(5,57,84,.12) 100%),
        var(--banner-image) 68% center / cover no-repeat;
}
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to right, black, transparent 72%);
    pointer-events: none;
}
.page-banner-content { position: relative; z-index: 2; padding-top: 45px; padding-bottom: 45px; }
.page-banner .eyebrow { color: #83e6e2; }
.page-banner h1 { color: white; font-size: clamp(42px, 6vw, 65px); max-width: 780px; margin-bottom: 14px; }
.page-banner p { max-width: 690px; color: rgba(255,255,255,.79); font-size: 17px; }
.breadcrumb-custom { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: rgba(255,255,255,.72); font-size: 13px; }
.breadcrumb-custom a { color: white; font-weight: 700; }
.breadcrumb-custom i { font-size: 9px; }

/* Service detail */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 35px; align-items: start; }
.service-main { display: grid; gap: 27px; }
.service-feature-image { height: 460px; border-radius: 25px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.service-feature-image img { width: 100%; height: 100%; object-fit: cover; }
.image-badge {
    position: absolute;
    left: 22px; bottom: 22px;
    padding: 11px 16px;
    display: flex; align-items: center; gap: 10px;
    border-radius: 13px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
    color: var(--navy); font-weight: 750; box-shadow: var(--shadow-sm);
}
.image-badge i { color: var(--teal); }
.content-card {
    padding: 37px;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: white;
    box-shadow: var(--shadow-sm);
}
.content-card h2 { font-size: 31px; margin-bottom: 17px; }
.lead-copy { font-size: 16px; }
.highlight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 25px; }
.highlight-item { display: flex; gap: 10px; color: var(--ink); font-weight: 650; font-size: 14px; }
.highlight-item i { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: var(--aqua); color: var(--teal-dark); font-size: 10px; flex: 0 0 auto; }
.procedure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 24px; }
.procedure-item { display: flex; align-items: center; gap: 11px; padding: 15px; background: var(--soft); border-radius: 13px; color: var(--ink); font-weight: 650; font-size: 14px; }
.procedure-item span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: white; color: var(--blue); box-shadow: 0 4px 10px rgba(8,42,69,.08); }
.medical-note { display: flex; gap: 18px; padding: 27px; border-radius: 20px; background: linear-gradient(135deg, var(--aqua), var(--sky)); border: 1px solid #cfeceb; }
.note-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; background: white; color: var(--teal-dark); font-size: 21px; }
.medical-note h3 { font-size: 19px; margin-bottom: 6px; }
.medical-note p { margin: 0; font-size: 14px; }
.service-sidebar { display: grid; gap: 22px; position: sticky; top: 116px; }
.sidebar-card, .sidebar-appointment { padding: 25px; border-radius: 20px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.sidebar-card h3, .sidebar-appointment h3 { font-size: 20px; margin-bottom: 17px; }
.sidebar-links { display: grid; gap: 6px; }
.sidebar-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; font-size: 13px; color: var(--ink); }
.sidebar-links a span { display: flex; align-items: center; gap: 10px; }
.sidebar-links a span i { color: var(--teal); width: 18px; text-align: center; }
.sidebar-links > a > i { color: var(--muted); font-size: 9px; }
.sidebar-links a:hover, .sidebar-links a.active { background: var(--sky); color: var(--blue); }
.emergency-card { padding: 28px; border-radius: 20px; background: linear-gradient(145deg, var(--danger), #e94b62); color: white; box-shadow: 0 18px 42px rgba(239,95,100,.25); }
.emergency-card > i { font-size: 34px; margin-bottom: 16px; }
.emergency-card > span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800; }
.emergency-card h3 { color: white; margin: 6px 0 10px; font-size: 22px; }
.emergency-card p { color: rgba(255,255,255,.82); font-size: 13px; }
.emergency-card a { display: inline-block; margin-top: 4px; color: white; font-size: 19px; font-weight: 800; }
.sidebar-appointment > span { color: var(--teal-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.sidebar-appointment p { font-size: 13px; }
.split-cta { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 43px 48px; border-radius: 27px; background: white; box-shadow: var(--shadow); }
.split-cta h2 { margin-bottom: 9px; }
.split-cta p { max-width: 700px; margin: 0; }
.split-cta-actions { display: flex; align-items: center; gap: 18px; white-space: nowrap; }

/* Departments page */
.departments-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.department-list-card {
    display: flex; flex-direction: column;
    border-radius: 22px; overflow: hidden; background: white; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.department-list-card .image { height: 210px; overflow: hidden; position: relative; }
.department-list-card .image img { width: 100%; height: 100%; object-fit: cover; transition: .5s ease; }
.department-list-card .image i { position: absolute; left: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: white; color: var(--teal); box-shadow: var(--shadow-sm); }
.department-list-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.department-list-card h3 { font-size: 20px; margin-bottom: 9px; }
.department-list-card p { font-size: 13px; flex: 1; }
.department-list-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.department-list-card:hover .image img { transform: scale(1.06); }

/* About page */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.value-card { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }
.value-card i { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: white; background: linear-gradient(145deg,var(--blue),var(--teal)); margin-bottom: 18px; font-size: 21px; }
.value-card h3 { font-size: 20px; margin-bottom: 8px; }
.value-card p { font-size: 13px; margin: 0; }
.facility-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.facility-card { position: relative; min-height: 245px; border-radius: 18px; overflow: hidden; }
.facility-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .5s ease; }
.facility-card::after { content:""; position:absolute; inset:0; background:linear-gradient(to top,rgba(8,42,69,.92),transparent 70%); }
.facility-card span { position:absolute; z-index:2; left:20px; bottom:18px; color:white; font-weight:750; }
.facility-card:hover img { transform:scale(1.07); }

/* Forms */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-info-panel {
    padding: 38px;
    border-radius: 25px;
    background: linear-gradient(145deg, var(--navy), #0a526c);
    color: white;
    box-shadow: var(--shadow);
}
.contact-info-panel h2 { color: white; font-size: 34px; }
.contact-info-panel > p { color: rgba(255,255,255,.75); }
.contact-detail { display: flex; gap: 14px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-detail:last-of-type { border-bottom: 0; }
.contact-detail i { width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #71e4df; flex: 0 0 auto; }
.contact-detail strong { display: block; color: white; }
.contact-detail span, .contact-detail a { color: rgba(255,255,255,.76); font-size: 13px; }
.form-card { padding: 38px; border-radius: 25px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: 31px; }
.form-row-custom { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; color: var(--ink); font-weight: 700; font-size: 13px; }
.form-control-custom {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: #fbfdfe;
    color: var(--ink);
    outline: none;
    transition: var(--transition);
}
textarea.form-control-custom { min-height: 125px; resize: vertical; }
.form-control-custom:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(10,166,166,.1); background: white; }
.form-alert { padding: 13px 16px; border-radius: 11px; margin-bottom: 20px; font-size: 13px; }
.form-alert.error { background: #fff0f1; color: #a93643; border: 1px solid #ffd1d6; }
.form-note { font-size: 11px; color: var(--muted); margin-top: 12px; }
.map-card { border-radius: 25px; overflow: hidden; box-shadow: var(--shadow); min-height: 420px; position: relative; background: url('../images/Monika1.jpeg') center/cover no-repeat; }
.map-card::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(8,42,69,.85),rgba(8,42,69,.2)); }
.map-content { position:absolute; z-index:2; left:45px; top:50%; transform:translateY(-50%); max-width:420px; color:white; }
.map-content h2 { color:white; font-size:34px; }
.map-content p { color:rgba(255,255,255,.8); }
.appointment-wrap { display:grid; grid-template-columns:1.1fr .9fr; gap:32px; align-items:start; }
.appointment-side { display:grid; gap:22px; }
.hours-card, .support-card { padding:28px; border-radius:20px; background:white; border:1px solid var(--line); box-shadow:var(--shadow-sm); }
.hours-card h3, .support-card h3 { font-size:21px; }
.hours-list { display:grid; gap:11px; margin-top:17px; }
.hours-list div { display:flex; justify-content:space-between; gap:15px; padding-bottom:10px; border-bottom:1px dashed var(--line); font-size:13px; }
.hours-list div:last-child { border-bottom:0; }
.hours-list strong { color:var(--ink); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 23px; }
.news-card { border-radius: 21px; background: white; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.news-card-image { height: 220px; overflow: hidden; position: relative; }
.news-card-image img { width:100%; height:100%; object-fit:cover; transition:.5s ease; }
.news-date { position:absolute; left:16px; top:16px; padding:8px 11px; border-radius:9px; background:white; color:var(--navy); font-size:11px; font-weight:800; box-shadow:var(--shadow-sm); }
.news-card-body { padding:24px; }
.news-card-body span { color:var(--teal-dark); text-transform:uppercase; letter-spacing:1px; font-size:10px; font-weight:800; }
.news-card-body h3 { font-size:20px; margin:8px 0 10px; }
.news-card-body p { font-size:13px; }
.news-card:hover { transform:translateY(-7px); box-shadow:var(--shadow); }
.news-card:hover img { transform:scale(1.07); }

/* Footer */
.footer-cta { position: relative; z-index: 3; margin-bottom: -80px; }
.footer-cta-inner {
    min-height: 160px;
    padding: 34px 40px;
    border-radius: 26px;
    background: linear-gradient(120deg, var(--blue), var(--teal));
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    color: white;
}
.cta-icon { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.14); font-size: 28px; flex:0 0 auto; }
.footer-cta span { color: rgba(255,255,255,.75); font-size: 13px; }
.footer-cta h2 { color: white; margin: 4px 0 0; font-size: 31px; }
.footer-cta-actions { margin-left: auto; display: flex; gap: 11px; }
.site-footer { padding: 155px 0 0; background: #051f35; color: rgba(255,255,255,.67); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .75fr .9fr 1.3fr; gap: 45px; padding-bottom: 55px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.footer-brand img { width: 55px; height: 55px; object-fit: contain; border-radius: 15px; background: white; padding: 3px; }
.footer-brand span { display: flex; flex-direction: column; }
.footer-brand strong { color: white; font-size: 20px; }
.footer-brand small { color: rgba(255,255,255,.55); font-size: 10px; }
.footer-about p { font-size: 13px; max-width: 330px; }
.social-links { display: flex; gap: 9px; margin-top: 21px; }
.social-links a { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: white; }
.social-links a:hover { background: var(--teal); transform: translateY(-3px); }
.footer-column h3, .footer-contact h3 { color: white; font-size: 17px; margin-bottom: 21px; }
.footer-column { display: flex; flex-direction: column; gap: 9px; }
.footer-column a { font-size: 13px; }
.footer-column a:hover { color: #64ded9; transform: translateX(4px); }
.footer-contact { display: flex; flex-direction: column; gap: 13px; }
.footer-contact > a { display: flex; gap: 12px; font-size: 12px; }
.footer-contact > a i { color: #64ded9; margin-top: 5px; }
.opening-box { display: flex; gap: 12px; padding: 14px; background: rgba(255,255,255,.06); border-radius: 12px; margin-top: 5px; }
.opening-box i { color: #64ded9; margin-top: 4px; }
.opening-box span { display: flex; flex-direction: column; font-size: 11px; }
.opening-box strong { color: white; font-size: 13px; }
.footer-bottom { padding: 21px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 20px; }
.footer-bottom p { margin: 0; font-size: 11px; }
.floating-actions { position: fixed; z-index: 990; right: 20px; bottom: 80px; display: grid; gap: 10px; }
.floating-actions a, .back-to-top { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: white; border: 4px solid white; box-shadow: var(--shadow); }
.floating-call { background: var(--blue); }
.floating-whatsapp { background: #25d366; }
.floating-actions a:hover { transform: translateY(-4px) scale(1.04); color: white; }
.back-to-top { position: fixed; z-index: 989; right: 20px; bottom: 20px; border: 0; background: var(--navy); opacity: 0; visibility: hidden; transform: translateY(10px); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Success */
.success-card { max-width:760px; margin:0 auto; text-align:center; padding:55px; border-radius:28px; background:white; box-shadow:var(--shadow); }
.success-icon { width:84px; height:84px; margin:0 auto 24px; border-radius:50%; display:grid; place-items:center; color:white; background:linear-gradient(145deg,var(--teal),#48cec7); font-size:34px; }
.success-card h1 { font-size:42px; }

/* Responsive */
@media (max-width: 1199px) {
    .main-nav { gap: 9px; }
    .main-nav > ul > li > a, .dropdown-toggle { padding: 10px 9px; font-size: 13px; }
    .header-appointment { padding: 11px 14px; }
    .hero-inner { gap: 35px; }
    .department-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 991px) {
    .topbar-left a:nth-child(2), .topbar-right > span { display: none; }
    .topbar-inner { min-height: 38px; }
    .header-inner { min-height: 76px; }
    .brand-mark { width: 50px; height: 50px; }
    .brand-copy strong { font-size: 20px; }
    .menu-toggle { display: flex; }
    .main-nav {
        position: fixed;
        z-index: 1000;
        top: 114px;
        right: -100%;
        width: min(420px, 92vw);
        height: calc(100vh - 114px);
        padding: 20px;
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        background: white;
        box-shadow: -20px 30px 60px rgba(8,42,69,.18);
        transition: .35s ease;
    }
    .main-nav.open { right: 0; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 3px; }
    .main-nav > ul > li > a, .dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px 13px; }
    .nav-dropdown:hover > .dropdown-menu-custom { opacity: 0; visibility: hidden; }
    .nav-dropdown.open > .dropdown-menu-custom { opacity: 1; visibility: visible; }
    .dropdown-menu-custom, .mega-menu {
        position: static;
        width: 100%;
        min-width: 0;
        transform: none !important;
        display: none;
        margin-top: 5px;
        box-shadow: none;
        border-radius: 12px;
        background: var(--soft);
    }
    .nav-dropdown.open > .dropdown-menu-custom { display: block; }
    .mega-grid { grid-template-columns: repeat(2,1fr); }
    .mega-heading { display: none; }
    .header-appointment { width: 100%; }
    .hero { min-height: auto; }
    .hero-inner { grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 145px; }
    .hero-copy { max-width: 760px; }
    .hero-visual { min-height: 500px; }
    .hero-image-main { inset: 0 30px 0 80px; }
    .hero-building-card { left: 20px; }
    .hero-badge { right: 5px; }
    .quick-access { grid-template-columns: 1fr; }
    .quick-card { min-height: 120px; border-right:0; border-bottom:1px solid var(--line); }
    .quick-card:last-child { border-bottom:0; }
    .about-grid, .why-grid, .contact-grid, .appointment-wrap { grid-template-columns: 1fr; }
    .about-copy { order: -1; }
    .department-grid { grid-template-columns: repeat(2,1fr); }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .stat-item:nth-child(2) { border-right:0; }
    .stat-item:nth-child(-n+2) { border-bottom:1px solid rgba(255,255,255,.12); }
    .doctor-showcase { grid-template-columns: 1fr; }
    .doctor-photo { min-height: 520px; }
    .gallery-preview { grid-template-columns: 1fr 1fr; }
    .gallery-preview a:first-child { grid-row:auto; grid-column:1 / 3; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .service-layout { grid-template-columns: 1fr; }
    .service-sidebar { position: static; grid-template-columns: repeat(2,1fr); }
    .sidebar-card { grid-column:1 / 3; }
    .departments-full-grid, .news-grid { grid-template-columns: repeat(2,1fr); }
    .values-grid { grid-template-columns:1fr 1fr; }
    .facility-grid { grid-template-columns:repeat(2,1fr); }
    .footer-cta-inner { flex-wrap: wrap; }
    .footer-cta-actions { margin-left: 92px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .section { padding: 72px 0; }
    .topbar-right { margin-left:auto; }
    .topbar-left a:first-child { font-size:12px; }
    .emergency-link { padding:0 12px; }
    .brand-copy small { display:none; }
    .hero-inner { padding-top: 55px; padding-bottom: 125px; }
    .hero-copy h1 { font-size: 44px; letter-spacing:-1.5px; }
    .hero-copy > p { font-size:15px; }
    .hero-visual { min-height:410px; }
    .hero-image-main { inset:0 10px 0 35px; border-radius:30px 30px 30px 80px; }
    .hero-building-card { width:190px; left:0; bottom:15px; }
    .hero-building-card img { height:100px; }
    .hero-badge { width:100px; height:100px; right:-5px; top:30px; }
    .hero-badge strong { font-size:16px; }
    .quick-access-wrap { margin-top:-58px; }
    .quick-card { padding:22px; }
    .about-grid { gap:42px; }
    .about-visual { padding:10px 0 50px; }
    .about-main-img { height:400px; }
    .about-small-img { width:190px; height:135px; right:0; }
    .about-experience { left:10px; top:25px; width:116px; min-height:116px; padding:18px; }
    .about-experience strong { font-size:28px; }
    .check-list, .highlight-grid, .procedure-grid { grid-template-columns:1fr; }
    .department-grid, .departments-full-grid, .news-grid { grid-template-columns:1fr; }
    .department-card { min-height:330px; }
    .stats-grid { grid-template-columns:1fr 1fr; }
    .stat-item { padding:35px 15px; }
    .stat-item strong { font-size:32px; }
    .why-image { min-height:440px; }
    .doctor-copy { padding:35px 25px; }
    .doctor-copy h2 { font-size:33px; }
    .gallery-preview { display:grid; grid-template-columns:1fr; grid-template-rows:auto; }
    .gallery-preview a, .gallery-preview a:first-child { grid-column:auto; height:240px; }
    .gallery-grid { columns:2; }
    .page-banner { min-height:330px; }
    .page-banner h1 { font-size:41px; }
    .service-feature-image { height:300px; }
    .content-card { padding:26px 22px; }
    .content-card h2 { font-size:26px; }
    .service-sidebar { grid-template-columns:1fr; }
    .sidebar-card { grid-column:auto; }
    .split-cta { flex-direction:column; align-items:flex-start; padding:32px 25px; }
    .split-cta-actions { flex-wrap:wrap; }
    .values-grid, .facility-grid { grid-template-columns:1fr; }
    .form-row-custom { grid-template-columns:1fr; gap:0; }
    .form-card, .contact-info-panel { padding:28px 22px; }
    .map-content { left:25px; right:25px; }
    .footer-cta { margin-bottom:-110px; }
    .footer-cta-inner { padding:27px 23px; }
    .cta-icon { width:55px; height:55px; }
    .footer-cta h2 { font-size:24px; }
    .footer-cta-actions { margin-left:0; width:100%; flex-direction:column; }
    .site-footer { padding-top:180px; }
    .footer-grid { grid-template-columns:1fr; gap:32px; }
    .footer-bottom { flex-direction:column; text-align:center; }
}
@media (max-width: 480px) {
    .topbar-left a:first-child i { display:none; }
    .emergency-link span { display:none; }
    .brand-copy strong { font-size:18px; }
    .brand-mark { width:46px; height:46px; }
    .mega-grid { grid-template-columns:1fr; }
    .hero-copy h1 { font-size:38px; }
    .hero-actions { flex-direction:column; align-items:stretch; }
    .hero-actions .btn { width:100%; }
    .hero-trust { gap:12px; }
    .hero-visual { min-height:350px; }
    .hero-building-card { width:165px; }
    .hero-building-card img { height:82px; }
    .hero-badge { width:88px; height:88px; border-width:5px; }
    .hero-badge i { font-size:18px; }
    .hero-badge span { font-size:8px; }
    .stats-grid { grid-template-columns:1fr; }
    .stat-item { border-right:0 !important; border-bottom:1px solid rgba(255,255,255,.12); }
    .gallery-grid { columns:1; }
    .floating-actions { right:12px; }
    .back-to-top { right:12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
    .reveal { opacity:1; transform:none; }
}

/* Shared Monika Hospital banner image adjustments */
@media (max-width: 991px) {
    .hero, .page-banner { background-position: 74% center; }
    .hero-inner { grid-template-columns: minmax(0, 720px); }
}
@media (max-width: 767px) {
    .hero {
        min-height: 650px;
        background-position: 70% center;
        background-image:
            linear-gradient(90deg, rgba(4,30,50,.96) 0%, rgba(5,44,68,.88) 58%, rgba(5,57,84,.44) 100%),
            url('../images/bannerimage.png');
    }
    .page-banner {
        background-position: 70% center;
        background-image:
            linear-gradient(90deg, rgba(4,30,50,.96) 0%, rgba(5,45,69,.90) 58%, rgba(5,57,84,.48) 100%),
            var(--banner-image);
    }
}

/* =========================================================
   Mobile responsive stability fixes
   Keeps the existing design while preventing page overflow.
   ========================================================= */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body { overflow-x: clip; }
}

main,
header,
footer,
section,
.topbar,
.site-header {
    max-width: 100%;
}

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

iframe { width: 100%; }

input,
select,
textarea,
button {
    max-width: 100%;
}

/* Prevent long text, links and grid/flex children from widening the page. */
.container,
.header-inner,
.topbar-inner,
.hero-inner,
.about-grid,
.why-grid,
.contact-grid,
.appointment-wrap,
.service-layout,
.doctor-showcase,
.footer-grid,
.footer-cta-inner,
.department-grid,
.departments-full-grid,
.news-grid,
.values-grid,
.facility-grid,
.stats-grid,
.quick-access,
.gallery-preview,
.testimonial-grid,
.form-row-custom,
.highlight-grid,
.procedure-grid,
.check-list {
    min-width: 0;
}

.container > *,
.header-inner > *,
.hero-inner > *,
.about-grid > *,
.why-grid > *,
.contact-grid > *,
.appointment-wrap > *,
.service-layout > *,
.doctor-showcase > *,
.footer-grid > * {
    min-width: 0;
}

p,
a,
span,
strong,
small,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: anywhere;
}

/* Accessible anti-spam field that does not sit thousands of pixels off-screen. */
.hp-field {
    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;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Keep wide content inside its own area instead of creating page scroll. */
.table-responsive,
table {
    max-width: 100%;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
    body.menu-open {
        overflow: hidden !important;
        touch-action: none;
    }

    .topbar-inner,
    .header-inner {
        width: 100%;
    }

    .header-inner {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .brand {
        min-width: 0;
        max-width: calc(100% - 58px);
        gap: 10px;
    }

    .brand-mark {
        flex: 0 0 auto;
    }

    .brand-copy {
        min-width: 0;
        max-width: 100%;
    }

    .brand-copy strong {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        font-size: clamp(18px, 4.5vw, 23px);
    }

    .brand-copy small {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .menu-toggle {
        display: flex !important;
        flex: 0 0 46px;
        position: relative;
        z-index: 1003;
    }

    /* Off-canvas navigation: transform does not increase document width. */
    .main-nav {
        display: flex;
        position: fixed;
        z-index: 1002;
        top: var(--mobile-nav-top, 114px);
        right: 0 !important;
        left: auto !important;
        width: min(390px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        height: calc(100dvh - var(--mobile-nav-top, 114px));
        max-height: calc(100dvh - var(--mobile-nav-top, 114px));
        padding: 18px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translate3d(110%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        transition: transform .35s ease, opacity .25s ease, visibility .35s ease;
    }

    .main-nav.open {
        right: 0 !important;
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
    }

    .main-nav > ul,
    .main-nav > ul > li,
    .main-nav > ul > li > a,
    .dropdown-toggle,
    .dropdown-menu-custom,
    .mega-menu,
    .mega-grid,
    .header-appointment {
        max-width: 100%;
    }

    .main-nav > ul {
        width: 100%;
        overflow-x: hidden;
    }

    .dropdown-menu-custom,
    .mega-menu {
        overflow-x: hidden;
    }

    .mega-grid a,
    .dropdown-menu-custom > a {
        min-width: 0;
    }

    .mega-grid a span,
    .dropdown-menu-custom > a span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .hero-image-main,
    .hero-building-card,
    .hero-badge,
    .about-small-img,
    .about-experience {
        max-width: calc(100% - 10px);
    }

    .footer-cta-actions {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .container {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .topbar-inner {
        gap: 8px;
    }

    .topbar-left,
    .topbar-right {
        min-width: 0;
        gap: 8px;
    }

    .topbar-left a:first-child {
        white-space: nowrap;
    }

    .emergency-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .hero-copy,
    .page-banner-content,
    .content-card,
    .form-card,
    .contact-info-panel,
    .doctor-copy,
    .split-cta,
    .footer-cta-inner {
        max-width: 100%;
    }

    .hero-copy h1,
    .page-banner h1,
    .section-title,
    .doctor-copy h2,
    .success-card h1 {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .hero-visual,
    .about-visual,
    .why-image,
    .doctor-photo,
    .service-feature-image,
    .map-wrap {
        max-width: 100%;
        overflow: hidden;
    }

    .hero-badge {
        right: 5px;
    }

    .map-content {
        max-width: calc(100% - 50px);
    }

    .footer-cta-actions,
    .split-cta-actions,
    .hero-actions {
        width: 100%;
        max-width: 100%;
    }

    .footer-cta-actions .btn,
    .split-cta-actions .btn {
        max-width: 100%;
    }

    .floating-actions,
    .back-to-top {
        max-width: 56px;
    }
}

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

    .brand-copy strong {
        font-size: clamp(17px, 5vw, 20px);
    }

    .main-nav {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        padding: 15px;
    }

    .hero-copy h1 {
        font-size: clamp(32px, 10vw, 38px);
    }

    .page-banner h1 {
        font-size: clamp(32px, 10vw, 41px);
    }

    .success-card {
        padding: 38px 20px;
    }
}

/* Final mobile navigation containment: closed menu occupies no layout/overflow area. */
@media (max-width: 991px) {
    .main-nav {
        display: none !important;
        transform: none !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .main-nav.open {
        display: flex !important;
        transform: none !important;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
}

/* Tablet containment for CTA and floating about-image elements. */
@media (max-width: 991px) {
    .split-cta {
        flex-wrap: wrap;
        gap: 24px;
    }

    .split-cta > div:first-child {
        flex: 1 1 420px;
        min-width: 0;
    }

    .split-cta-actions {
        flex: 1 1 100%;
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
        white-space: normal;
    }

    .split-cta-actions .text-link,
    .split-cta-actions .btn {
        max-width: 100%;
        white-space: normal;
    }

    .about-small-img {
        right: 0;
    }

    .about-experience {
        left: 0;
    }
}

/* =========================================================
   Final mobile menu: compact panel with no visible scrollbar
   ========================================================= */
@media (max-width: 991px) {
    .main-nav {
        height: auto !important;
        max-height: calc(100dvh - var(--mobile-nav-top, 114px) - 8px) !important;
        padding: 12px 14px 14px !important;
        gap: 6px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .main-nav::-webkit-scrollbar,
    .main-nav *::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
        background: transparent !important;
    }

    .main-nav > ul {
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-nav > ul > li > a,
    .dropdown-toggle {
        min-height: 42px !important;
        padding: 9px 12px !important;
        margin: 0 !important;
    }

    .header-appointment {
        min-height: 43px !important;
        margin-top: 3px !important;
        padding: 10px 13px !important;
    }

    .dropdown-menu-custom,
    .mega-menu {
        max-height: none !important;
        overflow: visible !important;
    }
}

@media (max-width: 480px) {
    .main-nav {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        right: 8px !important;
        border-radius: 0 0 16px 16px;
    }
}


/* Client-requested laboratory, dialysis and LigaSure highlights */
.care-capabilities-section {
    background: linear-gradient(145deg, #eef8ff 0%, #f3fbfa 50%, #fff7f0 100%);
}
.care-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.care-capability-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-height: 255px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(22,119,200,.18);
    border-radius: 24px;
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow-sm);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.care-capability-card::after {
    content: "";
    position: absolute;
    width: 145px;
    height: 145px;
    right: -70px;
    bottom: -80px;
    border-radius: 50%;
    background: rgba(22,119,200,.07);
}
.care-capability-card:hover {
    transform: translateY(-8px);
    border-color: rgba(10,166,166,.45);
    box-shadow: var(--shadow);
}
.care-capability-icon {
    position: relative;
    z-index: 2;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: white;
    background: linear-gradient(145deg, var(--blue), var(--teal));
    box-shadow: 0 12px 25px rgba(22,119,200,.22);
    font-size: 24px;
}
.care-capability-card > div { position: relative; z-index: 2; }
.care-capability-label {
    display: block;
    margin-bottom: 7px;
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.care-capability-card h3 { margin-bottom: 10px; font-size: 23px; }
.care-capability-card p { margin-bottom: 17px; font-size: 13px; line-height: 1.65; }
.care-capability-card strong { color: var(--blue); font-size: 13px; }
.ligasure-card {
    padding-top: 55px;
    border: 2px solid rgba(239,95,100,.58);
    background: linear-gradient(145deg, #fff 0%, #fff3f0 100%);
    box-shadow: 0 20px 50px rgba(239,95,100,.16);
}
.ligasure-card::after { background: rgba(239,95,100,.10); }
.ligasure-card .care-capability-icon {
    background: linear-gradient(145deg, #ef5f64, #ff996f);
    box-shadow: 0 12px 25px rgba(239,95,100,.24);
}
.ligasure-card .care-capability-label,
.ligasure-card strong { color: #c9434a; }
.technology-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 37px;
    color: white;
    background: linear-gradient(90deg, #d94149, #f27362);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .7px;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .care-capabilities-grid { grid-template-columns: 1fr; }
    .care-capability-card { min-height: auto; }
}
@media (max-width: 575px) {
    .care-capability-card { padding: 24px; flex-direction: column; }
    .ligasure-card { padding-top: 58px; }
    .care-capability-card h3 { font-size: 21px; }
}
