:root {
    --ink: #081726;
    --navy: #061d37;
    --navy-2: #0a2d52;
    --blue: #0b7fc8;
    --cyan: #32c7e8;
    --mint: #97ead8;
    --orange: #ff8a3d;
    --paper: #ffffff;
    --soft: #f4f8fb;
    --soft-blue: #e9f5fb;
    --line: #d7e5ef;
    --muted: #617286;
    --success: #15885b;
    --danger: #b94046;
    --shadow: 0 22px 60px rgba(8, 23, 38, .13);
    --shadow-soft: 0 12px 34px rgba(8, 23, 38, .09);
    --radius: 8px;
    --container: 1320px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 112px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--soft);
    font-family: var(--font);
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

body > main {
    flex: 1 0 auto;
}

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

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

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

button {
    color: inherit;
}

svg {
    width: 1.15em;
    height: 1.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

h1,
h2,
h3 {
    letter-spacing: 0;
    line-height: 1.08;
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 2.45rem;
}

h3 {
    font-size: 1.22rem;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
}

.section {
    padding-block: 68px;
}

.skip-link {
    position: fixed;
    z-index: 300;
    top: 14px;
    left: 14px;
    padding: 10px 14px;
    color: #fff;
    background: var(--navy);
    border-radius: var(--radius);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(215, 229, 239, .74);
    backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
    box-shadow: 0 8px 26px rgba(8, 23, 38, .08);
}

.topbar {
    color: rgba(255, 255, 255, .84);
    background: #061d37;
    font-size: .86rem;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar-inner > div {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar span,
.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.topbar svg {
    color: var(--mint);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.brand > img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: none;
    color: #fff;
    background: linear-gradient(145deg, var(--blue), var(--navy));
    border-radius: 50%;
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .09);
}

.brand-mark svg {
    width: 28px;
    height: 28px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    color: var(--navy);
    font-size: 1.15rem;
    line-height: 1.2;
}

.brand small {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 900;
}

.main-menu > a,
.menu-dropdown > a {
    position: relative;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.main-menu > a::after,
.menu-dropdown > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 7px;
    height: 2px;
    background: var(--orange);
    transition: right .22s ease;
}

.main-menu > a:hover::after,
.main-menu > a.active::after,
.menu-dropdown:hover > a::after {
    right: 0;
}

.menu-dropdown {
    position: relative;
}

.menu-dropdown > div {
    position: absolute;
    top: 100%;
    left: -14px;
    min-width: 220px;
    display: grid;
    gap: 4px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scaleY(.92);
    transform-origin: top center;
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.menu-dropdown:hover > div,
.menu-dropdown:focus-within > div {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
}

.menu-dropdown > div a {
    padding: 10px 12px;
    color: var(--ink);
    border-radius: 6px;
    font-weight: 800;
}

.menu-dropdown > div a:hover {
    color: var(--blue);
    background: var(--soft-blue);
}

.menu-dropdown.mega > div {
    width: min(430px, 90vw);
}

.menu-dropdown.mega > div a {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 10px;
}

.menu-dropdown.mega > div a span {
    width: 38px;
    height: 38px;
    grid-row: span 2;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: var(--soft-blue);
    border-radius: 50%;
}

.menu-dropdown.mega > div a small {
    color: var(--muted);
    font-weight: 600;
}

.appointment-button,
.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid var(--blue);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.appointment-button {
    color: var(--navy);
    background: #fff;
    border-color: #2b1d5f;
}

.btn.primary {
    color: #fff;
    background: var(--blue);
}

.btn.glass {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .34);
    backdrop-filter: blur(8px);
}

.btn:hover,
.appointment-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 900;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s, border-color 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
}

.lang-flag-svg-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lang-code-txt {
    font-weight: 800;
    letter-spacing: 0.5px;
}

.lang-arrow svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
    transform: rotate(90deg);
}

.lang-dropdown.open .lang-arrow svg {
    transform: rotate(-90deg);
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 170px;
    background: #091f38;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    display: none;
    z-index: 120;
}

.lang-dropdown.open .lang-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: fadeInDown 0.2s ease;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: #d1e7f6;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.lang-code-pill {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 800;
    color: #7ba5c4;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.lang-item:hover,
.lang-item.active {
    background: rgba(50, 199, 232, 0.22);
    color: #fff;
}

.lang-item.active .lang-code-pill {
    background: #00a6c8;
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f0f6fa;
    border: 1px solid #d5e4f0;
    border-radius: var(--radius);
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-search-btn:hover {
    background: #e3eff7;
    border-color: #0b7fc8;
    color: #0b7fc8;
    transform: translateY(-1px);
}

.header-search-btn svg {
    width: 17px;
    height: 17px;
}

/* Glowing Rotating Border Appointment Button */
.appointment-button.glowing-border {
    position: relative;
    padding: 12px 22px;
    background: #061d37;
    color: #ffffff;
    border-radius: 10px;
    border: none;
    font-weight: 900;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(6, 29, 55, 0.28);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
    z-index: 1;
}

.appointment-button.glowing-border::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 12px;
    background: conic-gradient(from 0deg, #32c7e8, #ff8a3d, #32c7e8, #97ead8, #32c7e8);
    z-index: -2;
    animation: rotateGlow 3.5s linear infinite;
}

.appointment-button.glowing-border::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: #061d37;
    border-radius: 8px;
    z-index: -1;
    transition: background 0.2s;
}

.appointment-button.glowing-border:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 28px rgba(50, 199, 232, 0.35);
}

.appointment-button.glowing-border:hover::after {
    background: #0a2d52;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Search Modal */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    padding: 20px;
}

.search-modal[hidden] {
    display: none;
}

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 29, 55, 0.72);
    backdrop-filter: blur(8px);
}

.search-modal-box {
    position: relative;
    width: min(640px, 100%);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    z-index: 2;
    animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2edf6;
    background: #fbfdff;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.search-input-group svg {
    width: 22px;
    height: 22px;
    color: #0b7fc8;
}

.search-input-group input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    color: #081726;
    background: transparent;
    font-weight: 600;
}

.search-modal-close {
    border: none;
    background: #f0f6fa;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #617286;
    transition: background 0.2s, color 0.2s;
}

.search-modal-close:hover {
    background: #e1edf5;
    color: #081726;
}

.search-modal-results {
    max-height: 420px;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-placeholder-text {
    text-align: center;
    color: #8c9ba5;
    padding: 24px;
    font-size: 14.5px;
}

.live-search-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: #f8fbfe;
    border: 1px solid #e5eff7;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.live-search-item:hover {
    background: #eef7fc;
    border-color: #0b7fc8;
    transform: translateX(4px);
}

.live-search-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.live-search-item strong {
    color: #061d37;
    font-size: 15px;
}

.live-search-item p {
    margin: 0;
    color: #617286;
    font-size: 13px;
    line-height: 1.4;
}

.search-type-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    background: #e0f2fe;
    color: #0284c7;
}

/* Social Rail - Individual Hover Slide (Leftward Expansion) */
.social-rail {
    position: fixed;
    z-index: 99;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.social-rail-item {
    pointer-events: auto;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    padding: 0 0 0 6px;
    color: #fff;
    background: #081729;
    border: 1.5px solid rgba(255, 214, 39, .5);
    border-right: none;
    border-radius: 12px 0 0 12px;
    box-shadow: -6px 10px 28px rgba(0, 0, 0, .35);
    transition: width .3s cubic-bezier(.16, 1, .3, 1), background .25s ease, border-color .25s ease, box-shadow .25s ease;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}

.social-rail-item .social-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: grid;
    place-items: center;
    flex: none;
    color: #071323;
    background: linear-gradient(135deg, #ffe066, #f59e0b);
    border: 2px solid rgba(255, 214, 39, .95);
    border-radius: 50%;
    box-shadow: 0 0 0 2px #081729, 0 0 16px rgba(255, 214, 39, .35);
}

.social-rail-item .social-icon svg {
    width: 20px;
    height: 20px;
}

.social-rail-item .social-label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: none;
    padding-right: 14px;
}

/* ONLY the hovered item expands */
.social-rail-item:hover,
.social-rail-item:focus-visible {
    width: 195px;
    background: #0d284a;
    border-color: #ffd627;
    box-shadow: -10px 14px 36px rgba(0, 0, 0, .45);
}

.social-rail-item:hover .social-label,
.social-rail-item:focus-visible .social-label {
    opacity: 1;
    transform: translateX(0);
}

.hero {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(6, 29, 55, .98) 0%, rgba(6, 29, 55, .88) 46%, rgba(8, 23, 38, .66) 100%),
        var(--hero-bg) center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 58%, rgba(50, 199, 232, .11) 78%, transparent 100%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 24px);
    opacity: .85;
}

.water-canvas,
.hero-medical-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.water-canvas {
    z-index: 2;
    mix-blend-mode: screen;
    opacity: .92;
}

.hero-medical-lines {
    z-index: 1;
    background:
        linear-gradient(180deg, transparent 58%, rgba(50, 199, 232, .13)),
        repeating-linear-gradient(90deg, rgba(50, 199, 232, .12) 0 1px, transparent 1px 88px);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 90%, transparent);
}

.hero-grid {
    position: relative;
    z-index: 3;
    min-height: 670px;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(500px, 1fr);
    align-items: center;
    gap: 38px;
    padding-block: 48px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--cyan);
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.eyebrow span {
    width: 36px;
    height: 2px;
    background: var(--orange);
}

.eyebrow.dark {
    color: var(--blue);
}

.hero-copy h1 {
    margin-bottom: 6px;
    color: #fff;
}

.hero-copy h2 {
    margin-bottom: 20px;
    color: var(--mint);
    font-size: 2.1rem;
}

.hero-copy p:not(.eyebrow) {
    max-width: 590px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.13rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 620px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

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

.hero-trust strong {
    color: #fff;
    font-size: 1.65rem;
}

.hero-trust span {
    color: rgba(255, 255, 255, .68);
    font-size: .84rem;
}

.hero-portrait {
    position: relative;
    min-height: 640px;
    display: grid;
    place-items: end center;
    transform-style: preserve-3d;
    transition: transform .16s ease;
}

.hero-portrait img {
    position: relative;
    z-index: 2;
    width: min(100%, 560px);
    height: 620px;
    max-height: none;
    object-fit: cover;
    object-position: top center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 46% 46% 8px 8px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.surgical-orbit {
    position: absolute;
    z-index: 4;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(50, 199, 232, .5);
    border-radius: 50%;
    animation: rotate 18s linear infinite;
}

.surgical-orbit::before,
.surgical-orbit::after {
    content: "";
    position: absolute;
    inset: 46px;
    border: 1px dashed rgba(151, 234, 216, .48);
    border-radius: 50%;
}

.surgical-orbit::after {
    inset: 104px;
    border-color: rgba(255, 138, 61, .42);
    animation: rotate 9s linear infinite reverse;
}

.doctor-badge {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 265px;
    padding: 12px 14px;
    color: #fff;
    background: rgba(6, 29, 55, .86);
    border: 1px solid rgba(151, 234, 216, .34);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    font-size: .9rem;
    font-weight: 900;
}

.doctor-badge svg {
    color: var(--mint);
    flex: none;
}

.badge-a {
    left: 0;
    top: 32%;
}

.badge-b {
    right: 0;
    bottom: 14%;
}

.section-head {
    max-width: 760px;
    margin-bottom: 26px;
}

.section-head.split {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-head h2 {
    margin-bottom: 12px;
}

.section-head p:not(.eyebrow) {
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 950;
}

.disease-section,
.services-preview,
.home-contact-map,
.map-section {
    background: #fff;
}

.disease-section {
    padding-block: 56px 44px;
}

.services-preview {
    padding-block: 54px;
}

.disease-tree {
    padding: 0;
    background: transparent;
    border: 0;
}

/* Medical Tree Component (Image 1) */
.medical-tree-container {
    background: #fbfdff;
    border: 1.5px solid #dbe6ef;
    border-radius: 14px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(6, 31, 59, 0.04);
}

.tree-root-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

@media (max-width: 980px) {
    .tree-root-row {
        grid-template-columns: 1fr;
    }
}

.tree-root-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    animation: slideInBranch 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--col-delay, 0s);
}

.tree-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 20px;
    background: #ffffff;
    border: 1.5px solid #d5e4f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(6, 31, 59, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    z-index: 2;
}

.tree-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(2, 132, 199, 0.12);
    border-color: #0284c7;
}

.tree-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0077b6;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 900;
    flex: none;
    box-shadow: 0 4px 14px rgba(0, 119, 182, 0.28);
}

.tree-badge.child {
    background: #0088cc;
    font-size: 18px;
}

.tree-card-info h3,
.tree-card-info h4 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    color: #061d37;
    line-height: 1.3;
}

.tree-card-info p {
    margin: 0;
    font-size: 13.5px;
    color: #617286;
    line-height: 1.5;
}

.tree-branch-wrapper {
    position: relative;
    padding-left: 20px;
    margin-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tree-branch-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    top: -10px;
    bottom: 24px;
    width: 2px;
    background: #38bdf8;
}

.tree-children-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 600px) {
    .tree-children-row {
        grid-template-columns: 1fr;
    }
}

.tree-child-node {
    position: relative;
    animation: slideInNode 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--node-delay, 0s);
}

.branch-connector-line {
    position: absolute;
    left: -20px;
    top: 32px;
    width: 20px;
    height: 2px;
    background: #38bdf8;
}

@keyframes slideInBranch {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInNode {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating WhatsApp Widget (Requirement #10) */
.whatsapp-widget-container {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 950;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-pulse-btn {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    display: grid;
    place-items: center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-pulse-btn:hover {
    transform: scale(1.08);
}

.whatsapp-btn-icon svg {
    width: 32px;
    height: 32px;
}

.pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: waRadar 2.4s ease-out infinite;
    pointer-events: none;
}

.pulse-ring.ring-2 {
    animation-delay: 1.2s;
}

@keyframes waRadar {
    0% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-popup {
    position: absolute;
    bottom: calc(100% + 16px);
    right: 0;
    width: 340px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid #d5e4f0;
    animation: slideUpFade 0.25s ease;
    z-index: 951;
}

.whatsapp-popup[hidden] {
    display: none;
}

.whatsapp-popup-header {
    background: linear-gradient(135deg, #075e54, #128c7e);
    color: #ffffff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #128c7e;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
}

.whatsapp-avatar .avatar-icon svg {
    width: 24px;
    height: 24px;
}

.online-indicator {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 10px;
    height: 10px;
    background: #25d366;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.whatsapp-header-text strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
}

.whatsapp-header-text small {
    display: block;
    color: #c4f4dc;
    font-size: 12px;
    margin-top: 3px;
}

.whatsapp-popup-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.whatsapp-popup-close:hover {
    background: rgba(255,255,255,0.18);
    color: #ffffff;
}

.whatsapp-popup-body {
    padding: 16px;
    background: #f9fbfe;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whatsapp-prompt-text {
    margin: 0;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.45;
}

.whatsapp-presets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-preset-btn {
    text-align: left;
    padding: 10px 12px;
    background: #ffffff;
    border: 1.5px solid #dbe6ef;
    border-radius: 8px;
    font-size: 13px;
    color: #1a202c;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.wa-preset-btn:hover, .wa-preset-btn.selected {
    background: #e8f7f0;
    border-color: #25d366;
    color: #075e54;
    font-weight: 700;
}

.whatsapp-custom-input textarea {
    width: 100%;
    border: 1.5px solid #dbe6ef;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
}

.whatsapp-custom-input textarea:focus {
    border-color: #128c7e;
}

.whatsapp-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Gallery Modern Tabs (Requirement #8) */
.clean-page-heading {
    margin-bottom: 28px;
}

.clean-page-heading h1 {
    font-size: 2.8rem;
    color: #061d37;
    margin: 8px 0 0;
}

.filter-tabs-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.filter-tab-pill {
    padding: 10px 20px;
    border-radius: 30px;
    background: #ffffff;
    border: 1.5px solid #d5e4f0;
    color: #081726;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-tab-pill:hover,
.filter-tab-pill.active {
    background: #0b7fc8;
    border-color: #0b7fc8;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(11, 127, 200, 0.25);
    transform: translateY(-1px);
}

/* Search Page Styles */
.search-page-form {
    max-width: 680px;
    margin: 0 auto 36px;
}

.search-input-wrap.large {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 18px;
    background: #ffffff;
    border: 2px solid #d5e4f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(6, 31, 59, 0.06);
}

.search-input-wrap.large svg {
    width: 22px;
    height: 22px;
    color: #0b7fc8;
}

.search-input-wrap.large input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    color: #081726;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.search-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #dbe6ef;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(6, 31, 59, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 166, 200, 0.12);
}

.search-card-meta .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.search-card-meta .badge.type-service {
    background: #e0f2fe;
    color: #0369a1;
}

.search-card-meta .badge.type-disease {
    background: #ecfdf5;
    color: #047857;
}

.search-card-meta .badge.type-blog {
    background: #fef3c7;
    color: #b45309;
}

.search-card h3 {
    margin: 0;
    font-size: 18px;
    color: #061d37;
}

.search-card p {
    margin: 0;
    color: #617286;
    font-size: 14px;
    line-height: 1.5;
}

.service-grid,
.blog-grid,
.gallery-grid,
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card,
.blog-card,
.gallery-card,
.video-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 0 rgba(8, 23, 38, .02);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card:hover,
.blog-card:hover,
.gallery-card:hover,
.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(11, 127, 200, .35);
    box-shadow: var(--shadow-soft);
}

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

.gallery-card {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.gallery-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.gallery-card button {
    height: 260px;
    border-radius: var(--radius);
    box-shadow: 0 14px 30px rgba(8, 23, 38, .1);
    transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-slider .gallery-card button {
    height: 250px;
}

.gallery-card:hover button {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 24px 54px rgba(8, 23, 38, .2);
}

.gallery-card > div {
    display: none;
}

.gallery-zoom-icon {
    position: absolute;
    inset: auto 14px 14px auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(6, 29, 55, .82);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease;
}

.gallery-card:hover .gallery-zoom-icon {
    opacity: 1;
    transform: translateY(0);
}

.gallery-zoom-icon svg {
    width: 20px;
    height: 20px;
}

.service-media,
.blog-image,
.gallery-card button,
.video-card button {
    position: relative;
    width: 100%;
    height: 220px;
    display: block;
    overflow: hidden;
    padding: 0;
    background: var(--navy);
    border: 0;
    cursor: pointer;
}

.service-media img,
.blog-image img,
.gallery-card img,
.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .36s ease;
}

.service-card:hover img,
.blog-card:hover img,
.gallery-card:hover img,
.video-card:hover img {
    transform: scale(1.06);
}

.gallery-card button {
    height: 260px;
}

.gallery-slider .gallery-card button {
    height: 250px;
}

.service-content,
.blog-body,
.gallery-card > div,
.video-card > div {
    padding: 18px;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    color: var(--blue);
    background: var(--soft-blue);
    border-radius: 50%;
}

.meta,
.gallery-card span {
    margin-bottom: 8px;
    color: var(--orange);
    font-size: .75rem;
    font-weight: 950;
    text-transform: uppercase;
}

.service-card p:not(.meta),
.blog-card p:not(.meta),
.gallery-card p,
.video-card p {
    color: var(--muted);
    font-size: .94rem;
}

.blog-preview {
    background: var(--soft-blue);
}

.blog-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.operation-gallery {
    color: #fff;
    background: var(--navy);
}

.operation-gallery .section-head p:not(.eyebrow) {
    color: rgba(255, 255, 255, .7);
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-controls button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    cursor: pointer;
}

.slider-controls button:first-child svg {
    transform: rotate(180deg);
}

.gallery-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(290px, 380px);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

.gallery-slider .gallery-card {
    scroll-snap-align: start;
    color: var(--ink);
}

.map-contact-grid,
.contact-layout,
.content-grid,
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

.map-shell {
    min-height: 370px;
    overflow: hidden;
    background: var(--soft-blue);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.map-shell iframe {
    width: 100%;
    height: 370px;
    display: block;
    border: 0;
}

.map-placeholder {
    min-height: 370px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 24px;
    color: var(--navy);
    text-align: center;
    background:
        linear-gradient(135deg, rgba(233, 245, 251, .94), rgba(255, 255, 255, .7)),
        repeating-linear-gradient(90deg, rgba(11, 127, 200, .14) 0 1px, transparent 1px 36px),
        repeating-linear-gradient(0deg, rgba(11, 127, 200, .1) 0 1px, transparent 1px 36px);
}

.map-placeholder svg {
    width: 54px;
    height: 54px;
    color: var(--blue);
}

.map-placeholder span {
    color: var(--muted);
}

.contact-mini {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.contact-mini a,
.contact-mini span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: 900;
}

.partners-section {
    background: #fff;
}

.partner-marquee {
    overflow: hidden;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.partner-marquee > div {
    display: flex;
    width: max-content;
    animation: marquee 26s linear infinite;
}

.partner-marquee:hover > div {
    animation-play-state: paused;
}

.partner-item {
    position: relative;
    width: 180px;
    height: 124px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 16px;
    border-right: 1px solid var(--line);
    color: var(--navy);
    transition: transform .22s ease, background .22s ease;
}

.partner-item:hover {
    z-index: 2;
    background: #fff;
    transform: scale(1.08) rotateX(4deg);
}

.partner-item::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid transparent;
    border-top-color: var(--cyan);
    border-bottom-color: var(--orange);
    border-radius: 50%;
    opacity: 0;
}

.partner-item:hover::after {
    opacity: 1;
    animation: rotate 1.2s linear infinite;
}

.partner-item img {
    max-width: 110px;
    max-height: 54px;
    object-fit: contain;
}

.partner-item span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--blue);
    border-radius: 50%;
    font-weight: 950;
}

.partner-item b {
    font-size: .86rem;
    text-align: center;
}

.page-hero {
    color: #fff;
    background:
        linear-gradient(118deg, rgba(6, 29, 55, .98), rgba(10, 45, 82, .92)),
        url('../images/surgery-hero.png') center / cover no-repeat;
}

.page-hero-inner {
    min-height: 260px;
    display: grid;
    align-content: center;
    padding-block: 46px;
}

.page-hero h1 {
    max-width: 900px;
    margin-bottom: 14px;
    font-size: 3.35rem;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: rgba(255, 255, 255, .78);
    font-size: 1.1rem;
}

.content-section {
    background: #fff;
}

.rich-content {
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.rich-content p,
.rich-content li {
    color: #43576b;
}

.rich-content h2,
.rich-content h3 {
    margin-top: 28px;
}

.content-cover {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    margin-bottom: 24px;
    border-radius: var(--radius);
}

.doctor-profile,
.side-widget,
.blog-sidebar {
    position: sticky;
    top: 136px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.doctor-profile img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: top center;
}

.doctor-profile div {
    padding: 18px;
}

.doctor-profile strong,
.doctor-profile span {
    display: block;
}

.doctor-profile strong {
    color: var(--navy);
    font-size: 1.2rem;
}

.doctor-profile span,
.doctor-profile p {
    color: var(--muted);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.principles-grid div {
    padding: 18px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.principles-grid svg {
    color: var(--blue);
    width: 30px;
    height: 30px;
}

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

.principles-grid strong {
    margin: 10px 0 6px;
    color: var(--navy);
}

.principles-grid span {
    color: var(--muted);
    font-size: .9rem;
}

.side-widget,
.blog-sidebar {
    display: grid;
    gap: 4px;
    padding: 12px;
}

.side-widget strong,
.blog-sidebar strong {
    padding: 10px 12px;
    color: var(--navy);
    font-size: .92rem;
    text-transform: uppercase;
}

.side-widget a,
.blog-sidebar a {
    padding: 10px 12px;
    color: #3e5165;
    border-radius: 6px;
    font-weight: 800;
}

.side-widget a:hover,
.side-widget a.active,
.blog-sidebar a:hover,
.blog-sidebar a.active {
    color: var(--blue);
    background: var(--soft-blue);
}

.category-block + .category-block {
    margin-top: 38px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.filter-tabs a,
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 13px;
    color: var(--blue);
    background: var(--soft-blue);
    border: 1px solid rgba(11, 127, 200, .16);
    border-radius: 999px;
    font-weight: 900;
}

.filter-tabs a.active,
.pagination a.active {
    color: #fff;
    background: var(--blue);
}

.video-card button span {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(11, 127, 200, .92);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.blog-search {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.blog-search label {
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.blog-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
}

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

.contact-section {
    background: #fff;
}

.contact-layout {
    grid-template-columns: .85fr 1.15fr;
}

.contact-cards {
    display: grid;
    gap: 14px;
}

.contact-cards > div {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.contact-cards svg {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    color: var(--blue);
}

.contact-cards span {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 900;
}

.contact-cards a,
.contact-cards strong {
    color: var(--navy);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.contact-form .wide,
.contact-form .form-alert {
    grid-column: 1 / -1;
}

.contact-form span {
    color: var(--navy);
    font-size: .88rem;
    font-weight: 900;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 127, 200, .13);
}

.form-alert {
    padding: 13px 14px;
    border-radius: var(--radius);
    font-weight: 900;
}

.form-alert.success {
    color: #0f6d4b;
    background: #e6f8ef;
    border: 1px solid #b8e8d2;
}

.form-alert.danger {
    color: #98323a;
    background: #fff0f1;
    border: 1px solid #f1c3c7;
}

.footer {
    color: rgba(255, 255, 255, .73);
    background: #041626;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 32px;
    padding-block: 56px;
}

.brand.inverse strong {
    color: #fff;
}

.brand.inverse small {
    color: rgba(255, 255, 255, .62);
}

.footer h2 {
    margin-bottom: 14px;
    color: #fff;
    font-size: .92rem;
    text-transform: uppercase;
}

.footer a,
.footer p {
    display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
}

.footer a:hover {
    color: var(--cyan);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin: 0;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
}

.footer-bottom {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

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

.developer-credit a {
    display: inline;
    margin: 0;
    color: #fff;
    font-weight: 900;
}

.developer-credit a:hover {
    color: var(--cyan);
}

.lightbox,
.video-modal {
    position: fixed;
    z-index: 260;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    color: #fff;
    background: rgba(4, 22, 38, .9);
}

.lightbox {
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
}

.lightbox[hidden],
.video-modal[hidden] {
    display: none;
}

.lightbox img {
    grid-column: 2;
    grid-row: 1;
    max-width: min(100%, 980px);
    max-height: 78vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.lightbox button,
.video-modal button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.9rem;
}

.lightbox .lightbox-prev,
.lightbox .lightbox-next {
    position: static;
    grid-row: 1;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    background: rgba(11, 127, 200, .82);
}

.lightbox .lightbox-prev {
    grid-column: 1;
}

.lightbox .lightbox-prev svg {
    transform: rotate(180deg);
}

.lightbox .lightbox-next {
    grid-column: 3;
}

.lightbox strong {
    display: none;
}

.video-modal iframe {
    width: min(100%, 980px);
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.reveal {
    opacity: 1;
    transform: none;
    transition: opacity .55s ease, transform .55s ease;
}

.js-animate .reveal {
    opacity: 0;
    transform: translateY(18px);
}

.reveal-now,
.reveal.is-visible,
.js-animate .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes menuDrop {
    from {
        opacity: 0;
        transform: translateY(-8px) scaleY(.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@media (max-width: 1100px) {
    h1 {
        font-size: 4rem;
    }

    .appointment-button span {
        display: none;
    }

    .main-menu {
        gap: 14px;
        font-size: .84rem;
    }
}

@media (max-width: 940px) {
    .nav {
        position: relative;
        justify-content: space-between;
        align-items: center;
        min-height: 72px;
        gap: 12px;
    }

    .brand {
        order: 1;
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand-mark,
    .brand > img {
        width: 44px;
        height: 44px;
    }

    .brand strong {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand small {
        display: none;
    }

    .topbar-inner {
        justify-content: center;
    }

    .topbar-inner > div:first-child {
        display: none;
    }

    .header-actions {
        order: 2;
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
    }

    .header-search-btn {
        width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius);
    }

    .header-search-btn span {
        display: none;
    }

    .appointment-button.glowing-border {
        display: inline-flex !important;
        width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        border-radius: var(--radius);
        align-items: center;
        justify-content: center;
    }

    .appointment-button.glowing-border span:not(.glow-shimmer) {
        display: none;
    }

    .appointment-button.glowing-border svg {
        width: 18px;
        height: 18px;
        margin: 0;
    }

    .menu-toggle {
        display: inline-flex;
        order: 3;
        position: static;
        width: 38px;
        height: 38px;
        min-height: 38px;
        flex: 0 0 38px;
        margin: 0;
        padding: 0;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius);
        z-index: 4;
        transform: none;
    }

    .menu-toggle span {
        display: none;
    }

    .main-menu {
        position: fixed;
        inset: 126px 0 auto;
        max-height: calc(100vh - 126px);
        overflow: auto;
        display: grid;
        justify-content: stretch;
        gap: 0;
        padding: 18px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: .2s ease;
    }

    .main-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-menu > a,
    .menu-dropdown > a {
        min-height: 44px;
        padding: 8px 0;
    }

    .menu-dropdown > div,
    .menu-dropdown.mega > div {
        position: static;
        width: auto;
        min-width: 0;
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: scaleY(.9);
        transform-origin: top center;
        box-shadow: none;
        border-left: 2px solid var(--soft-blue);
        margin-bottom: 8px;
    }

    .menu-dropdown.open > div,
    .menu-dropdown:focus-within > div {
        display: grid;
        opacity: 1;
        visibility: visible;
        transform: scaleY(1);
        animation: menuDrop .22s ease both;
    }

    .hero-grid,
    .map-contact-grid,
    .content-grid,
    .blog-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-portrait {
        min-height: 500px;
    }

    .branch-level.level-0,
    .tree-level.level-0,
    .service-grid,
    .blog-grid,
    .gallery-grid,
    .video-grid,
    .footer-grid,
    .principles-grid {
        grid-template-columns: 1fr 1fr;
    }

    .branch-tree::before {
        left: 48px;
        right: auto;
        top: 30px;
        bottom: 30px;
        width: 2px;
        height: auto;
        transform: scaleY(0);
        transform-origin: top center;
    }

    .branch-tree.is-open::before {
        transform: scaleY(1);
    }

    .branch-level.level-0 {
        grid-template-columns: 1fr;
    }

    .branch-level.level-1 {
        grid-template-columns: 1fr;
    }

    .branch-level.level-0 > .branch-group::before {
        display: block;
    }

    .doctor-profile,
    .side-widget,
    .blog-sidebar {
        position: static;
    }

    .social-rail {
        display: none;
    }
}

@media (max-width: 640px) {
    h1,
    .page-hero h1 {
        font-size: 2.45rem;
    }

    h2 {
        font-size: 1.82rem;
    }

    .section {
        padding-block: 46px;
    }

    .topbar {
        display: none;
    }

    .container,
    .nav {
        width: min(calc(100% - 24px), var(--container));
    }

    .nav {
        min-height: 68px;
        gap: 8px;
        justify-content: space-between;
        align-items: center;
    }

    .brand {
        min-width: 0;
        flex: 1 1 auto;
        order: 1;
        gap: 8px;
    }

    .brand-mark,
    .brand > img {
        width: 38px;
        height: 38px;
    }

    .brand strong {
        font-size: 0.92rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand small {
        display: none;
    }

    .header-actions {
        order: 2;
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 0 0 auto;
    }

    .header-search-btn {
        width: 36px;
        height: 36px;
        min-height: 36px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius);
    }

    .header-search-btn span {
        display: none;
    }

    .appointment-button.glowing-border {
        display: inline-flex !important;
        width: 36px;
        height: 36px;
        min-height: 36px;
        padding: 0;
        border-radius: var(--radius);
        align-items: center;
        justify-content: center;
    }

    .appointment-button.glowing-border span:not(.glow-shimmer) {
        display: none;
    }

    .appointment-button.glowing-border svg {
        width: 17px;
        height: 17px;
        margin: 0;
    }

    .menu-toggle {
        position: static;
        width: 36px;
        height: 36px;
        min-height: 36px;
        flex: 0 0 36px;
        order: 3;
        margin: 0;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius);
        transform: none;
    }

    .menu-toggle span {
        display: none;
    }

    .main-menu {
        inset: 68px 0 auto;
        max-height: calc(100vh - 68px);
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        min-height: 0;
        gap: 22px;
        padding-block: 44px 16px;
    }

    .hero-copy {
        max-width: min(350px, 100%);
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .hero-copy h2 {
        font-size: 1.42rem;
    }

    .hero-copy p:not(.eyebrow) {
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
    }

    .hero-trust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .hero-trust strong {
        font-size: 1.25rem;
    }

    .hero-trust span {
        font-size: .72rem;
        overflow-wrap: anywhere;
    }

    .hero-portrait {
        min-height: 450px;
    }

    .hero-portrait img {
        width: min(100%, 360px);
        height: 440px;
    }

    .surgical-orbit {
        width: 310px;
        height: 310px;
    }

    .doctor-badge {
        max-width: 230px;
        font-size: .78rem;
    }

    .badge-a {
        top: 10%;
    }

    .badge-b {
        right: 10px;
        bottom: 4%;
    }

    .section-head.split {
        display: block;
    }

    .branch-level.level-0,
    .tree-level.level-0,
    .service-grid,
    .blog-grid,
    .gallery-grid,
    .video-grid,
    .footer-grid,
    .principles-grid,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .disease-tree,
    .rich-content,
    .contact-form {
        padding: 18px;
    }

    .branch-tree {
        padding: 18px 14px 18px 52px;
    }

    .gallery-card button,
    .gallery-slider .gallery-card button {
        height: 260px;
    }

    .blog-row {
        grid-auto-columns: minmax(240px, 86vw);
    }

    .blog-search {
        display: grid;
    }

    .contact-form .wide,
    .contact-form .form-alert {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-block: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .water-canvas {
        display: none;
    }
}

/* 2026 refinement: compact headers, responsive clinical timelines and media interactions. */
.page-hero-inner {
    min-height: 168px;
    padding-block: 28px;
}
.page-hero h1 { margin-bottom: 8px; font-size: clamp(2rem, 3.2vw, 3rem); }
.page-hero p:not(.eyebrow) { margin-bottom: 0; font-size: 1rem; }

.doctor-skill-card > span img { width: 28px; height: 28px; object-fit: contain; }

.education-timeline::before { left: 108px; }
.education-item { position: relative; grid-template-columns: 88px 1fr; gap: 40px; }
.education-item::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 25px;
    left: 101px;
    width: 14px;
    height: 14px;
    background: var(--mint);
    border: 3px solid var(--blue);
    border-radius: 50%;
}
.education-item > div::before { display: none; }

.certificates-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 30px; align-items: stretch; }
.certificate-list { display: grid; gap: 15px; }
.certificate-card { min-height: 154px; display: grid; grid-template-columns: var(--certificate-image-width, 190px) minmax(0, 1fr) 34px; align-items: center; }
.certificate-card:hover { transform: translateX(7px); }
.certificate-preview { width: var(--certificate-image-width, 190px); height: 154px; aspect-ratio: auto; }
.certificate-preview img { object-fit: contain; padding: 10px; }
.certificate-copy { align-content: center; padding: 18px 22px; }
.certificate-copy p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.certificate-open { color: var(--blue); }
.certificate-doctor { position: relative; min-height: 100%; overflow: hidden; background: linear-gradient(155deg, #e9f5fb, #fff); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); }
.certificate-doctor img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: center top; }
.certificate-doctor div { position: absolute; right: 14px; bottom: 14px; left: 14px; display: grid; padding: 15px 17px; color: #fff; background: rgba(6,29,55,.88); border-radius: 12px; backdrop-filter: blur(10px); }
.certificate-doctor div span { color: rgba(255,255,255,.72); font-size: .8rem; }

.gallery-slider { cursor: grab; scroll-snap-type: none; scrollbar-width: thin; user-select: none; touch-action: pan-y; }
.gallery-slider.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.gallery-slider .gallery-card { transition: transform .24s ease, filter .24s ease; }
.gallery-slider .gallery-card:hover { z-index: 4; transform: translateY(-8px) scale(1.035); filter: drop-shadow(0 18px 22px rgba(6,29,55,.18)); }

.map-contact-grid { grid-template-columns: minmax(0, .78fr) minmax(480px, 1.22fr); align-items: stretch; }
.map-shell,
.map-shell iframe,
.map-placeholder { min-height: var(--map-height, 480px); height: 100%; }
.blog-image { height: var(--blog-image-height, 220px); }
.gallery-slider .gallery-card button { height: var(--gallery-image-height, 250px); }

.partner-marquee > div { width: 100%; flex-wrap: wrap; justify-content: center; animation: none; }

.disease-system-map { transition: padding .45s ease, min-height .45s ease, box-shadow .45s ease; }
.disease-system-map.is-condensed { min-height: 440px; padding-block: 24px; box-shadow: 0 16px 40px rgba(6,31,59,.08); }
.disease-leaf::before { width: var(--drag-length, 25px); transform: rotate(var(--drag-angle, 0deg)); transform-origin: right center; transition: width .15s ease, transform .15s ease; }
.disease-leaf-card { cursor: grab; touch-action: pan-x; will-change: transform; }
.disease-leaf-card.is-dragging { z-index: 9; cursor: grabbing; box-shadow: 0 20px 38px rgba(6,31,59,.18); }
.disease-leaf-card.is-returning { transition: transform .68s cubic-bezier(.22,1.45,.36,1), box-shadow .3s ease; }

.footer-grid { grid-template-columns: 1.15fr .75fr .85fr 1.25fr; }
.footer-newsletter { margin-top: 20px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-newsletter p { margin-bottom: 10px; font-size: .8rem; }
.newsletter-form { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 7px; }
.newsletter-form input { min-width: 0; height: 44px; padding: 0 13px; color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2); border-radius: 9px; outline: 0; }
.newsletter-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 25%, transparent); }
.newsletter-form button { display: grid; place-items: center; color: #061d37; background: var(--cyan); border: 0; border-radius: 9px; cursor: pointer; }
.btn.primary { color: var(--on-blue,#fff); }
.footer-form-alert { margin-bottom: 9px; padding: 7px 9px; color: #fff; background: rgba(21,136,91,.35); border-radius: 7px; font-size: .76rem; }
.footer-form-alert.danger { background: rgba(185,64,70,.38); }

@media (max-width: 900px) {
    .certificates-layout, .map-contact-grid { grid-template-columns: 1fr; }
    .certificate-doctor { min-height: 440px; }
    .map-shell, .map-shell iframe, .map-placeholder { min-height: 420px; }
}

@media (max-width: 680px) {
    .page-hero-inner { min-height: 140px; padding-block: 22px; }
    .education-timeline::before { left: 7px; }
    .education-item { grid-template-columns: 1fr; gap: 7px; padding-left: 27px; }
    .education-item::before { top: 4px; left: 0; }
    .certificate-card { grid-template-columns: 108px minmax(0, 1fr); min-height: 126px; }
    .certificate-preview { width: 108px; height: 126px; }
    .certificate-copy { padding: 13px; }
    .certificate-open { display: none; }
    .certificate-doctor { min-height: 360px; }
    .map-shell, .map-shell iframe, .map-placeholder { min-height: 360px; }
}

/* ==========================================================================
   Glowing Neon Animated Button
   ========================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.appointment-button.glowing-border {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b7fc8, #061d37);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(11, 127, 200, 0.35);
    z-index: 1;
    border-radius: var(--radius);
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.appointment-button.glowing-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, #32c7e8, #ff8a3d, #97ead8, #32c7e8);
    background-size: 300% 300%;
    border-radius: calc(var(--radius) + 2px);
    z-index: -2;
    animation: neonGlowBorder 4s linear infinite;
}

.appointment-button.glowing-border::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(135deg, #0b7fc8, #061d37);
    border-radius: var(--radius);
    z-index: -1;
}

.appointment-button.glowing-border:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 127, 200, 0.5);
}

.glow-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    animation: shimmerSlide 3.5s infinite;
    pointer-events: none;
}

@keyframes neonGlowBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmerSlide {
    0%, 60% { left: -100%; }
    100% { left: 200%; }
}

/* ==========================================================================
   Header Search & Live Search Modal
   ========================================================================== */
.header-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.header-search-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--soft-blue);
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-modal[hidden] {
    display: none !important;
}

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 29, 55, 0.65);
    backdrop-filter: blur(8px);
}

.search-modal-box {
    position: relative;
    width: min(640px, calc(100vw - 32px));
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(8, 23, 38, 0.3);
    overflow: hidden;
    z-index: 2;
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.search-modal-head {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.search-input-group svg {
    color: var(--blue);
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.search-input-group input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
}

.search-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-modal-close:hover {
    color: var(--danger);
    background: #fee2e2;
}

.search-modal-results {
    max-height: 50vh;
    overflow-y: auto;
    padding: 16px 18px;
}

.search-placeholder-text {
    text-align: center;
    color: var(--muted);
    padding: 24px 0;
    font-size: 0.95rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    transition: background 0.15s;
    text-decoration: none;
    color: var(--ink);
    margin-bottom: 6px;
}

.search-result-item:hover {
    background: var(--soft-blue);
}

.search-result-badge {
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    background: var(--line);
    color: var(--navy);
}

.search-result-title {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ==========================================================================
   Social Rail Fixed (Individual Slide-out On Hover)
   ========================================================================== */
.social-rail {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.social-rail-item {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #061d37;
    color: #ffffff;
    padding: 10px 14px 10px 12px;
    border-radius: 0 24px 24px 0;
    box-shadow: 2px 6px 18px rgba(8, 23, 38, 0.2);
    transform: translateX(calc(-100% + 46px));
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, box-shadow 0.2s;
}

.social-rail-item:hover {
    transform: translateX(0);
    background: linear-gradient(135deg, #0b7fc8, #061d37);
    box-shadow: 4px 8px 24px rgba(11, 127, 200, 0.35);
}

.social-rail-item .social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-rail-item .social-icon svg {
    width: 20px;
    height: 20px;
}

.social-rail-item .social-label {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    padding-right: 4px;
}

/* ==========================================================================
   Floating WhatsApp Widget (Centering & Concentric Radar Pulse)
   ========================================================================== */
.whatsapp-widget-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-pulse-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.whatsapp-pulse-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-btn-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.whatsapp-btn-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    stroke: none;
    display: block;
    margin: auto;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.6);
    pointer-events: none;
    animation: pulseRadar 2.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.pulse-ring.ring-2 {
    animation-delay: 1.1s;
}

@keyframes pulseRadar {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    100% {
        width: 180%;
        height: 180%;
        opacity: 0;
    }
}

.whatsapp-popup {
    position: absolute;
    bottom: 74px;
    right: 0;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(8, 23, 38, 0.2);
    border: 1px solid rgba(215, 229, 239, 0.8);
    overflow: hidden;
    z-index: 1000;
    animation: waSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes waSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.whatsapp-popup-header {
    background: linear-gradient(135deg, #075E54, #128C7E);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-icon svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #25D366;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.whatsapp-header-text {
    flex: 1;
}

.whatsapp-header-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.whatsapp-header-text small {
    display: block;
    font-size: 11px;
    opacity: 0.85;
}

.whatsapp-popup-close {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.whatsapp-popup-close:hover {
    opacity: 1;
}

.whatsapp-popup-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whatsapp-prompt-text {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.whatsapp-presets {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wa-preset-btn {
    text-align: left;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wa-preset-btn:hover,
.wa-preset-btn.selected {
    background: var(--soft-blue);
    border-color: var(--blue);
    color: var(--blue);
}

.whatsapp-custom-input textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    resize: none;
    box-sizing: border-box;
    font-family: inherit;
}

.whatsapp-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.whatsapp-send-btn:hover {
    background: #1eb857;
}

.whatsapp-send-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
}

/* ========================================================================== 
   2026 production UI consolidation
   These final rules intentionally override legacy duplicate component blocks.
   ========================================================================== */
.header-actions {
    flex: 0 0 auto;
}

.header-search-form {
    width: clamp(250px, 20vw, 340px);
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 5px 0 14px;
    background: #f7fbfe;
    border: 1px solid #cedfeb;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.header-search-form:focus-within {
    background: #fff;
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(50, 199, 232, .13);
}

.header-search-form > svg {
    width: 19px;
    height: 19px;
    flex: none;
    color: var(--blue);
}

.header-search-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: 600 .82rem/1.2 Inter, sans-serif;
}

.header-search-form button {
    height: 36px;
    padding-inline: 13px;
    color: #fff;
    background: var(--navy);
    border: 0;
    border-radius: 9px;
    font-weight: 800;
    cursor: pointer;
}

/* Stable right-side social ribbons; only the hovered ribbon moves. */
.social-rail {
    left: auto;
    right: 0;
    top: 43%;
    transform: translateY(-50%);
    gap: 8px;
    align-items: flex-end;
    pointer-events: none;
}

.social-rail-item {
    width: max-content;
    min-height: 52px;
    padding: 5px 10px 5px 5px;
    flex-direction: row;
    gap: 10px;
    background: linear-gradient(135deg, #071c33, #0b3357);
    border: 1px solid rgba(255, 205, 45, .55);
    border-right: 0;
    border-radius: 27px 0 0 27px;
    transform: translateX(calc(100% - 52px));
    box-shadow: -4px 7px 20px rgba(5, 28, 50, .18);
    transition: transform .32s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease;
    will-change: transform;
}

.social-rail-item::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.16) 50%, transparent 75%);
    background-size: 220% 100%;
    animation: socialShine 3.8s linear infinite;
}

.social-rail-item:hover,
.social-rail-item:focus-visible {
    transform: translateX(0);
    background: linear-gradient(135deg, #0b7fc8, #061d37);
    box-shadow: -8px 10px 30px rgba(11, 127, 200, .32);
}

.social-rail-item .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #071c33;
    background: linear-gradient(145deg, #ffe56f, #ffc51b);
    box-shadow: 0 4px 12px rgba(255, 197, 27, .28);
}

.social-rail-item .social-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.social-rail-item .social-label {
    min-width: 82px;
    padding-right: 8px;
    color: #fff;
    font-size: .82rem;
}

@keyframes socialShine {
    to { background-position: -220% 0; }
}

/* WhatsApp glyph uses stroke artwork; legacy fill rules made it appear blank. */
.whatsapp-btn-icon svg,
.whatsapp-send-btn svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.whatsapp-pulse-btn {
    overflow: visible;
    isolation: isolate;
}

.whatsapp-btn-icon {
    width: 34px;
    height: 34px;
}

/* Dynamic disease hierarchy */
.disease-tree {
    margin-top: 28px;
}

.medical-tree-container {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(50,199,232,.13), transparent 28%),
        linear-gradient(145deg, #fafdff, #f2f9fd);
    border: 1px solid #cfe2ef;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(6, 31, 59, .08);
}

.tree-origin {
    position: sticky;
    top: 146px;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 22px 12px;
    color: #fff;
    text-align: center;
    background: linear-gradient(145deg, var(--navy), #0a4774);
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(6, 29, 55, .22);
}

.tree-origin::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), rgba(50,199,232,.15));
}

.tree-origin span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: var(--mint);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(151, 234, 216, .12), 0 0 25px rgba(50,199,232,.3);
}

.tree-origin svg { width: 22px; height: 22px; }
.tree-origin b { font-size: .82rem; letter-spacing: .04em; }

.tree-level {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.tree-level:not(.level-0) {
    display: grid;
    gap: 12px;
    margin: 14px 0 0 27px;
    padding-left: 24px;
    border-left: 2px solid rgba(50, 199, 232, .58);
}

.tree-node {
    position: relative;
    opacity: 0;
    transform: translateX(-42px);
}

.medical-tree-container.is-visible .tree-node {
    animation: treeGrowIn .58s var(--tree-delay) cubic-bezier(.16, 1, .3, 1) forwards;
}

.tree-level:not(.level-0) > .tree-node::before {
    content: "";
    position: absolute;
    top: 31px;
    right: 100%;
    width: 24px;
    height: 2px;
    background: rgba(50, 199, 232, .72);
}

.tree-card {
    min-height: 106px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    color: var(--ink);
    background: rgba(255, 255, 255, .96);
    border: 1px solid #cfe0eb;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(6, 31, 59, .06);
    transition: transform .24s cubic-bezier(.16, 1, .3, 1), border-color .2s, box-shadow .2s;
}

.tree-card:hover,
.tree-card:focus-visible {
    transform: translateY(-4px) scale(1.015);
    border-color: var(--cyan);
    box-shadow: 0 16px 34px rgba(11,127,200,.16), 0 0 0 4px rgba(50,199,232,.08);
}

.tree-card-info { min-width: 0; flex: 1; }
.tree-card-info h3,
.tree-card-info h4 { margin: 0 0 5px; color: var(--navy); line-height: 1.25; }
.tree-card-info h3 { font-size: 1rem; }
.tree-card-info h4 { font-size: .92rem; }
.tree-card-info > span { display: block; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.tree-badge { width: 44px; height: 44px; font-size: 1rem; }
.tree-badge.child { width: 38px; height: 38px; font-size: .9rem; }
.tree-arrow { width: 22px; color: var(--blue); opacity: 0; transform: translateX(-7px); transition: .2s ease; }
.tree-card:hover .tree-arrow { opacity: 1; transform: translateX(0); }

@keyframes treeGrowIn {
    to { opacity: 1; transform: translateX(0); }
}

/* Share controls */
.share-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding: 17px 19px;
    background: linear-gradient(135deg, #f5fbfe, #fff);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.share-panel > div { display: grid; grid-template-columns: 36px auto; align-items: center; column-gap: 10px; }
.share-panel > div > span { grid-row: 1 / 3; width: 36px; height: 36px; display: grid; place-items: center; color: var(--blue); background: var(--soft-blue); border-radius: 50%; }
.share-panel > div svg { width: 17px; height: 17px; }
.share-panel strong { color: var(--navy); font-size: .9rem; }
.share-panel small { color: var(--muted); font-size: .75rem; }
.share-panel nav { display: flex; gap: 8px; }
.share-panel nav a { width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 50%; transition: .2s cubic-bezier(.16,1,.3,1); }
.share-panel nav a:hover { z-index: 2; color: #071c33; background: #ffd536; border-color: #f4b900; transform: translateY(-4px) scale(1.1); box-shadow: 0 9px 18px rgba(244,185,0,.25); }
.share-panel nav svg { width: 18px; height: 18px; }

/* Doctor profile extensions */
.doctor-skills-section { padding-top: 20px; background: #fff; }
.doctor-skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doctor-skill-card { display: flex; gap: 16px; padding: 20px; background: #f8fcff; border: 1px solid var(--line); border-radius: 14px; }
.doctor-skill-card > span { width: 46px; height: 46px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,var(--blue),var(--navy)); border-radius: 12px; }
.doctor-skill-card svg { width: 21px; height: 21px; }
.doctor-skill-card h3 { margin: 0 0 5px; color: var(--navy); font-size: 1rem; }
.doctor-skill-card p { margin: 0; color: var(--muted); font-size: .86rem; }

.education-section { background: var(--soft-blue); }
.education-timeline { position: relative; display: grid; gap: 16px; max-width: 940px; }
.education-timeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 105px; width: 2px; background: linear-gradient(var(--cyan),var(--blue)); }
.education-item { display: grid; grid-template-columns: 86px 1fr; gap: 38px; align-items: start; }
.education-years { padding-top: 19px; color: var(--blue); font-size: .78rem; font-weight: 900; text-align: right; }
.education-item > div { position: relative; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); }
.education-item > div::before { content: ""; position: absolute; top: 23px; right: calc(100% + 31px); width: 12px; height: 12px; background: var(--mint); border: 3px solid var(--blue); border-radius: 50%; }
.education-item h3 { margin: 0 0 5px; color: var(--navy); font-size: 1.04rem; }
.education-item strong { color: var(--blue); font-size: .83rem; }
.education-item p { margin: 8px 0 0; color: var(--muted); font-size: .86rem; }

.certificates-section { background: #fff; }
.certificate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; perspective: 1200px; }
.certificate-card { position: relative; min-width: 0; overflow: hidden; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 30px rgba(6,31,59,.08); transform-origin: center; transition: transform .32s cubic-bezier(.16,1,.3,1), box-shadow .32s; }
.certificate-card:hover { z-index: 4; transform: translateY(-10px) scale(1.055); box-shadow: 0 24px 55px rgba(6,31,59,.22); }
.certificate-preview { aspect-ratio: 16 / 10; display: block; overflow: hidden; background: linear-gradient(145deg,#e9f6fb,#fdfefe); }
.certificate-preview img { width: 100%; height: 100%; object-fit: cover; }
.certificate-placeholder { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--blue); }
.certificate-placeholder svg { width: 45px; height: 45px; }
.certificate-placeholder b { font-size: .76rem; letter-spacing: .12em; }
.certificate-copy { display: grid; gap: 5px; padding: 16px 18px 19px; }
.certificate-copy small { color: var(--orange); font-size: .72rem; font-weight: 900; }
.certificate-copy strong { color: var(--navy); line-height: 1.35; }
.certificate-copy > span { color: var(--muted); font-size: .82rem; }

.footer-logo { width: 70px; height: 56px; object-fit: contain; padding: 4px; background: rgba(255,255,255,.96); border-radius: 9px; }
.footer-brand .brand { align-items: center; }

/* Advertising slots: desktop side rails use the intentional outer gutters. */
.ad-slot { position: relative; }
.ad-unit { position: relative; overflow: hidden; background: #f7fafc; border: 1px solid #d5e4ee; border-radius: 12px; box-shadow: 0 12px 30px rgba(6,31,59,.1); }
.ad-unit + .ad-unit { margin-top: 12px; }
.ad-unit > a { display: block; }
.ad-unit img,
.ad-unit video { width: 100%; height: 100%; display: block; object-fit: cover; }
.ad-unit .adsbygoogle { min-width: 1px; min-height: 90px; }
.ad-label { position: absolute; z-index: 2; top: 5px; right: 5px; padding: 3px 6px; color: #536779; background: rgba(255,255,255,.9); border-radius: 4px; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.ad-inline { margin-top: 22px; margin-bottom: 22px; }
.ad-inline .ad-unit { min-height: 100px; max-height: 180px; }
.ad-inline img,
.ad-inline video { max-height: 180px; object-fit: contain; }
.ad-rail { display: none; }
.home-contact-map { padding-bottom: 44px; }
.partners-section { padding-top: 44px; }

.file-preview-link { display: inline-flex; margin-bottom: 8px; color: var(--admin-blue, #0b7fc8); font-weight: 800; }

@media (min-width: 1580px) {
    .ad-rail { position: fixed; z-index: 70; top: 62%; width: min(150px, calc((100vw - var(--container)) / 2 - 26px)); display: block; transform: translateY(-50%); }
    .ad-rail-left { left: 10px; }
    .ad-rail-right { right: 10px; }
    .ad-rail .ad-unit { min-height: 150px; max-height: 280px; }
    .ad-rail img,
    .ad-rail video { min-height: 150px; max-height: 280px; }
}

@media (max-width: 1180px) {
    .header-search-form { width: 210px; }
    .header-search-form input { font-size: .76rem; }
    .header-search-form button { display: none; }
    .tree-level.level-0 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
    .header-search-form { width: 42px; height: 40px; justify-content: center; padding: 0; }
    .header-search-form input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
    .header-search-form:focus-within,
    .header-search-form:hover { width: min(280px, 38vw); justify-content: flex-start; padding-inline: 12px; }
    .header-search-form:focus-within input,
    .header-search-form:hover input { position: static; width: auto; height: auto; opacity: 1; pointer-events: auto; }
    .medical-tree-container { grid-template-columns: 1fr; padding: 24px; }
    .tree-origin { position: relative; top: auto; grid-template-columns: 42px auto; justify-content: start; justify-items: start; align-items: center; text-align: left; }
    .tree-origin span { width: 42px; height: 42px; }
    .tree-origin::after { top: 100%; left: 32px; width: 2px; height: 26px; }
    .social-rail { display: none; }
}

@media (max-width: 680px) {
    .medical-tree-container { padding: 16px; border-radius: 15px; }
    .tree-level.level-0 { grid-template-columns: 1fr; gap: 14px; }
    .tree-level:not(.level-0) { margin-left: 17px; padding-left: 17px; }
    .tree-level:not(.level-0) > .tree-node::before { width: 17px; }
    .tree-card { min-height: 88px; padding: 14px; }
    .tree-arrow { display: none; }
    .share-panel { align-items: flex-start; flex-direction: column; }
    .share-panel nav { width: 100%; justify-content: space-between; }
    .share-panel nav a { width: 42px; height: 42px; }
    .doctor-skills-grid,
    .certificate-grid { grid-template-columns: 1fr; }
    .education-timeline::before { left: 7px; }
    .education-item { grid-template-columns: 1fr; gap: 7px; padding-left: 27px; }
    .education-years { padding: 0; text-align: left; }
    .education-item > div::before { top: -24px; right: calc(100% + 14px); }
    .whatsapp-widget-container { right: 16px; bottom: 16px; }
    .whatsapp-pulse-btn { width: 56px; height: 56px; }
    .whatsapp-popup { width: min(340px, calc(100vw - 24px)); right: -4px; }
    .header-search-form:hover { width: 42px; padding: 0; justify-content: center; }
    .header-search-form:hover input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
    .header-search-form:focus-within { position: absolute; z-index: 5; right: 54px; width: calc(100% - 128px); padding-inline: 12px; background: #fff; }
}

/* Human-to-diagnosis interactive disease system */
.disease-system-map {
    position: relative;
    display: grid;
    grid-template-columns: 190px 54px minmax(0, 1fr);
    align-items: center;
    min-height: 520px;
    margin-top: 30px;
    padding: 36px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 9% 50%, rgba(151, 234, 216, .24), transparent 22%),
        radial-gradient(circle at 83% 15%, rgba(50, 199, 232, .14), transparent 27%),
        linear-gradient(145deg, #fafdff 0%, #eef8fd 100%);
    border: 1px solid #c9e0ed;
    border-radius: 26px;
    box-shadow: 0 24px 62px rgba(6, 31, 59, .1);
}

.disease-system-map::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .42;
    background-image:
        linear-gradient(rgba(27, 125, 175, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 125, 175, .08) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.human-root {
    position: relative;
    z-index: 3;
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 28px 18px 24px;
    color: #fff;
    text-align: center;
    background: linear-gradient(155deg, #061f3b, #0b4f78);
    border: 1px solid rgba(151, 234, 216, .3);
    border-radius: 22px;
    box-shadow: 0 18px 35px rgba(6, 31, 59, .22), inset 0 1px rgba(255, 255, 255, .12);
}

.human-aura {
    position: absolute;
    top: 18px;
    width: 88px;
    height: 88px;
    border: 1px solid rgba(151, 234, 216, .38);
    border-radius: 50%;
    animation: humanAura 2.8s ease-out infinite;
}

.human-icon {
    position: relative;
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    color: #06223e;
    background: linear-gradient(145deg, #baf5e7, #65d7df);
    border-radius: 50%;
    box-shadow: 0 0 0 9px rgba(151, 234, 216, .1), 0 10px 25px rgba(50, 199, 232, .28);
}

.human-icon svg { width: 32px; height: 32px; stroke-width: 1.8; }
.human-copy { display: grid; gap: 4px; }
.human-copy small { color: #8fe5e0; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.human-copy strong { font-size: 1.25rem; }
.human-copy b { color: #c9e0ed; font-size: .76rem; font-weight: 600; }

.system-trunk {
    position: relative;
    width: 100%;
    height: 4px;
    overflow: hidden;
    background: linear-gradient(90deg, #1cb6cf, #168dbe);
    border-radius: 99px;
    box-shadow: 0 0 15px rgba(28, 182, 207, .42);
}

.system-trunk::after,
.branch-connector::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
    transform: translateX(-100%);
    animation: branchSignal 2.8s linear infinite;
}

.symptom-branches,
.disease-leaves {
    margin: 0;
    padding: 0;
    list-style: none;
}

.symptom-branches {
    display: grid;
    gap: 20px;
}

.disease-branch {
    position: relative;
    opacity: 0;
    touch-action: pan-x;
    will-change: transform;
}

.disease-system-map.is-visible .disease-branch {
    animation: branchReveal .65s calc(var(--branch-index) * .13s) cubic-bezier(.16, 1, .3, 1) forwards;
}

.disease-branch.is-dragging {
    z-index: 8;
    filter: drop-shadow(0 18px 24px rgba(6, 31, 59, .13));
}

.disease-branch.is-returning {
    transition: transform .68s cubic-bezier(.22, 1.45, .36, 1);
}

.branch-connector {
    position: absolute;
    top: 46px;
    right: 100%;
    width: 54px;
    height: 3px;
    overflow: hidden;
    background: linear-gradient(90deg, #168dbe, #45cad5);
    box-shadow: 0 0 10px rgba(28, 182, 207, .35);
}

.disease-branch-body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(235px, .82fr) minmax(320px, 1.45fr);
    gap: 18px;
    align-items: start;
    animation: branchBreathe 6s calc(var(--branch-index) * -.8s) ease-in-out infinite alternate;
}

.branch-drag-handle {
    position: absolute;
    top: 9px;
    left: -11px;
    z-index: 6;
    width: 25px;
    height: 70px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 0 7px;
    cursor: ns-resize;
    touch-action: none;
    color: #168dbe;
    background: #fff;
    border: 1px solid #bcd8e7;
    border-radius: 99px;
    box-shadow: 0 8px 18px rgba(6, 31, 59, .1);
}

.branch-drag-handle span { display: block; width: 9px; height: 2px; background: currentColor; border-radius: 99px; }
.branch-drag-handle:hover,
.branch-drag-handle:focus-visible { color: #fff; background: #0e94be; border-color: #0e94be; outline: none; }

.symptom-card,
.disease-leaf-card {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    color: #071d35;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #c5deeb;
    box-shadow: 0 10px 25px rgba(6, 31, 59, .06);
    transition: transform .24s cubic-bezier(.16, 1, .3, 1), box-shadow .24s, border-color .24s;
}

.symptom-card {
    min-height: 92px;
    gap: 13px;
    padding: 16px 17px 16px 22px;
    border-left: 4px solid #18b4c7;
    border-radius: 16px;
}

.symptom-card:hover,
.disease-leaf-card:hover,
.symptom-card:focus-visible,
.disease-leaf-card:focus-visible {
    z-index: 3;
    transform: translateY(-3px) scale(1.012);
    border-color: #21b9cf;
    box-shadow: 0 15px 34px rgba(12, 133, 183, .15), 0 0 0 4px rgba(50, 199, 232, .08);
    outline: none;
}

.symptom-icon,
.disease-letter {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(145deg, #0d8fbd, #16b5c9);
    border-radius: 50%;
    box-shadow: 0 7px 16px rgba(13, 143, 189, .26);
}

.symptom-icon { width: 48px; height: 48px; font-size: 1.05rem; }
.disease-letter { width: 38px; height: 38px; font-size: .82rem; }
.symptom-copy,
.disease-copy { min-width: 0; display: grid; gap: 3px; }
.symptom-copy small,
.disease-copy small { color: #0791b6; font-size: .61rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.symptom-copy strong { font-size: .92rem; line-height: 1.25; }
.symptom-copy > span { color: #62778a; font-size: .71rem; line-height: 1.38; }

.disease-leaves {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-left: 25px;
}

.disease-leaves::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(#4bcad7, rgba(75, 202, 215, .15));
}

.disease-leaf { position: relative; opacity: 0; transform: translateX(-22px); }
.disease-system-map.is-visible .disease-leaf { animation: leafReveal .48s var(--leaf-delay) cubic-bezier(.16, 1, .3, 1) forwards; }
.disease-leaf::before { content: ""; position: absolute; top: 32px; right: 100%; width: 25px; height: 2px; background: #4bcad7; }
.disease-leaf-card { min-height: 64px; gap: 10px; padding: 10px 11px; border-radius: 13px; }
.disease-copy strong { font-size: .78rem; line-height: 1.22; }
.disease-copy > span { display: none; color: #6a7d8e; font-size: .66rem; line-height: 1.35; }
.disease-leaf-card:hover .disease-copy > span { display: block; }
.leaf-pulse { position: absolute; left: -30px; top: 27px; width: 10px; height: 10px; background: #83e4dc; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 3px rgba(75, 202, 215, .2); }
.disease-open { width: 18px; margin-left: auto; color: #0b93bd; opacity: .35; }
.disease-open svg { width: 16px; height: 16px; }
.disease-leaf-card:hover .disease-open { opacity: 1; transform: translateX(2px); }
.disease-leaves .disease-leaves { grid-column: 1 / -1; margin-top: 8px; }
.branch-empty-note { align-self: center; padding: 13px 16px; color: #667c8f; font-size: .72rem; border: 1px dashed #bdd8e7; border-radius: 12px; }

.tree-interaction-hint {
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    color: #587184;
    font-size: .72rem;
}

.tree-interaction-hint svg { width: 18px; height: 18px; color: #0b93bd; }

@keyframes humanAura { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes branchSignal { to { transform: translateX(100%); } }
@keyframes branchReveal { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes leafReveal { to { opacity: 1; transform: translateX(0); } }
@keyframes branchBreathe { from { translate: 0 -1px; } to { translate: 0 3px; } }

@media (max-width: 1120px) {
    .disease-system-map { grid-template-columns: 160px 42px minmax(0, 1fr); padding: 26px; }
    .disease-branch-body { grid-template-columns: minmax(210px, .8fr) minmax(260px, 1.25fr); }
    .disease-leaves { grid-template-columns: 1fr; }
    .branch-connector { width: 42px; }
}

@media (max-width: 820px) {
    .disease-system-map { grid-template-columns: 1fr; align-items: stretch; min-height: 0; padding: 20px; overflow: visible; }
    .human-root { grid-template-columns: 58px 1fr; justify-items: start; text-align: left; padding: 18px; }
    .human-icon { grid-row: 1; width: 54px; height: 54px; }
    .human-aura { top: 8px; left: 9px; width: 72px; height: 72px; }
    .human-copy { align-self: center; }
    .system-trunk { width: 3px; height: 32px; margin-left: 45px; background: linear-gradient(#1cb6cf, #168dbe); }
    .symptom-branches { gap: 16px; }
    .branch-connector { top: -16px; left: 44px; right: auto; width: 3px; height: 16px; }
    .disease-branch-body { grid-template-columns: 1fr; gap: 12px; }
    .branch-drag-handle { left: auto; right: 9px; top: 10px; height: 54px; }
    .symptom-card { padding-right: 42px; }
    .tree-interaction-hint { grid-column: 1; margin-top: 16px; }
}

@media (max-width: 520px) {
    .disease-system-map { padding: 14px; border-radius: 18px; }
    .symptom-card { min-height: 84px; }
    .disease-leaves { grid-template-columns: 1fr; padding-left: 18px; }
    .disease-leaf::before { width: 18px; }
    .leaf-pulse { left: -23px; }
    .tree-interaction-hint { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .human-aura,
    .system-trunk::after,
    .branch-connector::after,
    .disease-branch-body { animation: none !important; }
    .disease-branch,
    .disease-leaf { opacity: 1; transform: none; animation: none !important; }
}

/* Final scoped overrides kept after the legacy compatibility layer. */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.page-hero-inner { min-height: 168px; padding-block: 28px; }
.page-hero h1 { margin-bottom: 8px; font-size: clamp(2rem,3.2vw,3rem); }
.doctor-skill-card > span img { width: 28px; height: 28px; object-fit: contain; }
.education-timeline::before { left: 108px; }
.education-item { position: relative; grid-template-columns: 88px 1fr; gap: 40px; }
.education-item::before { content: ""; position: absolute; z-index: 2; top: 25px; left: 101px; width: 14px; height: 14px; background: var(--mint); border: 3px solid var(--blue); border-radius: 50%; }
.education-item > div::before { display: none; }
.certificates-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,340px); gap: 30px; align-items: stretch; }
.certificate-list { display: grid; gap: 15px; }
.certificate-card { min-height: 154px; display: grid; grid-template-columns: var(--certificate-image-width,190px) minmax(0,1fr) 34px; align-items: center; }
.certificate-card:hover { transform: translateX(7px); }
.certificate-preview { width: var(--certificate-image-width,190px); height: 154px; aspect-ratio: auto; }
.certificate-preview img { object-fit: contain; padding: 10px; }
.certificate-copy { align-content: center; padding: 18px 22px; }
.certificate-copy p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.certificate-open { color: var(--blue); }
.certificate-doctor { position: relative; min-height: 100%; overflow: hidden; background: linear-gradient(155deg,#e9f5fb,#fff); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); }
.certificate-doctor img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: center top; }
.certificate-doctor div { position: absolute; right: 14px; bottom: 14px; left: 14px; display: grid; padding: 15px 17px; color: #fff; background: rgba(6,29,55,.88); border-radius: 12px; backdrop-filter: blur(10px); }
.certificate-doctor div span { color: rgba(255,255,255,.72); font-size: .8rem; }
.gallery-slider { cursor: grab; scroll-snap-type: none; scrollbar-width: thin; user-select: none; touch-action: pan-y; }
.gallery-slider.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.gallery-slider .gallery-card { transition: transform .24s ease, filter .24s ease; }
.gallery-slider .gallery-card:hover { z-index: 4; transform: translateY(-8px) scale(1.035); filter: drop-shadow(0 18px 22px rgba(6,29,55,.18)); }
.gallery-slider .gallery-card button { height: var(--gallery-image-height,250px); }
.blog-image { height: var(--blog-image-height,220px); }
.map-contact-grid { grid-template-columns: minmax(0,.78fr) minmax(480px,1.22fr); align-items: stretch; }
.map-shell,.map-shell iframe,.map-placeholder { min-height: var(--map-height,480px); height: 100%; }
.partner-marquee > div { width: 100%; flex-wrap: wrap; justify-content: center; animation: none; }
.disease-system-map { transition: padding .45s ease,min-height .45s ease,box-shadow .45s ease; }
.disease-system-map.is-condensed { min-height: 440px; padding-block: 24px; box-shadow: 0 16px 40px rgba(6,31,59,.08); }
.disease-leaf::before { width: var(--drag-length,25px); transform: rotate(var(--drag-angle,0deg)); transform-origin: right center; transition: width .15s ease,transform .15s ease; }
.disease-leaf-card { cursor: grab; touch-action: pan-x; will-change: transform; }
.disease-leaf-card.is-dragging { z-index: 9; cursor: grabbing; box-shadow: 0 20px 38px rgba(6,31,59,.18); }
.disease-leaf-card.is-returning { transition: transform .68s cubic-bezier(.22,1.45,.36,1),box-shadow .3s ease; }

@media (max-width: 900px) {
    .certificates-layout,.map-contact-grid { grid-template-columns: 1fr; }
    .certificate-doctor { min-height: 440px; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
    .page-hero-inner { min-height: 140px; padding-block: 22px; }
    .education-timeline::before { left: 7px; }
    .education-item { grid-template-columns: 1fr; gap: 7px; padding-left: 27px; }
    .education-item::before { top: 4px; left: 0; }
    .certificate-card { grid-template-columns: 108px minmax(0,1fr); min-height: 126px; }
    .certificate-preview { width: 108px; height: 126px; }
    .certificate-copy { padding: 13px; }
    .certificate-open { display: none; }
    .certificate-doctor { min-height: 360px; }
    .footer-grid { grid-template-columns: 1fr; }
}
