/* ==========================================================================
   Dedicated Flagship Money Page & Silo Styles: Niềng Răng – Chỉnh Nha (/nieng-rang/)
   Mobile-first, WCAG AA contrast, zero horizontal overflow, GPU-smooth interactions
   ========================================================================== */

/* Hero Grid & KPI Row (Khối 01) */
.bs-ortho-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.bs-ortho-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.bs-ortho-kpi {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 13px 12px;
  backdrop-filter: blur(6px);
}

.bs-ortho-kpi strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #6ee7b7;
  line-height: 1.25;
  margin-bottom: 4px;
}

.bs-ortho-kpi span {
  display: block;
  font-size: 12.5px;
  color: #ecfdf5;
  line-height: 1.35;
}

.bs-ortho-hero-frame {
  background: rgba(5, 46, 22, 0.72);
  border: 1.5px solid rgba(110, 231, 183, 0.38);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.bs-ortho-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: zoom-in;
}

.bs-ortho-hero-cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(4, 47, 46, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bs-ortho-hero-cap strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.bs-ortho-hero-cap span {
  display: block;
  font-size: 12.5px;
  color: #a7f3d0;
}

.bs-ortho-hero-cap small {
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  font-weight: 700;
  font-size: 11.5px;
}

/* Sticky Section Jump Bar (Khối 02) */
.bs-ortho-subnav-wrap {
  position: sticky;
  top: 66px;
  z-index: 88;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bs-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.bs-ortho-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bs-ortho-subnav::-webkit-scrollbar {
  display: none;
}

.bs-ortho-subnav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bs-navy);
  background: #f1f5f9;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.bs-ortho-subnav a:hover,
.bs-ortho-subnav a.is-active {
  background: #064e3b;
  color: #fff;
}

.bs-ortho-subnav a.bs-ortho-subnav__cta {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.bs-ortho-subnav a.bs-ortho-subnav__cta:hover {
  background: #d97706;
  color: #fff;
}

/* Clinical Scorecard 4 Columns (Khối 04) */
.bs-ortho-scorecard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.bs-ortho-score {
  background: #f8fafc;
  border: 1px solid var(--bs-border);
  border-top: 4px solid #059669;
  border-radius: 14px;
  padding: 18px;
}

.bs-ortho-score__num {
  font-size: 23px;
  font-weight: 800;
  color: #064e3b;
  line-height: 1.2;
}

.bs-ortho-score__lbl {
  font-size: 14px;
  font-weight: 700;
  color: var(--bs-navy);
  margin: 6px 0 4px;
}

.bs-ortho-score p {
  font-size: 13px;
  color: var(--bs-muted);
  margin: 0;
  line-height: 1.5;
}

/* Yes / No Eligibility Grid (Khối 05) */
.bs-ortho-yn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.bs-ortho-yn-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--bs-border);
}

.bs-ortho-yn-card--yes {
  border-top: 4px solid #059669;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 42%);
}

.bs-ortho-yn-card--no {
  border-top: 4px solid #d97706;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 42%);
}

.bs-ortho-yn-card h3 {
  font-size: 19px;
  margin: 8px 0 14px;
}

.bs-ortho-yn-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
}

/* Visual Split Figure Blocks */
.bs-ortho-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}

.bs-ortho-figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.bs-ortho-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: zoom-in;
}

.bs-ortho-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--bs-muted);
  background: #f8fafc;
  border-top: 1px solid var(--bs-border);
  line-height: 1.5;
}

/* 6-Stage Timeline Cards (Khối 07) */
.bs-ortho-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.bs-ortho-step {
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 16px;
  padding: 20px 18px;
}

.bs-ortho-step__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 10px;
}

.bs-ortho-step h3 {
  font-size: 16.5px;
  margin: 0 0 8px;
}

.bs-ortho-step p {
  font-size: 14px;
  color: var(--bs-muted);
  margin: 0;
  line-height: 1.55;
}

/* Included vs Optional Guarantee Grid (Khối 08) */
.bs-ortho-inc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* Interactive 0% Installment Calculator (Khối 08) */
.bs-ortho-calc {
  margin-top: 28px;
  background: linear-gradient(145deg, #052e16 0%, #064e3b 100%);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(5, 46, 22, 0.22);
}

.bs-ortho-calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.bs-ortho-calc label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #a7f3d0;
  margin-bottom: 6px;
}

.bs-ortho-calc select {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 700;
}

.bs-ortho-calc-result {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(110, 231, 183, 0.3);
  border-radius: 16px;
  padding: 22px;
}

.bs-ortho-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: #e2e8f0;
}

.bs-ortho-calc-total {
  font-size: 26px;
  font-weight: 800;
  color: #6ee7b7;
}

/* Risk Control 5-Card Grid (Khối 10) */
.bs-ortho-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bs-ortho-risk-card {
  background: #fff;
  border: 1px solid var(--bs-border);
  border-top: 3px solid #059669;
  border-radius: 14px;
  padding: 18px;
}

.bs-ortho-risk-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--bs-navy);
}

.bs-ortho-risk-card p {
  font-size: 14px;
  color: var(--bs-muted);
  margin: 0;
  line-height: 1.55;
}

/* Verified Ortho Certificates Gallery (Khối 12) */
.bs-ortho-certs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.bs-ortho-cert-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 14px;
  padding: 14px;
}

.bs-ortho-cert-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--bs-border);
  cursor: zoom-in;
}

/* Interactive 30-Second Bite Triage (Khối 13) */
.bs-triage-box {
  background: #ffffff;
  border: 2px solid rgba(5, 150, 105, 0.3);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.bs-triage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.bs-triage-tab {
  appearance: none;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: var(--bs-navy);
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.bs-triage-tab:hover {
  border-color: #059669;
  color: #064e3b;
}

.bs-triage-tab.is-active {
  background: #064e3b;
  border-color: #064e3b;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(6, 78, 59, 0.25);
}

.bs-triage-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--bs-border);
}

.bs-triage-filters label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--bs-navy);
  margin-bottom: 6px;
}

.bs-triage-filters select {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bs-navy);
}

.bs-triage-panel {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 14px;
  padding: 22px;
}

.bs-triage-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.bs-triage-meta > div {
  background: #ffffff;
  border: 1px solid #d1fae5;
  border-radius: 10px;
  padding: 12px 14px;
}

.bs-triage-meta small {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.bs-triage-meta strong {
  color: #064e3b;
  font-size: 14.5px;
}

/* Remote 3-Photo Zalo Consultation Banner (Khối 13B) */
.bs-ortho-photo-box {
  margin-top: 24px;
  background: linear-gradient(135deg, #052e16 0%, #065f46 100%);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 36px rgba(5, 46, 22, 0.22);
}

.bs-ortho-photo-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

.bs-ortho-photo-step {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 16px;
}

.bs-ortho-photo-step strong {
  display: block;
  color: #fde68a;
  font-size: 14.5px;
  margin-bottom: 5px;
}

.bs-ortho-photo-step span {
  font-size: 13.5px;
  color: #ecfdf5;
  line-height: 1.5;
  display: block;
}

/* 5-Branch 18-Subhub Silo Directory (Khối 15) */
.bs-subhub-branch {
  margin-bottom: 26px;
}

.bs-subhub-branch__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.bs-subhub-branch__head h3 {
  margin: 0;
  font-size: 19px;
  color: #064e3b;
}

.bs-subhub-branch__head span {
  font-size: 13.5px;
  color: var(--bs-muted);
}

.bs-subhub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bs-subhub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--bs-border);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bs-subhub-card:hover {
  transform: translateY(-2px);
  border-color: #059669;
  box-shadow: 0 10px 24px rgba(6, 78, 59, 0.09);
}

.bs-subhub-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.bs-subhub-card h4 {
  margin: 0 0 6px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--bs-navy);
}

.bs-subhub-card p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--bs-muted);
}

.bs-subhub-card__more {
  font-size: 13px;
  font-weight: 700;
  color: #059669;
}

/* Spoke Post Funnel Box (Injected across all 384 Orthodontics Spoke Articles) */
.bs-ortho-top-callout {
  border-left: 4px solid #059669;
  background: #f0fdf4;
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 18px 0 22px;
}

.bs-ortho-funnel-box {
  margin: 34px 0 20px;
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(155deg, #052e16 0%, #064e3b 65%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(5, 46, 22, 0.22);
}

.bs-ortho-funnel-box__head h3 {
  color: #ffffff;
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.35;
}

.bs-ortho-funnel-box__head p {
  color: #d1fae5;
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.6;
}

.bs-ortho-funnel-links {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.bs-ortho-funnel-links li a {
  display: block;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.bs-ortho-funnel-links li a:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #6ee7b7;
}

.bs-ortho-funnel-links li a strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 3px;
}

.bs-ortho-funnel-links li a span {
  display: block;
  font-size: 13px;
  color: #a7f3d0;
}

.bs-ortho-funnel-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Responsive Breakpoints: Tablet & Mobile (360px - 1024px) */
@media (max-width: 1024px) {
  .bs-ortho-hero-grid,
  .bs-ortho-split,
  .bs-ortho-calc-grid {
    grid-template-columns: 1fr;
  }

  .bs-ortho-scorecard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bs-ortho-timeline,
  .bs-ortho-risk-grid,
  .bs-ortho-certs,
  .bs-subhub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .bs-ortho-subnav-wrap {
    top: 58px;
  }

  .bs-ortho-kpis,
  .bs-ortho-scorecard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .bs-ortho-yn-grid,
  .bs-ortho-timeline,
  .bs-ortho-inc-grid,
  .bs-ortho-risk-grid,
  .bs-ortho-certs,
  .bs-triage-filters,
  .bs-triage-meta,
  .bs-ortho-photo-steps,
  .bs-subhub-grid {
    grid-template-columns: 1fr;
  }

  .bs-ortho-score {
    padding: 14px 12px;
  }

  .bs-ortho-score__num {
    font-size: 19px;
  }

  .bs-ortho-calc,
  .bs-triage-box,
  .bs-ortho-photo-box,
  .bs-ortho-funnel-box {
    padding: 20px 16px;
  }

  .bs-ortho-hero-cap {
    flex-direction: column;
    align-items: flex-start;
  }
}
