:root {
    --blue: #0d6efd;
    --blue-dark: #0b5ed7;
    --blue-darker: #094fb8;
    --blue-tint: #f5f9ff;
    --blue-tint-2: #eaf2ff;
    --navy: #0a1a3c;
    --navy-2: #0f234f;
    --ink: #101828;
    --ink-soft: #475569;
    --ink-mute: #8a94a6;
    --gold: #ffb020;
    --white: #ffffff;
    --line: #e6edf7;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(13,110,253,0.06);
    --shadow-md: 0 12px 30px rgba(13,30,80,0.10);
    --shadow-lg: 0 24px 60px rgba(13,30,80,0.16);
    --ease: cubic-bezier(.4,0,.2,1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter',sans-serif;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk',sans-serif;
    margin: 0;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

:focus-visible {
    outline: 2.5px solid var(--blue);
    outline-offset: 3px;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- Signature pulse-line motif ---------- */
.pulse-line {
    width: 100%;
    height: auto;
    display: block;
}

.pulse-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw-pulse 2.6s var(--ease) infinite;
}

@keyframes draw-pulse {
    0% {
        stroke-dashoffset: 600;
    }

    55% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -600;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pulse-path {
        animation: none;
        stroke-dashoffset: 0;
    }

    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---------- Header ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
}

    header.scrolled {
        box-shadow: 0 6px 24px rgba(13,30,80,0.08);
        border-color: var(--line);
    }

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    transition: padding .35s var(--ease);
    max-width: 1240px;
    margin: 0 auto;
}

header.scrolled .nav-wrap {
    padding: 12px 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk',sans-serif;
    font-weight: 700;
    font-size: 21px;
    color: var(--navy);
}

    .brand svg {
        color: var(--blue);
    }

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg,var(--blue),#4c93ff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(13,110,253,0.35);
}

    .brand-mark svg {
        color: #fff;
        width: 20px;
        height: 20px;
    }

.nav-center {
    display: flex;
    align-items: center;
    gap: 38px;
}

    .nav-center a {
        position: relative;
        font-weight: 500;
        font-size: 15px;
        color: var(--ink-soft);
        padding: 6px 2px;
        transition: color .25s var(--ease);
    }

        .nav-center a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -4px;
            height: 2px;
            width: 0;
            background: var(--blue);
            border-radius: 2px;
            transition: width .3s var(--ease);
        }

        .nav-center a:hover {
            color: var(--blue);
        }

            .nav-center a:hover::after {
                width: 100%;
            }

        .nav-center a.active {
            color: var(--blue);
            font-weight: 600;
        }

            .nav-center a.active::after {
                width: 100%;
            }

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 12px;
    padding: 12px 22px;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(13,110,253,0.28);
}

    .btn-primary:hover {
        background: var(--blue-dark);
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(13,110,253,0.36);
    }

.btn-ghost {
    background: var(--blue-tint);
    color: var(--blue);
    border: 1px solid var(--blue-tint-2);
}

    .btn-ghost:hover {
        background: var(--blue-tint-2);
        transform: translateY(-2px);
    }

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--line);
}

    .btn-outline:hover {
        border-color: var(--blue);
        color: var(--blue);
        transform: translateY(-2px);
    }

.btn-sm {
    padding: 9px 16px;
    font-size: 14px;
    border-radius: 10px;
}

.login-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px 9px 14px;
    border-radius: 30px;
    background: var(--blue-tint);
    color: var(--blue);
    font-weight: 600;
    font-size: 14.5px;
    transition: background .25s var(--ease), transform .2s var(--ease);
}

    .login-trigger:hover {
        background: var(--blue-tint-2);
        transform: translateY(-2px);
    }

.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 6px;
    border-radius: 30px;
    background: var(--blue-tint);
    transition: background .2s var(--ease);
}

    .user-chip:hover {
        background: var(--blue-tint-2);
    }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--blue),#4c93ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.user-name {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--navy);
}

/*.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    min-width: 190px;
    padding: 8px;
    opacity: 0;
    transform: translateY(-8px) scale(.97);
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
    z-index: 50;
}

    .user-dropdown.open {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }*/

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    display: none;
    z-index: 9999;
}

    .user-dropdown.open {
        display: block;
    }

    .user-dropdown a, .user-dropdown button {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        text-align: left;
        padding: 10px 12px;
        border-radius: 9px;
        font-size: 14.5px;
        font-weight: 500;
        color: var(--ink);
        transition: background .18s var(--ease), color .18s var(--ease);
    }

        .user-dropdown a:hover, .user-dropdown button:hover {
            background: var(--blue-tint);
            color: var(--blue);
        }

.user-menu-wrap {
    position: relative;
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--blue-tint);
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,26,60,0.35);
    backdrop-filter: blur(2px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
}

    .mobile-menu.open {
        opacity: 1;
        pointer-events: auto;
    }

.mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 82%;
    max-width: 340px;
    height: 100%;
    background: #fff;
    padding: 26px 24px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu.open .mobile-panel {
    transform: translateX(0);
}

.mobile-panel .close-btn {
    align-self: flex-end;
    margin-bottom: 12px;
    color: var(--ink-soft);
}

.mobile-panel a {
    padding: 14px 6px;
    font-weight: 600;
    font-size: 16.5px;
    color: var(--navy);
    border-bottom: 1px solid var(--line);
}

    .mobile-panel a.active {
        color: var(--blue);
    }

.mobile-panel .btn {
    margin-top: 18px;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg,var(--blue-tint) 0%, #ffffff 78%);
    padding: 30px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--blue-tint-2);
    color: var(--blue);
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 16px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}

    .badge svg {
        width: 15px;
        height: 15px;
    }

.hero h1 {
    font-size: 52px;
    line-height: 1.06;
    color: var(--navy);
    font-weight: 700;
    max-width: 560px;
}

    .hero h1 span {
        color: var(--blue);
    }

.hero-sub {
    margin-top: 22px;
    font-size: 17.5px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 480px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 34px;
    margin-top: 46px;
}

.hero-stat b {
    display: block;
    font-family: 'Space Grotesk',sans-serif;
    font-size: 26px;
    color: var(--navy);
    font-weight: 700;
}

.hero-stat span {
    font-size: 13.5px;
    color: var(--ink-mute);
    font-weight: 500;
}

.hero-visual {
    position: relative;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    z-index: 0;
}

.blob-1 {
    width: 230px;
    height: 230px;
    background: radial-gradient(circle at 30% 30%, #cfe3ff, transparent 70%);
    top: -40px;
    right: -30px;
}

.blob-2 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 30%, #dcebff, transparent 70%);
    bottom: -30px;
    left: -40px;
}

.hero-img-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    aspect-ratio: 4/4.4;
}

    .hero-img-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.float-card {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    animation: float 5s ease-in-out infinite;
}

    .float-card.f1 {
        top: 28px;
        left: -30px;
        animation-delay: .2s;
    }

    .float-card.f2 {
        bottom: 34px;
        right: -22px;
        animation-delay: 1s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-tint);
    color: var(--blue);
}

    .float-icon.gold {
        background: #fff6e5;
        color: var(--gold);
    }

.float-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
}

.float-sub {
    font-size: 12px;
    color: var(--ink-mute);
}

/* ---------- Search section ---------- */
.search-section {
    margin-top: -46px;
    position: relative;
    z-index: 5;
}

.search-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--blue-tint);
    border-radius: 14px;
    padding: 15px 18px;
    border: 1.5px solid transparent;
    transition: border-color .2s var(--ease);
    position: relative;
}

    .search-input-wrap:focus-within {
        border-color: var(--blue);
    }

    .search-input-wrap svg {
        color: var(--blue);
        flex-shrink: 0;
    }

    .search-input-wrap input {
        border: none;
        background: transparent;
        outline: none;
        font-size: 16px;
        width: 100%;
        color: var(--ink);
        font-family: inherit;
    }

        .search-input-wrap input::placeholder {
            color: var(--ink-mute);
        }

.search-suggest {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 40;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(13, 30, 80, 0.16);
    padding: 8px;
    max-height: min(420px, 70vh);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}

.search-suggest.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.search-suggest-section + .search-suggest-section {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.search-suggest-section[hidden] + .search-suggest-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.search-suggest-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding: 6px 10px 8px;
}

.search-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 9px 10px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--ink);
    transition: background .15s var(--ease);
}

.search-suggest-item:hover,
.search-suggest-item:focus-visible {
    background: var(--blue-tint);
    outline: none;
}

.search-suggest-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--blue-tint-2);
}

.search-suggest-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-tint-2);
    color: var(--blue);
}

.search-suggest-icon svg {
    width: 18px;
    height: 18px;
}

.search-suggest-copy {
    min-width: 0;
    flex: 1;
}

.search-suggest-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggest-meta {
    font-size: 12px;
    color: var(--ink-mute);
    margin-top: 2px;
}

.search-suggest-name mark {
    background: #dbeafe;
    color: var(--blue-darker);
    font-weight: 700;
    border-radius: 3px;
    padding: 0 1px;
}

.search-suggest-empty {
    display: none;
    padding: 22px 12px;
    text-align: center;
    font-size: 14px;
    color: var(--ink-mute);
}

.search-suggest.is-empty .search-suggest-section {
    display: none;
}

.search-suggest.is-empty .search-suggest-empty {
    display: block;
}

/* ---------- Section shells ---------- */
section {
    padding: 15px 0;
}

.section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 52px;
}

.eyebrow {
    color: var(--blue);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-head h2 {
    font-size: 34px;
    color: var(--navy);
}

.section-head p {
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.6;
}

/* ---------- Doctors ---------- */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 26px;
}

.doctor-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    position: relative;
}

    .doctor-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: var(--blue-tint-2);
    }

.doctor-top {
    display: flex;
    gap: 16px;
    align-items: center;
}

.doctor-avatar {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(13,30,80,0.12);
}

.doctor-name {
    font-family: 'Space Grotesk',sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
}

.doctor-spec {
    color: var(--blue);
    font-weight: 600;
    font-size: 13.5px;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doctor-exp {
    color: var(--ink-mute);
    font-size: 13px;
    margin-top: 3px;
}

.doctor-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff6e5;
    color: #b8860b;
    font-weight: 700;
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 20px;
    position: absolute;
    top: 24px;
    right: 24px;
}

    .doctor-rating svg {
        width: 13px;
        height: 13px;
    }

.doctor-divider {
    height: 1px;
    background: var(--line);
    margin: 20px 0 16px;
}

.doctor-fee {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .doctor-fee span {
        color: var(--ink-mute);
        font-size: 13px;
    }

    .doctor-fee b {
        color: var(--navy);
        font-size: 17px;
        font-family: 'Space Grotesk',sans-serif;
    }

.doctor-card .btn {
    width: 100%;
    margin-top: 18px;
}

/* ---------- Services ---------- */
.services-section {
    background: var(--blue-tint);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 22px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 26px 22px;
    border: 1px solid var(--line);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--blue-tint);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: background .3s var(--ease), color .3s var(--ease);
}

.service-card:hover .service-icon {
    background: var(--blue);
    color: #fff;
}

.service-card h4 {
    font-size: 16.5px;
    color: var(--navy);
    margin-bottom: 8px;
}

.service-card p {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: 14px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--blue);
}

    .service-link svg {
        width: 14px;
        height: 14px;
        transition: transform .2s var(--ease);
    }

.service-card:hover .service-link svg {
    transform: translateX(3px);
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

    .faq-item.open {
        border-color: var(--blue-tint-2);
        box-shadow: var(--shadow-sm);
    }

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 15.5px;
    color: var(--navy);
    text-align: left;
}

.faq-toggle {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--blue-tint);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}

.faq-item.open .faq-toggle {
    background: var(--blue);
    color: #fff;
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
}

.faq-a-inner {
    padding: 0 24px 20px;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.65;
}

/* ---------- Footer ---------- */
footer {
    background: linear-gradient(180deg,var(--navy) 0%, var(--navy-2) 100%);
    color: #c9d3ea;
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h5 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    font-family: 'Space Grotesk',sans-serif;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

    .footer-brand span {
        font-family: 'Space Grotesk',sans-serif;
        font-weight: 700;
        font-size: 19px;
        color: #fff;
    }

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #9fadd0;
    max-width: 280px;
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

    .social-row a {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: rgba(255,255,255,0.06);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #c9d3ea;
        transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
    }

        .social-row a:hover {
            background: var(--blue);
            color: #fff;
            transform: translateY(-3px);
        }

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    font-size: 14.5px;
    color: #b9c4e0;
    transition: color .2s var(--ease);
}

    .footer-col ul a:hover {
        color: #fff;
    }

.contact-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

    .contact-row svg {
        color: var(--blue);
        flex-shrink: 0;
        margin-top: 2px;
        width: 18px;
        height: 18px;
    }

    .contact-row a, .contact-row span {
        font-size: 14px;
        color: #b9c4e0;
        line-height: 1.55;
        transition: color .2s var(--ease);
    }

        .contact-row a:hover {
            color: #fff;
        }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    font-size: 13px;
    color: #8091ba;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Login Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,26,60,0.45);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
    padding: 20px;
}

    .modal-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

.modal-card {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    padding: 34px 30px 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(18px) scale(.96);
    transition: transform .35s var(--ease);
}

.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--blue-tint);
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s var(--ease), color .2s var(--ease);
}

    .modal-close:hover {
        background: #ffe3e3;
        color: #d33;
    }

.modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background:  var(--blue);
    color:var(--blue-tint); 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.modal-card h3 {
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 8px;
}

.modal-card .modal-sub {
    font-size: 14px;
    color: var(--ink-mute);
    margin-bottom: 26px;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 8px;
    display: block;
}

.field-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    font-size: 15.5px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s var(--ease);
    color: var(--ink);
}

    .field-input:focus {
        border-color: var(--blue);
    }

.phone-field {
    display: flex;
    gap: 10px;
}

.phone-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft);
    flex-shrink: 0;
}

.modal-card .btn {
    width: 100%;
    margin-top: 22px;
}

.otp-boxes {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.otp-box {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    outline: none;
    transition: border-color .2s var(--ease);
    font-family: inherit;
    color: var(--navy);
}

    .otp-box:focus {
        border-color: var(--blue);
    }

.otp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    font-size: 13.5px;
}

    .otp-meta span {
        color: var(--ink-mute);
    }

.resend-btn {
    color: var(--blue);
    font-weight: 600;
}

    .resend-btn:disabled {
        color: var(--ink-mute);
        cursor: default;
    }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 16px;
}

    .back-link:hover {
        color: var(--blue);
    }

.step {
    display: none;
}

    .step.active {
        display: block;
    }

/* ---------- Responsive ---------- */
@media (max-width:1080px) {
    .hero h1 {
        font-size: 44px;
    }

    .doctors-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:860px) {
    .nav-wrap {
        padding: 12px 20px; 
    }
    .nav-center {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-right {
        gap: 8px; 
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
        max-width: 420px;
        margin: 0 auto;
    }

    .hero h1 {
        margin: 0 auto;
        font-size: 36px;
    }

    .hero-sub {
        margin: 16px auto;
    }

    .search-card {
        flex-direction: column;
        align-items: stretch;
    }

        .search-card .btn {
            width: 100%;
        }

    .search-suggest {
        left: 0;
        right: 0;
        max-height: min(360px, 58vh);
    }

  /*  section {
        padding: 70px 0;
    }*/
}

@media (max-width:640px) {
    .container {
        padding: 0 20px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: nowrap;
    }

    .float-card {
        display: none;
    }

    .hero-ctas .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .user-name {
        display: none; 
    }

    .user-chip {
        padding: 6px;
    }
}

@media (max-width:420px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }
}

.logo-box {
    font-size: 28px;
    color: #ffff;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-box {
    width: 70px;
    height: 70px;
    background: #0d6efd;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

    .logo-box img {
        border-radius: 20px;
    }

.swal2-container {
    z-index: 2000 !important; 
}





.user-name {
    max-width: 150px; /* Web par 150px se bada nahi hoga */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* ... show karega */
    display: inline-block;
}

@media (max-width: 768px) {
    .user-name {
        max-width: 100px; /* Mobile par aur chota */
    }
}

@media (max-width: 480px) {
    .user-name {
        display: none; /* Bilkul chote phones par sirf Avatar dikhega */
    }
}

/* --- Dropdown Fix --- */
.user-dropdown {
    display: none; /* Pehle hide rahega */
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    z-index: 9999 !important; /* Sabse upar dikhne ke liye */
    min-width: 180px;
    padding: 8px;
}

    .user-dropdown.show {
        display: block; /* JS isse control karega */
    }

/* --- Mobile Menu Fix --- */
.mobile-menu {
    position: fixed;
    z-index: 3000; /* Dropdown se bhi upar */
}



@media (max-width: 860px) {
    /* Mobile Menu Overlay */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        display: block !important; /* Yeh line zaroor add karein */
        transition: all 0.3s ease;
    }

        /* Jab open ho tab dikhaye */
        .mobile-menu.open {
            opacity: 1;
            visibility: visible;
        }

    /* Right se aane wala panel */
    .mobile-panel {
        position: absolute;
        top: 0;
        right: -300px; /* Shuru mein Right ke bahar chhupa hoga */
        width: 280px;
        height: 100%;
        background: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        padding: 20px;
        transition: right 0.4s ease;
    }

    /* Class 'open' lagne par Right se andar aayega */
    .mobile-menu.open .mobile-panel {
        right: 0;
    }

    /* Close button style */
    .mobile-panel .close-btn {
        background: none;
        border: none;
        align-self: flex-end;
        cursor: pointer;
    }

    /* Links padding */
    .mobile-panel a {
        padding: 12px 0;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        border-bottom: 1px solid #eee;
    }
}


/* ============================================================
   NOTIFICATION BELL  (added for Appointment Booking feature)
   ============================================================ */

.notif-bell-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
}

.notif-bell-btn {
    position: relative;
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    font-size: 17px;
    transition: all .2s;
}

.notif-bell-btn:hover {
    background: #eff6ff;
    border-color: var(--blue, #2563eb);
    color: var(--blue, #2563eb);
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 20px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    line-height: 1;
}

/* Dropdown */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.16);
    border: 1px solid #e2e8f0;
    z-index: 2000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(.97);
    pointer-events: none;
    transition: all .22s cubic-bezier(.4,0,.2,1);
}

.notif-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: .875rem;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    transition: background .15s;
}

.notif-item:hover { background: #f8fafc; }

.notif-item.unread {
    background: #eff6ff;
}
.notif-item.unread:hover { background: #dbeafe; }

.notif-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

/* --- Dropdown Fix --- */
.user-dropdown {
    display: none; /* Pehle hide rahega */
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    z-index: 9999 !important; /* Sabse upar dikhne ke liye */
    min-width: 180px;
    padding: 8px;
}

    .user-dropdown.show {
        display: block; /* JS isse control karega */
    }

/* --- Mobile Menu Fix --- */
.mobile-menu {
    position: fixed;
    z-index: 3000; /* Dropdown se bhi upar */
}



@media (max-width: 860px) {
    /* Mobile Menu Overlay */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        display: block !important; /* Yeh line zaroor add karein */
        transition: all 0.3s ease;
    }

        /* Jab open ho tab dikhaye */
        .mobile-menu.open {
            opacity: 1;
            visibility: visible;
        }

    /* Right se aane wala panel */
    .mobile-panel {
        position: absolute;
        top: 0;
        right: -300px; /* Shuru mein Right ke bahar chhupa hoga */
        width: 280px;
        height: 100%;
        background: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        padding: 20px;
        transition: right 0.4s ease;
    }

    /* Class 'open' lagne par Right se andar aayega */
    .mobile-menu.open .mobile-panel {
        right: 0;
    }

    /* Close button style */
    .mobile-panel .close-btn {
        background: none;
        border: none;
        align-self: flex-end;
        cursor: pointer;
    }

    /* Links padding */
    .mobile-panel a {
        padding: 12px 0;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        border-bottom: 1px solid #eee;
    }
}


/* ============================================================
   NOTIFICATION BELL  (added for Appointment Booking feature)
   ============================================================ */

.notif-bell-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
}

.notif-bell-btn {
    position: relative;
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    font-size: 17px;
    transition: all .2s;
}

.notif-bell-btn:hover {
    background: #eff6ff;
    border-color: var(--blue, #2563eb);
    color: var(--blue, #2563eb);
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 20px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    line-height: 1;
}

/* Dropdown */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.16);
    border: 1px solid #e2e8f0;
    z-index: 2000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(.97);
    pointer-events: none;
    transition: all .22s cubic-bezier(.4,0,.2,1);
}

.notif-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: .875rem;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    transition: background .15s;
}

.notif-item:hover { background: #f8fafc; }

.notif-item.unread {
    background: #eff6ff;
}
.notif-item.unread:hover { background: #dbeafe; }

.notif-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #dbeafe;
    color: var(--blue, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

#notifList {
    max-height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.notif-text { flex: 1; min-width: 0; }
.notif-title { font-size: .8rem; font-weight: 700; color: #1e293b; }
.notif-msg   { font-size: .75rem; color: #64748b; margin-top: 2px; white-space: normal; word-break: break-word; line-height: 1.4; }
.notif-time  { font-size: 11px; color: #94a3b8; margin-top: 4px; }

.notif-empty {
    text-align: center;
    padding: 28px 16px;
    color: #94a3b8;
    font-size: .875rem;
}
.notif-empty i { font-size: 1.8rem; display: block; margin-bottom: 8px; }


/* ============================================================
   DOCTOR PROFILE — Book Appointment button
   ============================================================ */

.btn-book-appointment {
    background: var(--blue, #2563eb);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px 24px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-book-appointment:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37,99,235,.3);
}


/* ============================================================
   Shared utility — option-card (used in booking & my-visits modals)
   ============================================================ */

.option-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all .18s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .875rem;
    color: #334155;
    font-weight: 500;
}
.option-card:hover { border-color: var(--blue, #2563eb); background: #eff6ff; }
.option-card.selected {
    border-color: var(--blue, #2563eb);
    background: #eff6ff;
    color: var(--blue, #2563eb);
}
.option-card .option-check {
    width: 20px; height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all .18s;
}
.option-card.selected .option-check {
    background: var(--blue, #2563eb);
    border-color: var(--blue, #2563eb);
    color: #fff;
}


/* ============================================================
   MOBILE RESPONSIVE HEADER & NOTIFICATION POPUP FIXES
   (Fixes mobile overflow for 320px, 360px, 375px, 390px, 414px, 430px)
   ============================================================ */

@media (max-width: 860px) {
    /* Hide Index Hero Image on Mobile */
    .hero-visual {
        display: none !important;
    }

    /* 1. Header Nav Wrap & Logo Box */
    .nav-wrap {
        padding: 10px 16px !important;
    }

    header.scrolled .nav-wrap {
        padding: 8px 16px !important;
    }

    .logo-box {
        width: 42px !important;
        height: 42px !important;
        border-radius: 12px !important;
        font-size: 20px !important;
    }

    .logo-box img {
        border-radius: 12px !important;
    }

    .nav-right {
        gap: 8px !important;
    }

    /* 2. Notification Bell Button */
    .notif-bell-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 9px;
    }

    /* 3. Notification Dropdown Positioning (Guaranteed inside Viewport) */
    .notif-dropdown {
        position: fixed !important;
        top: 60px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: 360px !important;
        margin: 0 auto !important;
        border-radius: 14px;
        box-shadow: 0 12px 36px rgba(10, 26, 60, 0.22);
        z-index: 99999 !important;
        transform: translateY(-8px) scale(0.97);
        transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .notif-dropdown.open {
        transform: translateY(0) scale(1);
    }

    #notifList {
        max-height: min(300px, 50vh);
    }

    /* 4. User Dropdown Positioning on Mobile */
    .user-dropdown {
        position: fixed !important;
        top: 60px !important;
        right: 12px !important;
        left: auto !important;
        min-width: 190px !important;
        max-width: 240px !important;
        z-index: 99999 !important;
        box-shadow: 0 12px 36px rgba(10, 26, 60, 0.2);
    }

    /* 5. Controls Sizing */
    .login-trigger {
        padding: 7px 14px;
        font-size: 13.5px;
        gap: 6px;
        border-radius: 20px;
    }

    .user-chip {
        padding: 4px;
        gap: 6px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 12.5px;
    }

    .hamburger {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }
}

@media (max-width: 480px) {
    .nav-wrap {
        padding: 8px 12px !important;
    }

    header.scrolled .nav-wrap {
        padding: 6px 12px !important;
    }

    .user-name {
        display: none !important;
    }

    #chevIcon {
        display: none !important;
    }

    .user-chip {
        padding: 3px;
        background: transparent;
    }

    .user-chip:hover {
        background: var(--blue-tint);
    }
}

@media (max-width: 360px) {
    .nav-wrap {
        padding: 8px 8px !important;
    }

    .nav-right {
        gap: 6px !important;
    }

    .logo-box {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
    }

    .notif-dropdown {
        left: 8px !important;
        right: 8px !important;
        top: 54px !important;
    }

    .user-dropdown {
        top: 54px !important;
        right: 8px !important;
    }
}
