/* ==========================================================================
   Dr. Syed Ehsan Mahmud - Portfolio Stylesheet
   Specialist in Urology & Andrology, Surgeon
   Optimized Spacing, Modern Medical Palette & Responsive UX
   ========================================================================== */

:root {
  --primary: #0f4c28;          /* Deep Medical Forest Green */
  --primary-dark: #0a351c;     /* Dark Forest */
  --primary-light: #166534;    /* Vivid Green */
  --emerald: #10b981;          /* Bright Emerald */
  --mint: #34d399;             /* Soft Mint */
  --mint-light: #d1fae5;       /* Mint Background */
  --accent-gold: #f59e0b;      /* Warm Gold */
  --dark-navy: #0f172a;        /* Professional Dark Navy */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-bangla: 'Noto Sans Bengali', system-ui, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.10);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-700);
  background-color: #fbfdfc;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  color: var(--slate-900);
  font-weight: 700;
}

.font-bangla {
  font-family: var(--font-bangla);
}

/* ── Header & Navigation (Sticky Together) ───────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.2s;
}
.top-bar a:hover {
  color: var(--mint);
}
.free-report-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fef3c7;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 600;
}

.main-nav {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}
.navbar-brand .brand-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.navbar-brand .brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--slate-700) !important;
  padding: 0.5rem 0.8rem !important;
  transition: color 0.2s, transform 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
}
.btn-appointment {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important;
  border-radius: 50px;
  padding: 0.48rem 1.25rem;
  font-size: 0.84rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 12px rgba(15, 76, 40, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-appointment:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 76, 40, 0.3);
  color: #fff !important;
}

/* ── Hero Section (Compact) ─────────────────────────── */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 10% 20%, #0d381e 0%, #071f11 90%);
  color: var(--white);
  padding: 3.2rem 0 2.2rem;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 75% 45%, rgba(16, 185, 129, 0.15), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--mint);
  padding: 0.3rem 0.95rem;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 0.5rem;
}
.hero-qualifications {
  font-size: 0.92rem;
  color: var(--mint);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}
.hero-bmdc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  font-size: 0.76rem;
  color: #ffffff;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  line-height: 1.2;
}
.hero-bmdc-badge .bmdc-num {
  font-family: monospace;
  font-weight: 700;
  color: #5dd48a;
  letter-spacing: 0.5px;
  font-size: 0.82rem;
}
.hero-role-lead {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
  line-height: 1.6;
  max-width: 580px;
}
.hero-portrait-wrap {
  position: relative;
  text-align: center;
}
.hero-portrait-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(15, 76, 40, 0) 70%);
  z-index: 0;
  filter: blur(18px);
}
.hero-portrait-img {
  position: relative;
  z-index: 1;
  max-height: 440px;
  width: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}
.floating-feature-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  color: var(--slate-900);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.78rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.card-float-1 { bottom: 20px; left: -10px; }
.card-float-2 { top: 25px; right: -10px; }

/* ── Trust Stats (Compact) ──────────────────────────── */
.stats-bar {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-top: -1.75rem;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.05);
  padding: 1.1rem 0.6rem;
}
.stat-box {
  text-align: center;
  padding: 0.3rem 0.8rem;
  border-right: 1px solid var(--slate-100);
}
.stat-box:last-child {
  border-right: none;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Section Titles & Spacing ───────────────────────── */
.section-tag {
  display: inline-block;
  background: var(--mint-light);
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}
.section-desc {
  font-size: 0.92rem;
  color: var(--slate-600);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ── Service Cards (Compact) ────────────────────────── */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 185, 129, 0.4);
}
.service-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--mint-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  transition: all 0.25s;
}
.service-card:hover .service-icon-wrap {
  background: var(--primary);
  color: var(--white);
}
.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.service-features {
  list-style: none;
  padding-left: 0;
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.82rem;
}
.service-features li {
  padding: 0.2rem 0;
  color: var(--slate-600);
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.service-features li i {
  color: var(--emerald);
  font-size: 0.72rem;
}

/* ── Case Study Cards ───────────────────────────────── */
.case-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.case-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--slate-900);
}
.case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.case-card:hover .case-img {
  transform: scale(1.04);
}
.case-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 76, 40, 0.9);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}
.case-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* ── Social Posts Grid ──────────────────────────────── */
.post-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.post-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.post-card:hover .post-img {
  transform: scale(1.03);
}
.post-info {
  padding: 1rem;
}

/* ── Patient Reviews & Testimonials ─────────────────── */
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 185, 129, 0.3);
}
.stars-gold {
  color: #f59e0b;
  font-size: 0.82rem;
  letter-spacing: 1px;
}
.review-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-google {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.badge-facebook {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.badge-doctorebari {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* ── Conference Gallery ─────────────────────────────── */
.conf-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.conf-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.conf-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.25s;
}
.conf-img-wrap:hover .conf-img {
  transform: scale(1.05);
}

/* ── Chamber & Contact ──────────────────────────────── */
.chamber-card {
  background: linear-gradient(145deg, #ffffff, #f7faf8);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(16, 185, 129, 0.2);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-md);
}
.chamber-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--mint-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
}
.hotline-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.98rem;
  transition: all 0.2s;
}
.hotline-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Interactive Hospital Map ─────────────────────────── */
.map-showcase-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}
#mount-adora-map {
  height: 420px;
  width: 100%;
  border-radius: var(--radius-lg);
  z-index: 1;
}
.hospital-map-pin {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f4c28;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 16px rgba(15, 76, 40, 0.5);
  border: 3px solid #fff;
}
.hospital-map-pin::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: pulse-pin 2s infinite ease-out;
}
@keyframes pulse-pin {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}
.leaflet-popup-content {
  margin: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.map-layer-switch {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: flex;
  gap: 4px;
}

/* ── Floating WhatsApp Button (Never overlaps footer) ── */
.floating-contact-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: all 0.25s;
}
.floating-contact-btn:hover {
  background: linear-gradient(135deg, #20ba5a, #0e7569);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.55);
}

/* ── Footer (Safe Bottom Clearance for Floating Button) ─ */
.site-footer {
  background: var(--dark-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 5.5rem;   /* Generous bottom padding so floating button never covers anything */
  font-size: 0.86rem;
  position: relative;
}
.site-footer h5 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding-left: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--mint);
}
.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
}
.social-icon-btn:hover {
  background: var(--emerald);
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom-credit {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
