:root{
  --db-green:#0d5b4e;
  --db-green-2:#0a6b5b;
  --db-mint:#e8f6f2;
  --db-teal:#15c1af;
  --db-teal-2:#10b8d8;
  --db-text:#1e293b;
  --db-muted:#6b7c93;
  --db-line:#d9e5eb;
  --db-card:#ffffff;
  --db-bg:#edf4f7;
  --db-soft:#f7fafc;
}

body{
  background:var(--db-bg);
  color:var(--db-text);
}

/* Top header like reference layout */
.topnav{
  position:sticky;
  top:0;
  z-index:1300;
  background:#fff;
  box-shadow:0 1px 0 rgba(15,23,42,.06);
}
.topnav-in{
  max-width:1120px;
  height:78px;
  padding:0 16px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:center;
}
.brand{display:none;}
.mini-home,
.menu-chip{
  width:42px;height:42px;border-radius:12px;border:1px solid var(--db-line);
  display:flex;align-items:center;justify-content:center;
  background:#fff;color:#334155;font-size:20px;text-decoration:none;
  box-shadow:0 4px 12px rgba(15,23,42,.04);
}
.topnav-search-shell{
  min-width:0;
  display:flex;align-items:center;gap:10px;
  background:#f8fafc;
  border:1.5px solid var(--db-line);
  border-radius:999px;
  padding:13px 18px;
  color:#64748b;
  font-size:15px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.topnav-search-shell strong{color:#0f172a;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.topnav-search-shell span:first-child{font-size:18px;}

/* Hero */
.hero{
  background:radial-gradient(circle at 20% 20%, rgba(21,193,175,.18), transparent 30%),
             linear-gradient(135deg, #063e35 0%, var(--db-green) 48%, var(--db-green-2) 100%);
  padding:30px 16px 56px;
}
.hero::before,.hero::after{display:none;}
.hero-in{max-width:980px;}
.hero-badge{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.16);
  color:rgba(255,255,255,.88);
}
.hero-t{font-size:34px;line-height:1.24;margin-bottom:8px;}
.hero-s{max-width:760px;margin:0 auto 24px;color:rgba(255,255,255,.76);}
.search-wrap{max-width:780px;}
.search-inp{
  border-radius:20px;
  padding:18px 56px 18px 22px;
  border:1px solid #d6e4e8;
  box-shadow:0 18px 36px rgba(4,27,22,.16);
}
.s-drop{border-radius:22px;}
.hero-stats{margin-top:28px;gap:18px;}
.hero-stat{
  min-width:150px;
  background:transparent;
  border:none;
  padding:0;
}
.hero-stat-v{font-size:36px;color:#18d0c0;}
.hero-stat-l{font-size:14px;color:rgba(255,255,255,.82);margin-top:6px;}

.page-wrap{max-width:1120px;margin:-24px auto 0;padding:0 14px 88px;}
.main-col{display:flex;flex-direction:column;gap:20px;}
.upd-tag{display:none;}

/* Stats row under hero */
.stats-row{
  background:linear-gradient(135deg, #083b33, #0a594d);
  border-radius:30px;
  padding:18px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 14px 30px rgba(6,62,53,.18);
}
.stat-c{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:10px;
  color:#fff;
  justify-content:center;
}
.stat-ic{background:rgba(255,255,255,.12)!important;color:#fff;}
.stat-v{font-size:32px;color:#15dbc9!important;}
.stat-l{font-size:13px;color:rgba(255,255,255,.86);}

/* Section headings */
.section-heading{margin-bottom:14px;}
.section-heading h2{font-size:24px;color:#0f172a;}
.section-heading::after{background:linear-gradient(to right,#d7e3e8,transparent);}

/* Category grid like icon menu */
.cat-nav,
.today-specialists-box,
.top-rated-section,
.emg-nums,
.infocard-grid,
.empty-st,
.spec-box,
.service-type-page-head,
.upazila-filter-wrap,
.adv-filter-bar,
.ctab-bar{
  background:#fff;
  border:1px solid #e4edf1;
  border-radius:26px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  padding:18px;
}
.cat-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.cat-card{
  background:#f8fbfc;
  border:1.5px solid #e2edf1;
  border-radius:18px;
  flex-direction:column;
  text-align:center;
  justify-content:center;
  gap:10px;
  min-height:126px;
  padding:16px 10px;
}
.cat-card::before{display:none;}
.cat-icon-wrap{
  width:54px;height:54px;min-width:54px;border-radius:16px;
  background:var(--cat-bg,#e8f6f2);
}
.cat-name{white-space:normal;line-height:1.3;}
.cat-count{display:block;margin-top:2px;font-weight:600;}
.cat-arrow{display:none;}

/* Cards */
.svc-card,.doc-card-fp,.infocard,.empty-st{
  border-radius:24px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  border:1px solid #e4edf1;
}
.svc-card::before{height:0;}
.svc-img-wrap{aspect-ratio:2.1/1;background:#f1f7f9;}
.svc-head{padding:14px 16px 8px;}
.svc-t h3{font-size:16px;}
.svc-body{padding:0 16px 14px;}
.diag-page-link,.doc-vc-btn,.btn-s,.pact-call,.pact-dir,.rating-submit{
  background:linear-gradient(135deg,#0fc6b7,#14c8df);
  color:#fff;
  border:none;
  border-radius:14px;
}
.diag-page-link:hover,.doc-vc-btn:hover,.btn-s:hover,.pact-call:hover,.pact-dir:hover{background:linear-gradient(135deg,#0fb4a6,#12b7ce);}

.doc-card-fp{overflow:hidden;background:#fff;}
.doc-info-fp{padding:14px 16px;}
.doc-name-fp{font-size:17px;color:#0f172a;}
.doc-deg-fp,.doc-exp-fp,.doc-chamber-fp{font-size:12.5px;}
.doc-spec-fp{
  display:inline-flex;align-items:center;gap:6px;
  color:#0b8f84;background:#dff4f1;border-radius:999px;
  padding:6px 12px;margin-bottom:8px;font-size:12px;
}

.top-rated-section .svc-grid,
.today-specialists-grid,
.doc-grid-fp{gap:14px;}
.today-specialists-box{padding-bottom:20px;}

.type-tabs,.ctab-bar,.upazila-tabs{gap:8px;}
.type-tab,.ctab,.utab,.dtab{
  border-radius:999px;
  padding:10px 14px;
  background:#f8fafc;
  border:1px solid #d9e5eb;
}
.type-tab.act,.ctab.act,.utab.act,.dtab.act,
.type-tab.act-all{
  background:linear-gradient(135deg,#0fc6b7,#14c8df);
  color:#fff;
  border-color:transparent;
}
.f-count{background:#eef8fb;border-color:#d9e5eb;border-radius:999px;}

/* Emergency */
.emg-header{font-size:22px;font-weight:800;color:#0f172a;padding-bottom:14px;border-bottom:1px solid #edf2f6;}
.emg-list{padding-top:16px;}
.emg-item{border-radius:16px;background:#f8fbfc;border:1px solid #e2edf1;}

.footer{
  background:#072b25;
  padding:28px 18px 98px;
  color:rgba(255,255,255,.66);
}
.footer strong{color:#fff;}
.report-fab{bottom:86px;right:16px;border-radius:16px;box-shadow:0 12px 30px rgba(233,69,96,.25);}

/* Mobile bottom nav */
.mobile-bottom-nav{
  position:fixed;left:0;right:0;bottom:0;z-index:1400;
  background:#fff;border-top:1px solid #dbe5ea;
  display:none;grid-template-columns:repeat(4,1fr);
  padding:8px 6px calc(8px + env(safe-area-inset-bottom));
  box-shadow:0 -8px 20px rgba(15,23,42,.06);
}
.mobile-bottom-nav button{
  appearance:none;border:none;background:transparent;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:4px;color:#8a9aad;font-family:var(--font);font-size:11px;font-weight:600;padding:6px 4px;
}
.mobile-bottom-nav button span:first-child{font-size:21px;line-height:1;}
.mobile-bottom-nav button.active{color:#0db3a4;}

@media (max-width:900px){
  .stats-row{grid-template-columns:repeat(2,minmax(0,1fr));border-radius:24px;}
  .cat-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}

@media (max-width:640px){
  .topnav-in{height:72px;gap:10px;padding:0 12px;}
  .mini-home,.menu-chip{width:40px;height:40px;border-radius:12px;}
  .topnav-search-shell{padding:12px 14px;font-size:14px;}
  .hero{padding:22px 12px 52px;}
  .hero-t{font-size:28px;}
  .hero-s{font-size:14px;}
  .search-inp{padding:16px 48px 16px 18px;border-radius:18px;}
  .hero-stats{gap:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .hero-stat{min-width:0;}
  .hero-stat-v{font-size:28px;}
  .page-wrap{padding:0 10px 94px;}
  .stats-row,.cat-nav,.today-specialists-box,.top-rated-section,.emg-nums,.service-type-page-head,.upazila-filter-wrap,.adv-filter-bar,.ctab-bar{padding:14px;}
  .cat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .cat-card{min-height:112px;border-radius:16px;padding:14px 8px;}
  .svc-grid,.doc-grid-fp{grid-template-columns:1fr;}
  .section-heading h2{font-size:20px;}
  .mobile-bottom-nav{display:grid;}
  .report-fab{display:none;}
  .footer{padding-bottom:92px;}
}

/* v3.1.1 closer screenshot refinements */
.ss-logo-mark,
.arc-logo-mark,
.dp-logo-mark,
.ssp-logo-mark{
  width:32px;height:32px;border-radius:50%;display:inline-block;position:relative;
  background:conic-gradient(from 210deg,#0b8f65 0 46%,transparent 46% 62%,#e11d24 62% 100%);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.04);
}
.ss-logo-mark::after,
.arc-logo-mark::after,
.dp-logo-mark::after,
.ssp-logo-mark::after{
  content:"";position:absolute;inset:8px;border-radius:50%;background:#fff;
}
.ss-logo-mark::before,
.arc-logo-mark::before,
.dp-logo-mark::before,
.ssp-logo-mark::before{
  content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:#e11d24;left:12px;top:12px;z-index:2;
}

.hero-finder{
  margin:24px auto 0;
  max-width:860px;
  background:#fff;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 22px 48px rgba(4,27,22,.22);
  border:1px solid rgba(255,255,255,.55);
  text-align:left;
}
.hero-finder-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f5f7f8;}
.hero-finder-tabs button{
  height:64px;border:none;background:transparent;font-family:var(--font);
  font-size:17px;font-weight:900;color:#8a9aad;cursor:pointer;border-bottom:4px solid transparent;
}
.hero-finder-tabs button.active{background:#fff;color:#059688;border-bottom-color:#0fc6b7;}
.hero-finder-body{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;padding:24px;}
.hero-finder-body select{
  min-width:0;width:100%;height:58px;border:1.5px solid #dbe5ea;border-radius:14px;
  background:#f8fafc;color:#1e293b;font-family:var(--font);font-weight:700;font-size:16px;padding:0 16px;outline:none;
}
.hero-finder-submit{
  height:58px;min-width:190px;border:none;border-radius:14px;background:linear-gradient(135deg,#0fc6b7,#14c8df);
  color:#fff;font-family:var(--font);font-size:18px;font-weight:900;box-shadow:0 12px 24px rgba(20,200,223,.25);cursor:pointer;
}
.hero-finder-submit:active{transform:scale(.98);}

@media(max-width:640px){
  .hero-finder{border-radius:20px;margin-top:22px;}
  .hero-finder-tabs button{height:58px;font-size:15px;}
  .hero-finder-body{grid-template-columns:1fr;padding:18px;gap:12px;}
  .hero-finder-body select,.hero-finder-submit{height:56px;min-width:0;width:100%;font-size:16px;}
  .stats-row{margin-top:2px;}
}

/* Homepage specialist section closer to attached layout */
.home-spec-section{
  background:#f3f5f7;
  border:1px solid #dde7ec;
  border-radius:28px;
  padding:24px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.home-spec-head{
  text-align:center;
  margin-bottom:18px;
}
.home-spec-head h2{
  margin:0;
  font-size:34px;
  line-height:1.2;
  color:#122038;
  font-family:var(--font-s);
}
.home-spec-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.home-spec-card{
  appearance:none;
  border:1.5px solid #d8e3e8;
  background:#fff;
  border-radius:18px;
  min-height:200px;
  padding:24px 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-spec-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
  border-color:#b9d3db;
}
.home-spec-icon-wrap{
  width:82px;
  height:82px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eef8f0;
  margin-bottom:18px;
}
.home-spec-icon{font-size:36px;line-height:1;color:#0db3a4;}
.home-spec-name{
  display:block;
  font-size:16px;
  line-height:1.45;
  font-weight:800;
  color:#0f172a;
  margin-bottom:10px;
}
.home-spec-count{
  display:block;
  font-size:13px;
  font-weight:800;
  color:#09b28f;
}
.home-spec-foot{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
  color:#64748b;
  font-size:15px;
}
.home-spec-viewall{
  appearance:none;
  border:none;
  background:none;
  color:#09b28f;
  font-family:var(--font);
  font-size:16px;
  font-weight:900;
  cursor:pointer;
}

/* give homepage sections order more like inspiration */
.cat-nav{background:#fff;}
.today-specialists-box .section-heading p,
.top-rated-section .section-heading span{color:#64748b;font-size:13px;font-weight:600;}

@media (max-width:900px){
  .home-spec-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:640px){
  .home-spec-section{padding:16px;border-radius:22px;}
  .home-spec-head h2{font-size:24px;}
  .home-spec-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .home-spec-card{min-height:154px;padding:16px 10px;border-radius:16px;}
  .home-spec-icon-wrap{width:60px;height:60px;margin-bottom:12px;}
  .home-spec-icon{font-size:28px;}
  .home-spec-name{font-size:14px;margin-bottom:6px;}
  .home-spec-count{font-size:12px;}
  .home-spec-foot{font-size:13px;gap:6px;}
  .home-spec-viewall{font-size:14px;}
}
