/* ===== রং ও মাপ (এখানে বদলালে পুরো সাইটের রং বদলাবে) ===== */
:root {
  --green: #14703a;
  --green-600: #1b8a48;
  --green-50: #eef7f1;
  --navy: #163a5f;
  --red: #d7322a;
  --wa: #1fa855;
  --fb: #1877f2;
  --ink: #18261e;
  --muted: #5b6b62;
  --line: #dde7e1;
  --bg: #ffffff;
  --bg-alt: #f5f9f6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 50, 35, .06), 0 8px 24px rgba(20, 50, 35, .07);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hind Siliguri", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; color: var(--navy); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* ভাষা বদল: html lang="bn" হলে ইংরেজি লুকানো, উল্টোটাও */
html[lang="bn"] .en, html[lang="en"] .bn { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.eyebrow { color: var(--green-600); font-weight: 600; font-size: .92rem; letter-spacing: .02em; margin-bottom: .4em; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== বাটন ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .62em 1.15em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important;
  transition: background .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .8em 1.5em; font-size: 1.05rem; }
.btn-sm { padding: .4em .95em; font-size: .95rem; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-600); }
.btn-outline { border-color: var(--green); color: var(--green); background: #fff; }
.btn-outline:hover { background: var(--green-50); }
.btn-wa { background: var(--wa); color: #fff; width: 100%; }
.btn-wa:hover { background: #18914a; }
.btn-fb { background: var(--fb); color: #fff; }
.btn-fb:hover { background: #0f63d6; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

/* ===== টপবার ও হেডার ===== */
.topbar { background: var(--navy); color: #dce7f2; font-size: .9rem; }
.topbar-in { display: flex; gap: 1.4rem; align-items: center; min-height: 38px; }
.topbar a { color: #fff; }
.open-badge { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none !important; }
.brand img { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.25rem; color: var(--green); letter-spacing: .01em; }
.brand-text small { font-size: .78rem; color: var(--muted); font-weight: 500; }

.nav { display: flex; gap: .2rem; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 500; padding: .45em .75em; border-radius: 8px; }
.nav a:hover { background: var(--green-50); color: var(--green); text-decoration: none; }
/* সেবাসমূহ: নিচে খোলা মেনু */
.dd { position: relative; }
.dd-btn { font: inherit; color: var(--ink); font-weight: 500; padding: .45em .75em; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.dd-btn:hover, .dd.open .dd-btn { background: var(--green-50); color: var(--green); }
.dd-btn::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: .2em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.dd-menu { display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 70;
  min-width: 270px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(20, 50, 35, .18); }
.dd-menu::before { content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.dd-menu::after { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }   /* keeps hover alive across the gap */
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: grid; gap: 2px; animation: dd-in .15s ease-out; }
@keyframes dd-in { from { opacity: 0; transform: translate(-50%, -4px); } to { opacity: 1; transform: translate(-50%, 0); } }
.dd-menu a { display: flex; align-items: center; gap: 10px; font-size: .96rem; padding: .55em .7em; border-radius: 10px; white-space: nowrap; }
.dd-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--green-50); font-size: 1.05rem; }
.dd-menu a:hover .dd-ico { background: #fff; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang-btn {
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; cursor: pointer;
}
.lang-btn:hover { border-color: var(--navy); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===== হিরো ===== */
.hero { background: linear-gradient(180deg, var(--green-50), #fff 85%); padding: 48px 0 56px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; color: var(--navy); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--green); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2rem; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.hero-facts li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7em .9em; font-size: .92rem; color: var(--muted); line-height: 1.35; }
.hero-facts strong { display: block; color: var(--green); font-size: 1.15rem; margin-bottom: .1em; }
.hero-img { margin: 0; position: relative; }
.hero-img img { border-radius: 22px; box-shadow: 0 20px 50px rgba(22, 58, 95, .2); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hero-img figcaption {
  position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.94);
  padding: .35em .85em; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--navy);
}

/* ===== ঘোষণা ===== */
.notice { background: var(--red); color: #fff; }
.notice-in { display: flex; gap: 14px; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.notice-in p { margin: 0; font-size: 1.02rem; }
.notice-icon svg { width: 28px; height: 28px; }

/* ===== সেকশন ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { padding: 22px; }
.service p { color: var(--muted); font-size: .97rem; margin: 0; }
.ico { width: 48px; height: 48px; border-radius: 12px; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.ico svg { width: 26px; height: 26px; }

/* ===== ডাক্তার ===== */
.doctors { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }   /* same height in each row */
.doctor { display: grid; grid-template-columns: 170px 1fr; gap: 22px; padding: 22px; }
.doctor-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 12px; background: var(--green-50); align-self: start; }
.doctor-body { display: flex; flex-direction: column; }
.doctor-body > .btn { margin-top: auto; align-self: flex-start; }   /* "সিরিয়াল নিন" always at the bottom */
.doctor-label { margin: 0 0 .35em; font-size: .82rem; font-weight: 600; color: var(--red); line-height: 1.4; }
.doctor h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: .2em; }
.degree { font-weight: 600; color: var(--green); margin: 0 0 .5em; }
.doctor-facts { list-style: none; padding: 0; margin: 0 0 .7em; font-size: .93rem; color: #3a4a41; }
.doctor-facts li { padding-left: 14px; position: relative; margin-bottom: .2em; }
.doctor-facts li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--green-600); }
.doctor-facts .position b { color: var(--navy); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .8em; }
.tags span { font-size: .78rem; font-weight: 600; color: var(--navy); background: #eef3f9; border-radius: 999px; padding: .15em .7em; }
.schedule { list-style: none; padding: 0; margin: 0 0 .8em; border-top: 1px solid var(--line); }
.schedule li { display: flex; justify-content: space-between; gap: 1rem; padding: .5em 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.schedule b { font-weight: 600; text-align: right; color: var(--green); }
.treats { margin: 0 0 1em; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); }
.treats summary { cursor: pointer; padding: .55em .9em; font-weight: 600; font-size: .93rem; color: var(--navy); }
.treats[open] summary { border-bottom: 1px solid var(--line); }
.treats ul { margin: .6em 0; padding: 0 .9em 0 2em; font-size: .92rem; color: #3a4a41; }
.treats li { margin-bottom: .25em; }
.special { margin: 0 .9em .8em; font-size: .92rem; color: #3a4a41; }

/* ===== সিরিয়াল ===== */
.appt { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.appt-text p { color: var(--muted); }
.alt-row, .contact-list li { display: flex; gap: 14px; align-items: center; color: var(--ink); }
.alt-row { margin-top: 1.4rem; font-size: 1.2rem; font-weight: 600; text-decoration: none !important; }
.alt-row small, .contact-list small { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.alt-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; flex: none; }

.appt-form { padding: 26px; display: grid; gap: 14px; }
.appt-form label { display: grid; gap: 5px; font-weight: 500; font-size: .95rem; }
.appt-form .row { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.appt-form input, .appt-form select, .appt-form textarea {
  font: inherit; font-size: 1rem; width: 100%; padding: .6em .8em; color: var(--ink);
  border: 1px solid #c9d6cf; border-radius: 10px; background: #fff;
}
.appt-form input:focus, .appt-form select:focus, .appt-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 112, 58, .15); }
.form-error { color: var(--red); font-weight: 500; margin: 0; }
[hidden] { display: none !important; }
.nav a, .dd-btn { white-space: nowrap; }
@media (min-width: 1001px) and (max-width: 1180px) {   /* more menu items: a bit tighter on small laptops */
  .nav a, .dd-btn { padding: .45em .45em; font-size: .94rem; }
  .header-actions .btn { padding: .55em .9em; }
}
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ===== রিপোর্ট ডাউনলোড ===== */
.report-notes { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: .6em; color: #3a4a41; }
.report-result { border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 8px; }
.report-who { margin: 0; font-weight: 600; color: var(--navy); }
.report-result p.small { margin: 0; }

/* ===== নোটিশ ও হেলথ টিপস ===== */
.notice-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.notice-item { padding: 18px 20px; border-left: 4px solid var(--red); }
.notice-item h3 { margin: 0 0 .2em; color: var(--navy); font-size: 1.1rem; }
.notice-item time { font-size: .85rem; color: var(--muted); }
.notice-item p, #tipList p { margin: .4em 0 0; color: #3a4a41; white-space: pre-line; }
.staff-link { color: #b4c4d4; }

/* ===== সম্পর্কে ===== */
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; }
.about p { color: #3a4a41; }
.md { padding: 28px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.md img { border-radius: 14px; margin-bottom: 8px; }
.md-role { margin: 0; color: var(--muted); font-size: .92rem; }
.md-name { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--navy); }

/* ===== প্রশ্নোত্তর ===== */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }
.faq-cats { display: grid; gap: 10px; }
.faq-cat { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); }
.faq-cat > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--navy); }
.faq-cat > summary small { color: var(--muted); font-weight: 500; }
.faq-cat[open] > summary { border-bottom: 1px solid var(--line); }
.faq-cat .faq { padding: 12px; }
.faq-cat .faq summary { padding: 12px 16px; font-size: .97rem; }

/* ===== রেফারেন্স সাইটের লেখা: উপ-শিরোনাম, ইমোজি আইকন, এমডি, গ্যালারি ===== */
.section-sub { color: var(--muted); margin: .4em 0 0; }
.sub-head { text-align: center; color: var(--navy); font-size: 1.2rem; margin: 44px 0 18px; display: flex; align-items: center; gap: 14px; }
.sub-head::before, .sub-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-head + .sub-head { margin-top: 0; }
.emoji-ico { font-size: 1.5rem; }
.sub-note { text-align: center; color: var(--muted); margin: 16px 0 0; }
.md-text { margin: 0 0 .8em; font-size: .95rem; color: #3a4a41; }
.md-card { max-width: 980px; margin: 0 auto; grid-template-columns: 240px 1fr; }
.treats-text { padding: .6em .9em 0; font-size: .95rem; color: #3a4a41; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }

/* ===== যোগাযোগ ===== */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 18px; }
.contact-list a { font-weight: 600; }
.map { overflow: hidden; min-height: 360px; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ===== ফুটার ===== */
.footer { background: var(--navy); color: #c9d6e3; padding: 36px 0; }
.footer-in { display: grid; justify-items: center; gap: 8px; text-align: center; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text small { color: #b4c4d4; }
.footer .brand img { border-radius: 10px; }
.footer p { margin: 0; }
.copy { font-size: .85rem; color: #93a8bd; }

.mobile-bar { display: none; }

/* ===== ট্যাবলেট ===== */
@media (max-width: 1000px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .hero-in, .appt, .about, .contact, .doctors { grid-template-columns: 1fr; gap: 32px; }
  .hero-img { order: -1; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: .75em .5em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dd-btn { width: 100%; text-align: left; padding: .75em .5em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dd-btn::after { float: right; margin-top: .5em; }
  .dd:hover .dd-menu, .dd:focus-within .dd-menu { display: none; }
  .dd.open .dd-menu { display: grid; position: static; transform: none; animation: none; box-shadow: none; border: 0;
    background: var(--bg-alt); border-radius: 10px; padding: 6px; margin: 6px 0 8px; min-width: 0; }
  .dd-menu::before, .dd-menu::after { display: none; }
  .dd-menu a { border-bottom: 0; white-space: normal; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: flex; }
}

/* ===== মোবাইল ===== */
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .hide-sm { display: none !important; }
  .topbar-in { justify-content: space-between; gap: .8rem; }
  .header-in { min-height: 64px; }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: 1.1rem; }
  .hero { padding: 24px 0 40px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .hero-facts li { padding: .6em; font-size: .82rem; }
  .hero-facts strong { font-size: 1rem; }
  .section { padding: 52px 0; }
  .services { grid-template-columns: 1fr; gap: 12px; }
  .service { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 18px; }
  .service .ico { grid-row: span 2; margin: 0; }
  .service h3 { margin-bottom: .15em; }
  .doctor { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .doctor-photo { aspect-ratio: 1 / 1; max-height: 340px; }
  .appt-form { padding: 20px; }
  .map, .map iframe { min-height: 300px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5em; height: 58px; color: #fff; font-weight: 600; font-size: 1.05rem; text-decoration: none; }
  .mb-call { background: var(--green); }
  .mb-wa { background: var(--wa); }
}
