:root {
    --ink: #10232b;
    --ink-2: #183a45;
    --muted: #61727a;
    --brand: #0796a6;
    --brand-dark: #056a78;
    --brand-soft: #e8f8f7;
    --mint: #27b99a;
    --accent: #f4bf45;
    --page: #f6fbfa;
    --line: #d9e9e7;
    --shadow: 0 22px 60px rgba(16, 35, 43, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: "Noto Sans Bengali", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.75;
}

a {
    color: var(--brand);
    text-decoration: none;
}

.clinic-nav {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(7, 150, 166, 0.12);
    box-shadow: 0 14px 36px rgba(16, 35, 43, 0.06);
    backdrop-filter: blur(18px);
}

.clinic-nav .container {
    min-height: 112px;
    align-items: center;
}

.navbar-brand {
    color: var(--ink);
    font-weight: 800;
    display: flex;
    align-items: center;
    min-width: 360px;
}

.site-logo {
    display: block;
    width: min(268px, 54vw);
    height: auto;
}

.official-logo {
    width: auto;
    height: 104px;
    max-width: min(460px, 44vw);
    object-fit: contain;
}

.brand-mark {
    display: inline-grid;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--mint));
    border-radius: 8px;
    place-items: center;
    box-shadow: 0 14px 30px rgba(7, 150, 166, 0.28);
}

.nav-link {
    color: var(--ink);
    font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand);
}

.navbar-toggler {
    border: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 8px;
    font-weight: 800;
}

.btn-primary {
    border-color: var(--brand);
    background: linear-gradient(135deg, var(--brand), var(--mint));
    box-shadow: 0 16px 34px rgba(7, 150, 166, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--brand-dark);
    background: linear-gradient(135deg, var(--brand-dark), #1b9d87);
}

.btn-outline-primary {
    color: var(--brand-dark);
    border-color: rgba(7, 150, 166, 0.38);
    background: #ffffff;
}

.btn-outline-primary:hover {
    border-color: var(--brand);
    background: var(--brand);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 170px 0 76px;
    background: linear-gradient(120deg, rgba(232, 248, 247, 0.96), rgba(255, 255, 255, 0.92));
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(246, 251, 250, 0.96) 0%, rgba(246, 251, 250, 0.9) 39%, rgba(246, 251, 250, 0.38) 100%),
        linear-gradient(0deg, rgba(16, 35, 43, 0.36), transparent 42%);
}

.carousel-caption {
    display: none;
    right: 7%;
    bottom: 42px;
    left: auto;
    max-width: 390px;
    padding: 22px;
    color: #ffffff;
    text-align: left;
    background: rgba(16, 35, 43, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.carousel-caption span {
    color: #a9f0e9;
    font-size: 0.9rem;
    font-weight: 800;
}

.carousel-caption h2 {
    margin: 6px 0 8px;
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.35;
}

.carousel-caption p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators {
    bottom: 18px;
}

.carousel-indicators [data-bs-target] {
    width: 26px;
    height: 5px;
    border-radius: 999px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-dark);
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 14px;
}

.hero-section h1 {
    max-width: 720px;
    margin: 0 0 20px;
    font-size: clamp(2.35rem, 5.3vw, 4.85rem);
    font-weight: 800;
    line-height: 1.12;
}

.hero-copy {
    max-width: 670px;
    color: var(--ink-2);
    font-size: 1.15rem;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.trust-row {
    display: grid;
    max-width: 680px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.trust-row div,
.hero-panel,
.qualification-panel,
.service-card,
.info-panel,
.appointment-form,
.quick-action-grid {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(217, 233, 231, 0.88);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.trust-row div {
    padding: 16px;
    backdrop-filter: blur(14px);
}

.trust-row strong {
    display: block;
    font-size: 1.42rem;
    line-height: 1.25;
}

.trust-row span {
    color: var(--muted);
    font-weight: 700;
}

.hero-panel {
    padding: 30px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

.panel-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.panel-topline span {
    padding: 8px 12px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
}

.hero-icon {
    display: grid;
    width: 70px;
    height: 70px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--mint));
    border-radius: 8px;
    font-size: 1.9rem;
    place-items: center;
}

.hero-panel h2 {
    margin-bottom: 8px;
    font-weight: 800;
}

.hero-panel p {
    color: var(--brand-dark);
    font-weight: 800;
}

.mini-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.mini-list span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.quick-action-band {
    position: relative;
    z-index: 3;
    margin-top: -34px;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 24px;
    border-right: 1px solid var(--line);
}

.quick-action-item:last-child {
    border-right: 0;
}

.quick-action-item i {
    display: grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: var(--ink);
    border-radius: 8px;
    place-items: center;
    font-size: 1.35rem;
}

.quick-action-item strong,
.quick-action-item span {
    display: block;
}

.quick-action-item strong {
    font-weight: 800;
}

.quick-action-item span {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 600;
}

.section-padding {
    padding: 86px 0;
}

.doctor-card,
.qualification-panel,
.info-panel,
.appointment-form {
    padding: 34px;
}

.doctor-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    padding: 34px;
    padding-top: 100px;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(16, 35, 43, 0.94), rgba(16, 35, 43, 0.64) 56%, rgba(16, 35, 43, 0.2)),
        url("images/doctor-shahria-jahan.png") center 8% / cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.doctor-card .section-kicker,
.doctor-card .lead {
    color: #c2f5ef;
}

.doctor-card .section-kicker {
    margin-bottom: 6px;
    line-height: 1.18;
}

.doctor-card h2 {
    margin-bottom: 6px;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.14;
}

.doctor-card .lead {
    margin-bottom: 0;
    line-height: 1.22;
}

.registration {
    display: inline-flex;
    align-self: flex-start;
    position: absolute;
    top: 34px;
    left: 34px;
    margin-top: 0;
    padding: 10px 14px;
    color: var(--ink);
    background: var(--accent);
    border-radius: 8px;
    font-weight: 800;
}

.qualification-panel h3,
.section-heading h2,
.info-panel h2,
.appointment-section h2 {
    font-weight: 800;
}

.qualification-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.qualification-item {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--brand-soft), #ffffff);
    border: 1px solid rgba(7, 150, 166, 0.08);
    border-radius: 8px;
    font-weight: 800;
}

.qualification-item i {
    color: var(--brand);
    font-size: 1.25rem;
}

.services-section {
    background: linear-gradient(180deg, var(--brand-soft), rgba(255, 255, 255, 0.72));
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.08rem;
}

.service-card {
    position: relative;
    height: 100%;
    padding: 26px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 68px rgba(16, 35, 43, 0.15);
}

.service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.service-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--mint));
    border-radius: 8px;
    font-weight: 800;
}

.service-top > i {
    color: rgba(7, 150, 166, 0.24);
    font-size: 1.9rem;
}

.service-card h3 {
    min-height: 62px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 800;
}

.service-card p,
.info-panel p,
.appointment-section p {
    color: var(--muted);
}

.schedule-list {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    background: linear-gradient(135deg, var(--brand-soft), #ffffff);
    border: 1px solid rgba(7, 150, 166, 0.09);
    border-radius: 8px;
}

.schedule-item span {
    color: var(--brand-dark);
    font-weight: 800;
}

.schedule-item strong {
    text-align: right;
    color: var(--ink);
}

.contact-panel p {
    display: flex;
    gap: 10px;
}

.location-map {
    margin-top: 28px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.location-map-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 26px;
}

.location-map-heading .section-kicker {
    display: block;
    margin-bottom: 4px;
}

.location-map-heading h2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
}

.location-map-canvas {
    position: relative;
}

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

.appointment-section {
    background:
        linear-gradient(90deg, rgba(16, 35, 43, 0.96), rgba(5, 106, 120, 0.93)),
        url("https://images.unsplash.com/photo-1643660528509-6708d16f8b56?auto=format&fit=crop&w=1600&q=82") center / cover;
    color: #ffffff;
}

.appointment-section .section-kicker,
.appointment-section p {
    color: #c8f5ef;
}

.appointment-section .schedule-item {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(255, 255, 255, 0.28);
}

.appointment-section .schedule-item strong {
    color: var(--ink);
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: var(--ink);
    background: var(--accent);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
}

.phone-link:hover {
    color: var(--ink);
    background: #ffd766;
}

.appointment-form {
    background: rgba(255, 255, 255, 0.96);
}

.static-contact-card h3 {
    color: var(--ink);
    font-weight: 800;
    margin-bottom: 8px;
}

.static-contact-card p {
    color: var(--muted);
}

.static-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-label {
    color: var(--ink);
    font-weight: 800;
}

.form-control,
.form-select {
    min-height: 54px;
    border-color: var(--line);
    border-radius: 8px;
}

textarea.form-control {
    min-height: 132px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(7, 150, 166, 0.14);
}

.site-footer {
    padding: 30px 0;
    color: #d9f3f1;
    background: #0d2028;
}

.site-footer strong,
.site-footer span {
    display: block;
}

.site-footer a {
    color: #ffffff;
    font-weight: 800;
}

.mobile-app-nav {
    display: none;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 160px 0 66px;
    }

    .carousel-caption {
        display: none;
    }

    .hero-panel {
        max-width: 560px;
    }

    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .quick-action-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .quick-action-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .location-map {
        margin-top: 20px;
    }

    .location-map-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .location-map-heading .btn {
        width: 100%;
    }

    .location-map iframe {
        height: 340px;
    }

    body {
        padding-bottom: 86px;
        background: #eef8f7;
    }

    .clinic-nav {
        top: 12px;
        right: 12px;
        left: 12px;
        border: 1px solid rgba(7, 150, 166, 0.14);
        border-radius: 8px;
    }

    .clinic-nav .container {
        min-height: 86px;
    }

    .navbar-brand {
        min-width: 0;
        max-width: calc(100% - 58px);
    }

    .site-logo {
        width: min(224px, 60vw);
    }

    .official-logo {
        width: auto;
        height: 78px;
        max-width: min(300px, 70vw);
    }

    .hero-section {
        min-height: 100svh;
        padding: 154px 0 38px;
    }

    .app-screen {
        border-bottom-right-radius: 28px;
        border-bottom-left-radius: 28px;
    }

    .hero-slider {
        opacity: 0.88;
    }

    .slide-shade {
        background:
            linear-gradient(180deg, rgba(246, 251, 250, 0.96) 0%, rgba(246, 251, 250, 0.86) 45%, rgba(246, 251, 250, 0.96) 100%),
            rgba(7, 150, 166, 0.2);
    }

    .hero-section h1 {
        font-size: 2.36rem;
    }

    .hero-copy {
        color: var(--ink-2);
        font-size: 1.02rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 52px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 0.95rem;
    }

    .trust-row,
    .qualification-grid {
        grid-template-columns: 1fr;
    }

    .trust-row {
        gap: 10px;
    }

    .trust-row div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 68px;
    }

    .hero-panel,
    .doctor-card,
    .qualification-panel,
    .info-panel,
    .appointment-form,
    .service-card,
    .quick-action-grid {
        border-radius: 8px;
        box-shadow: 0 16px 40px rgba(16, 35, 43, 0.1);
    }

    .doctor-card,
    .qualification-panel,
    .info-panel,
    .appointment-form,
    .hero-panel,
    .service-card {
        padding: 22px;
    }

    .doctor-card {
        min-height: 360px;
        padding-top: 92px;
        background: url("images/doctor-shahria-jahan.png") center top / cover no-repeat;
    }

    .registration {
        top: 22px;
        left: 22px;
    }

    .doctor-card .section-kicker,
    .doctor-card h2,
    .doctor-card .lead {
        text-shadow: 0 2px 10px rgba(16, 35, 43, 0.78);
    }

    .doctor-card h2 {
        max-width: 78%;
        font-size: 1.72rem;
        line-height: 1.28;
    }

    .quick-action-band {
        margin-top: 18px;
    }

    .quick-action-item {
        min-height: 86px;
        padding: 18px;
    }

    .section-padding {
        padding: 58px 0;
    }

    .section-heading {
        text-align: left;
    }

    .service-card h3 {
        min-height: auto;
    }

    .schedule-item {
        display: block;
    }

    .schedule-item strong {
        display: block;
        text-align: left;
        margin-top: 4px;
    }

    .mobile-app-nav {
        position: fixed;
        right: 10px;
        bottom: 10px;
        left: 10px;
        z-index: 1050;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: end;
        min-height: 68px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(7, 150, 166, 0.16);
        border-radius: 8px;
        box-shadow: 0 20px 45px rgba(16, 35, 43, 0.2);
        backdrop-filter: blur(18px);
    }

    .mobile-app-nav a {
        display: grid;
        min-width: 0;
        min-height: 50px;
        align-content: center;
        justify-items: center;
        gap: 2px;
        color: var(--muted);
        border-radius: 8px;
        font-size: 0.72rem;
        font-weight: 800;
    }

    .mobile-app-nav i {
        font-size: 1.18rem;
    }

    .mobile-app-nav a.active {
        color: var(--brand-dark);
        background: var(--brand-soft);
    }

    .mobile-app-nav .primary-tab {
        min-height: 58px;
        margin-top: -18px;
        color: #ffffff;
        background: linear-gradient(135deg, var(--brand), var(--mint));
        box-shadow: 0 14px 30px rgba(7, 150, 166, 0.3);
    }

    .site-footer {
        padding-bottom: 104px;
    }
}

@media (max-width: 390px) {
    .hero-actions {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 2.08rem;
    }

    .site-logo {
        width: min(188px, 58vw);
    }

    .official-logo {
        width: auto;
        height: 68px;
        max-width: min(254px, 68vw);
    }
}
