:root {
    --ink: #071739;
    --muted: #64748b;
    --line: #dbe7f5;
    --blue: #1f6bff;
    --blue-2: #0757df;
    --green: #0ca67a;
    --sky: #eef8ff;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(17, 55, 103, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Noto Sans Bengali", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f8fbff;
    letter-spacing: 0;
}

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

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

svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e8f0fa;
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 86px;
    gap: 34px;
}

.brand {
    flex: 0 0 auto;
}

.brand-logo {
    width: 205px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    color: #0e1d3f;
}

.main-nav a {
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav .active {
    color: var(--blue);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.btn-ghost {
    border: 1px solid #d7e3f2;
    background: #fff;
    color: #0b1a3c;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #2977ff, #0757df);
    box-shadow: 0 12px 28px rgba(31, 107, 255, 0.28);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #d7e3f2;
    border-radius: 8px;
    background: #fff;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.mobile-nav {
    display: none;
}

.hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 25%, rgba(31, 107, 255, 0.13), transparent 31%),
        linear-gradient(100deg, #eef9ff 0%, #edf7ff 48%, #ffffff 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.18)),
        url("https://images.unsplash.com/photo-1586773860418-d37222d8fce3?auto=format&fit=crop&w=1500&q=80");
    background-position: right center;
    background-size: 56% 100%;
    background-repeat: no-repeat;
    opacity: 0.28;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 38px;
    align-items: center;
    min-height: 610px;
    padding: 42px 0 28px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.hero h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(42px, 5.4vw, 64px);
    line-height: 1.06;
    font-weight: 800;
}

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

.hero-subtitle {
    max-width: 570px;
    margin: 24px 0 0;
    color: #34435e;
    font-size: 20px;
    line-height: 1.75;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 190px 118px;
    align-items: center;
    max-width: 650px;
    margin-top: 26px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e1ecf8;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #dce7f4;
    border-right: 0;
    color: #64748b;
}

.search-field:first-child {
    border-radius: 9px 0 0 9px;
}

.search-field.compact {
    border-radius: 0 9px 9px 0;
    border-right: 1px solid #dce7f4;
}

.search-field input,
.search-field select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #334155;
    font: inherit;
    font-size: 14px;
}

.search-panel button {
    height: 54px;
    margin-left: 12px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #2977ff, #0757df);
    font-weight: 800;
    cursor: pointer;
}

.stats-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 650px;
    margin-top: 38px;
    padding: 20px 16px;
    border: 1px solid #e2edf7;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 35px rgba(24, 82, 148, 0.08);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-right: 1px solid #d3e3f5;
}

.stat-item:last-child {
    border-right: 0;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--blue);
}

.stat-item strong {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.stat-item small {
    display: block;
    margin-top: 4px;
    color: #334155;
    font-size: 12px;
    line-height: 1.25;
}

.hero-visual {
    position: relative;
    min-height: 530px;
    align-self: stretch;
}

.city-backdrop {
    position: absolute;
    right: 0;
    bottom: 34px;
    width: 82%;
    height: 72%;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.82)),
        url("https://images.unsplash.com/photo-1586773860418-d37222d8fce3?auto=format&fit=crop&w=1200&q=75") center/cover;
    opacity: 0.34;
    filter: saturate(0.85);
}

.hero-doctor {
    position: absolute;
    right: 48px;
    bottom: 0;
    width: min(420px, 86%);
    height: 520px;
    object-fit: cover;
    object-position: top center;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 24px 55px rgba(19, 53, 102, 0.18);
}

.trust-card {
    position: absolute;
    right: 0;
    bottom: 58px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 280px;
    padding: 18px 22px;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
}

.trust-card span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #fff;
    background: var(--blue);
}

.trust-card strong,
.trust-card small {
    display: block;
}

.trust-card strong {
    font-size: 15px;
}

.trust-card small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.specialty-panel,
.doctors-section,
.hospital-section,
.feature-strip {
    margin-top: 34px;
}

.specialty-panel {
    padding: 24px 34px 28px;
    border: 1px solid #edf3fb;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.section-heading a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 18px;
}

.specialty-card {
    display: grid;
    justify-items: center;
    gap: 13px;
    min-width: 0;
    text-align: center;
    color: #102657;
}

.specialty-card span {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
}

.specialty-card svg {
    width: 38px;
    height: 38px;
}

.specialty-card strong {
    font-size: 13px;
    line-height: 1.2;
}

.rose span { color: #ff405c; background: #ffecef; }
.teal span { color: #0eb8a9; background: #e4fbf8; }
.violet span { color: #8157ff; background: #f1ebff; }
.orange span { color: #ff7b22; background: #fff1e8; }
.blue span { color: #2877ff; background: #edf5ff; }
.pink span { color: #e4487e; background: #fff0f5; }
.aqua span { color: #0baeb2; background: #e7fbfc; }
.purple span { color: #7d46e8; background: #f2edff; }

.doctors-section {
    padding: 14px 0 0;
}

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    align-items: stretch; /* all cards same height in each row */
}

.doctor-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5edf8;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(24, 82, 148, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%; /* equal height in grid row */
    transition: transform .22s, box-shadow .22s;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(24, 82, 148, 0.14);
}

.favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    color: #94a3b8;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: color .15s, background .15s;
}

.favorite:hover { color: #ef4444; background: #fff; }

.favorite svg {
    width: 16px;
    height: 16px;
}

.doctor-photo {
    height: 190px;
    flex-shrink: 0; /* never compress photo */
    background: linear-gradient(140deg, #eef4fb, #f8fbff);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .3s;
}

.doctor-photo img.placeholder-img {
    object-fit: contain;
    object-position: center;
    padding: 14px;
    background: linear-gradient(140deg, #eef4fb, #f5f9ff);
}

.doctor-card:hover .doctor-photo img { transform: scale(1.04); }

.doctor-info {
    padding: 14px 16px 16px;
    flex: 1; /* grow to fill remaining space */
    display: flex;
    flex-direction: column;
}

.doctor-info h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    color: #071739;
    /* clamp to 2 lines always */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em; /* reserve space for 2 lines */
}

.specialization {
    margin: 0 0 7px;
    color: var(--green);
    font-size: 11.5px;
    font-weight: 700;
    /* 1 line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clinic {
    margin: 0 0 4px;
    color: #52627a;
    font-size: 11.5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.experience {
    margin: 0 0 10px;
    color: #94a3b8;
    font-size: 11.5px;
}

.book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    margin-top: auto; /* push button to bottom always */
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #2977ff, #0757df);
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    transition: opacity .18s;
    flex-shrink: 0;
}

.book-btn:hover { opacity: 0.88; }

.book-btn svg {
    width: 14px;
    height: 14px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 24px;
}

.slider-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d5dde9;
}

.slider-dots .active {
    background: var(--blue);
}

.hospital-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.hospital-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    border: 1px solid #e5edf8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(24, 82, 148, 0.07);
}

.hospital-card span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: var(--blue);
    background: #edf5ff;
}

.hospital-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.hospital-card p,
.hospital-card strong {
    display: block;
    margin: 0 0 7px;
    color: #52627a;
    font-size: 13px;
}

.hospital-card strong {
    color: var(--green);
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 58px;
    padding: 24px 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #edf7ff, #ffffff);
    border: 1px solid #e2edf8;
    box-shadow: 0 14px 34px rgba(24, 82, 148, 0.08);
}

.feature-strip article {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 22px;
    border-right: 1px solid #cfe0f2;
}

.feature-strip article:last-child {
    border-right: 0;
}

.feature-strip span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: var(--blue);
    background: #dbeafe;
}

.feature-strip strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.feature-strip p {
    margin: 0;
    color: #52627a;
    font-size: 13px;
    line-height: 1.45;
}

.site-footer {
    color: #fff;
    background:
        radial-gradient(circle at 12% 18%, rgba(35, 120, 255, 0.35), transparent 30%),
        linear-gradient(135deg, #063b7d, #021d48 72%, #031536);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.9fr 0.95fr 1.15fr;
    gap: 54px;
    padding: 46px 0 34px;
}

.footer-brand img {
    width: 230px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
    padding: 7px 10px;
    border-radius: 8px;
    background: #fff;
    filter: none;
}

.footer-brand p,
.newsletter p {
    max-width: 280px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
    font-size: 15px;
}

.footer-grid h3 {
    margin: 0 0 18px;
    font-size: 16px;
}

.footer-grid a {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.socials a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 800;
}

.newsletter input,
.newsletter button {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    font: inherit;
}

.newsletter input {
    margin: 12px 0;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    outline: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.66);
}

.newsletter button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #2d8cff, #1f6bff);
    font-weight: 800;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom div {
    display: flex;
    gap: 30px;
}

@media (max-width: 1080px) {
    .header-inner {
        gap: 18px;
    }

    .main-nav {
        gap: 18px;
    }

    .header-actions .btn {
        padding: 0 13px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 36px;
    }

    .hero-visual {
        min-height: 460px;
    }

    .hero-doctor {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .trust-card {
        right: 8%;
    }

    .specialty-grid {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 24px;
    }

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

    .feature-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 0;
    }

    .feature-strip article:nth-child(2) {
        border-right: 0;
    }

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

@media (max-width: 820px) {
    .container {
        width: min(100% - 28px, 720px);
    }

    .header-inner {
        min-height: 74px;
    }

    .brand-logo {
        width: 176px;
        height: 52px;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

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

    .mobile-nav {
        display: none;
        padding: 8px 20px 18px;
        border-top: 1px solid #edf3fb;
        background: #fff;
    }

    .mobile-nav.is-open {
        display: grid;
        gap: 12px;
    }

    .mobile-nav a {
        padding: 10px 0;
        font-weight: 700;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        min-height: auto;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .search-panel {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .search-field,
    .search-field:first-child,
    .search-field.compact {
        border: 1px solid #dce7f4;
        border-radius: 9px;
    }

    .search-panel button {
        margin-left: 0;
    }

    .stats-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 0;
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .hero-visual {
        min-height: 400px;
    }

    .hero-doctor {
        width: min(360px, 92%);
        height: 390px;
    }

    .trust-card {
        left: 50%;
        right: auto;
        bottom: 28px;
        transform: translateX(-50%);
        min-width: min(300px, 90%);
    }

    .specialty-panel {
        padding: 22px 18px;
    }

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

    .feature-strip {
        grid-template-columns: 1fr;
    }

    .feature-strip article,
    .feature-strip article:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #cfe0f2;
        padding: 0 0 18px;
    }

    .feature-strip article:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: 40px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .specialty-grid,
    .doctor-grid,
    .hospital-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-card {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: 0;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ============================================================
   SEO UTILITY STYLES
   ============================================================ */

/* NAP (Name, Address, Phone) — Local SEO footer block */
.footer-nap {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.7;
    font-style: normal;
}

.footer-nap a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    text-underline-offset: 2px;
    display: inline;
    margin: 0;
}

.footer-nap a:hover {
    color: #fff;
}

/* Visually hidden for screen readers (a11y + SEO) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
