/* ============================================================================
   SSAnkang Health — Mobile-Only Stylesheet
   ----------------------------------------------------------------------------
   Loaded only on viewports ≤ 768px via <link media>. All rules scoped inside
   @media to prevent any leak when the file is fetched on larger screens.
   PC (>768px) experience is intentionally untouched.
   ============================================================================ */

@media (max-width: 768px) {

/* ── 0. Base / global mobile tweaks ─────────────────────────────────────── */
:root {
  --m-header-h: 56px;
  --m-bottom-nav-h: 64px;
  --m-tap: 44px;
  --m-radius: 14px;
}

/* CRITICAL: Prevent horizontal overflow — the #1 mobile layout killer */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}
html { font-size: 15px; scroll-behavior: auto; }
body {
  padding-bottom: calc(var(--m-bottom-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
/* Every child of body must not exceed viewport */
body > *, main, main > *, section, .container {
  max-width: 100vw !important;
  overflow-x: hidden;
}
/* Exception: horizontal scroll rails need overflow visible */
.m-snap-rail, .hero-stats, .m-search-tags {
  overflow-x: auto !important;
  max-width: none !important;
}

/* Fluid section padding */
.section { padding: 36px 0 !important; }
.section-sm { padding: 24px 0 !important; }
.section-lg { padding: 48px 0 !important; }
.section-head { margin-bottom: 22px !important; }
.container { padding: 0 16px !important; box-sizing: border-box !important; width: 100% !important; }

/* Typography */
h1 { font-size: 1.6rem !important; line-height: 1.25 !important; }
h2 { font-size: 1.35rem !important; line-height: 1.3 !important; }
h3 { font-size: 1.1rem !important; line-height: 1.35 !important; }
p, li, label, .lead { font-size: 0.95rem; }
.section-head p { font-size: 0.92rem !important; }
.section-head .eyebrow { font-size: 0.72rem !important; padding: 4px 10px !important; }

/* Disable hover transforms on touch */
a:hover, .btn:hover, .card:hover { transform: none !important; }

/* Minimum tap target */
.btn { min-height: 44px; padding: 12px 18px; font-size: 0.95rem; }
.btn-lg { min-height: 50px; font-size: 1rem; padding: 14px 22px; }
.btn-sm { min-height: 38px; padding: 8px 14px; }

/* Universal word-break safety */
h1, h2, h3, h4, h5, h6, p, span, a, li, td, th, label,
.card *, .hospital-card *, .doctor-card *, .case-card *, .blog-card *,
.process-step *, .srv-spec-card *, [class*="info"] * {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

/* ── 1. Header (slim 56px, hide-on-scroll) ──────────────────────────────── */
.site-header {
  height: var(--m-header-h) !important;
  min-height: var(--m-header-h) !important;
  transition: transform 0.28s ease;
  will-change: transform;
}
.site-header.m-hide { transform: translateY(-100%); }
.site-header .container {
  height: var(--m-header-h);
  gap: 8px !important;
  padding: 0 12px;
}
.site-header .brand {
  font-size: 1.02rem !important;
  letter-spacing: -0.01em;
  gap: 8px;
}
.site-header .brand-logo {
  width: 32px; height: 32px;
  font-size: 1rem;
}
/* Hide desktop pieces */
.site-header .main-nav,
.site-header .header-cta-btn,
.site-header .mobile-toggle,
.site-header .lang-switcher .lang-current span {
  /* keep behaviour from styles.css; selectively re-enable globe only */
}
.site-header .main-nav { display: none !important; }
.site-header .header-cta-btn { display: none !important; }
.site-header .mobile-toggle { display: none !important; }

/* Compact lang pill: just a globe icon */
.site-header .lang-switcher { display: inline-block !important; }
.site-header .lang-current {
  height: 36px;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border-color: var(--border) !important;
}
.site-header .lang-current span { display: none; }
.site-header .lang-menu {
  position: fixed !important;
  top: var(--m-header-h);
  right: 12px;
  min-width: 180px;
}

/* Header search trigger (added by mobile.js) */
.m-search-trigger {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.m-search-trigger:active { background: var(--bg-soft); transform: scale(0.95); }

/* Stop the legacy float-cta (replaced by bottom tab "Inquire" button) */
.float-cta { display: none !important; }

/* Stop legacy mobile-menu overlay (replaced by drawer) */
.mobile-menu { display: none !important; }

/* ── 2. Bottom Tab Navigation Bar ────────────────────────────────────────── */
.m-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--m-bottom-nav-h);
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  z-index: 100;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
  border-top: 1px solid var(--border);
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  overflow: visible !important;
}
.m-tabbar a, .m-tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 0 4px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: transparent;
  border: 0;
  text-decoration: none;
  position: relative;
  min-height: var(--m-tap);
  height: var(--m-bottom-nav-h);
  overflow: visible;
}
.m-tabbar a i, .m-tabbar button i {
  font-size: 1.15rem;
  line-height: 1;
}
.m-tabbar .active { color: var(--primary); }
.m-tabbar .active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}
/* RTL: just mirror flex direction */
html[dir="rtl"] .m-tabbar { direction: rtl; }

/* ── 3. Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 20px 0 0 !important; overflow: hidden !important; }
.hero .container { padding-bottom: 20px !important; }
.hero .hero-grid {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}
.hero .hero-text { padding-right: 0 !important; }
.hero .hero-badge {
  font-size: 0.75rem;
  padding: 5px 12px;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: 1.5rem !important;
  line-height: 1.2 !important;
  margin-bottom: 10px !important;
}
.hero .hero-desc {
  font-size: 0.92rem !important;
  margin-bottom: 16px !important;
  max-width: 100% !important;
}
.hero .hero-actions {
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
}
.hero .hero-actions .btn {
  width: 100% !important;
  min-height: 48px !important;
  font-size: 0.95rem !important;
  box-sizing: border-box !important;
}

/* Hero stats: horizontal pill row */
.hero .hero-stats {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 8px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 8px !important;
  scrollbar-width: none;
  max-width: none !important;
}
.hero .hero-stats::-webkit-scrollbar { display: none; }
.hero .hero-stat {
  flex: 0 0 auto;
  min-width: 90px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  text-align: center;
}
.hero .hero-stat-num {
  font-size: 1.2rem !important;
  font-weight: 800;
  color: var(--primary-light);
}
.hero .hero-stat-label { font-size: 0.72rem !important; opacity: 0.85; }

/* Hero inquiry card — moved to its own section after search-band by mobile.js */
.hero .hero-card,
.m-inquiry-section .hero-card {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 20px 16px 22px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(13,148,136,0.12);
  position: relative;
  z-index: 5;
  box-shadow: 0 12px 32px -10px rgba(13,148,136,.3);
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.hero .hero-card h3,
.m-inquiry-section .hero-card h3 { font-size: 1.05rem !important; margin-bottom: 4px; }
.hero .hero-card .lead,
.m-inquiry-section .hero-card .lead { font-size: 0.85rem !important; margin-bottom: 16px !important; }
/* The new mobile-only inquiry section that wraps hero-card */
.m-inquiry-section {
  padding: 24px 0 32px !important;
  background: var(--bg-soft);
}
/* Space after hero for overlapping card */
.hero + section,
.hero + .search-band { padding-top: 18px !important; }

/* ── 4. Search Band ─────────────────────────────────────────────────────── */
.search-band { padding: 0 !important; margin-top: 0 !important; overflow: hidden !important; }
.search-band-form {
  padding: 16px 14px !important;
  border-radius: var(--m-radius) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.sbf-head { margin-bottom: 12px !important; }
.sbf-title { font-size: 1.05rem !important; }
.sbf-lead { font-size: 0.82rem !important; }
.sbf-row {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}
.sbf-field {
  min-height: 52px !important;
  padding: 6px 12px 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.sbf-l { font-size: 0.68rem !important; }
.sbf-select { font-size: 16px !important; width: 100% !important; }
.sbf-go { min-height: 48px !important; font-size: 0.95rem !important; width: 100% !important; }

/* ── 5. Section Cards / Grid ────────────────────────────────────────────── */
/* Homepage compact specialty grid (cols-5-compact) → horizontal swipe rail */
.grid-cards.cols-5-compact {
  display: flex !important;
  grid-template-columns: none !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  gap: 10px !important;
  padding: 4px 16px 12px !important;
  margin: 0 -16px !important;
  scrollbar-width: none;
  width: auto !important;
  max-width: none !important;
}
.grid-cards.cols-5-compact::-webkit-scrollbar { display: none; }
.grid-cards.cols-5-compact > .card-compact {
  flex: 0 0 32% !important;
  scroll-snap-align: start;
  max-width: 32% !important;
}
.card-compact {
  padding: 14px 8px 12px !important;
}
.card-compact-icon {
  width: 38px !important;
  height: 38px !important;
  font-size: 1rem !important;
  margin-bottom: 6px !important;
}
.card-compact h3 {
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
}

/* "Why Choose Us" 4 cards → 2x2 compact cards */
.grid-cards.cols-4 {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}
.grid-cards.cols-4 .card {
  padding: 14px 12px !important;
  text-align: center;
}
.grid-cards.cols-4 .card-icon {
  width: 40px; height: 40px;
  margin: 0 auto 8px;
  font-size: 1rem;
  border-radius: 10px;
}
.grid-cards.cols-4 h3 { font-size: 0.92rem !important; margin-bottom: 4px; }
.grid-cards.cols-4 p { font-size: 0.8rem !important; line-height: 1.4; }
.grid-cards.cols-4 .card-link { font-size: 0.8rem !important; margin-top: 8px; }

/* Specialty cards (also cols-4 but they are <a> links) — horizontal layout
   with icon inline with title for compact display */
.grid-cards.cols-4 > a.card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  text-align: left !important;
  padding: 14px !important;
}
.grid-cards.cols-4 > a.card .card-icon {
  margin: 0 !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
}
.grid-cards.cols-4 > a.card h3 { margin-bottom: 2px !important; }
.grid-cards.cols-4 > a.card p { display: none !important; }
.grid-cards.cols-4 > a.card .card-link { display: none !important; }

/* Card touch feedback */
.card, .hospital-card, .doctor-card, .case-card, .blog-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.card:active, .hospital-card:active, .doctor-card:active,
.case-card:active, .blog-card:active {
  transform: scale(0.98) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

/* ── 6. Horizontal Snap Carousels (hospitals / doctors / cases / blog) ──── */
.m-snap-rail {
  display: flex !important;
  grid-template-columns: none !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  gap: 12px !important;
  padding: 4px 16px 14px;
  margin: 0 -16px;
  scrollbar-width: none;
}
.m-snap-rail::-webkit-scrollbar { display: none; }
.m-snap-rail > * {
  flex: 0 0 78%;
  scroll-snap-align: start;
  max-width: 78%;
}
.m-snap-rail.m-snap-doctors > * {
  flex: 0 0 46%;
  max-width: 46%;
}

/* Hospital card mobile size adjustments */
.hospital-card {
  overflow: hidden !important;
}
.hospital-card .hospital-img {
  aspect-ratio: 16/10 !important;
  height: auto !important;
}
.hospital-card .hospital-body {
  padding: 12px !important;
  overflow: hidden !important;
}
.hospital-card h3 {
  font-size: 1rem !important;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hospital-card .hospital-meta { font-size: 0.8rem; margin-bottom: 6px; }
.hospital-card p {
  font-size: 0.82rem !important;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.hospital-card .cert-list { margin-top: 8px; }
.hospital-card .cert-badge { font-size: 0.65rem !important; padding: 2px 6px !important; }
.hospital-card .hospital-stats {
  font-size: 0.75rem;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
}

/* Doctor card */
.doctor-card { padding: 14px !important; }
.doctor-card .doctor-avatar {
  width: 72px !important; height: 72px !important;
  margin: 0 auto 10px;
}
.doctor-card h3 { font-size: 0.98rem !important; }
.doctor-card .title { font-size: 0.82rem; }

/* Case card */
.case-card { padding: 18px 16px !important; }
.case-card .quote { font-size: 0.92rem !important; line-height: 1.55; }

/* Blog card */
.blog-card .body { padding: 14px !important; }
.blog-card h3 { font-size: 1rem !important; }
.blog-card p { font-size: 0.85rem !important; }

/* Snap dots indicator (added by mobile.js) */
.m-snap-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.m-snap-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: all 0.2s;
}
.m-snap-dots span.active {
  background: var(--primary);
  width: 18px;
  border-radius: 3px;
}

/* ── 7. Process Steps ───────────────────────────────────────────────────── */
.process-grid {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}
.process-step {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0 12px !important;
  padding: 14px 16px !important;
  text-align: left !important;
}
.process-step .num {
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  font-size: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: var(--primary-xxlight) !important;
  color: var(--primary-dark) !important;
  font-weight: 800;
  order: 1;
}
.process-step h3 {
  flex: 1 1 0 !important;
  font-size: 0.98rem !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  order: 2;
}
.process-step p {
  flex: 0 0 100% !important;
  font-size: 0.85rem !important;
  margin: 4px 0 0 54px !important;
  padding: 0 !important;
  line-height: 1.5 !important;
  color: var(--text-muted);
  order: 3;
}

/* ── 8. Forms — touch-friendly inputs (prevent iOS zoom: font-size ≥ 16) ── */
.inquiry-form,
form {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.inquiry-form .form-row,
form .form-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}
.inquiry-form .form-group,
form .form-group {
  margin-bottom: 12px;
  width: 100% !important;
}
.inquiry-form label,
form label {
  font-size: 0.88rem !important;
  margin-bottom: 5px;
  display: block;
  font-weight: 600;
}
.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select,
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="search"],
form textarea,
form select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 46px;
  font-size: 16px !important;
  padding: 11px 12px !important;
  border-radius: 10px !important;
  border: 1.5px solid var(--border) !important;
  background: #fff !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus,
.inquiry-form select:focus,
form input:focus,
form textarea:focus,
form select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1) !important;
  outline: none !important;
}
.inquiry-form textarea, form textarea { min-height: 80px; resize: vertical; }
.inquiry-form .btn-block,
.inquiry-form button[type="submit"] {
  min-height: 48px !important;
  width: 100% !important;
  font-size: 1rem !important;
  margin-top: 4px !important;
}

/* Trust microcopy under CTA */
.m-trust-line {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}
.m-trust-line i { color: var(--success); margin-right: 4px; }

/* ── 9. CTA band ────────────────────────────────────────────────────────── */
.cta-band { padding: 56px 0 !important; }
.cta-band h2 { font-size: 1.45rem !important; margin-bottom: 10px; }
.cta-band p { font-size: 0.98rem !important; margin-bottom: 18px; }
.cta-band .btn { width: 100%; max-width: 320px; }

/* ── 10. FAQ ────────────────────────────────────────────────────────────── */
.faq-item { padding: 0 !important; border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 52px;
  font-size: 0.95rem !important;
  padding: 14px 0 !important;
  text-align: left !important;
  width: 100% !important;
}
.faq-q span:first-child { flex: 1; line-height: 1.4; }
.faq-q .icon {
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.8rem !important;
}
/* FAQ answer: default collapsed, only show when .open */
.faq-a {
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  transition: max-height 0.3s ease !important;
}
.faq-item.open .faq-a {
  max-height: 500px !important;
  padding: 0 0 14px !important;
}
.faq-a p { font-size: 0.9rem !important; line-height: 1.6 !important; }

/* ── 11. Footer ─────────────────────────────────────────────────────────── */
.site-footer { padding: 40px 0 24px !important; }
.site-footer .footer-grid {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}
.site-footer .footer-col,
.site-footer .footer-news {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
}
.site-footer .footer-brand {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 18px;
  text-align: center;
}
.site-footer .footer-brand .brand { justify-content: center; }
/* Accordion behaviour */
.site-footer .footer-col h4,
.site-footer .footer-news h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin: 0;
  padding: 8px 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.site-footer .footer-col h4::after,
.site-footer .footer-news h4::after {
  content: '\f078'; /* fa-chevron-down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s;
}
.site-footer .footer-col.m-open h4::after,
.site-footer .footer-news.m-open h4::after {
  transform: rotate(180deg);
}
.site-footer .footer-col a,
.site-footer .footer-news > p,
.site-footer .footer-news form,
.site-footer .footer-news > div {
  display: none;
}
.site-footer .footer-col.m-open a,
.site-footer .footer-news.m-open > p,
.site-footer .footer-news.m-open form,
.site-footer .footer-news.m-open > div {
  display: block;
}
.site-footer .footer-col a {
  padding: 10px 0;
  font-size: 0.92rem;
}
.site-footer .footer-bottom {
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  text-align: center;
  font-size: 0.82rem;
}
.site-footer .footer-bottom > div:first-child { order: 2; opacity: 0.6; }

/* ── 12. Drawer ("More" tab) ────────────────────────────────────────────── */
.m-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.m-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.m-drawer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 201;
  border-radius: 18px 18px 0 0;
  padding: 8px 18px 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.15);
}
.m-drawer.open { transform: translateY(0); }
.m-drawer-handle {
  width: 40px; height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 4px auto 14px;
}
.m-drawer-section {
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.m-drawer-section:first-of-type { border-top: 0; }
.m-drawer-section h5 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 8px 0 4px;
}
.m-drawer-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.m-drawer-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.m-drawer-list a i {
  font-size: 1.05rem;
  color: var(--primary);
  width: 22px;
  text-align: center;
}
.m-drawer-list a:active { background: var(--bg-soft); }
.m-drawer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.m-drawer-langs a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-soft);
}
.m-drawer-langs a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.m-drawer-contact {
  display: flex;
  gap: 8px;
}
.m-drawer-contact a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}
.m-drawer-contact .m-contact-wa { background: #25d366; }
.m-drawer-contact .m-contact-tel { background: var(--primary); }
.m-drawer-contact .m-contact-mail { background: var(--accent); }

/* ── 13. Search Overlay (full-screen) ───────────────────────────────────── */
.m-search-overlay {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 250;
  display: none;
  flex-direction: column;
}
.m-search-overlay.open { display: flex; }
.m-search-overlay .m-search-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  height: var(--m-header-h);
}
.m-search-overlay .m-search-head input {
  flex: 1;
  height: 40px;
  border: 0;
  font-size: 16px;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 0 14px;
}
.m-search-overlay .m-search-head button {
  height: 40px;
  padding: 0 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.m-search-overlay .m-search-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
}
.m-search-overlay h6 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 12px 0 8px;
}
.m-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.m-search-tags a {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.88rem;
  color: var(--text-soft);
  border: 1px solid var(--border);
}
.m-search-tags a:active { background: var(--primary-xxlight); color: var(--primary-dark); }

/* ── 14. Performance / paint hints ──────────────────────────────────────── */
/* Reduce reveal animation weight — only fade, no transform (avoids layout recalc) */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.4s ease !important;
  transform: none !important;
  will-change: auto !important;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none !important;
}
/* Disable ALL data-reveal animations below the fold (keep first 6 visible immediately) */
.section:nth-child(n+5) [data-reveal] {
  opacity: 1 !important;
  transition: none !important;
}

img { content-visibility: auto; }

/* Drop expensive backdrop-filter effects on phones (perf killer) */
.site-header,
.lang-current,
.hero-badge,
.doctor-card-badge,
[class*="badge"] { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* Reduce box-shadow complexity on scroll-heavy elements */
.card, .hospital-card, .doctor-card, .case-card, .blog-card,
.srv-spec-card, .srv-pop-card, .search-band-form {
  box-shadow: 0 1px 4px rgba(15,23,42,0.06) !important;
}

/* Disable hover transforms globally (redundant with touch) */
*:hover { transform: none !important; }

/* GPU-accelerate only the fixed elements */
.site-header, .m-tabbar, .m-drawer, .m-search-overlay {
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ── 15. Inner pages — global overrides ─────────────────────────────────── */

/* Force every "main + sidebar" two-column layout to stack. Catches all the
   inline `grid-template-columns: 1fr 380px` / `1fr 360px` / `360px 1fr` etc.
   uses across detail pages without needing to touch each template. */
[style*="grid-template-columns: 1fr 380px"],
[style*="grid-template-columns: 1fr 360px"],
[style*="grid-template-columns: 1fr 340px"],
[style*="grid-template-columns: 360px 1fr"],
[style*="grid-template-columns: 380px 1fr"],
[style*="grid-template-columns: 1fr 380px;"],
[style*="grid-template-columns:1fr 380px"],
[style*="grid-template-columns:1fr 360px"],
[style*="grid-template-columns:1fr 340px"],
.doc-detail-grid,
.case-detail-grid,
.hosp-detail-grid,
.srv-detail-grid {
  grid-template-columns: 1fr !important;
  gap: 28px !important;
}

/* Kill sticky sidebars on phones — saves real estate, avoids overlap with
   slim header & bottom tab bar. */
.detail-side,
.doc-detail-side,
.case-detail-side,
.hosp-side,
.srv-side,
.sidebar-sticky,
[class$="-side"],
[class*=" side"] {
  position: static !important;
  top: auto !important;
}
/* Be conservative: only neutralise position:sticky elements with sidebar-ish naming */
aside[style*="sticky"],
[class*="-sidebar"][style*="sticky"] {
  position: static !important;
}

/* Force cols-3 grids that lack their own breakpoint into 1 column on phones */
.grid-cards.cols-3 {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

/* Page-specific: services / hospitals / doctors / cases / blog list grids */
.srv-pop-grid,
.srv-spec-grid,
.srv-trust-grid,
.hosp-spec-grid,
.spec-showcase,
.achievements-grid,
.dept-grid,
.intl-grid,
.equip-grid,
.photo-grid {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

/* Doctor-list filter bar should stack */
.doctor-filter-bar,
.srv-search,
.hosp-search {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.doctor-filter-bar > *,
.srv-search > *,
.hosp-search > * {
  width: 100% !important;
}

/* Doctor list grid: 2 cols on phones */
.doctor-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

/* Convert info-tables (k/v rows) into stacked blocks for readability */
.doc-info-table,
.case-info-table,
.hosp-info-table {
  display: block !important;
  width: 100% !important;
}
.doc-info-table tbody,
.case-info-table tbody,
.hosp-info-table tbody { display: block; }
.doc-info-table tr,
.case-info-table tr,
.hosp-info-table tr {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.doc-info-table tr:last-child,
.case-info-table tr:last-child,
.hosp-info-table tr:last-child { border-bottom: 0; }
.doc-info-table th,
.case-info-table th,
.hosp-info-table th {
  display: block;
  width: 100% !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: left !important;
  padding: 0 0 4px !important;
}
.doc-info-table td,
.case-info-table td,
.hosp-info-table td {
  display: block;
  width: 100% !important;
  text-align: left !important;
  padding: 0 !important;
  font-size: 0.95rem;
  color: var(--text);
}

/* Hospital detail: gallery thumbs use compact row */
.gallery-thumbs { padding: 0 16px; margin: 0 -16px; }
.gallery-thumbs .gthumb {
  flex: 0 0 96px !important;
  height: 64px !important;
}

/* Hero/page-head reduced padding on inner pages */
.page-head { padding: 32px 0 24px !important; }
.page-head h1 { font-size: 1.6rem !important; }
.page-head p { font-size: 0.95rem !important; }

/* Pagination — wrap to comfortable buttons */
.pagination, .blog-pagination, .pager {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.pagination a, .pagination span,
.blog-pagination a, .blog-pagination span,
.pager a, .pager span {
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px !important;
  font-size: 0.9rem;
}

/* Prev/Next blog navigation: stack */
.post-nav, .blog-nav-rel {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

/* Long article prose readability */
.prose p, article p { font-size: 1rem; line-height: 1.7; }
.prose h2, article h2 { font-size: 1.3rem !important; margin-top: 32px !important; }
.prose h3, article h3 { font-size: 1.1rem !important; }
.prose img, article img { border-radius: 10px; }

/* Tag chips wrap nicely */
.tag, .post-tag, .case-meta-chip {
  font-size: 0.78rem !important;
  padding: 4px 10px !important;
}

/* ── 16. Specific bug fixes (post-launch QA rounds) ─────────────────────── */

/* 16.0 Kill any fixed-width inline style that causes horizontal overflow */
[style*="width: 380px"],
[style*="width:380px"],
[style*="width: 400px"],
[style*="width:400px"],
[style*="min-width: 300px"],
[style*="min-width:300px"],
[style*="min-width: 320px"],
[style*="min-width:320px"] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* All table rows / grid items should not exceed their parent */
table, .grid-cards, .process-grid, .hero-grid,
[class*="-grid"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 16.1 Hide legacy floating WhatsApp/Email button (replaced by bottom-tab Inquire).
   The floating button appears on EVERY page from layout/footer; we only need to
   hide it on phones. Use highest specificity to win over inline styles. */
body .float-cta,
body .float-cta * { display: none !important; visibility: hidden !important; }

/* 16.2 Services list-page trust band — was rendering one stat per full screen.
   Reduce to a 2x2 compact grid with smaller numbers. */
.srv-trust-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
}
.srv-trust-item {
  padding: 14px 8px !important;
  background: var(--bg-soft);
  border-radius: 12px;
  text-align: center;
}
.srv-trust-num {
  font-size: 1.5rem !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}
.srv-trust-label {
  font-size: 0.78rem !important;
  margin-top: 4px !important;
  line-height: 1.3 !important;
}
/* The list page also has a section wrapping the trust grid — kill its huge padding */
.section-tight, section.section-tight, .section.section-tight {
  padding: 28px 0 !important;
}

/* 16.3 Services search hero / search hero on list page */
.srv-hero { padding: 40px 0 32px !important; }
.srv-hero-title { font-size: 1.6rem !important; line-height: 1.25 !important; }
.srv-hero-sub { font-size: 0.95rem !important; margin-bottom: 20px !important; }
.srv-search {
  grid-template-columns: 1fr !important;
  padding: 6px !important;
  gap: 4px !important;
}
.srv-search-field { min-height: 48px !important; padding: 0 12px !important; }
.srv-search-field input { font-size: 16px !important; }
.srv-search-btn {
  width: 100% !important;
  min-height: 48px !important;
  justify-content: center !important;
}
.srv-hero-trust { gap: 10px 16px !important; font-size: 0.82rem !important; margin-top: 18px !important; }
.srv-hero-trust span { white-space: nowrap; }

/* 16.4 Hospitals list page hero — same pattern of stat overflow */
.hosp-hero,
.hospital-hero,
[class*="-hero"] .stat-number,
[class*="-hero"] .stat-num {
  font-size: 1.5rem !important;
}
[class*="-hero"] .stats,
[class*="-hero"] .hero-stats,
.hosp-hero-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px 22px !important;
  justify-content: flex-start !important;
}
[class*="-hero"] .stats > *,
[class*="-hero"] .hero-stats > *,
.hosp-hero-stats > * {
  flex: 0 0 auto !important;
  min-width: 0 !important;
}
[class*="-hero"] h1 { font-size: 1.8rem !important; line-height: 1.2 !important; }
[class*="-hero"] h2 { font-size: 1.3rem !important; }
[class*="-hero"] p, [class*="-hero"] .lead { font-size: 0.95rem !important; }

/* 16.5 Form-inputs final overrides — kill any leftover bizarre borders/padding
   from page-specific styles. Force a uniform mobile look. */
.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"],
.inquiry-form select,
.inquiry-form textarea,
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="search"],
form select,
form textarea {
  background: #fff !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  outline: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus,
.inquiry-form select:focus,
form input:focus,
form textarea:focus,
form select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12) !important;
}

/* 16.6 Hero card buttons — give bottom breathing room so the bottom-bar
   doesn't sit visually flush against the inquiry button */
.hero-card form .btn-block,
.hero-card .inquiry-form button[type="submit"] {
  margin-bottom: 4px !important;
}

/* 16.7 Body bottom padding — phones with bottom safe-area + 64px tabbar
   should leave a clean buffer; ensure no double-stacking */
body {
  padding-bottom: calc(var(--m-bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 8px) !important;
}
/* Hero card needs extra bottom margin so the inquiry text doesn't get hidden
   behind the bottom-tab CTA when scrolled to bottom */
.hero .hero-card {
  margin-bottom: 16px !important;
}
/* Page footer should not have huge bottom padding that adds visible whitespace
   above the bottom tabbar */
.site-footer { padding-bottom: 16px !important; }
.site-footer .footer-bottom { padding-bottom: 0 !important; margin-bottom: 0 !important; }
/* Add safe scroll buffer above bottom tabbar */
main { padding-bottom: 8px !important; }

/* 16.8 Cards/sections that on PC have heavy `min-height` get capped on phones */
[style*="min-height:260"],
[style*="min-height: 260"],
.srv-spec-card,
.srv-spec-content {
  min-height: auto !important;
}
.srv-spec-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}
.srv-spec-card {
  min-height: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}
.srv-spec-content {
  padding: 14px 10px 12px !important;
  gap: 4px !important;
  min-height: 0 !important;
  align-items: center !important;
}
.srv-spec-icon { width: 38px !important; height: 38px !important; font-size: 1rem !important; margin-bottom: 4px !important; border-radius: 10px !important; }
.srv-spec-name { font-size: 0.85rem !important; line-height: 1.25 !important; }
.srv-spec-desc { display: none !important; }
.srv-spec-meta { justify-content: center !important; margin-top: 6px !important; }
.srv-spec-pill { font-size: 0.65rem !important; padding: 2px 6px !important; }
.srv-spec-cta { font-size: 0.75rem !important; }

/* 16.9 srv-pop-grid (popular conditions) one column */
.srv-pop-grid {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}
.srv-pop-card { padding: 12px 14px !important; }
.srv-pop-icon { flex: 0 0 38px !important; width: 38px !important; height: 38px !important; font-size: 0.95rem !important; }
.srv-pop-name { font-size: 0.92rem !important; }
.srv-pop-spec { font-size: 0.66rem !important; }

/* ── 17. Round-2 polish: visual cohesion (post-screenshot review) ───────── */

/* 17.2 Hero stats row — padding fix for older browsers */
   the last card has space to fully reveal during snap. */
.hero .hero-stats {
  padding-right: 16px !important;
  margin-right: -16px;
  scroll-padding-right: 16px;
}
.hero .hero-stat {
  scroll-snap-align: start;
}

/* 17.3 Service-detail "View Detailed Introduction" info card — was rendering
   each word on its own line. The card uses flex with icon + text + chevron;
   need to give text the right flex-grow and stop word-break. */
.detail-info-row,
.info-row,
[class*="info-row"],
.proc-info-card,
.proc-info-card .info-row,
.spec-info-card {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
}
.detail-info-row > *,
.info-row > *,
.proc-info-card .info-row > * {
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}
.detail-info-row > *:not(.info-icon):not(.info-chevron),
.info-row > *:not(.info-icon):not(.info-chevron),
.proc-info-card .info-row > *:not(.info-icon):not(.info-chevron) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Generic flex card: anything with .info-icon + content + chevron */
.info-icon, [class*="info-icon"] {
  flex: 0 0 auto !important;
  width: 36px !important;
  height: 36px !important;
}
.info-chevron, [class*="chevron"] {
  flex: 0 0 auto !important;
}

/* 17.4 Service-detail "View Detailed Introduction" card — the multi-line
   header that read "View Detailed / Introduction — / Procedure, Price /
   Comparison & More". This is most likely a centered card with limited
   max-width. Force it to the full container width. */
.proc-detail-trigger,
.proc-detail-card,
.detail-toggle,
.toggle-detail,
[class*="trigger"][class*="detail"] {
  max-width: 100% !important;
  width: 100% !important;
}

/* 17.5 Service-detail bottom CTA buttons — make Book and WhatsApp the same
   size/style/spacing for visual cohesion. */
.detail-cta,
.proc-cta,
.detail-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  align-items: stretch !important;
}
.detail-cta .btn,
.proc-cta .btn,
.detail-actions .btn,
.detail-cta a.btn,
.proc-cta a.btn {
  width: 100% !important;
  min-height: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  margin: 0 !important;
}
/* Make WhatsApp / outline buttons in CTA stacks visually parallel to primary */
.detail-cta a[href*="wa.me"],
.proc-cta a[href*="wa.me"],
.detail-actions a[href*="wa.me"] {
  background: #25d366 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 18px -8px rgba(37, 211, 102, 0.5) !important;
}
.detail-cta a[href*="wa.me"] i,
.proc-cta a[href*="wa.me"] i { color: #fff !important; }

/* 17.6 Hospital hero stats — clean 2x2 grid */
.hosp-hero-stats,
.hospital-hero-stats {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px 16px !important;
  max-width: 100% !important;
}

/* 17.7 Specialty cards on Hospitals page — first "All specialties" card is
   abnormally tall. Cap height and tidy. */
.spec-showcase-card,
.specialty-card,
.spec-card {
  min-height: 0 !important;
  padding: 16px 14px !important;
}
.spec-showcase-card.is-active,
.specialty-card.is-featured,
.spec-card.active {
  min-height: 0 !important;
}

/* 17.8 Bottom-tabbar should hide when on-screen keyboard appears so it does
   not cover form submit buttons. Implemented via :focus-within trick on body
   when an input/textarea is focused inside a form. */
body.m-kb-open .m-tabbar,
body.m-kb-open .m-search-trigger {
  transform: translateY(120%) !important;
  transition: transform 0.2s ease;
}
body:not(.m-kb-open) .m-tabbar { transition: transform 0.2s ease; }

/* 17.9 Section heads — already handled at top, just cosmetic refinement */
.section-head h2 { font-size: 1.5rem !important; line-height: 1.25 !important; }

/* 17.10 Universal break-word safety so no text element collapses to per-word
   stacking again. */
.process-step h3,
.process-step p,
.card h3,
.card p,
.hospital-card h3, .hospital-card p,
.doctor-card h3, .doctor-card p,
.case-card h3, .case-card p,
.blog-card h3, .blog-card p,
.srv-spec-card h3, .srv-spec-card p,
.detail-info-row, .info-row,
[class*="info-row"],
.proc-info-card * {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

/* 17.11 Doctor list 2-col grid: ensure cards aren't crushed */
.doctor-grid > .doctor-card,
.doctor-grid > * {
  padding: 12px 10px !important;
}
.doctor-grid .doctor-avatar {
  width: 64px !important;
  height: 64px !important;
}
.doctor-grid h3 { font-size: 0.9rem !important; }
.doctor-grid .title { font-size: 0.74rem !important; }

/* 17.12 Footer accordion — make the chevron clickable area larger */
.site-footer .footer-col h4,
.site-footer .footer-news h4 {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* 17.13 Cards that are anchor links — kill underline & blue color on tap */
a.card, a.hospital-card, a.doctor-card, a.blog-card, a.case-card,
a.srv-spec-card, a.srv-pop-card {
  color: inherit !important;
  text-decoration: none !important;
}

/* 17.14 Search overlay refinements */
.m-search-overlay {
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.m-search-overlay .m-search-head {
  background: #fff;
}

/* 17.15 Page header (breadcrumb + h1) on inner pages — slim down */
.page-head .breadcrumb { font-size: 0.78rem !important; margin-bottom: 6px !important; }
.page-head .eyebrow { font-size: 0.7rem !important; }

/* 17.16 Disable smooth-scrolling for native anchor jumps on phones */
html { scroll-behavior: auto; }

/* ── 18. Image fallback — broken images show a styled placeholder ────────── */
img {
  background: var(--bg-muted) !important;
  color: transparent !important;
  position: relative;
  min-height: 40px;
}
/* Hide alt text for broken images via pseudo-element overlay */
img::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  background: var(--bg-muted);
  border-radius: inherit;
}
/* Doctor avatars: show initials circle when image fails */
.doctor-avatar,
.doctor-card-avatar,
img[src*="doctor"],
img[src*="avatar"] {
  background: linear-gradient(135deg, var(--primary-xlight), var(--primary-xxlight)) !important;
  border: 2px solid var(--primary-xlight) !important;
  object-fit: cover;
}
/* Hospital images: subtle placeholder */
.hospital-img,
img[src*="hospital"] {
  background: linear-gradient(135deg, var(--bg-muted) 0%, var(--bg-soft) 100%) !important;
  object-fit: cover;
}

/* ── 19. CTA Band — tighter on mobile ──────────────────────────────────── */
.cta-band { padding: 36px 0 !important; }
.cta-band h2 { font-size: 1.3rem !important; margin-bottom: 8px !important; }
.cta-band p { font-size: 0.92rem !important; margin-bottom: 16px !important; }
.cta-band .btn { width: 100% !important; max-width: 300px !important; }

/* ── 20. Price / savings badges — prevent breaking across lines ──────────── */
.price-badge, .savings-badge, .cost-badge,
[class*="save"], [class*="price-tag"],
.cost-comparison, .price-range {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.85rem !important;
}

/* ── 21. Hospital detail stat numbers — tighter layout ───────────────────── */
.stats-inline, .hero-stats-inline, .hosp-stats-strip,
[class*="stats-strip"], [class*="stats-inline"] {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 20px !important;
  padding: 12px 0 !important;
}
.stats-inline > *, .hero-stats-inline > *,
.hosp-stats-strip > * {
  flex: 0 0 auto !important;
  text-align: center;
}
.stats-inline [class*="num"],
.hero-stats-inline [class*="num"],
.hosp-stats-strip [class*="num"] {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}
.stats-inline [class*="label"],
.hero-stats-inline [class*="label"],
.hosp-stats-strip [class*="label"] {
  font-size: 0.72rem !important;
}

/* ── 18. Edge-hugging fixes (post-QA round: screenshot review 2026-05-10) ─── */

/* 18.1 /treatment-verification hero "Verified Credentials" / "Specialist Match"
   double cards. PC uses absolute positioning (top/left/right:10px) inside a
   280px-tall visual area. On phones they collide with viewport edge. Switch to
   normal vertical stack with container padding breathing room. */
.tv-hero { padding: 40px 0 50px !important; }
.tv-hero-visual {
  position: static !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 4px;
}
.tv-hero-card,
.tv-hc-1, .tv-hc-2, .tv-hc-3 {
  position: static !important;
  top: auto !important; bottom: auto !important;
  left: auto !important; right: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
}
.tv-hero-card strong { font-size: 0.92rem !important; }
.tv-hero-card span   { font-size: 0.76rem !important; }

/* 18.2 /treatment-verification "Patient Journey" step cards were bleeding to
   the right edge because .tv-step (flex + gap:22px) + .tv-step-card padding
   26px left the content tight. Shrink gap + reduce card padding + allow the
   card to take remaining width without overflow. */
.tv-step { gap: 12px !important; }
.tv-step-num {
  width: 44px !important; height: 44px !important;
  font-size: 1.05rem !important;
  border-width: 2px !important;
}
.tv-step-card {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  padding: 14px 14px !important;
}
.tv-step-card p { font-size: 0.9rem !important; }
.tv-step-head h3 { font-size: 1rem !important; min-width: 0 !important; }
.tv-step-duration { font-size: 0.72rem !important; padding: 3px 8px !important; }

/* 18.3 FAQ cards (/faq and home FAQ block). The accordion rows use
   border-bottom only and no side padding — text sits against the edge. Add
   left/right breathing inside each row and lift questions with background. */
.faq-item {
  padding: 0 16px !important;
  background: #fff;
  border: 1px solid var(--border) !important;
  border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.faq-q { padding: 14px 0 !important; }
.faq-item.open .faq-a { padding: 0 0 14px !important; }

/* ── 19. Post-deploy overflow fixes (2026-05-10 round 2) ─────────────────── */

/* 19.1 Hero stats row — previously horizontal snap rail which left "30+" card
   partially off-screen. There are only 3 stats, fit them as equal-width grid. */
.hero .hero-stats {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  overflow: visible !important;
  padding: 4px 0 8px !important;
  margin-right: 0 !important;
  gap: 8px !important;
}
.hero .hero-stat {
  flex: none !important;
  min-width: 0 !important;
  padding: 10px 6px !important;
  text-align: center;
  scroll-snap-align: none !important;
}
.hero .hero-stat-num { font-size: 1.05rem !important; }
.hero .hero-stat-label { font-size: 0.68rem !important; line-height: 1.2 !important; }

/* 19.2 disease.php ".tx-pc-savings" (Save up to $XX,XXX per treatment) was
   overflowing on narrow screens: wide $ strong inside 20px-padded parent.
   Allow wrap + shrink. */
.tx-pc-savings {
  flex-wrap: wrap !important;
  font-size: 0.85rem !important;
  padding: 10px 12px !important;
  line-height: 1.4 !important;
}
.tx-pc-savings strong {
  font-size: 1rem !important;
  white-space: nowrap;
}
.tx-expand-body { padding: 14px !important; }
.tx-price-compare { padding: 14px !important; }
.tx-steps { padding: 14px !important; }
.tx-full-desc { padding: 14px !important; }

} /* end @media (max-width: 768px) */
