/*
Theme Name: Elite Dental Clinics
Description: Lightweight, ACF Pro driven theme for Elite Dental Albania. Front page content is editable via ACF fields; header and footer via the Customizer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: elite-dental-clinics
*/

/* ===== Base ===== */
:root {
  --navy: #13285c;
  --navy-dark: #0e1f4a;
  --red: #ef1c1c;
  --red-dark: #d01010;
  --text: #1f2a44;
  --muted: #3c4766;
  --border: #e3e8f2;
  --card: #ffffff;
  --soft: #f4f7fc;
  --star: #ef1c1c;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(19, 40, 92, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #ffffff;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
.red { color: var(--red); }

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 44px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  border-radius: 6px;
  transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { font-size: 1.15em; line-height: 1; }

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 28, 28, .25);
}
.btn-red:hover { background: var(--red-dark); }

.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid #9aa6c2;
}
.btn-outline:hover { border-color: var(--navy); }

.btn-contact { padding: 13px 26px; font-size: 16px; }
.btn-lg { padding: 16px 44px; font-size: 16px; min-height: 60px; }

.play {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  position: relative;
  flex-shrink: 0;
}
.play::after {
  content: "";
  position: absolute;
  left: 15px; top: 11px;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* ===== Header ===== */
.site-header {
  background: #fff;
  position: relative;
  z-index: 5;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 276px;  }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.8px;
  line-height: 1;
}
.brand-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 5px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0 80px;
  min-height: 480px;
}
.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 70%;
  background-size: cover;
  background-position: center;
  background-color: #cfe3f5;
}
/* white fade from the left so the text sits on white, like the design */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.85) 22%, rgba(255,255,255,0) 50%);
}
.hero-inner { position: relative; z-index: 2; }

.hero-content { max-width: 680px; }

.hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1.18;
  letter-spacing: -1.5px;
  color: var(--navy);
  margin: 0 0 18px;
}
.hero h1 .red { display: block; }

.hero-lead {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy-dark);
  line-height: 1.45;
  margin: 0 0 22px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 680px;
}
.trust-card {
  background: rgba(255,255,255,.92);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(19,40,92,.06);
  padding: 14px 8px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--navy);
}
.trust-card img { width: 40px; height: 40px; }

.hero-script {
  position: absolute;
  top: -20px;
  right: 60px;
  margin: 0;
  font-family: "Kalam", cursive;
  font-size: 32px;
  line-height: 1.2;
  color: var(--navy);
  transform: rotate(-9deg);
  text-align: center;
}
.hero-script::after {
  content: "";
  display: block;
  width: 200px;
  height: 5px;
  margin: 2px 0 0 100px;
  background: var(--red);
  border-radius: 50%;
  transform: rotate(-4deg);
}

.location-card {
  position: absolute;
  right: 44px;
  bottom: -40px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 26px 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 300px;
}
.loc-pin { width: 32px; height: 40px; }
.loc-text strong { display: block; font-size: 18px; color: var(--navy); }
.loc-text span { font-size: 15px; color: var(--navy); line-height: 1.35; }
.loc-map { width: 50px; height: 80px; }

/* ===== Featured ===== */
.featured {
  position: relative;
  z-index: 3;
  margin-top: -30px;
  padding-bottom: 40px;
}
.featured-card {
  position: relative;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 14px 22px 14px;
}

.ribbon {
  position: absolute;
  top: -24px;
  left: -14px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 6px 6px 6px 0;
  z-index: 2;
}
.ribbon::after {
  content: "";
  position: absolute;
  left: 0; bottom: -10px;
  border-top: 10px solid #9e0d0d;
  border-left: 10px solid transparent;
}

.featured-top {
  display: grid;
  grid-template-columns: 330px 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.clinic-logo {
  background: #000;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}
.clinic-logo img { width: 100%; height: auto; border-radius: 10px;}

.clinic-info { padding-top: 6px; }
.clinic-info h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 40px;
  letter-spacing: -1px;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.15;
}
.clinic-loc {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 10px;
}
.clinic-loc img { width: 20px; height: 24px; }
.clinic-desc {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.45;
}

.ratings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 2;
  margin-right: -40px; /* overlaps the photo slightly, like the design */
	    max-width: 390px;
}
.rating-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 16px 22px;
  box-shadow: 0 2px 8px rgba(19,40,92,.05);
}
.rating-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
}
.rating-head img { width: 28px; height: 28px; }
.rating-score {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 8px 0 2px;
  line-height: 1.1;
}
.stars { color: var(--star); font-size: 28px; letter-spacing: 2px; line-height: 1; }
.rating-count { font-size: 16px; color: var(--navy); margin-top: 6px; }

.clinic-photo {
  border-radius: var(--radius);
  overflow: hidden;
}
.clinic-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(7, auto);
  justify-content: space-between;
  margin: 26px 0 26px;
  padding: 0 30px;
}
.stats li, .stats li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: 16px;
  color: var(--navy);
  padding: 0 18px;
  position: relative;
}
.stats li + li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 0;
  width: 1px;
  background: #cfd6e4;
}
.stats img { width: 40px; height: 40px; }
.stats strong { font-weight: 700; font-size: 19px; }
.stats strong.big { font-size: 24px; }

.featured-actions {
  display: flex;
  gap: 20px;
  padding-left: 12px;
}
.featured-actions .btn-red { min-width: 390px; }

/* ===== Responsive ===== */
@media (max-width: 1280px) {
  .hero h1 { font-size: 50px; }
  .hero-lead { font-size: 16px; }
  .featured-top { grid-template-columns: 260px 1fr 0.9fr; gap: 26px; }
  .clinic-info h2 { font-size: 34px; }
  .rating-score { font-size: 28px; }
  .stars { font-size: 22px; }
  .rating-count, .rating-head { font-size: 16px; }
  .stats { padding: 0; }
  .stats li { font-size: 16px; padding: 0 10px; }
  .hero-script { font-size: 28px; right: 30px; }
}

@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .hero { padding: 40px 0 0; }
  .hero-bg { position: relative; width: 100%; height: 320px; margin-top: 30px; order: 2; }
  .hero-bg::before { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 30%); }
  .hero { display: flex; flex-direction: column; }
  .hero-content { max-width: 100%; }
  .trust-grid { max-width: 100%; }
  .hero-script {
    position: static;
    transform: none;
    margin: 24px 0 0;
    text-align: left;
  }
  .hero-script::after { margin-left: 60px; }
  .location-card { position: static; margin-top: 20px; max-width: 340px; }

  .featured { margin-top: -40px; }
  .featured-top { grid-template-columns: 1fr 1fr; }
  .clinic-photo { grid-column: 1 / -1; max-height: 340px; }
  .ratings { margin-right: 0; }
  .stats {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 24px;
    padding: 0;
  }
  .stats li:nth-child(5)::before { display: none; }
  .featured-actions .btn-red { min-width: 0; }
}

@media (max-width: 768px) {
  .header-inner { height: 64px; }
  .brand-name { font-size: 22px; }
  .brand-tag { font-size: 8.5px; letter-spacing: 1.1px; }
  .brand-icon { width: 228px; }
  .btn-contact { padding: 10px 18px; font-size: 16px; }

  .hero h1 { font-size: 38px; letter-spacing: -0.8px; }
  .hero-lead { font-size: 16px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trust-card { font-size: 16px; }
  .hero-script { font-size: 24px; }
  .hero-bg { height: 260px; }
  .location-card { display: none; }

  .featured-card { padding: 34px 16px 20px; }
  .ribbon { left: -8px; font-size: 14px; padding: 10px 18px; }
  .featured-top { grid-template-columns: 1fr; gap: 20px; }
  .clinic-logo { max-width: 320px; margin: 0 auto; width: 100%; }
  .clinic-info h2 { font-size: 30px; }
  .clinic-loc { font-size: 16px; }
  .clinic-desc { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li::before { display: none; }
  .featured-actions { flex-direction: column; padding-left: 0; }
  .btn-lg { width: 100%; font-size: 16px; padding: 14px 20px; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .brand-name { font-size: 18px; }
  .brand-tag { display: none; }
  .btn-contact { padding: 9px 14px; font-size: 16px; }
  .hero h1 { font-size: 32px; }
  .ratings { grid-template-columns: 1fr; }
  .rating-card { padding: 14px 18px; }
}

/* ===== Shared section headings ===== */
.section-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: var(--navy-dark);
  margin: 0 0 8px;
}
.section-sub {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 22px;
}

/* ===== Why Featured ===== */
.why { padding: 10px 0 26px; }
.why-card {
  display: grid;
  grid-template-columns: 1fr 500px;
  background: linear-gradient(120deg, #f6f9fe 0%, #edf3fb 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(19, 40, 92, .06);
}
.why-content { padding: 18px 0 30px 30px; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 30px;
  margin-top: 6px;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}
.why-icon {
  flex-shrink: 0;
  width: 102px;
  height: 102px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(19, 40, 92, .08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon img { width: 48px; height: 48px; }
.why-item h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 18px 0 8px;
}
.why-item p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  margin: 0;
}

.why-photo { position: relative; }
.why-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* soft fade of photo into card on the left edge */
.why-photo::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 60px;
  background: linear-gradient(90deg, #eef3fb, rgba(238,243,251,0));
  z-index: 1;
}

/* ===== Compare Table ===== */
.compare { padding: 6px 0 50px; }
.compare .section-title { margin-left: 2px; }

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(19, 40, 92, .05);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.compare-table thead th {
  background: var(--navy-dark);
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.18);
}
.compare-table thead th:last-child { border-right: 0; }
.compare-table thead th.col-clinic { text-align: left; padding-left: 50px; }
.compare-table thead th.col-services { text-align: left; padding-left: 38px; }

.compare-table td {
  padding: 12px 16px;
  font-size: 16px;
  color: var(--navy-dark);
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table td:last-child { border-right: 0; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: #f8fafe; }

.col-num { width: 80px; font-weight: 500; }
.col-num.first { color: var(--red); }

.clinic-cell {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  font-weight: 500;
}
.clinic-cell img { width: 100px; height: 37px; object-fit: contain; flex-shrink: 0; }

.col-rating { font-weight: 500; white-space: nowrap; }
.col-rating .star { color: var(--star); font-size: 28px; margin-right: 8px; vertical-align: -2px; }
.col-reviews { font-weight: 500; }
.compare-table td.col-services {
  text-align: left;
  padding-left: 38px;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.45;
}
.col-view { width: 265px; }

.btn-profile {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.btn-profile:hover { background: var(--red); color: #fff; }

/* ===== Responsive: new sections ===== */
@media (max-width: 1280px) {
  .section-title { font-size: 38px; }
  .section-sub { font-size: 16px; }
  .why-card { grid-template-columns: 1fr 380px; }
  .why-icon { width: 80px; height: 80px; }
  .why-icon img { width: 40px; height: 40px; }
  .why-item { gap: 18px; }
  .why-item h3 { font-size: 18px; margin-top: 10px; }
  .why-item p { font-size: 16px; }
  .compare-table thead th { font-size: 18px; }
  .compare-table td { font-size: 16px; }
  .compare-table td.col-services { font-size: 16px; padding-left: 24px; }
  .compare-table thead th.col-services { padding-left: 24px; }
  .clinic-cell { gap: 20px; }
  .compare-table thead th.col-clinic { padding-left: 16px; }
  .col-view { width: auto; }
  .btn-profile { font-size: 16px; padding: 10px 18px; }
}

@media (max-width: 1024px) {
  .why-card { grid-template-columns: 1fr; }
  .why-content { padding: 26px 24px 26px; }
  .why-photo { max-height: 380px; overflow: hidden; }
  .why-photo::before { display: none; }

  /* table becomes stacked cards */
  .table-wrap { border: 0; box-shadow: none; overflow: visible; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td { display: block; width: 100%; }
  .compare-table { background: transparent; }
  .compare-table tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .compare-table tr {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(19,40,92,.05);
  }
  .compare-table td {
    border: 0;
    padding: 6px 0;
    text-align: left;
    font-size: 16px;
  }
  .compare-table td.col-services { padding: 6px 0; font-size: 16px; }
  .compare-table td.col-num {
    position: absolute;
    top: 14px; right: 16px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--soft);
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
  }
  .compare-table td.col-rating,
  .compare-table td.col-reviews {
    display: inline-block;
    width: auto;
    margin-right: 22px;
  }
  .compare-table td.col-reviews::before {
    content: "Reviews: ";
    color: var(--muted);
    font-weight: 400;
  }
  .compare-table td.col-view { padding-top: 12px; }
  .btn-profile { width: 100%; justify-content: center; }
  .clinic-cell { gap: 16px; padding-right: 40px; }
  .clinic-cell img { width: 80px; height: 56px; }
}

@media (max-width: 768px) {
  .section-title { font-size: 30px; letter-spacing: -0.8px; }
  .section-sub { font-size: 16px; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-icon { width: 68px; height: 68px; }
  .why-icon img { width: 34px; height: 34px; }
  .why-item h3 { font-size: 17px; margin: 6px 0 4px; }
  .why-item p { font-size: 16px; }
  .why-photo { max-height: 300px; }
  .compare-table tbody { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .section-title { font-size: 26px; }
  .why-content { padding: 22px 16px; }
  .why-item { gap: 14px; }
}

/* ===== Popular Treatments ===== */
.treatments { padding: 10px 0 36px; }
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.btn-head { padding: 14px 26px; font-size: 16px; margin-top: 8px; }

.treat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px;
}
.treat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(19, 40, 92, .06);
  transition: transform .2s, box-shadow .2s;
}
.treat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(19, 40, 92, .12);
}
.treat-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.treat-body { padding: 16px 20px 18px; }
.treat-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 0 6px;
}
.treat-body p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  margin: 0;
}

/* ===== Dental Tourism ===== */
.tourism { padding: 0 0 20px; }
.tourism-inner {
  display: grid;
  grid-template-columns: 1fr 690px;
  align-items: center;
  gap: 20px;
}
.tourism-text {
  font-size: 16px;
  line-height: 1.45;
  color: var(--navy);
  margin: 4px 0 14px;
}
.btn-tourism { padding: 16px 52px; font-size: 16px; }
.tourism-photo {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.tourism-photo::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 80px;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0));
}
.tourism-photo img { width: 100%; height: 245px; object-fit: cover; }

/* ===== FAQ + Help ===== */
.faq-help { padding: 10px 0 50px; }
.faq-help-inner {
  display: grid;
  grid-template-columns: 1fr 795px;
  gap: 30px;
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(19, 40, 92, .04);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy-dark);
  min-height: 50px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: transform .25s;
}
.faq-icon::before { left: 0; right: 0; top: 9px; height: 2.5px; }
.faq-icon::after { top: 0; bottom: 0; left: 9px; width: 2.5px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-answer {
  padding: 0 26px 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.help-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, #eef4fc 0%, #dfeaf8 100%);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  padding: 0 0 0 46px;
}
.help-content { padding: 38px 0 46px; max-width: 500px; position: relative; z-index: 1; }
.help-content h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 29px;
  letter-spacing: -0.8px;
  color: var(--navy-dark);
  margin: 0 0 18px;
  line-height: 1.2;
}
.help-content p {
  font-size: 16px;
  line-height: 1.45;
  color: var(--navy);
  margin: 0 0 22px;
}
.btn-help { padding: 18px 54px; font-size: 16px; }
.help-photo {
  width: 220px;
  height: 270px;
  object-fit: cover;
  align-self: flex-end;
  flex-shrink: 0;
}

/* ===== Responsive: treatments / tourism / faq ===== */
@media (max-width: 1440px) {
  .faq-help-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1280px) {
  .treat-grid { gap: 18px; }
  .treat-body { padding: 14px 16px; }
  .treat-body h3 { font-size: 18px; }
  .treat-body p { font-size: 16px; }
  .btn-head { font-size: 16px; padding: 12px 20px; }
  .tourism-inner { grid-template-columns: 1fr 1fr; }
  .tourism-text { font-size: 16px; }
  .btn-tourism { font-size: 16px; padding: 14px 36px; }
  .faq-item summary { font-size: 16px; padding: 12px 18px; }
  .faq-answer { padding: 0 18px 14px; font-size: 16px; }
  .help-card { padding-left: 30px; }
  .help-content h2 { font-size: 24px; }
  .help-content p { font-size: 16px; }
  .btn-help { font-size: 16px; padding: 14px 36px; }
  .help-photo { width: 170px; height: 230px; }
}

@media (max-width: 1024px) {
  .treat-grid { grid-template-columns: repeat(3, 1fr); }
  .tourism-inner { grid-template-columns: 1fr; }
  .tourism-photo::before { display: none; }
  .tourism-photo img { height: 260px; }
  .faq-help-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section-head { flex-direction: column; gap: 0; }
  .btn-head { margin: 0 0 20px; }
  .treat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tourism-text { font-size: 16px; }
  .btn-tourism { width: 100%; }
  .tourism-photo img { height: 200px; }
  .faq-item summary { font-size: 16px; padding: 12px 16px; }
  .help-card { padding: 0 0 0 22px; min-height: 0; }
  .help-content { padding: 28px 0 30px; }
  .help-content h2 { font-size: 22px; }
  .help-content p { font-size: 16px; }
  .btn-help { font-size: 16px; padding: 13px 28px; }
  .help-photo { width: 140px; height: 200px; }
}

@media (max-width: 480px) {
  .treat-grid { grid-template-columns: 1fr; }
  .help-card { flex-direction: column; align-items: stretch; padding: 0 20px; }
  .help-content { padding-bottom: 10px; }
  .btn-help { width: 100%; }
  .help-photo { align-self: center; width: 160px; height: 200px; }
}

/* ===== Footer ===== */
.site-footer { margin-top: 10px; }

/* CTA band */
.footer-cta {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 285px;
}
.cta-left {
  background: var(--navy-dark);
  color: #fff;
  padding: 34px 60px 30px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-left h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 0 0 14px;
}
.cta-left p {
  font-size: 16px;
  line-height: 1.6;
  color: #dbe3f3;
  margin: 0 0 26px;
}
.btn-cta { align-self: flex-start; padding: 15px 40px; font-size: 16px; }

.cta-right {
  position: relative;
  background-color: #eef3fb;
  background-size: cover;
  background-position: right center;
  display: flex;
  align-items: center;
  padding: 26px 30px 26px 54px;
}
/* white wash over the left of the photo so contact text stays readable */
.cta-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f3f7fd 0%, #f3f7fd 45%, rgba(243,247,253,0) 65%);
}
.cta-contacts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cta-contacts li { display: flex; align-items: flex-start; gap: 18px; }
.cta-contacts img { width: 30px; height: 30px; margin-top: 2px; flex-shrink: 0; }
.cta-contacts strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
}
.cta-contacts span,
.cta-contacts a {
  display: block;
  font-size: 16px;
  color: var(--navy);
  word-break: break-word;
}
.cta-contacts a:hover { color: var(--red); }
.cta-contacts .phone { font-weight: 700; color: var(--navy-dark); }
.cta-contacts small { display: block; font-size: 15px; color: var(--muted); margin-top: 6px; }

/* Info strip */
.footer-info {
  background: #f3f7fd;
  border-top: 1px solid var(--border);
  padding: 30px 0 26px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1360px;
}
.info-col {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 0 34px;
}
.info-col + .info-col { border-left: 2px solid #cdd6e6; }
.info-icon { width: 44px; height: 44px; flex-shrink: 0; }
.info-col h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 6px 0 12px;
}
.info-col p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--navy);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 8.5px;
  width: 3px; height: 6px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Bottom bar */
.footer-bottom {
  background: var(--navy-dark);
  color: #dbe3f3;
  padding: 26px 0;
}
.bottom-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 0 64px;
}
.brand-light .brand-name { color: #fff; font-weight: 500; }
.brand-light .brand-tag { color: #dbe3f3; }
.bottom-note { margin: 0; font-size: 14px; line-height: 1.6; text-align: center; }
.bottom-copy { margin: 0; font-size: 14px; line-height: 1.6; text-align: right; }

/* Footer responsive */
@media (max-width: 1280px) {
  .cta-left { padding: 30px 36px; }
  .cta-left h2 { font-size: 26px; }
  .cta-left p, .cta-contacts span, .cta-contacts a, .cta-contacts strong { font-size: 16px; }
  .cta-right { padding-left: 36px; }
  .info-col { padding: 0 22px; }
  .bottom-inner { padding: 0 44px; gap: 24px; }
}

@media (max-width: 1024px) {
  .footer-cta { grid-template-columns: 1fr; }
  .cta-right { min-height: 300px; }
  .cta-right::before { background: linear-gradient(90deg, #f3f7fd 0%, #f3f7fd 40%, rgba(243,247,253,0) 75%); }
  .info-grid { grid-template-columns: 1fr; gap: 26px; }
  .info-col { padding: 0 8px; }
  .info-col + .info-col { border-left: 0; border-top: 2px solid #cdd6e6; padding-top: 24px; }
  .bottom-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 14px; padding: 0 24px; }
  .bottom-copy { text-align: center; }
}

@media (max-width: 768px) {
  .cta-left { padding: 30px 24px; }
  .cta-left h2 { font-size: 24px; }
  .btn-cta { align-self: stretch; }
  .cta-right {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px 230px;
    background-position: center bottom;
    background-size: auto 220px;
    background-repeat: no-repeat;
  }
  .cta-right::before { background: linear-gradient(180deg, #f3f7fd 0%, #f3f7fd 55%, rgba(243,247,253,0) 70%); }
  .bottom-note br, .bottom-copy br { display: none; }
}

@media (max-width: 420px) {
  .cta-left h2 { font-size: 22px; }
  .cta-contacts li { gap: 14px; }
  .info-col { gap: 14px; }
}

table.compare-table tr:nth-child(2) .clinic-cell img {
    filter: invert(1);
}

/* ===== FAQ Page (loads after style.css) ===== */
.faq-main {
  background: linear-gradient(180deg, #f3f7fd 0%, #f7f9fd 100%);
  padding: 22px 0 60px;
}

/* ----- Category tabs ----- */
.faq-tabs {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(255,255,255,.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(19, 40, 92, .05);
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.faq-tabs::-webkit-scrollbar { display: none; }

.faq-tab {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 104px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.faq-tab img { width: 28px; height: 28px; }
.faq-tab:hover { border-color: #c4cfe3; box-shadow: 0 4px 12px rgba(19,40,92,.08); }
.faq-tab.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 28, 28, .3);
}
.faq-tab.is-active img { filter: brightness(0) invert(1); }
.faq-tab:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ----- Groups grid ----- */
.faq-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
   max-width: 1100px;
	 margin: 0 auto; 
}
.faq-groups.is-single { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
.faq-group[hidden] { display: none; }

.faq-group {
  background: linear-gradient(135deg, #eef4fc 0%, #f5f8fd 100%);
  border: 1px solid #e6edf8;
  border-radius: 12px;
  padding: 12px 10px 10px;
  box-shadow: 0 2px 10px rgba(19, 40, 92, .04);
}

.faq-group-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 0 12px;
}
.faq-group-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #e1ebf9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-group-icon img { width: 32px; height: 32px; }
.faq-group-head h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--navy-dark);
  margin: 0 0 4px;
}
.faq-group-head p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ----- Question items ----- */
.faq-group-list { display: flex; flex-direction: column; gap: 4px; }
.faq-q {
  background: #fff;
  border: 1px solid #e9eef7;
  border-radius: 6px;
  transition: box-shadow .2s;
}
.faq-q:hover { box-shadow: 0 2px 8px rgba(19, 40, 92, .06); }
.faq-q summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px 14px 14px;
  min-height: 36px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy-dark);
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; border-radius: 6px; }
.faq-q[open] summary { color: var(--red); }

.faq-plus {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: transform .25s;
}
.faq-plus::before { left: 0; right: 0; top: 6px; height: 2px; }
.faq-plus::after  { top: 0; bottom: 0; left: 6px; width: 2px; }
.faq-q[open] .faq-plus::before,
.faq-q[open] .faq-plus::after { background: var(--red); }
.faq-q[open] .faq-plus::after { transform: scaleY(0); }

.faq-q p {
  margin: 0;
  padding: 0 22px 14px 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 1280px) {
  .faq-tab { min-width: 96px; padding: 10px 12px; font-size: 13px; }
  .faq-group-head h2 { font-size: 20px; }
}

@media (max-width: 1024px) {
  .faq-groups { grid-template-columns: 1fr; gap: 20px; }
  .faq-tabs { gap: 8px; }
  .faq-tab { flex: 0 0 auto; }
}

@media (max-width: 768px) {
  .faq-main { padding: 16px 0 40px; }
  .faq-tabs { padding: 6px; margin-bottom: 18px; border-radius: 10px; }
  .faq-tab { min-width: 92px; padding: 10px; font-size: 12.5px; }
  .faq-tab img { width: 24px; height: 24px; }
  .faq-group { padding: 12px 8px 8px; }
  .faq-group-head { gap: 12px; }
  .faq-group-icon { width: 46px; height: 46px; }
  .faq-group-icon img { width: 26px; height: 26px; }
  .faq-group-head h2 { font-size: 18px; }
  .faq-group-head p { font-size: 13px; }
  .faq-q summary { font-size: 14.5px; padding: 10px 14px 10px 12px; }
  .faq-q p { font-size: 14.5px; padding: 0 14px 12px 12px; }
}

@media (max-width: 420px) {
  .faq-tab { min-width: 84px; }
  .faq-group-head h2 { font-size: 17px; }
}



/* ===== Video Popup ===== */
html.video-open { overflow: hidden; }

.video-modal {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.video-modal[open] {
  display: grid;
  place-items: center;
  animation: vmFade .25s ease;
}
.video-modal::backdrop {
  background: rgba(10, 20, 45, .85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.video-modal__box {
  position: relative;
  --ar: 16 / 9; /* updated by JS to the video's real ratio */
  width: min(1100px, 100%, calc((100dvh - 140px) * (var(--ar))));
  aspect-ratio: var(--ar);
  animation: vmZoom .35s cubic-bezier(.2, .8, .2, 1);
}
.video-modal__frame {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
}
.video-modal__frame iframe,
.video-modal__frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: -56px;
  right: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.video-modal__close:hover { background: var(--red, #ef1c1c); border-color: transparent; transform: rotate(90deg); }
.video-modal__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.video-modal__close svg { width: 18px; height: 18px; }

@keyframes vmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vmZoom { from { opacity: 0; transform: scale(.94) translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 768px) {
  .video-modal { padding: 16px; }
  .video-modal__frame { border-radius: 10px; }
  .video-modal__close { top: -52px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .video-modal[open], .video-modal__box { animation: none; }
}


@media (max-width: 420px) {
    .container {
        padding: 0 10px;
    }
	    .featured-card {
        padding: 34px 10px 20px;
    }
	.ratings {
    gap: 3px;
}
	.rating-card {

    border-radius: 20px;
    padding: 16px 16px;
}
	    .ratings {
        grid-template-columns: 1fr 1fr;
    }
}



:root {
  --blue: #13285c;
  --navy-btn: #13285c;
  --navy-btn-dark: #0e1f4a;
}
 
/* ----- Hero ----- */
.rank-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 70px;
  background: linear-gradient(180deg, #f3f7fd 0%, #f7f9fd 100%);
}
.rank-hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 55%;
  background-size: cover;
  background-position: center;
  background-color: #cfe3f5;
}
.rank-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f4f7fd 0%, rgba(244,247,253,.75) 18%, rgba(244,247,253,0) 45%);
}
.rank-hero-inner { position: relative; z-index: 1; }
 
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--navy-dark);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--navy); font-size: 20px; line-height: 1; }
 
.rank-hero h1 {
  font-family: "Inter", Arial, sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--navy-dark);
  margin: 0 0 22px;
}
.rank-lead {
  max-width: 720px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 26px;
}
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}
.rank-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--muted);
}
.rank-meta img { width: 22px; height: 22px; }
 
/* ----- Shared bits ----- */
.clinic-loc-sm {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 10px;
}
.clinic-loc-sm img { width: 16px; height: 18px; }
 
.btn-navy,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .2s, box-shadow .2s, transform .2s, color .2s;
}
.btn-navy {
  background: var(--navy-btn);
  color: #fff;
  box-shadow: 0 4px 12px rgba(29, 60, 120, .25);
}
.btn-navy:hover { background: var(--navy-btn-dark); transform: translateY(-1px); }
.btn-ghost {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(19, 40, 92, .06);
}
.btn-ghost:hover { border-color: var(--blue); }
.btn-ghost svg { width: 20px; height: 20px; }
.btn-navy .arrow { font-size: 1.1em; line-height: 1; }
 
/* ----- List wrapper ----- */
.rank-list {
  position: relative;
  z-index: 2;
  margin-top: -50px;
  padding-bottom: 50px;
}
 
/* ----- #1 card ----- */
.top-card {
  display: grid;
  grid-template-columns: 1fr 590px;
  gap: 30px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(19, 40, 92, .08);
  padding: 26px 46px 32px 40px;
  margin-bottom: 30px;
}
.top-main { display: flex; gap: 28px; }
 
.medal {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  color: #2a1d00;
  background: radial-gradient(circle at 35% 30%, #ffe49a 0%, #f2c14e 45%, #c98f16 100%);
  box-shadow: 0 0 0 5px #fbe6a8, 0 0 0 7px #e2ab32, 0 8px 18px rgba(201, 143, 22, .35);
  margin-top: 4px;
}
 
.top-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 8px;
}
.top-title h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--navy-dark);
  margin: 0;
}
.verified {
  background: #e7f0fd;
  color: var(--blue);
  font-size: 20px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 999px;
}
 
.rating-lg, .rating-sm { display: flex; align-items: center; gap: 12px; }
.stars-lg { color: var(--star); font-size: 30px; letter-spacing: 3px; line-height: 1; }
.rating-lg strong { font-size: 26px; font-weight: 600; color: var(--navy-dark); }
.rating-lg { margin-bottom: 14px; }
 
.top-facts {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-dark);
  margin: 0 0 18px;
}
.top-facts span { font-weight: 400; margin: 0 10px; }
.top-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
 
.top-side { display: flex; flex-direction: column; justify-content: center; gap: 30px; padding-top: 40px; }
.top-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 30px;
}
.top-features li { display: flex; align-items: center; gap: 14px; }
.top-features img { width: 40px; height: 40px; flex-shrink: 0; }
.top-features span { font-size: 15px; line-height: 1.6; color: var(--muted); }
.top-features strong { display: block; font-weight: 600; color: var(--navy-dark); }
 
.top-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.top-actions a { min-height: 68px; font-size: 19px; padding: 0 20px; }
 
/* ----- #2–#5 grid ----- */
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.clinic-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(19, 40, 92, .05);
  padding: 12px 18px 20px 22px;
  transition: transform .2s, box-shadow .2s;
}
.clinic-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(19, 40, 92, .1); }
.clinic-rank {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7f0fd;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 0 12px -12px;
}
.clinic-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 0 10px;
}
.stars-sm { color: var(--star); font-size: 22px; letter-spacing: 2px; line-height: 1; }
.rating-sm strong { font-size: 19px; font-weight: 600; color: var(--navy-dark); }
.clinic-tags {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  margin: 14px 0 22px;
  flex-grow: 1;
}
.btn-block { width: 100%; min-height: 48px; font-size: 17px; }
 
/* ===== Responsive ===== */
@media (max-width: 1280px) {
  .rank-hero h1 { font-size: 48px; }
  .rank-lead { font-size: 18px; }
  .top-card { grid-template-columns: 1fr 460px; padding: 24px 28px 28px; }
  .top-title h2 { font-size: 30px; }
  .verified { font-size: 16px; }
  .top-facts { font-size: 17px; }
  .top-actions { gap: 16px; }
  .top-actions a { min-height: 58px; font-size: 16px; }
  .clinic-card h3 { font-size: 21px; }
  .clinic-tags { font-size: 16px; }
  .clinic-loc-sm { font-size: 16px; }
}
 
@media (max-width: 1024px) {
  .rank-hero { padding-bottom: 60px; }
  .rank-hero-bg { width: 70%; opacity: .55; }
  .top-card { grid-template-columns: 1fr; gap: 24px; }
  .top-side { padding-top: 0; }
  .clinic-grid { grid-template-columns: repeat(2, 1fr); }
}
 
@media (max-width: 768px) {
  .breadcrumb { font-size: 14px; gap: 8px; }
  .rank-hero { padding: 20px 0 56px; }
  .rank-hero-bg { width: 100%; opacity: .25; }
  .rank-hero h1 { font-size: 36px; letter-spacing: -1px; }
  .rank-hero h1 br { display: none; }
  .rank-lead { font-size: 16px; }
  .rank-meta { flex-direction: column; gap: 10px; }
  .rank-meta li { font-size: 15px; }
 
  .rank-list { margin-top: -36px; }
  .top-card { padding: 22px 18px; }
  .top-main { flex-direction: column; gap: 16px; }
  .medal { width: 72px; height: 72px; font-size: 26px; }
  .top-title h2 { font-size: 26px; }
  .stars-lg { font-size: 24px; }
  .rating-lg strong { font-size: 22px; }
  .top-facts { font-size: 15px; }
  .top-facts span { margin: 0 6px; }
  .top-features { gap: 16px; }
  .top-actions { grid-template-columns: 1fr; gap: 12px; }
  .top-actions a { min-height: 52px; }
  .clinic-grid { gap: 14px; }
}
 
@media (max-width: 560px) {
  .clinic-grid { grid-template-columns: 1fr; }
  .top-features { grid-template-columns: 1fr; }
}
 
/* ===== Shared section heading (ranking page) ===== */
.rank-h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--navy-dark);
  margin: 0 0 8px;
}
.rank-sub {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 18px;
}
 
/* ===== Quick comparison ===== */
.cmp-section { padding: 0 0 26px; }
.cmp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(19, 40, 92, .06);
  padding: 22px 26px 22px;
}
.cmp-scroll {
  border: 1px solid #edf1f8;
  border-radius: 10px;
  overflow-x: auto;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
  color: var(--navy-dark);
}
.cmp-table th {
  background: #f1f5fb;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  padding: 12px 30px;
  white-space: nowrap;
}
.cmp-table td {
  padding: 10px 30px;
  border-top: 1px solid #edf1f8;
  white-space: nowrap;
}
.cmp-table th + th,
.cmp-table td + td { border-left: 1px solid #edf1f8; }
.cmp-table tbody tr { transition: background .15s; }
.cmp-table tbody tr:hover { background: #f8fafe; }
 
.cmp-table .c-num { width: 90px; text-align: center; padding-left: 16px; padding-right: 16px; }
.cmp-table .c-loc { color: var(--muted); }
.cmp-table .c-rate { text-align: center; }
.cmp-table td.c-rate { color: var(--star); font-weight: 500; }
.cmp-table .c-rate .star { color: var(--star); margin-right: 4px; }
.cmp-table .c-serv { color: var(--muted); }
.cmp-table .c-view { width: 180px; }
.cmp-table .c-view a { color: var(--blue); font-weight: 500; }
.cmp-table .c-view a:hover { text-decoration: underline; }
 
.cmp-all {
  display: table;
  margin: 16px auto 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--blue);
}
.cmp-all:hover { text-decoration: underline; }
.cmp-all .arrow { white-space: nowrap; }
 
/* ===== How we rank ===== */
.how-rank { padding: 0 0 50px; }
 
.factor-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 4px;
}
.factor {
  background: #fff;
  border: 1px solid #edf1f8;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(19, 40, 92, .05);
  padding: 16px 12px 18px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.factor:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(19, 40, 92, .1); }
.factor img { width: 52px; height: 52px; margin: 0 auto 18px; }
.factor h3 {
  font-size: 18px;
  white-space: nowrap;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 0 14px;
}
.factor p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
 
.policy-row {
  display: grid;
  grid-template-columns: 1fr 395px;
  gap: 18px;
  margin-top: 14px;
}
.policy-card,
.updated-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(120deg, #eaf2fd 0%, #f2f7fe 100%);
  border: 1px solid #dfe9f8;
  border-radius: 12px;
}
.policy-card { padding: 14px 40px 14px 26px; }
.updated-card { padding: 14px 26px; }
 
.round-icon {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(19, 40, 92, .08);
  display: grid;
  place-items: center;
}
.round-icon img { width: 44px; height: 44px; }
.updated-card .round-icon { width: 78px; height: 78px; }
.updated-card .round-icon img { width: 40px; height: 40px; }
 
.policy-card h3 {
  font-size: 23px;
  font-weight: 600;
  color: var(--navy-dark);
  margin: 0 0 6px;
}
.policy-card p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.policy-card strong { color: var(--navy-dark); font-weight: 700; }
 
.updated-label {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 4px;
}
.updated-card time {
  font-size: 23px;
  font-weight: 500;
  color: var(--navy-dark);
}
 
/* ----- Responsive ----- */
@media (max-width: 1280px) {
  .rank-h2 { font-size: 30px; }
  .rank-sub { font-size: 16px; }
  .cmp-table { font-size: 16px; }
  .cmp-table th, .cmp-table td { padding-left: 20px; padding-right: 20px; }
  .cmp-table .c-view { width: auto; }
  .factor-grid { grid-template-columns: repeat(3, 1fr); }
  .factor h3 { white-space: normal; }
  .policy-row { grid-template-columns: 1fr 320px; }
  .policy-card h3 { font-size: 20px; }
  .policy-card p { font-size: 16px; }
  .updated-label { font-size: 17px; }
  .updated-card time { font-size: 20px; }
  .round-icon, .updated-card .round-icon { width: 68px; height: 68px; }
  .round-icon img, .updated-card .round-icon img { width: 36px; height: 36px; }
}
 
@media (max-width: 1024px) {
  .policy-row { grid-template-columns: 1fr; }
  .updated-card { justify-self: start; min-width: 320px; }
}
 
@media (max-width: 768px) {
  .rank-h2 { font-size: 25px; letter-spacing: -0.5px; }
  .cmp-card { padding: 18px 14px; border-radius: 12px; }
  .cmp-table { font-size: 15px; }
  .cmp-table th { font-size: 14px; }
  .cmp-table th, .cmp-table td { padding: 10px 14px; }
  .cmp-table .c-num { width: auto; }
  .cmp-all { font-size: 16px; text-align: center; }
  .factor-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .factor { padding: 16px 12px; }
  .factor img { width: 44px; height: 44px; margin-bottom: 12px; }
  .factor h3 { font-size: 17px; margin-bottom: 8px; white-space: normal; }
  .factor p { font-size: 15px; }
  .policy-card { padding: 18px; gap: 16px; align-items: flex-start; }
  .updated-card { padding: 14px 18px; gap: 16px; min-width: 0; justify-self: stretch; }
  .round-icon, .updated-card .round-icon { width: 56px; height: 56px; }
  .round-icon img, .updated-card .round-icon img { width: 30px; height: 30px; }
  .policy-card h3 { font-size: 18px; }
  .policy-card p { font-size: 15px; }
}
 
@media (max-width: 420px) {
  .factor-grid { grid-template-columns: 1fr; }
}
 
/* ===== Inner FAQs ===== */
.innerfaqs { padding: 0 0 56px; }
.innerfaqs .innerfaqs-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--navy-dark);
  margin: 0 0 6px;
}
.innerfaqs .innerfaqs-sub {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 18px;
}
.innerfaqs .innerfaqs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.innerfaqs .innerfaqs-col { display: flex; flex-direction: column; gap: 8px; }

.innerfaqs .innerfaqs-item {
  background: #fff;
  border: 1px solid #edf1f8;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(19, 40, 92, .05);
  transition: box-shadow .2s, border-color .2s;
}
.innerfaqs .innerfaqs-item:hover { box-shadow: 0 6px 20px rgba(19, 40, 92, .09); }
.innerfaqs .innerfaqs-item[open] { border-color: #dbe6f7; }

.innerfaqs summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  padding: 12px 34px 12px 28px;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy-dark);
}
.innerfaqs summary::-webkit-details-marker { display: none; }
.innerfaqs summary:focus-visible { outline: 2px solid #1f5fd6; outline-offset: -2px; border-radius: 10px; }

.innerfaqs .innerfaqs-icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.innerfaqs .innerfaqs-icon::before,
.innerfaqs .innerfaqs-icon::after {
  content: "";
  position: absolute;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: transform .25s;
}
.innerfaqs .innerfaqs-icon::before { left: 0; right: 0; top: 6px; height: 2px; }
.innerfaqs .innerfaqs-icon::after  { top: 0; bottom: 0; left: 6px; width: 2px; }
.innerfaqs .innerfaqs-item[open] .innerfaqs-icon::after { transform: scaleY(0); }

.innerfaqs .innerfaqs-item p {
  margin: 0;
  padding: 0 34px 18px 28px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 1280px) {
  .innerfaqs .innerfaqs-title { font-size: 30px; }
  .innerfaqs .innerfaqs-sub { font-size: 16px; }
  .innerfaqs summary { font-size: 17px; padding: 12px 22px; }
  .innerfaqs .innerfaqs-item p { padding: 0 22px 16px; }
}

@media (max-width: 768px) {
  .innerfaqs { padding-bottom: 40px; }
  .innerfaqs .innerfaqs-title { font-size: 25px; letter-spacing: -0.5px; }
  .innerfaqs .innerfaqs-grid { grid-template-columns: 1fr; gap: 8px; }
  .innerfaqs summary { font-size: 16px; padding: 12px 16px; min-height: 48px; }
  .innerfaqs .innerfaqs-item p { font-size: 15px; padding: 0 16px 14px; }
}


/* ===== Guides Archive ===== */

/* Banner */
.guides-hero {
  position: relative;
  padding: 90px 0 96px;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
}
.guides-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(14, 31, 74, .92) 0%, rgba(14, 31, 74, .75) 45%, rgba(14, 31, 74, .35) 100%);
}
.guides-hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.12;
  margin: 0 0 14px;
}
.guides-hero p {
  max-width: 640px;
  font-size: 19px;
  line-height: 1.6;
  color: #dbe3f3;
  margin: 0;
}

/* List */
.guides-list {
  background: linear-gradient(180deg, #f3f7fd 0%, #fff 100%);
  padding: 56px 0 70px;
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(19, 40, 92, .06);
  padding: 28px 28px 26px;
  transition: transform .25s, box-shadow .25s, border-top-color .25s;
}
.guide-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--red);
  box-shadow: 0 14px 32px rgba(19, 40, 92, .12);
}
.guide-card h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy-dark);
  margin: 0 0 12px;
}
.guide-card h2 a { color: inherit; }
/* whole card clickable via the title link */
.guide-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.guide-card p {
  flex-grow: 1;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 22px;
}
.guide-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 16px;
  font-weight: 600;
  color: var(--red);
}
.guide-link .arrow { transition: transform .2s; }
.guide-card:hover .guide-link .arrow { transform: translateX(4px); }
.guide-card h2 a:focus-visible { outline: none; }
.guide-card:focus-within { outline: 2px solid var(--navy); outline-offset: 3px; }

/* Responsive */
@media (max-width: 1024px) {
  .guides-hero { padding: 70px 0 74px; }
  .guides-hero h1 { font-size: 42px; }
  .guides-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .guides-hero { padding: 54px 0 58px; }
  .guides-hero::before { background: rgba(14, 31, 74, .82); }
  .guides-hero h1 { font-size: 34px; letter-spacing: -0.8px; }
  .guides-hero p { font-size: 16px; }
  .guides-list { padding: 36px 0 48px; }
  .guide-card { padding: 22px 20px; }
  .guide-card h2 { font-size: 20px; }
}

@media (max-width: 600px) {
  .guides-grid { grid-template-columns: 1fr; gap: 16px; }
}



/* ===== Guide page: How to Compare Dental Clinics (self-contained) ===== */
.gx {
  --gx-navy: #0e1f4a;
  --gx-navy-2: #1d3c78;
  --gx-red: #ef1c1c;
  --gx-blue: #1f5fd6;
  --gx-text: #2b3654;
  --gx-muted: #5b6684;
  --gx-line: #e3e8f2;
  --gx-soft: #f4f7fc;
  background: linear-gradient(180deg, #fff 0%, var(--gx-soft) 60%, #fff 100%);
  color: var(--gx-text);
  font-size: 17px;
  line-height: 1.75;
  padding-bottom: 80px;
}
.gx * { box-sizing: border-box; }
.gx-wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* Reading progress */
.gx-progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 999; pointer-events: none; }
.gx-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gx-red), #ff6a3d);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ----- Hero ----- */
.gx-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 150px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(31, 95, 214, .45), transparent 70%),
    radial-gradient(520px 280px at 92% 20%, rgba(239, 28, 28, .28), transparent 70%),
    linear-gradient(160deg, #0b1838 0%, var(--gx-navy) 55%, #16306b 100%);
}
.gx-hero::after { /* subtle dot grid */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
.gx-hero .gx-wrap { position: relative; z-index: 1; }
.gx-crumb {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 6px 16px;
  margin-bottom: 26px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.gx-crumb a { color: #fff; }
.gx-crumb a:hover { text-decoration: underline; }
.gx-hero h1 {
  max-width: 860px;
  margin: 0 auto 20px;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.1;
  color: #fff;
}
.gx-hero-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255,255,255,.78);
}

/* ----- Intro card ----- */
.gx-intro {
  position: relative;
  z-index: 2;
  margin-top: -96px;
  padding: 38px 44px 36px;
  background: #fff;
  border: 1px solid var(--gx-line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(14, 31, 74, .12);
}
.gx-intro p { margin: 0; }
.gx-intro-lead {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: var(--gx-navy);
  margin-bottom: 10px !important;
}
.gx-intro-lead::before {
  content: "";
  display: block;
  width: 48px; height: 4px;
  margin-bottom: 18px;
  border-radius: 4px;
  background: var(--gx-red);
}

/* jump links */
.gx-toc {
  list-style: none;
  margin: 26px 0 0;
  padding: 24px 0 0;
  border-top: 1px dashed var(--gx-line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 22px;
}
.gx-toc a {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gx-navy);
  transition: background .2s, color .2s;
}
.gx-toc a span {
  flex-shrink: 0;
  font-size: 12px; font-weight: 700;
  color: var(--gx-red);
}
.gx-toc a:hover { background: var(--gx-soft); color: var(--gx-blue); }

/* ----- Steps timeline ----- */
.gx-steps { position: relative; margin-top: 64px; }
.gx-steps::before { /* vertical line */
  content: "";
  position: absolute;
  left: 31px; top: 20px; bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--gx-red), var(--gx-navy-2) 50%, var(--gx-line));
}
.gx-step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 30px;
  scroll-margin-top: 30px;
}
.gx-step + .gx-step { margin-top: 30px; }
.gx-step-num {
  position: sticky;
  top: 30px;
  align-self: start;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gx-navy);
  box-shadow: 0 0 0 6px var(--gx-soft), 0 8px 20px rgba(14, 31, 74, .15);
  font-size: 20px;
  font-weight: 800;
  color: var(--gx-navy);
  transition: background .25s, color .25s;
}
.gx-step:hover .gx-step-num { background: var(--gx-navy); color: #fff; }

.gx-step-card {
  padding: 32px 38px;
  background: #fff;
  border: 1px solid var(--gx-line);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(14, 31, 74, .05);
  transition: box-shadow .25s, transform .25s;
}
.gx-step:hover .gx-step-card { box-shadow: 0 16px 40px rgba(14, 31, 74, .1); transform: translateY(-2px); }
.gx-step-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.25;
  color: var(--gx-navy);
}
.gx-step-card p { margin: 0; }
.gx-step-card p + p { margin-top: 14px; }
/* first sentence of each step stands out */
.gx-step-card h2 + p { font-size: 19px; font-weight: 600; color: var(--gx-navy); }

/* Callout */
.gx-note {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(120deg, #fff4f2 0%, #eef4fd 100%);
  border: 1px solid #f6dcd8;
}
.gx-note-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gx-red);
  color: #fff;
  box-shadow: 0 6px 14px rgba(239, 28, 28, .3);
}
.gx-note-icon svg { width: 22px; height: 22px; }
.gx-note p {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--gx-navy);
}

/* ----- Final ----- */
.gx-final {
  position: relative;
  overflow: hidden;
  margin-top: 64px;
  padding: 48px 52px;
  border-radius: 22px;
  color: rgba(255,255,255,.8);
  background:
    radial-gradient(400px 240px at 100% 0%, rgba(239, 28, 28, .35), transparent 70%),
    radial-gradient(420px 260px at 0% 100%, rgba(31, 95, 214, .4), transparent 70%),
    var(--gx-navy);
  box-shadow: 0 24px 60px rgba(14, 31, 74, .25);
}
.gx-final-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: #fff;
}
.gx-final-icon svg { width: 26px; height: 26px; }
.gx-final h2 {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: #fff;
}
.gx-final p { margin: 0; max-width: 720px; }
.gx-final p + p { margin-top: 12px; }
.gx-final .gx-final-lead { font-size: 21px; font-weight: 700; line-height: 1.45; color: #fff; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .gx-hero h1 { font-size: 42px; }
}

@media (max-width: 768px) {
  .gx { font-size: 16px; padding-bottom: 56px; }
  .gx-wrap { padding: 0 16px; }
  .gx-hero { padding: 40px 0 120px; }
  .gx-crumb { font-size: 12px; padding: 5px 12px; margin-bottom: 18px; }
  .gx-hero h1 { font-size: 30px; letter-spacing: -0.8px; }
  .gx-hero-text { font-size: 16px; }

  .gx-intro { margin-top: -84px; padding: 26px 20px; border-radius: 16px; }
  .gx-intro-lead { font-size: 20px; }
  .gx-toc { grid-template-columns: 1fr; gap: 2px; }

  .gx-steps { margin-top: 40px; }
  .gx-steps::before { left: 21px; }
  .gx-step { grid-template-columns: 44px 1fr; gap: 14px; }
  .gx-step + .gx-step { margin-top: 20px; }
  .gx-step-num { width: 44px; height: 44px; font-size: 15px; top: 16px; box-shadow: 0 0 0 4px var(--gx-soft); }
  .gx-step-card { padding: 22px 18px; border-radius: 14px; }
  .gx-step-card h2 { font-size: 21px; }
  .gx-step-card h2 + p { font-size: 17px; }
  .gx-note { padding: 14px 16px; gap: 12px; align-items: flex-start; }
  .gx-note-icon { width: 36px; height: 36px; border-radius: 10px; }
  .gx-note p { font-size: 16px; }

  .gx-final { margin-top: 44px; padding: 30px 22px; border-radius: 16px; }
  .gx-final h2 { font-size: 24px; }
  .gx-final .gx-final-lead { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .gx-step-card, .gx-step-num { transition: none; }
}

/* ===== Dental Guide – extra styles (add after the existing .gx styles) ===== */

/* spacing after a callout in the middle of a step */
.gx-step-card .gx-note + p { margin-top: 20px; }

/* extra intro paragraphs */
.gx-intro p + p { margin-top: 12px; }

/* lists inside steps (e.g. comparison columns, decision checklist) */
.gx-step-card ul,
.gx-final ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
}
.gx-step-card ul + p,
.gx-final ul + p { margin-top: 18px; }
.gx-step-card li {
  position: relative;
  padding: 10px 14px 10px 44px;
  background: #f4f7fc;
  border: 1px solid #e3e8f2;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.4;
  color: #0e1f4a;
}
.gx-step-card li::before {
  content: "";
  position: absolute;
  left: 14px; top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: #ef1c1c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* inline bold in final box */
.gx-final strong { color: #fff; }

/* ----- Q&A grid (headings like "1. Question?") ----- */
.gx-qa {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
  counter-reset: none;
}
.gx-qa-card {
  position: relative;
  overflow: hidden;
  padding: 28px 30px 30px;
  background: #fff;
  border: 1px solid #e3e8f2;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(14, 31, 74, .05);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.gx-qa-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(14, 31, 74, .1); border-color: #d3ddef; }
.gx-qa-num {
  position: absolute;
  right: 18px; top: 4px;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: #eef3fb;
  pointer-events: none;
}
.gx-qa-card h2 {
  position: relative;
  margin: 0 0 12px;
  padding-right: 40px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.3px;
  color: #0e1f4a;
}
.gx-qa-card p { position: relative; margin: 0; }
.gx-qa-card::before {
  content: "";
  position: absolute;
  left: 0; top: 28px;
  width: 4px; height: 26px;
  border-radius: 0 4px 4px 0;
  background: #ef1c1c;
}

@media (max-width: 768px) {
  .gx-step-card ul, .gx-final ul { grid-template-columns: 1fr; }
  .gx-qa { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
  .gx-qa-card { padding: 22px 20px; }
  .gx-qa-card::before { top: 22px; }
  .gx-qa-num { font-size: 56px; }
  .gx-qa-card h2 { font-size: 18px; }
}

.site-header nav.eda-nav {
    margin: 0 auto !important;
}