/* =========================================================
   New Central Clinic & Diagnosis — public site
   Brand: logo green #0f703b + logo red #ed2027
   ========================================================= */
:root {
    --primary: #0f703b;
    --accent: #ed2027;
    --primary-dark: color-mix(in srgb, var(--primary) 70%, #000);
    --primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);
    --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
    --ink: #0d2318;
    --muted: #45574d;
    --font-en: 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-bn: 'Noto Sans Bengali', 'Inter', system-ui, sans-serif;
    --font-head: 'Poppins', 'Noto Sans Bengali', sans-serif;
    --line: #e1ebe5;
    --bg-soft: #f4f8f6;
    --radius: 16px;
    --shadow-sm: 0 2px 10px rgba(16, 42, 30, .06);
    --shadow: 0 14px 40px rgba(16, 42, 30, .12);
}
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-en); color: var(--ink); font-size: 16px; line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.lang-bn { font-family: var(--font-bn); font-size: 16.5px; line-height: 1.8; }
.lang-bn .btn, .lang-bn .form-control, .lang-bn .form-select { font-family: var(--font-bn); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.3; }
.lang-bn h1, .lang-bn h2, .lang-bn h3, .lang-bn h4, .lang-bn h5, .lang-bn h6 { font-family: var(--font-bn); line-height: 1.45; }
.lang-bn h1, .lang-bn h2, .lang-bn h3 { letter-spacing: 0; }
a { color: var(--primary); }
img { max-width: 100%; }
.skip-link { position: absolute; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; }
.btn-brand { background: var(--primary); color: #fff; border: 1px solid var(--primary); padding-inline: 1.3rem; }
.btn-brand:hover, .btn-brand:focus { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border: 1px solid var(--accent); padding-inline: 1.3rem; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-accent:hover, .btn-accent:focus { background: color-mix(in srgb, var(--accent) 85%, #000); color: #fff; }
.btn-outline-brand { color: var(--primary); border: 1.5px solid var(--primary); background: #fff; padding-inline: 1.3rem; }
.btn-outline-brand:hover { background: var(--primary); color: #fff; }
.btn-nav-outline { color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-nav-outline:hover { background: #fff; color: var(--primary); }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary-dark); color: rgba(255,255,255,.92); font-size: .88rem; padding: .35rem 0; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar i { opacity: .8; margin-right: .2rem; }
.lang-switch { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 2px; }
.lang-switch a { padding: .15rem .75rem; border-radius: 999px; font-weight: 600; font-size: .8rem; }
.lang-switch a.active { background: #fff; color: var(--primary); }
.topbar .admin-btn { display: inline-flex; align-items: center; gap: .15rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .12rem .7rem; font-weight: 600; font-size: .8rem; white-space: nowrap; }
.topbar .admin-btn i { margin: 0; opacity: 1; }
.topbar .admin-btn:hover { background: #fff; color: var(--primary); }

/* ---------- Brand bar (logo + one-line name) ---------- */
.brandbar { background: #fff; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; min-width: 0; }
.brand .logo { width: 72px; height: 72px; object-fit: contain; flex: none; }
.brand-name { white-space: nowrap; font-family: var(--font-head); font-size: clamp(.95rem, 2.4vw, 1.85rem); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; }
.lang-bn .brand-name { font-family: var(--font-bn); letter-spacing: 0; font-weight: 800; }
.brand-name .b1 { color: var(--primary); }
.brand-name .b2 { color: var(--accent); }
.brand-name .b3 { color: var(--ink); font-weight: 600; opacity: .8; }
.info-chip { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); padding: .4rem .9rem .4rem .45rem; border: 1px solid var(--line); border-radius: 999px; transition: .2s; }
.info-chip .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.05rem; }
.info-chip small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.1; }
.info-chip strong { font-size: 1rem; line-height: 1.2; }
.info-chip.danger .ic { background: var(--accent-soft); color: var(--accent); }
.info-chip:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); color: var(--ink); }

/* ---------- Main navigation ---------- */
.mainnav { background: var(--primary); box-shadow: 0 6px 20px rgba(16,42,30,.15); z-index: 1020; }
.mainnav .navbar { min-height: 54px; }
.mainnav .nav-link { color: #fff !important; font-weight: 600; font-size: .98rem; padding: 1rem .9rem !important; position: relative; white-space: nowrap; }
.mainnav .nav-link:hover, .mainnav .nav-link.active { color: #fff !important; background: rgba(0,0,0,.12); }
.mainnav .nav-link.active::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 0; height: 3px; background: var(--accent); border-radius: 3px 3px 0 0; }
.mini-brand { color: #fff !important; font-weight: 700; display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.mini-brand img { background: #fff; border-radius: 50%; padding: 2px; }
.dropdown-menu { border: 0; box-shadow: var(--shadow); border-radius: 12px; padding: .5rem; margin-top: 0; }
.dropdown-item { border-radius: 8px; padding: .5rem .85rem; font-size: .93rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--primary-soft); color: var(--primary); }
@media (min-width: 992px) {
    .dropdown-menu.mega { columns: 2; min-width: 460px; }
    .dropdown-menu.mega li { break-inside: avoid; }
    .mainnav .dropdown:hover > .dropdown-menu { display: block; }
    .offcanvas-body { display: flex; align-items: center; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .mainnav .nav-link { padding: 1rem .55rem !important; font-size: .9rem; }
    .mainnav .btn { font-size: .85rem; padding-inline: .9rem; }
}
@media (max-width: 991px) {
    .offcanvas .nav-link { color: var(--ink) !important; padding: .8rem .5rem !important; border-bottom: 1px solid var(--line); }
    .offcanvas .nav-link.active::after { display: none; }
    .offcanvas .nav-link.active, .offcanvas .nav-link:hover { color: var(--primary) !important; background: var(--primary-soft); }
    .offcanvas .btn-nav-outline { color: var(--primary); border-color: var(--primary); }
    .offcanvas .dropdown-menu { box-shadow: none; padding-left: 1rem; }
    .brand .logo { width: 48px; height: 48px; }
}

/* ---------- Notice ---------- */
.notice-bar { background: #fff8e6; border-bottom: 1px solid #f4e3b5; font-size: .92rem; overflow: hidden; }
.notice-bar .label { background: var(--accent); color: #fff; padding: .45rem .9rem; white-space: nowrap; font-weight: 600; position: relative; z-index: 1; }
.notice-bar .ticker { overflow: hidden; flex: 1; white-space: nowrap; }
.notice-bar .ticker span { display: inline-block; padding-left: 100%; animation: ticker 30s linear infinite; }
.notice-bar:hover .ticker span { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-static {
    position: relative; color: #fff; padding: 4.5rem 0 7.5rem; overflow: hidden;
    background:
        linear-gradient(105deg, color-mix(in srgb, var(--primary-dark) 96%, transparent) 0%, color-mix(in srgb, var(--primary) 88%, transparent) 55%, color-mix(in srgb, var(--primary) 70%, transparent) 100%),
        var(--hero-img, none) center/cover no-repeat,
        var(--primary);
}
.hero-static::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M28 20h8v8h8v8h-8v8h-8v-8h-8v-8h8z' fill='%23ffffff' fill-opacity='.06'/%3E%3C/svg%3E"); }
.hero-static::after { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 160%; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 60%); }
.hero-static .container { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: .35rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 500; margin-bottom: 1.2rem; backdrop-filter: blur(4px); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5a5f; box-shadow: 0 0 0 0 rgba(255,90,95,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,90,95,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,95,0); } }
.hero-title { font-size: clamp(1.9rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.15; color: #fff; margin-bottom: 1rem; }
.lang-bn .hero-title { line-height: 1.3; }
.hero-sub { font-size: 1.12rem; opacity: .92; max-width: 600px; margin-bottom: 1.8rem; }
.hero-call { display: inline-flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; }
.hero-call .ic { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; animation: ring 2.5s infinite; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 5%, 15% { transform: rotate(-12deg); } 10%, 20% { transform: rotate(12deg); } 25% { transform: rotate(0); } }
.hero-call small { display: block; opacity: .8; font-size: .8rem; }
.hero-call strong { font-size: 1.4rem; letter-spacing: .02em; }
.hero-visual { position: relative; height: 400px; }
.hero-visual .ring { position: absolute; inset: 20px 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 18px rgba(255,255,255,.12), 0 0 0 40px rgba(255,255,255,.06), 0 30px 60px rgba(0,0,0,.25); }
.hero-visual .ring img { width: 72%; height: auto; }
.float-card { position: absolute; display: flex; align-items: center; gap: .7rem; background: #fff; color: var(--ink); padding: .7rem 1rem; border-radius: 14px; box-shadow: var(--shadow); animation: floaty 5s ease-in-out infinite; }
.float-card i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.25rem; }
.float-card strong { display: block; font-size: 1.15rem; line-height: 1.1; color: var(--primary); }
.float-card span { font-size: .84rem; color: var(--muted); }
.fc-1 { left: -10px; top: 30px; }
.fc-2 { right: -10px; top: 150px; animation-delay: 1.2s; }
.fc-2 i { background: var(--accent-soft); color: var(--accent); }
.fc-2 strong { color: var(--accent); }
.fc-3 { left: 20px; bottom: 10px; animation-delay: 2.4s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

.hero.has-slider .slide { min-height: 560px; background-size: cover; background-position: center; display: flex; align-items: center; position: relative; padding-bottom: 90px; }
.hero.has-slider .slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,40,22,.85) 0%, rgba(6,40,22,.45) 55%, rgba(6,40,22,.1) 100%); }
.hero.has-slider .caption { position: relative; color: #fff; max-width: 640px; }
.hero.has-slider .caption p { font-size: 1.15rem; opacity: .92; margin-bottom: 1.5rem; }
.carousel-indicators { margin-bottom: 110px; }

/* Quick panel */
.quick-panel { position: relative; margin-top: -78px; z-index: 5; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 1.25rem; border: 1px solid var(--line); }
.qp-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1rem; }
.qp-tabs a { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .8rem .5rem; border-radius: 12px; background: var(--bg-soft); color: var(--ink); font-weight: 600; text-decoration: none; transition: .2s; border: 1px solid var(--line); text-align: center; }
.qp-tabs a i { font-size: 1.25rem; color: var(--primary); }
.qp-tabs a:hover { background: var(--primary-soft); border-color: var(--primary); }
.qp-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.qp-tabs a.active i { color: #fff; }
.quick-panel .form-select, .quick-panel .form-control { padding: .75rem 1rem; border-radius: 12px; border-color: var(--line); background-color: var(--bg-soft); }
.quick-panel .btn-brand { border-radius: 12px; padding: .75rem; }

/* ---------- Stats ---------- */
.stats { padding: 2.5rem 0 .5rem; }
.stat { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; height: 100%; transition: .2s; }
.stat:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.stat .ic { width: 58px; height: 58px; flex: none; border-radius: 16px; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #3fb97a)); color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 30%, transparent); }
.stat strong { display: block; font-size: 1.75rem; line-height: 1.05; color: var(--ink); font-weight: 800; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 2rem 0 4rem; }
.bg-soft { background: var(--bg-soft); }
.bg-dark-brand { background: linear-gradient(160deg, var(--primary-dark), var(--primary)); position: relative; }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 2.75rem; }
.section-head h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); margin-bottom: .6rem; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.03rem; }
.section-head.light h2, .section-head.light p { color: #fff; }
.section-head.light p { opacity: .85; }
.section-head.light .eyebrow { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.25); }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); background: var(--accent-soft); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .9rem; border-radius: 999px; margin-bottom: .85rem; border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lang-bn .eyebrow { letter-spacing: 0; font-size: .92rem; }

/* ---------- Doctor filter ---------- */
.doctor-filter { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 2rem; }
.doctor-filter .chips, .cat-pills { display: flex; gap: .5rem; flex-wrap: wrap; flex: 1 1 100%; justify-content: center; }
.cat-pills { justify-content: flex-start; }
.chip { flex: none; border: 1px solid #d3e2d9; background: #fff; color: var(--ink); padding: .45rem 1rem; border-radius: 999px; font-size: .95rem; font-weight: 500; transition: .15s; text-decoration: none; }
.chip span { background: var(--bg-soft); color: var(--primary); border-radius: 999px; padding: .05rem .5rem; font-size: .82rem; margin-left: .25rem; font-weight: 700; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 25%, transparent); }
.chip.active span { background: rgba(255,255,255,.22); color: #fff; }
.doctor-filter .search { position: relative; flex: 1 1 280px; max-width: 620px; }
.doctor-filter .search i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.doctor-filter .search input { width: 100%; padding: .8rem 1rem .8rem 2.8rem; border: 1px solid var(--line); border-radius: 999px; outline: none; background: #fff; box-shadow: var(--shadow-sm); }
.doctor-filter .search input:focus, .doctor-filter .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--primary) 15%, transparent); }
.doctor-filter .form-select { border-radius: 999px; padding: .8rem 1.1rem; }
.empty-state { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.empty-state i { display: block; font-size: 2.6rem; margin-bottom: .5rem; color: var(--primary); opacity: .5; }

/* ---------- Doctor card ---------- */
.doctor-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: .25s; position: relative; }
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.doctor-card .photo { display: block; aspect-ratio: 5 / 4.4; background: linear-gradient(170deg, var(--primary-soft) 0%, #dcebe2 100%); overflow: hidden; position: relative; }
.doctor-card .photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.doctor-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: .4s; }
.doctor-card:hover .photo img { transform: scale(1.05); }
.doctor-card .body { padding: 1.05rem 1.15rem .4rem; flex: 1; }
.doctor-card .dept { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .35rem; }
.lang-bn .doctor-card .dept { text-transform: none; font-size: .92rem; letter-spacing: 0; }
.doctor-card h3 { font-size: 1.12rem; margin-bottom: .3rem; line-height: 1.3; }
.doctor-card h3 a { color: var(--ink); text-decoration: none; }
.doctor-card h3 a:hover { color: var(--primary); }
.degrees { color: var(--muted); font-size: .9rem; margin-bottom: .35rem; line-height: 1.45; }
.spec { color: var(--primary); font-weight: 600; font-size: .95rem; margin-bottom: .45rem; }
.doctor-card .meta { list-style: none; padding: .55rem 0 0; margin: .4rem 0 0; font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); }
.doctor-card .meta li { display: flex; gap: .5rem; margin-bottom: .2rem; }
.doctor-card .meta i { color: var(--primary); }
.doctor-card .actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .8rem 1.15rem 1.15rem; }
.doctor-card .actions .btn { font-size: .9rem; padding: .45rem .5rem; }

/* ---------- About / features ---------- */
.about-visual { position: relative; padding: 0 0 2rem 0; }
.about-visual .main { border-radius: 24px; box-shadow: var(--shadow); width: 100%; }
.logo-plate { background: #fff; border-radius: 28px; padding: 3rem; box-shadow: var(--shadow); text-align: center; border: 1px solid var(--line); }
.logo-plate img { width: 80%; max-width: 340px; }
.exp-badge { position: absolute; right: -10px; bottom: 0; background: var(--accent); color: #fff; padding: 1rem 1.3rem; border-radius: 18px; box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 35%, transparent); text-align: center; }
.exp-badge strong { display: block; font-size: 2rem; line-height: 1; }
.exp-badge span { font-size: .8rem; opacity: .95; }
.feature { display: flex; gap: .85rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; height: 100%; }
.feature i { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.25rem; }
.feature strong { display: block; font-size: .98rem; }
.feature span { color: var(--muted); font-size: .93rem; }

/* ---------- Department card ---------- */
.dept-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; padding: 1.5rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; transition: .25s; }
.dept-card i { font-size: 1.9rem; color: var(--primary); width: 68px; height: 68px; border-radius: 20px; background: var(--primary-soft); display: grid; place-items: center; transition: .25s; margin-bottom: .2rem; }
.dept-card span { font-weight: 600; line-height: 1.35; font-size: 1rem; }
.dept-card small { color: var(--muted); }
.dept-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-sm); color: var(--primary); }
.dept-card:hover i { background: var(--primary); color: #fff; transform: rotate(-6deg); }

/* ---------- Service card ---------- */
.service-card { display: block; height: 100%; padding: 1.8rem 1.5rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; text-decoration: none; color: #fff; transition: .25s; }
.service-card .ic { width: 62px; height: 62px; border-radius: 18px; background: #fff; color: var(--primary); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1.1rem; }
.service-card h3 { font-size: 1.12rem; color: #fff; }
.service-card p { opacity: .9; font-size: .96rem; }
.service-card .more { font-weight: 600; font-size: .9rem; color: #ffd6d7; }
.service-card:hover { background: #fff; color: var(--ink); transform: translateY(-5px); }
.service-card:hover h3 { color: var(--ink); }
.service-card:hover .ic { background: var(--primary); color: #fff; }
.service-card:hover .more { color: var(--accent); }
.service-card.light { background: #fff; border-color: var(--line); color: var(--ink); }
.service-card.light h3 { color: var(--ink); }
.service-card.light p { color: var(--muted); opacity: 1; }
.service-card.light .ic { background: var(--primary); color: #fff; }
.service-card.light .more { color: var(--accent); }
.service-card.light:hover { box-shadow: var(--shadow); }

/* ---------- Packages ---------- */
.package-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.package-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.package-card > img { aspect-ratio: 16/9; object-fit: cover; }
.package-card .body { padding: 1.35rem; flex: 1; position: relative; }
.package-card .save { display: inline-block; background: var(--accent); color: #fff; font-size: .82rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; margin-bottom: .5rem; }
.package-card h3 { font-size: 1.15rem; }
.price strong { color: var(--primary); font-size: 1.6rem; font-weight: 800; }
.price del { color: var(--muted); margin-left: .4rem; }
.includes { list-style: none; padding: 0; margin: .8rem 0 0; }
.includes li { padding: .25rem 0; font-size: .92rem; }
.includes i { color: var(--primary); }
.includes.cols { columns: 2; }

/* ---------- Test price CTA ---------- */
.price-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; background: linear-gradient(120deg, var(--accent-soft), var(--primary-soft)); border: 1px solid var(--line); border-radius: 24px; padding: 2rem 2.2rem; }
.price-cta h2 { font-size: 1.5rem; margin-bottom: .25rem; }
.price-cta p { color: var(--muted); }
.price-cta .form-control { border-radius: 999px; border-color: var(--line); }

/* ---------- Testimonials ---------- */
.testimonial { position: relative; background: #fff; border-radius: 20px; padding: 1.8rem; height: 100%; border: 1px solid var(--line); margin: 0; }
.testimonial .q { position: absolute; right: 1.2rem; top: .6rem; font-size: 3rem; color: var(--primary-soft); }
.testimonial .stars { color: #f5a623; margin-bottom: .7rem; }
.testimonial blockquote { color: var(--muted); }
.testimonial .who { display: flex; gap: .75rem; align-items: center; }
.testimonial .who img, .testimonial .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.testimonial .who small { display: block; color: var(--muted); }

/* ---------- Posts ---------- */
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); transition: .25s; }
.post-card .img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); display: grid; place-items: center; font-size: 2.6rem; color: var(--primary); overflow: hidden; }
.post-card .img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.post-card:hover .img img { transform: scale(1.05); }
.post-card .body { padding: 1.25rem; }
.post-card small { color: var(--muted); }
.post-card h3 { font-size: 1.1rem; margin: .45rem 0; line-height: 1.35; }
.post-card p { color: var(--muted); font-size: .96rem; margin-bottom: .6rem; }
.post-card .more { color: var(--accent); font-weight: 600; font-size: .88rem; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

/* ---------- Gallery ---------- */
.g-item { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 14px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.g-item:hover img { transform: scale(1.07); }
.g-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: .55rem .8rem; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); }

/* ---------- Inner pages ---------- */
.page-banner {
    color: #fff; padding: 3.2rem 0; position: relative; overflow: hidden;
    background: linear-gradient(110deg, color-mix(in srgb, var(--primary-dark) 95%, transparent), color-mix(in srgb, var(--primary) 85%, transparent)), var(--banner-img, none) center/cover, var(--primary);
}
.page-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.06); }
.page-banner h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin-bottom: .3rem; color: #fff; }
.page-banner .lead { opacity: .88; font-size: 1.05rem; max-width: 720px; }
.page-banner .breadcrumb { font-size: .88rem; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a, .page-banner .breadcrumb-item::before { color: rgba(255,255,255,.75) !important; text-decoration: none; }
.page-banner .breadcrumb-item a:hover { color: #fff !important; }
.page-banner .breadcrumb-item.active { color: #fff !important; }
.info-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow-sm); }
.info-box h3 { font-size: 1.15rem; margin-bottom: 1rem; color: var(--primary); }
.schedule th { width: 36%; color: var(--muted); font-weight: 500; }
.schedule tr + tr { border-top: 1px dashed var(--line); }
.doctor-profile-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; position: sticky; top: 80px; box-shadow: var(--shadow-sm); }
.doctor-profile-card > img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: top; background: linear-gradient(170deg, var(--primary-soft), #dcebe2); }
.badge-dept { display: inline-block; background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: .22rem .75rem; font-size: .8rem; font-weight: 600; text-decoration: none; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.side-list li:last-child { border: 0; }
.side-list a { color: var(--ink); text-decoration: none; }
.side-list a:hover { color: var(--primary); }
.rich { line-height: 1.85; }
.rich img { height: auto; border-radius: 12px; }
.rich h2, .rich h3, .rich h4 { margin-top: 1.5rem; }
.price-table { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table thead th { background: var(--primary); color: #fff; font-weight: 600; padding: .9rem .75rem; border: 0; }
.price-table td { padding: .8rem .75rem; }
.price-table .price-cell { color: var(--primary); font-size: 1.02rem; }
.contact-cards { list-style: none; padding: 0; margin: 0; }
.contact-cards li { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.contact-cards li:last-child { border: 0; }
.contact-cards i { width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.2rem; }
.contact-cards strong { display: block; }
.contact-cards span, .contact-cards a { color: var(--muted); text-decoration: none; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.form-control, .form-select { border-color: var(--line); padding: .65rem .9rem; border-radius: 12px; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--primary) 15%, transparent); }
.form-label { font-weight: 600; font-size: .95rem; }
.pagination { --bs-pagination-active-bg: var(--primary); --bs-pagination-active-border-color: var(--primary); --bs-pagination-color: var(--primary); --bs-pagination-border-radius: 10px; flex-wrap: wrap; gap: .25rem; }

/* ---------- Footer ---------- */
.site-footer { background: #072615; color: #c3d6cc; font-size: .97rem; }
.footer-cta { background: linear-gradient(110deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #8b0d12)); color: #fff; padding: 2.2rem 0; }
.footer-cta h2 { color: #fff; font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin-bottom: .25rem; }
.footer-cta p { opacity: .9; }
.footer-main { padding-top: 3.5rem; }
.site-footer h3 { color: #fff; font-size: 1.02rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--accent); }
.site-footer a { color: #c3d6cc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .btn-light { color: var(--accent); }
.site-footer .btn-light:hover { color: var(--accent); background: #fff3f3; }
.site-footer .btn-outline-light { color: #fff; }
.site-footer .btn-outline-light:hover { color: var(--accent); }
.site-footer li { padding: .28rem 0; }
.footer-logo { width: 64px; height: 64px; background: #fff; border-radius: 50%; padding: 4px; object-fit: contain; }
.site-footer .social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .2s; }
.site-footer .social a:hover { background: var(--accent); color: #fff; }
.contact-list li { display: flex; gap: .6rem; }
.contact-list i { color: #4fd18b; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding: 1.1rem 0; font-size: .85rem; }

/* ---------- Floating ---------- */
.float-actions { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: .5rem; z-index: 1030; }
.float-actions a { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--primary); display: grid; place-items: center; font-size: 1.15rem; box-shadow: 0 6px 18px rgba(0,0,0,.15); transition: .2s; }
.float-actions a:hover { background: var(--primary); color: #fff; transform: scale(1.08); }
.float-actions a.wa { background: #25d366; color: #fff; }
.to-top { position: fixed; right: 14px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; opacity: 0; pointer-events: none; transition: .2s; z-index: 1030; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; }
    .hero-static { padding: 3rem 0 6.5rem; }
    .qp-tabs { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 3.75rem 0; }
}
@media (max-width: 575px) {
    body { font-size: 15.5px; }
    body.lang-bn { font-size: 16px; }
    .brandbar { padding: .5rem 0; }
    .brand { gap: .5rem; }
    .brand .logo { width: 42px; height: 42px; }
    .brand-name { font-size: clamp(.78rem, 3.7vw, 1rem); }
    .hero-static { padding: 2.5rem 0 6rem; }
    .hero-sub { font-size: 1rem; }
    .hero-static .btn-lg { font-size: 1rem; padding: .6rem 1.1rem; }
    .quick-panel { margin-top: -70px; padding: .9rem; border-radius: 16px; }
    .qp-tabs { gap: .4rem; }
    .qp-tabs a { flex-direction: column; gap: .2rem; padding: .6rem .3rem; font-size: .88rem; line-height: 1.3; }
    .stat { padding: .9rem; gap: .65rem; }
    .stat .ic { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 12px; }
    .stat strong { font-size: 1.3rem; }
    .stat span { font-size: .86rem; }
    .doctor-filter .chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: .4rem; scrollbar-width: thin; margin-inline: -12px; padding-inline: 12px; }
    .cat-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; }
    .price-cta { padding: 1.5rem; }
    .doctor-card { display: grid; grid-template-columns: 112px 1fr; border-radius: 16px; }
    .doctor-card .photo { aspect-ratio: auto; height: 100%; min-height: 160px; }
    .doctor-card .photo::after { top: 0; bottom: 0; left: auto; right: 0; width: 3px; height: auto; background: linear-gradient(180deg, var(--primary), var(--accent)); }
    .doctor-card .body { padding: .8rem .9rem .3rem; }
    .doctor-card h3 { font-size: 1rem; }
    .doctor-card .actions { grid-column: 1 / -1; padding: .6rem .9rem .9rem; border-top: 1px solid var(--line); }
    .float-actions { top: auto; bottom: 74px; transform: none; }
    .float-actions a { width: 42px; height: 42px; }
    .includes.cols { columns: 1; }
    .exp-badge { right: 8px; }
    .map iframe { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Doctor availability, schedule, FAQ, estimator, popup, 404
   ========================================================= */
.doctor-card .photo { position: relative; }
.status-badge { position: absolute; left: .7rem; top: .7rem; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.status-badge.today { background: #fff; color: var(--primary); }
.status-badge.today .dot { width: 8px; height: 8px; border-radius: 50%; background: #18b65b; box-shadow: 0 0 0 0 rgba(24,182,91,.6); animation: pulse-g 1.8s infinite; }
@keyframes pulse-g { 70% { box-shadow: 0 0 0 8px rgba(24,182,91,0); } 100% { box-shadow: 0 0 0 0 rgba(24,182,91,0); } }
.status-badge.leave { background: var(--accent); color: #fff; }
.doctor-card.is-leave .photo img { filter: grayscale(.7); opacity: .8; }
.day-select { max-width: 220px; border-radius: 999px !important; }

.today-strip { padding: 1.5rem 0 0; }
.today-box { background: linear-gradient(110deg, var(--primary-soft), #fff); border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem 1.4rem; display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.today-head { display: flex; align-items: center; gap: .9rem; flex: 0 0 auto; }
.today-head h2 { font-size: 1.15rem; margin: 0; }
.today-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.today-head .live { display: inline-flex; align-items: center; gap: .4rem; background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; }
.today-head .live .dot { width: 8px; height: 8px; border-radius: 50%; background: #7dffb0; animation: pulse-g 1.8s infinite; }
.today-list { display: flex; gap: .6rem; overflow-x: auto; flex: 1 1 300px; padding-bottom: .3rem; scrollbar-width: thin; }
.today-item { flex: none; display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .45rem .9rem .45rem .45rem; text-decoration: none; color: var(--ink); transition: .2s; }
.today-item:hover { border-color: var(--primary); color: var(--primary); }
.today-item img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--primary-soft); }
.today-item strong { display: block; font-size: .95rem; line-height: 1.25; }
.today-item small { color: var(--muted); font-size: .82rem; }

.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .45rem; }
.week-grid .wd { text-align: center; border-radius: 14px; padding: .65rem .2rem; border: 1px solid var(--line); background: #fff; position: relative; }
.week-grid .wd .d { display: block; font-weight: 700; font-size: .92rem; }
.week-grid .wd i { font-size: 1.2rem; }
.week-grid .wd.on { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 35%, transparent); color: var(--primary); }
.week-grid .wd.off { color: #9aa9a1; }
.week-grid .wd.is-today { box-shadow: 0 0 0 2px var(--accent); }
.week-grid .wd small { display: block; font-size: .72rem; color: var(--accent); font-weight: 700; }

.faq-list .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: .6rem; overflow: hidden; }
.faq-list .accordion-button { font-weight: 600; font-size: 1.02rem; color: var(--ink); background: #fff; padding: 1rem 1.2rem; }
.faq-list .accordion-button:not(.collapsed) { color: var(--primary); background: var(--primary-soft); box-shadow: none; }
.faq-list .accordion-button:focus { box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary) 20%, transparent); }
.faq-list .accordion-body { color: var(--muted); }

.test-row td:first-child { cursor: pointer; }
.est-check { width: 1.25em; height: 1.25em; cursor: pointer; }
.est-check:checked { background-color: var(--primary); border-color: var(--primary); }
.est-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; background: var(--primary-dark); color: #fff; padding: .7rem 0; box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
.est-sum { display: flex; align-items: center; gap: .7rem; }
.est-sum .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 1.2rem; }
.est-sum small { display: block; opacity: .85; }
.est-sum strong { font-size: 1.35rem; }
body.has-est-bar { padding-bottom: 76px; }
body.has-est-bar .to-top, body.has-est-bar .float-actions { margin-bottom: 70px; }
@media print {
    body * { visibility: hidden; }
    #estModal, #estModal * { visibility: visible; }
    #estModal { position: absolute; inset: 0; }
    #estModal .modal-footer, #estModal .btn-close, #estPrint button { display: none !important; }
}

.popup-card { border: 0; border-radius: 20px; overflow: hidden; }
.popup-close { position: absolute; right: .8rem; top: .8rem; z-index: 2; background-color: #fff; border-radius: 50%; padding: .6rem; opacity: .9; }
.err-code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--font-head); }

@media (max-width: 575px) {
    .week-grid { gap: .25rem; }
    .week-grid .wd { padding: .5rem 0; border-radius: 10px; }
    .week-grid .wd .d { font-size: .8rem; }
    .today-box { padding: 1rem; }
    .day-select { max-width: none; flex: 1 1 140px; }
}
