/* =====================================================================
   ANMH visual polish — anmh-custom.css  (v1, 2026-11-12)
   Alhajj Nur Mohammad Munshi Hospital & Diagnostic Centre, Gournodi, Barishal
   Loaded AFTER the darkgray theme CSS; overrides only. Delete/unlink to revert.
   ===================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap");

:root{
  --anmh-primary:#0d7a6b;      /* calm medical teal-green */
  --anmh-primary-dark:#095c51;
  --anmh-primary-soft:#e7f5f2;
  --anmh-accent:#2bb3a0;
  --anmh-ink:#1d2b2a;
  --anmh-muted:#5b6b69;
  --anmh-line:#dfe9e7;
  --anmh-bg:#f6faf9;
  --anmh-danger:#d62f2f;
  --anmh-radius:14px;
  --anmh-shadow:0 6px 24px rgba(13,60,54,.08);
  --anmh-shadow-hover:0 12px 32px rgba(13,60,54,.16);
  --anmh-font:"Hind Siliguri","Noto Sans Bengali","Open Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

/* ---------- Base typography ---------- */
html{-webkit-text-size-adjust:100%}
body{font-family:var(--anmh-font);color:var(--anmh-ink);font-size:16px;line-height:1.7;background:#fff}
h1,h2,h3,h4,h5,h6{font-family:var(--anmh-font);color:var(--anmh-ink);font-weight:700;line-height:1.3}
h2{font-size:28px;margin:0 0 12px}
h3{font-size:22px}
h5{font-size:17px;line-height:1.6;color:var(--anmh-muted);font-weight:500}
p{margin:0 0 14px}
a{color:var(--anmh-primary)}
a:hover,a:focus{color:var(--anmh-primary-dark)}
img{max-width:100%;height:auto}
img[src=""],img:not([src]){display:none!important}   /* theme prints empty feature images on inner pages */

/* ---------- Top news bar ---------- */
.topnews{background:var(--anmh-primary-dark);color:#fff;font-size:14px}
.topnews .newstab{background:var(--anmh-accent);color:#fff;border-radius:0 0 8px 8px;font-weight:600}
.topnews .newscontent a,.topnews .newscontent{color:#fff}
.topnews .datenews{color:#ffe08a}
.top-right li a{background:rgba(255,255,255,.15);border-radius:30px}
.top-right li a:hover{background:#fff;color:var(--anmh-primary-dark)}

/* ---------- Header / navigation ---------- */
header{background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.06);position:relative;z-index:50}
.navbar{margin-bottom:0;min-height:64px}
.navbar-brand.logo img{max-height:46px;width:auto}
.navbar-nav>li>a{color:var(--anmh-ink);font-weight:600;font-size:15px;border-radius:30px;padding:8px 14px}
.navbar-nav>li>a:hover,.navbar-nav>li>a:focus{background:var(--anmh-primary-soft);color:var(--anmh-primary-dark)}
.navbar-nav>li.active>a,.navbar-nav>li.active>a:hover,.navbar-nav>li.active>a:focus{background:var(--anmh-primary)!important;color:#fff!important}
.navbar-nav>li:last-child>a{border:2px solid var(--anmh-primary);color:var(--anmh-primary)}  /* "Appointment" */
.navbar-toggle{border:0;background:var(--anmh-primary)!important;border-radius:10px}
.navbar-toggle .icon-bar{background:#fff!important}
.dropdown-menu{border:0;border-radius:12px;box-shadow:var(--anmh-shadow-hover);overflow:hidden}
.dropdown-menu>li>a{padding:10px 18px}

/* ---------- Hero (theme slider) ---------- */
.sliderbg{border-bottom:0;margin-bottom:0;background:#0b3f39}
.sliderbg .overlay-color{background:none}
.sliderbg .carousel-inner{position:relative}
.sliderbg .carousel-inner>.item>img{width:100%;height:min(74vh,640px);object-fit:cover;object-position:center}
.sliderbg .carousel-inner:after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(6,40,36,.10) 0%,rgba(6,40,36,.25) 45%,rgba(6,40,36,.78) 100%)}
.sliderbg .carousel-control{width:56px;background:none!important;z-index:3}
.sliderbg .carousel-control span{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;line-height:40px;border-radius:50%;background:rgba(255,255,255,.18);font-size:22px}

/* Hero card from Home page content, sits over the bottom of the slider */
.anmh-hero{position:relative;z-index:5;margin-top:-330px;margin-bottom:28px;max-width:660px;
  background:rgba(255,255,255,.97);border-radius:18px;padding:30px 32px;box-shadow:0 18px 50px rgba(0,0,0,.22);
  border-top:6px solid var(--anmh-primary)}
.anmh-hero .anmh-eyebrow{display:inline-block;background:var(--anmh-primary-soft);color:var(--anmh-primary-dark);font-weight:600;font-size:14px;padding:4px 12px;border-radius:30px;margin-bottom:10px}
.anmh-hero h1{font-size:34px;margin:4px 0 4px;color:var(--anmh-primary-dark)}
.anmh-hero .anmh-en{font-size:17px;font-weight:600;color:var(--anmh-muted);margin-bottom:12px}
.anmh-hero p{font-size:17px;color:var(--anmh-ink)}
.anmh-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.anmh-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:40px;font-weight:700;font-size:16px;text-decoration:none!important;transition:.2s;line-height:1.2}
.anmh-btn .fa{font-size:18px}
.anmh-btn-primary{background:var(--anmh-primary);color:#fff!important}
.anmh-btn-primary:hover{background:var(--anmh-primary-dark);transform:translateY(-1px)}
.anmh-btn-outline{border:2px solid var(--anmh-primary);color:var(--anmh-primary)!important;background:#fff}
.anmh-btn-outline:hover{background:var(--anmh-primary-soft)}
.anmh-btn-danger{background:var(--anmh-danger);color:#fff!important}
.anmh-btn-danger:hover{background:#b52222}
.anmh-btn-light{background:#fff;color:var(--anmh-danger)!important}

/* ---------- Quick actions strip ---------- */
.anmh-quick{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 40px}
.anmh-quick a{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--anmh-line);border-radius:var(--anmh-radius);padding:18px 20px;box-shadow:var(--anmh-shadow);text-decoration:none!important;color:var(--anmh-ink);transition:.2s}
.anmh-quick a:hover{box-shadow:var(--anmh-shadow-hover);transform:translateY(-2px);border-color:var(--anmh-accent)}
.anmh-quick .anmh-ico{flex:0 0 52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--anmh-primary-soft);color:var(--anmh-primary);font-size:22px}
.anmh-quick a.anmh-q-call .anmh-ico{background:#fdeaea;color:var(--anmh-danger)}
.anmh-quick strong{display:block;font-size:17px;line-height:1.3}
.anmh-quick small{display:block;color:var(--anmh-muted);font-size:14px;line-height:1.4}

/* ---------- Section headings ---------- */
.anmh-section{margin:0 0 56px}
.anmh-head{text-align:center;max-width:720px;margin:0 auto 28px}
.anmh-head .anmh-kicker{display:block;color:var(--anmh-primary);font-weight:700;letter-spacing:.04em;font-size:14px;text-transform:uppercase;margin-bottom:4px}
.anmh-head h2{font-size:30px;margin:0 0 8px}
.anmh-head h2:after{content:"";display:block;width:60px;height:4px;border-radius:4px;background:var(--anmh-accent);margin:12px auto 0}
.anmh-head p{color:var(--anmh-muted)}

/* ---------- Why-us chips (the four Bangla feature boxes) ---------- */
.anmh-why{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.anmh-why>div{background:var(--anmh-primary-soft);border-radius:var(--anmh-radius);padding:20px;border-left:5px solid var(--anmh-primary)}
.anmh-why h3{font-size:19px;margin:0 0 6px;color:var(--anmh-primary-dark)}
.anmh-why h3 .fa{margin-right:6px;color:var(--anmh-primary)}
.anmh-why p{margin:0;font-size:15px;color:var(--anmh-ink)}

/* ---------- About band ---------- */
.anmh-about{display:grid;grid-template-columns:1.1fr .9fr;gap:36px;align-items:center;background:var(--anmh-bg);border-radius:20px;padding:32px}
.anmh-about img{width:100%;border-radius:16px;box-shadow:var(--anmh-shadow);aspect-ratio:4/3;object-fit:cover}
.anmh-about h2{color:var(--anmh-primary-dark)}

/* ---------- Service cards ---------- */
.anmh-services{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.anmh-card{background:#fff;border:1px solid var(--anmh-line);border-radius:var(--anmh-radius);padding:22px 20px;box-shadow:var(--anmh-shadow);transition:.2s;height:100%}
.anmh-card:hover{box-shadow:var(--anmh-shadow-hover);transform:translateY(-3px);border-color:var(--anmh-accent)}
.anmh-card .anmh-ico{width:54px;height:54px;border-radius:14px;background:var(--anmh-primary-soft);color:var(--anmh-primary);display:flex;align-items:center;justify-content:center;font-size:24px;margin-bottom:12px}
.anmh-card h3{font-size:19px;margin:0 0 2px}
.anmh-card .anmh-en{display:block;font-size:14px;color:var(--anmh-primary);font-weight:600;margin-bottom:8px}
.anmh-card p{font-size:15px;color:var(--anmh-muted);margin:0}
.anmh-more{text-align:center;margin-top:22px}

/* ---------- Doctor cards ---------- */
.anmh-doctors{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.anmh-doc{background:#fff;border:1px solid var(--anmh-line);border-radius:var(--anmh-radius);padding:22px 16px;text-align:center;box-shadow:var(--anmh-shadow);transition:.2s}
.anmh-doc:hover{box-shadow:var(--anmh-shadow-hover);transform:translateY(-3px)}
.anmh-avatar{width:76px;height:76px;margin:0 auto 12px;border-radius:50%;background:linear-gradient(135deg,var(--anmh-primary),var(--anmh-accent));color:#fff;display:flex;align-items:center;justify-content:center;font-size:30px;box-shadow:0 0 0 5px var(--anmh-primary-soft)}
.anmh-doc h3{font-size:17px;margin:0 0 6px;color:var(--anmh-primary-dark)}
.anmh-doc p{font-size:13.5px;color:var(--anmh-muted);margin:0;line-height:1.5;word-break:break-word}
.anmh-note{text-align:center;color:var(--anmh-muted);font-size:15px;margin-top:18px}

/* ---------- Photo strip ---------- */
.anmh-photos{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px}
.anmh-photos figure{margin:0;position:relative;border-radius:16px;overflow:hidden;box-shadow:var(--anmh-shadow);background:#eee}
.anmh-photos img{width:100%;height:260px;object-fit:cover;display:block;transition:transform .4s}
.anmh-photos figure:hover img{transform:scale(1.04)}
.anmh-photos figcaption{position:absolute;left:0;right:0;bottom:0;padding:22px 14px 10px;color:#fff;font-size:14px;font-weight:600;background:linear-gradient(transparent,rgba(0,0,0,.7))}

/* ---------- Emergency band ---------- */
.anmh-emergency{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;background:linear-gradient(135deg,#b72323,var(--anmh-danger));color:#fff;border-radius:20px;padding:28px 32px;box-shadow:0 14px 36px rgba(214,47,47,.25)}
.anmh-emergency h2{color:#fff;margin:0 0 4px;font-size:26px}
.anmh-emergency p{margin:0;opacity:.95}

/* ---------- Existing theme blocks (inner pages: Departments, Gallery, Contact) ---------- */
.chooseus,.team-member,.contact-item{background:#fff;border:1px solid var(--anmh-line)!important;border-radius:var(--anmh-radius);box-shadow:var(--anmh-shadow);padding:22px 18px;transition:.2s}
.chooseus:hover,.team-member:hover{box-shadow:var(--anmh-shadow-hover);transform:translateY(-3px)}
.chooseus img{width:72px;height:72px;object-fit:contain;border-radius:50%;background:var(--anmh-primary-soft);padding:10px}
.chooseus h4,.team-member h4{color:var(--anmh-primary-dark);font-weight:700}
.chooseus p{color:var(--anmh-muted);font-size:15px}
.team-member img{width:96px;height:96px;border-radius:50%;object-fit:cover;margin:0 auto;display:block}
.row.text-center>[class*="col-"]{margin-bottom:20px}
.row.text-center{display:flex;flex-wrap:wrap}
.row.text-center:before,.row.text-center:after{display:none}
.row.text-center>[class*="col-"]>.chooseus,.row.text-center>[class*="col-"]>.team-member{height:100%;margin-bottom:0}
.view-all-btn,.btn-primary,.theme-btn{background:var(--anmh-primary)!important;border-color:var(--anmh-primary)!important;color:#fff!important;border-radius:40px!important;padding:10px 22px;font-weight:700}
.view-all-btn:hover,.btn-primary:hover,.theme-btn:hover{background:var(--anmh-primary-dark)!important}
.form-control{border-radius:10px;border:1px solid var(--anmh-line);box-shadow:none;min-height:46px;font-size:16px}
.form-control:focus{border-color:var(--anmh-accent);box-shadow:0 0 0 3px rgba(43,179,160,.18)}
.contact .container{width:auto;padding:0}               /* theme nests a container inside a container */
.contact-item h3{color:var(--anmh-primary-dark);margin-top:0}
/* Gallery page images: same height, rounded */
.row.text-center p>img.img-responsive{width:100%;height:240px;object-fit:cover;border-radius:14px;box-shadow:var(--anmh-shadow)}

/* ---------- Footer ---------- */
footer{background:#0b3f39;color:#cfe3df}
footer .fo-title:empty{display:none}
footer .infoborderb{border-top-color:rgba(255,255,255,.15)}
footer .cright{border-left-color:rgba(255,255,255,.25)}
footer .content-title,footer .sub-title{font-size:16px}
footer .cleft{font-size:2em;color:var(--anmh-accent)}
footer .complain a{color:#fff}
.copy-right{background:#072e2a;font-size:14px;padding:14px 0 6px}
.copy-right a{color:#bfeee6}

/* ---------- Sticky emergency call (element added by the head snippet) ---------- */
.anmh-sticky-call{position:fixed;right:18px;bottom:18px;z-index:9999;display:flex;align-items:center;gap:10px;
  background:var(--anmh-danger);color:#fff!important;text-decoration:none!important;font-weight:700;font-size:16px;line-height:1.2;
  padding:12px 20px 12px 14px;border-radius:40px;box-shadow:0 10px 26px rgba(214,47,47,.4)}
.anmh-sticky-call .fa{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:17px;animation:anmh-ring 2.2s infinite}
.anmh-sticky-call small{display:block;font-weight:500;font-size:12px;opacity:.9}
.anmh-sticky-call:hover{background:#b52222}
@keyframes anmh-ring{0%,100%{transform:rotate(0)}5%,15%{transform:rotate(-14deg)}10%,20%{transform:rotate(14deg)}25%{transform:rotate(0)}}
@media (prefers-reduced-motion:reduce){.anmh-sticky-call .fa{animation:none}*{transition:none!important}}

/* ---------- Spacing ---------- */
.spacet50{padding-top:36px}
.spaceb50{padding-bottom:36px}

/* =================== Responsive =================== */
@media (max-width:991px){
  .anmh-services,.anmh-doctors{grid-template-columns:repeat(3,1fr)}
  .anmh-why{grid-template-columns:repeat(2,1fr)}
  .anmh-hero{margin-top:-260px}
}
@media (max-width:767px){
  body{font-size:15.5px}
  h2,.anmh-head h2{font-size:24px}
  .topnews{font-size:13px}
  .navbar-brand.logo img{max-height:38px}
  .navbar-collapse{background:#fff!important;border-top:1px solid var(--anmh-line)}
  .navbar-nav>li>a{margin:4px 0;padding:12px 16px}
  .sliderbg .carousel-inner>.item>img{height:240px}
  .sliderbg .carousel-control{display:none}
  .spacet50{padding-top:0}
  .anmh-hero{margin-top:-70px;padding:20px 18px;border-radius:16px}
  .anmh-hero h1{font-size:25px}
  .anmh-hero p{font-size:15.5px}
  .anmh-btn{flex:1 1 100%;justify-content:center;padding:13px 18px}
  .anmh-quick{grid-template-columns:1fr;gap:10px;margin-bottom:32px}
  .anmh-quick a{padding:14px 16px}
  .anmh-section{margin-bottom:40px}
  .anmh-why{grid-template-columns:1fr 1fr;gap:10px}
  .anmh-why>div{padding:14px}
  .anmh-why h3{font-size:16px}
  .anmh-why p{font-size:13.5px}
  .anmh-about{grid-template-columns:1fr;padding:20px;gap:18px}
  .anmh-services{grid-template-columns:1fr 1fr;gap:10px}
  .anmh-card{padding:16px 14px}
  .anmh-card .anmh-ico{width:44px;height:44px;font-size:20px}
  .anmh-card h3{font-size:16.5px}
  .anmh-card p{display:none}             /* keep the grid compact on phones */
  .anmh-doctors{grid-template-columns:1fr 1fr;gap:10px}
  .anmh-doc{padding:16px 10px}
  .anmh-avatar{width:58px;height:58px;font-size:24px}
  .anmh-doc h3{font-size:15px}
  .anmh-doc p{font-size:12.5px}
  .anmh-photos{grid-template-columns:1fr 1fr}
  .anmh-photos figure:first-child{grid-column:1/-1}
  .anmh-photos img{height:170px}
  .anmh-emergency{padding:22px 20px;text-align:center;justify-content:center}
  .anmh-emergency .anmh-btn{flex:1 1 100%}
  .row.text-center p>img.img-responsive{height:200px}
  /* sticky call becomes a full-width bottom bar */
  .anmh-sticky-call{left:0;right:0;bottom:0;border-radius:0;justify-content:center;padding:10px 14px;box-shadow:0 -4px 16px rgba(0,0,0,.18)}
  body.anmh-has-call{padding-bottom:62px}
}
