/* =========================================================
   Shared patterns for inner pages (Services, Consultation,
   NRI Seva, Blog, Contact, service-detail template)
   ========================================================= */

/* ---------- Blank image placeholder (used until real photos are supplied) ---------- */
.img-placeholder {
  width: 100%; height: 100%;
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--cream-100), var(--cream-100) 10px, var(--cream-050) 10px, var(--cream-050) 20px);
  border: 1px dashed var(--gold-400);
  color: var(--gold-500);
}
.img-placeholder svg { width: 30%; height: 30%; max-width: 34px; max-height: 34px; opacity: 0.55; }

/* ---------- Compact inner-page introduction ---------- */
.page-hero {
  position: relative;
  min-height: 270px !important;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid var(--gold-500);
  box-shadow: 0 5px 18px rgba(27,74,52,0.12);
}
.page-hero .hero-overlay {
  background: linear-gradient(180deg, rgba(253,248,240,0.10) 0%, rgba(253,248,240,0.04) 45%, rgba(253,248,240,0.30) 100%);
}
.page-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(22,59,41,0) 0%, rgba(22,59,41,0.16) 100%);
  pointer-events: none;
}
.page-hero.centered { text-align: center; justify-content: center; }
.page-hero.centered .page-hero-content { margin: 0 auto; }
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 34px 0;
}
.page-hero-content .breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-bottom: var(--space-2);
  text-shadow: 0 1px 8px rgba(253,248,240,0.9);
}
.page-hero-content .breadcrumb a { color: var(--gold-600); }
.page-hero-content h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  margin-bottom: 7px;
  text-shadow: 0 2px 16px rgba(253,248,240,0.85), 0 1px 3px rgba(253,248,240,0.9);
}
.page-hero-flourish { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 14px; color: var(--gold-500); }
.page-hero-flourish::before, .page-hero-flourish::after { content: ''; width: 46px; height: 1px; background: var(--gold-400); }
.page-hero-flourish svg { width: 18px; height: 18px; }
.page-hero-content .page-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--gold-600);
  font-size: 1.2rem;
  margin-bottom: var(--space-2);
  text-shadow: 0 1px 8px rgba(253,248,240,0.9);
}
.page-hero-content p.lede {
  font-size: 0.94rem;
  color: var(--ink-700);
  line-height: 1.6;
  margin-bottom: 16px;
  text-shadow: 0 1px 10px rgba(253,248,240,0.85);
}
.page-hero.centered .page-hero-content p.lede { max-width: 640px; margin-left: auto; margin-right: auto; }
.page-hero-ctas { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.page-hero.centered .page-hero-ctas { justify-content: center; }
.page-hero-doctor-badge {
  position: absolute;
  right: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(253,248,240,0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.page-hero-doctor-badge img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-500); margin-bottom: 8px; }
.page-hero-doctor-badge strong { display: block; font-family: var(--font-display); color: var(--green-800); font-size: 0.92rem; }
.page-hero-doctor-badge span { font-size: 0.76rem; color: var(--ink-500); display: block; }
@media (max-width: 900px) {
  .page-hero-doctor-badge { display: none; }
  .page-hero-content { max-width: 100%; }
  .page-hero .hero-overlay { background: rgba(253,248,240,0.82); }
}
@media (max-width: 640px) {
  .page-hero { min-height: 220px !important; }
  .page-hero-content { padding: 28px 0; }
  .page-hero-content p.lede { font-size: 0.88rem; line-height: 1.5; }
}

/* ---------- Trust badges row (4-up, icon + title + text) ---------- */
.trust-badges {
  background: var(--cream-100);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) 0;
}
.trust-badges .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.trust-badge { display: flex; align-items: flex-start; gap: 12px; }
.trust-badge .icon-circle { background: var(--white); }
.trust-badge h4 { font-size: 0.95rem; margin-bottom: 2px; }
.trust-badge p { font-size: 0.8rem; color: var(--ink-500); line-height: 1.35; }
@media (max-width: 900px) { .trust-badges .container { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-3); } }

/* ---------- Section heading ---------- */
.section-heading {
  text-align: center;
  margin: var(--space-6) 0 var(--space-4);
}
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-heading p { color: var(--ink-500); max-width: 560px; margin: 8px auto 0; }
.section-heading.left { text-align: left; margin-left: 0; }

/* ---------- Service cards (6-up) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding-bottom: var(--space-5);
}
.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: visible;
  box-shadow: var(--shadow-card);
}
.svc-card-img { width: 100%; aspect-ratio: 4 / 3; flex-shrink: 0; background: var(--cream-100); background-size: cover; background-position: center; border-radius: var(--radius-md) var(--radius-md) 0 0; overflow: hidden; }
.svc-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.svc-card-body { padding: 28px var(--space-2) var(--space-2) var(--space-2); position: relative; flex: 1; }
.svc-card-body .icon-circle {
  position: absolute;
  top: -24px; right: 18px;
  background: var(--green-800);
  border: 2px solid var(--gold-500);
  width: 48px; height: 48px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18), 0 0 0 3px var(--white);
}
.svc-card-body .icon-circle svg { width: 22px; height: 22px; stroke: var(--white); }
.svc-card-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.svc-card-body p { font-size: 0.85rem; color: var(--ink-500); line-height: 1.45; margin-bottom: 8px; }
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Integration flow diagram ---------- */
.integration-flow {
  background: var(--cream-100);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-5) 0;
}
.integration-flow h2 { text-align: center; margin-bottom: var(--space-4); font-size: 1.5rem; }
.flow-row { display: flex; align-items: flex-start; justify-content: center; gap: var(--space-2); flex-wrap: wrap; }
.flow-step { display: flex; flex-direction: column; align-items: center; text-align: center; width: 130px; }
.flow-step .icon-circle { width: 56px; height: 56px; background: var(--white); margin-bottom: 8px; }
.flow-step .icon-circle svg { width: 24px; height: 24px; }
.flow-step h5 { font-size: 0.9rem; color: var(--green-800); font-family: var(--font-display); font-weight: 700; margin-bottom: 2px; }
.flow-step p { font-size: 0.75rem; color: var(--ink-500); }
.flow-connector { display: flex; align-items: center; justify-content: center; width: 28px; padding-top: 18px; color: var(--gold-500); font-size: 1.3rem; flex-shrink: 0; }
.flow-connector svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .flow-connector { display: none; } .flow-row { gap: var(--space-3); } }

/* ---------- FAQ accordion (native details/summary, zero JS) ---------- */
.faq-section { padding: var(--space-5) 0; }
.faq-section .section-heading {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  text-align: left; margin: 0 0 var(--space-3);
}
.faq-section .section-heading svg { width: 24px; height: 24px; stroke: var(--gold-500); }
.faq-section .section-heading h2 { font-size: 1.3rem; }
.faq-list { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: flex-start; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--cream-100);
  padding: 12px 22px;
  flex: 1 1 auto;
}
.faq-item[open] { border-radius: var(--radius-md); background: var(--white); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--green-800);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  white-space: nowrap;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 9px; height: 9px;
  border-right: 2px solid var(--gold-600);
  border-bottom: 2px solid var(--gold-600);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p { margin-top: 10px; font-size: 0.88rem; color: var(--ink-700); line-height: 1.5; white-space: normal; }
@media (max-width: 900px) { .faq-item { flex: 1 1 100%; } .faq-item summary { white-space: normal; } }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--cream-100);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-4) 0;
}
.cta-banner .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.cta-banner-text { display: flex; align-items: center; gap: 14px; }
.cta-banner-text svg { width: 30px; height: 30px; stroke: var(--gold-500); flex-shrink: 0; }
.cta-banner h3 { font-size: 1.4rem; }
.cta-banner-btns { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.cta-banner.dark { background: var(--green-900); border: none; }
.cta-banner.dark h3, .cta-banner.dark p { color: var(--white); }
.cta-banner.dark svg { stroke: var(--gold-400); }

/* ---------- Consultation package cards ---------- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  padding-bottom: var(--space-4);
}
.package-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.package-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 151, 62, 0.55);
  box-shadow: 0 18px 38px rgba(27, 74, 52, 0.15);
}
.package-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--cream-100);
  position: relative;
}
.package-card-img::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to top, rgba(22, 59, 41, 0.22), transparent);
  pointer-events: none;
}
.package-card-img img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transition: transform 0.55s ease; }
.package-card:hover .package-card-img img { transform: scale(1.045); }
.package-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.package-card .pkg-index {
  position: absolute;
  right: 18px;
  top: -22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-800);
  color: var(--gold-400);
  border: 3px solid var(--white);
  box-shadow: 0 5px 14px rgba(22, 59, 41, 0.2);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
}
.package-card h4 { font-size: 1.22rem; margin: 2px 54px 9px 0; line-height: 1.25; min-height: 2.5em; }
.package-card .pkg-duration { display: flex; align-items: center; gap: 6px; font-size: 0.83rem; color: var(--ink-500); margin-bottom: 16px; }
.package-card .pkg-duration svg { width: 15px; height: 15px; color: var(--gold-600); }
.package-card .pkg-price { margin-top: auto; margin-bottom: 14px; padding-top: 13px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.package-card .pkg-price .strike { text-decoration: line-through; color: var(--ink-500); font-size: 0.85rem; }
.package-card .pkg-price .now { font-family: var(--font-display); font-weight: 700; color: var(--green-800); font-size: 1.3rem; }
.package-card .btn { padding: 10px 16px; font-size: 0.86rem; }
@media (max-width: 1080px) { .packages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .packages-grid { grid-template-columns: 1fr; }
  .package-card-img { aspect-ratio: 16 / 10; }
  .package-card-body { padding: 18px; }
  .package-card h4 { min-height: 0; font-size: 1.15rem; }
}

/* ---------- Appointment booking prototype ---------- */
.booking-prototype { padding: var(--space-6) 0; background: linear-gradient(180deg, #f5efe4 0%, var(--cream-050) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.booking-heading { max-width: 760px; margin-inline: auto; }
.prototype-label { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-600); font: 700 0.7rem var(--font-nav); letter-spacing: 0.14em; margin-bottom: 8px; }
.prototype-label::before { content: ''; width: 22px; height: 1px; background: var(--gold-500); }
.booking-shell { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr); gap: var(--space-3); align-items: start; min-width: 0; }
.booking-calendar, .booking-summary, .doctor-demo { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 32px rgba(27, 74, 52, 0.08); }
.booking-calendar { padding: 26px; min-width: 0; }
.booking-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.booking-panel-head h3, .booking-summary h3 { margin: 3px 0 0; font-size: 1.22rem; }
.booking-step { color: var(--gold-600); font: 700 0.68rem var(--font-nav); text-transform: uppercase; letter-spacing: 0.1em; }
.slot-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--ink-500); font-size: 0.72rem; }
.slot-legend span { display: flex; align-items: center; gap: 5px; }
.slot-legend i { width: 9px; height: 9px; border-radius: 50%; }
.slot-legend .available { background: #dfeee5; border: 1px solid #6e9b82; }
.slot-legend .pending { background: #dedede; border: 1px solid #aaa; }
.slot-legend .booked { background: var(--green-800); }
.booking-dates { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(7, minmax(68px, 1fr)); gap: 8px; margin: 20px 0 28px; overflow-x: auto; padding-bottom: 4px; }
.date-option { min-width: 68px; border: 1px solid var(--line); background: var(--cream-050); border-radius: 11px; padding: 10px 6px; color: var(--ink-700); cursor: pointer; transition: 0.2s ease; }
.date-option span, .date-option strong, .date-option small { display: block; }
.date-option span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); }
.date-option strong { font: 700 1.35rem var(--font-display); margin: 1px 0; }
.date-option small { font-size: 0.68rem; color: var(--ink-500); }
.date-option:hover, .date-option.active { color: var(--white); border-color: var(--green-800); background: var(--green-800); box-shadow: 0 6px 14px rgba(27, 74, 52, 0.2); }
.date-option.active span, .date-option.active small { color: #d9e5de; }
.slot-title { padding-top: 20px; border-top: 1px solid var(--line); }
.clinic-hours { color: var(--ink-500); font-size: 0.78rem; }
.booking-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 17px; }
.time-slot { position: relative; min-height: 47px; border: 1px solid #cfdcd4; background: #f7fbf8; color: var(--green-800); border-radius: 9px; font: 700 0.83rem var(--font-nav); cursor: pointer; transition: 0.2s ease; }
.time-slot:hover:not(:disabled), .time-slot.selected { background: var(--green-800); color: var(--white); border-color: var(--green-800); transform: translateY(-2px); }
.time-slot:disabled { cursor: not-allowed; color: #8c918e; background: #e8e9e8; border-color: #dedfde; }
.time-slot[data-status="booked"] { color: #cdd9d3; background: #49695a; border-color: #49695a; }
.time-slot small { display: block; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.booking-summary { padding: 26px; position: sticky; top: 110px; }
.selected-appointment { display: flex; gap: 12px; align-items: center; padding: 14px; margin: 17px 0; border-radius: 11px; background: var(--cream-100); border: 1px solid var(--line); }
.selected-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--green-800); color: var(--gold-400); font-size: 1.2rem; }
.selected-appointment small, .selected-appointment strong, .selected-appointment em { display: block; }
.selected-appointment small { color: var(--gold-600); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; }
.selected-appointment strong { font-size: 0.9rem; margin: 2px 0; }
.selected-appointment em { color: var(--ink-500); font-size: 0.72rem; font-style: normal; }
.booking-summary form { display: grid; gap: 12px; }
.booking-summary label { color: var(--ink-700); font-size: 0.78rem; font-weight: 600; }
.booking-summary input, .booking-summary select { width: 100%; margin-top: 5px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink-700); font: 0.82rem var(--font-nav); outline: none; }
.booking-summary input:focus, .booking-summary select:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(35, 90, 64, 0.1); }
.booking-submit { width: 100%; justify-content: center; margin-top: 2px; }
.booking-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.booking-note { margin: 0; text-align: center; color: var(--ink-500); font-size: 0.67rem; }
.booking-success { text-align: center; padding: 20px 10px 8px; }
.booking-success span { width: 48px; height: 48px; margin: 0 auto 8px; display: grid; place-items: center; background: #e1efe6; color: var(--green-700); border-radius: 50%; font-size: 1.4rem; }
.booking-success h4 { margin-bottom: 5px; }
.booking-success p { color: var(--ink-500); font-size: 0.8rem; }
.doctor-demo { margin-top: var(--space-3); overflow: hidden; }
.doctor-demo summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 20px; cursor: pointer; color: var(--green-800); font-weight: 700; }
.doctor-demo summary small { color: var(--ink-500); font-weight: 400; }
.doctor-demo-body { display: grid; grid-template-columns: 1fr 2fr; gap: 22px; padding: 20px; border-top: 1px solid var(--line); background: var(--cream-050); }
.doctor-demo-body h4 { margin-bottom: 4px; }
.doctor-demo-body p { color: var(--ink-500); font-size: 0.78rem; }
.doctor-requests { display: grid; gap: 8px; }
.doctor-request { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: 10px; }
.doctor-request strong, .doctor-request small { display: block; }
.doctor-request small { color: var(--ink-500); font-size: 0.68rem; }
.doctor-request .request-actions { margin-left: auto; display: flex; gap: 6px; }
.doctor-request button { border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; background: var(--white); color: var(--green-800); font: 700 0.7rem var(--font-nav); cursor: pointer; }
.doctor-request .approve { color: var(--white); background: var(--green-800); border-color: var(--green-800); }
.empty-requests { color: var(--ink-500); font-size: 0.78rem; padding: 14px; text-align: center; border: 1px dashed var(--line); border-radius: 9px; }
@media (max-width: 960px) {
  .booking-shell { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .booking-dates { grid-template-columns: repeat(7, 78px); }
}
@media (max-width: 640px) {
  .booking-prototype { padding: var(--space-5) 0; }
  .booking-calendar, .booking-summary { padding: 18px; }
  .booking-panel-head { align-items: flex-start; flex-direction: column; }
  .booking-slots { grid-template-columns: repeat(3, 1fr); }
  .doctor-demo summary { align-items: flex-start; flex-direction: column; }
  .doctor-demo-body { grid-template-columns: 1fr; }
  .doctor-request { align-items: flex-start; flex-wrap: wrap; }
  .doctor-request .request-actions { width: 100%; margin-left: 0; }
}

/* ---------- Two side-by-side boxed sections (e.g. Booking Works / Consultation Modes) ---------- */
.dual-box-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); padding-bottom: var(--space-4); }
.boxed-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream-100);
  padding: var(--space-3);
}
.boxed-section h3 { text-align: center; font-size: 1.15rem; margin-bottom: var(--space-3); }
.boxed-section .boxed-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.boxed-item { display: flex; align-items: flex-start; gap: 10px; }
.boxed-item .icon-circle { width: 42px; height: 42px; background: var(--white); flex-shrink: 0; }
.boxed-item .icon-circle svg { width: 19px; height: 19px; }
.boxed-item .step-num { width: 26px; height: 26px; font-size: 0.8rem; flex-shrink: 0; }
.boxed-item h5 { font-size: 0.88rem; margin-bottom: 3px; }
.boxed-item p { font-size: 0.76rem; color: var(--ink-500); line-height: 1.35; }
.booking-work-step { padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.66); border: 1px solid rgba(201,151,62,0.16); }
.booking-work-step .icon-circle { width: 48px; height: 48px; background: var(--green-800); border-color: var(--green-800); box-shadow: 0 6px 14px rgba(27,74,52,0.15); }
.booking-work-step .icon-circle svg { width: 22px; height: 22px; stroke: var(--gold-400); }
.booking-work-step small { display: block; color: var(--gold-600); font: 700 0.6rem var(--font-nav); letter-spacing: 0.1em; margin-bottom: 3px; }
@media (max-width: 900px) { .dual-box-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .boxed-section .boxed-items { grid-template-columns: 1fr; } }

/* ---------- Numbered steps row ---------- */
.steps-section { padding: var(--space-4) 0; }
.steps-row { display: grid; gap: var(--space-3); }
.steps-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.steps-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.step-card {
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.step-card p { font-size: 0.82rem; color: var(--ink-500); line-height: 1.4; }
@media (max-width: 1080px) { .steps-row.cols-4, .steps-row.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-row.cols-4, .steps-row.cols-3 { grid-template-columns: 1fr; } }

/* ---------- Modes / feature icon grid (icon over text, no card bg) ---------- */
.icon-feature-grid { display: grid; gap: var(--space-3); padding: var(--space-4) 0; }
.icon-feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.icon-feature-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.icon-feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.icon-feature-grid.compact-grid { padding: 0; }
.icon-feature {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream-100);
  padding: var(--space-3);
  text-align: center;
}
.icon-feature .icon-circle { margin: 0 auto 10px; width: 52px; height: 52px; background: var(--white); }
.icon-feature .icon-circle svg { width: 24px; height: 24px; }
.icon-feature h4 { font-size: 0.92rem; margin-bottom: 4px; }
.icon-feature p { font-size: 0.78rem; color: var(--ink-500); line-height: 1.35; }
@media (max-width: 1080px) { .icon-feature-grid.cols-3, .icon-feature-grid.cols-4, .icon-feature-grid.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .icon-feature-grid.cols-4, .icon-feature-grid.cols-5 { grid-template-columns: repeat(2, 1fr); } .icon-feature-grid.cols-3 { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.blog-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: var(--space-4); padding-bottom: var(--space-5); align-items: start; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.blog-card {
  display: block;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(27, 74, 52, 0.14); }
.blog-card:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.blog-card-img { height: 190px; overflow: hidden; background: var(--cream-100); }
.blog-card-img img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: var(--space-2); }
.blog-card h3 { font-size: 0.98rem; line-height: 1.3; margin-bottom: 6px; }
.blog-card p { font-size: 0.82rem; color: var(--ink-500); line-height: 1.4; margin-bottom: 10px; }
.blog-meta { display: flex; gap: 14px; font-size: 0.72rem; color: var(--ink-500); }
.blog-meta span { display: flex; align-items: center; gap: 4px; }
.blog-meta svg { width: 13px; height: 13px; }
.blog-sidebar { display: flex; flex-direction: column; gap: var(--space-3); }
.sidebar-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--cream-100); padding: var(--space-3); }
.sidebar-card h3 { font-size: 1.18rem; margin: 3px 0 7px; }
.category-card { padding: 22px 18px 18px; background: var(--white); box-shadow: var(--shadow-card); }
.sidebar-eyebrow { color: var(--gold-600); font: 700 0.65rem var(--font-nav); letter-spacing: 0.15em; }
.category-intro { color: var(--ink-500); font-size: 0.78rem; line-height: 1.45; margin: 0 0 17px; }
.cat-list { display: flex; flex-direction: column; gap: 7px; }
.cat-list a { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; min-height: 58px; padding: 8px 9px; border: 1px solid transparent; border-radius: 11px; color: var(--ink-700); transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.cat-list a:hover { background: var(--cream-100); border-color: var(--line); transform: translateX(3px); }
.cat-list a.active { background: var(--green-800); border-color: var(--green-800); color: var(--white); box-shadow: 0 7px 16px rgba(27, 74, 52, 0.18); }
.cat-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--cream-100); color: var(--green-800); border: 1px solid var(--line); font-size: 1rem; }
.cat-list a.active .cat-icon { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.2); color: var(--gold-400); }
.cat-name { font-size: 0.84rem; font-weight: 700; line-height: 1.2; }
.cat-name small { display: block; margin-top: 3px; color: var(--ink-500); font-size: 0.66rem; font-weight: 400; }
.cat-list a.active .cat-name small { color: rgba(255,255,255,0.7); }
.cat-list a .count { min-width: 27px; text-align: center; background: var(--cream-100); border: 1px solid var(--line); border-radius: 999px; font-size: 0.68rem; padding: 3px 7px; color: var(--ink-500); }
.cat-list a.active .count { color: var(--white); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); }
.category-rail {
  margin-top: var(--space-4);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.blog-page-container {
  width: 100%;
  max-width: none;
  padding-left: clamp(16px, 2.5vw, 48px);
  padding-right: clamp(16px, 2.5vw, 48px);
}
.category-rail-heading { min-width: 150px; }
.category-rail-heading h3 { margin-bottom: 0; white-space: nowrap; }
.category-rail .cat-list {
  flex: 1;
  min-width: 0;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px 7px;
  scrollbar-width: thin;
}
@media (min-width: 1200px) {
  .category-rail .cat-list {
    justify-content: space-between;
    overflow-x: visible;
    scrollbar-width: none;
  }
  .category-rail .cat-list::-webkit-scrollbar { display: none; }
}
.category-rail .cat-list a {
  flex: 0 0 auto;
  display: flex;
  grid-template-columns: none;
  min-height: 44px;
  padding: 5px 9px 5px 6px;
  gap: 7px;
  border-color: var(--line);
  background: var(--cream-050);
  border-radius: 999px;
}
.category-rail .cat-list a:hover { transform: translateY(-1px); }
.category-rail .cat-list a.active { background: var(--green-800); border-color: var(--green-800); }
.category-rail .cat-icon { width: 32px; height: 32px; border-radius: 50%; }
.category-rail .cat-name { white-space: nowrap; font-size: 0.76rem; }
.category-rail .count { min-width: 23px; padding: 2px 6px; }
.blog-card[hidden] { display: none; }
.featured-case { background: var(--green-900); color: var(--white); }
.featured-case svg { width: 22px; height: 22px; stroke: var(--gold-400); margin-bottom: 8px; }
.featured-case h3 { color: var(--white); font-size: 1rem; }
.featured-case p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin: 8px 0 12px; }
.featured-case-person { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.featured-case-person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-400); }
.featured-case .card-link { color: var(--gold-400); font-size: 0.85rem; }
@media (max-width: 1080px) { .blog-layout { grid-template-columns: 1fr; } .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .category-rail { margin-top: 20px; padding: 13px 12px 8px; display: block; }
  .category-rail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 5px 7px; }
  .category-rail-heading h3 { font-size: 1rem; }
  .category-rail .cat-list { margin: 0 -2px; }
  .blog-layout[style] { padding-top: 24px !important; }
}

.newsletter-strip {
  background: var(--cream-100);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.newsletter-strip .container { display: grid; grid-template-columns: minmax(280px, 1fr) auto; align-items: center; gap: 32px; }
.newsletter-strip-text { display: flex; align-items: center; gap: 14px; }
.newsletter-strip-text .icon-circle { background: var(--white); flex-shrink: 0; }
.newsletter-strip-text .icon-circle svg { width: 20px; height: 20px; }
.newsletter-strip h4 { font-size: 1.05rem; }
.newsletter-strip p { font-size: 0.82rem; color: var(--ink-500); }
.newsletter-form { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.newsletter-form-row { display: flex; gap: 8px; }
.newsletter-form input[type="email"] {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-width: 260px;
  background: var(--white);
}
.newsletter-form small { font-size: 0.7rem; color: var(--ink-500); display: flex; align-items: center; gap: 5px; }
.newsletter-form small svg { width: 14px; height: 14px; flex: 0 0 14px; stroke-width: 1.8; }
@media (max-width: 760px) {
  .newsletter-strip .container { grid-template-columns: 1fr; gap: 18px; }
  .newsletter-form { align-items: stretch; }
  .newsletter-form-row { width: 100%; }
  .newsletter-form input[type="email"] { min-width: 0; flex: 1; }
}
@media (max-width: 460px) {
  .newsletter-form-row { flex-direction: column; }
  .newsletter-form-row .btn { justify-content: center; }
}

/* ---------- Contact page ---------- */
.contact-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); padding: var(--space-4) 0; }
.contact-info-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--cream-100); padding: var(--space-3); }
.contact-info-card .icon-circle { margin-bottom: 10px; background: var(--white); }
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 6px; }
.contact-info-card p, .contact-info-card a { font-size: 0.85rem; color: var(--ink-700); line-height: 1.45; }
.contact-info-card .divider-sm { border: none; border-top: 1px solid var(--line); margin: 8px 0; }

.contact-main-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: var(--space-3); padding-bottom: var(--space-4); align-items: start; }
.map-embed { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--cream-100); min-height: 300px; }
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }
.whatsapp-cta-card {
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--cream-100);
  padding: var(--space-3); text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.whatsapp-cta-card .wa-icon { width: 52px; height: 52px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; }
.whatsapp-cta-card .wa-icon svg { width: 26px; height: 26px; fill: white; }
.whatsapp-cta-card h4 { font-size: 1rem; }
.whatsapp-cta-card p { font-size: 0.85rem; color: var(--ink-500); }

.contact-form-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--cream-100); padding: var(--space-3); }
.contact-form-card h3 { margin-bottom: var(--space-2); }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--ink-700);
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form .form-note { font-size: 0.75rem; color: var(--ink-500); display: flex; align-items: center; gap: 6px; }
.contact-form .form-note svg { width: 14px; height: 14px; }

.bottom-strip { background: var(--cream-100); border-top: 1px solid var(--line); padding: var(--space-3) 0; }
.bottom-strip .container { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.bottom-strip-item { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; }
.bottom-strip-item .icon-circle { background: var(--white); flex-shrink: 0; }
.bottom-strip-item h5 { font-size: 0.92rem; margin-bottom: 2px; }
.bottom-strip-item p, .bottom-strip-item a { font-size: 0.8rem; color: var(--ink-500); }
.bottom-strip-divider { width: 1px; background: var(--line); align-self: stretch; }
@media (max-width: 1080px) {
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-main-grid { grid-template-columns: 1fr; }
  .bottom-strip-divider { display: none; }
}
@media (max-width: 640px) { .contact-info-grid { grid-template-columns: 1fr; } }

/* ---------- Service detail template (e.g. Nadi Pariksha) ---------- */
.dosha-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); padding-bottom: var(--space-4); }
.dosha-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--cream-100); padding: var(--space-3); text-align: center; }
.dosha-card .dot { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; }
.dosha-card .dot svg { width: 20px; height: 20px; stroke: white; }
.dosha-card.vata .dot { background: #6FA8D8; }
.dosha-card.pitta .dot { background: #E08A3C; }
.dosha-card.kapha .dot { background: #7FA05C; }
.dosha-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.dosha-card p { font-size: 0.85rem; color: var(--ink-500); line-height: 1.5; }
@media (max-width: 760px) { .dosha-grid { grid-template-columns: 1fr; } }

.benefits-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); padding-bottom: var(--space-4); }
.benefit-item { display: flex; gap: 12px; align-items: flex-start; }
.benefit-item .icon-circle { flex-shrink: 0; background: var(--cream-100); }
.benefit-item h5 { font-size: 0.92rem; margin-bottom: 4px; }
.benefit-item p { font-size: 0.8rem; color: var(--ink-500); line-height: 1.4; }
@media (max-width: 760px) { .benefits-row { grid-template-columns: 1fr; } }

.detail-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-3); padding-bottom: var(--space-4); align-items: start; }
.testimonial-box { border-left: 3px solid var(--gold-500); background: var(--cream-100); border-radius: var(--radius-sm); padding: var(--space-3); font-style: italic; color: var(--ink-700); font-size: 0.95rem; line-height: 1.6; }
.testimonial-box cite { display: block; margin-top: 10px; font-style: normal; font-weight: 600; color: var(--green-800); font-size: 0.85rem; }
.booking-cta-card { border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); padding: var(--space-3); text-align: center; position: relative; overflow: hidden; }
.booking-cta-card img { width: 100%; border-radius: var(--radius-sm); margin-bottom: var(--space-2); height: 130px; object-fit: cover; }
.booking-cta-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
@media (max-width: 900px) { .detail-split { grid-template-columns: 1fr; } }

/* ---------- Symptom checklist (condition landing pages) ---------- */
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; padding-bottom: var(--space-4); }
.check-list-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--ink-700); }
.check-list-item svg { width: 18px; height: 18px; stroke: var(--gold-600); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 640px) { .check-list { grid-template-columns: 1fr; } }

/* ---------- Condition page intro (two-column: prose + quick-facts card) ---------- */
.condition-intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-4); padding: var(--space-5) 0; align-items: start; }
.condition-intro p { color: var(--ink-700); line-height: 1.7; margin-bottom: 14px; font-size: 0.98rem; }
.quick-facts-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--cream-100); padding: var(--space-3); }
.quick-facts-card h4 { font-size: 1rem; margin-bottom: var(--space-2); text-align: center; }
.quick-facts-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.quick-facts-card li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.quick-facts-card li:last-child { border-bottom: none; padding-bottom: 0; }
.quick-facts-card li strong { color: var(--green-800); font-weight: 600; }
@media (max-width: 900px) { .condition-intro { grid-template-columns: 1fr; } }

/* ---------- Rich sitemap footer (Pain Management / Specialties / Quick Links / Resources / Contacts) ---------- */
.footer-sitemap {
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: var(--space-4) 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: var(--space-3);
}
.footer-sitemap-col h5 { color: var(--gold-400); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; font-family: var(--font-nav); font-weight: 600; }
.footer-sitemap-col p { color: rgba(255,255,255,0.65); font-size: 0.82rem; line-height: 1.6; }
.footer-sitemap-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-sitemap-col a { color: rgba(255,255,255,0.75); font-size: 0.82rem; line-height: 1.4; }
.footer-sitemap-col a:hover { color: var(--gold-400); }
@media (max-width: 1080px) { .footer-sitemap { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .footer-sitemap { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Legal / prose pages (Privacy Policy, Terms) ---------- */
.legal-content { max-width: 780px; margin: 0 auto; padding: var(--space-5) 0 var(--space-6); }
.legal-content h2 { font-size: 1.3rem; color: var(--green-800); margin: var(--space-4) 0 10px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--ink-700); line-height: 1.7; margin-bottom: 14px; font-size: 0.96rem; }
.legal-content ul { margin: 0 0 14px 22px; color: var(--ink-700); line-height: 1.7; font-size: 0.96rem; }
.legal-content .updated-note { color: var(--ink-500); font-size: 0.85rem; margin-bottom: var(--space-3); }

/* Reply from the TCOS booking connection. */
.form-reply {
  padding: 11px 14px; border-radius: 8px; font-size: .88rem; line-height: 1.5;
}
.form-reply.ok { background: #e9f6ef; color: #1f6b4d; border: 1px solid #cbe8d9; }
.form-reply.bad { background: #fdeeee; color: #a53232; border: 1px solid #f2d2d2; }
