/* ============================================
   DEMO1 INNER PAGES CSS
   DO NOT put landing page styles here.
   Loaded AFTER style.css in base.html.
   ============================================ */

/* ---------- UTILITIES ---------- */
.inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 60px 0; }
.section--gray { background: #f8f9fa; }
.section--light-blue { background: #f0f7fb; }
.section-label { display: none; }
.section-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}
.section-underline {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin-bottom: 25px;
}
.section-underline--center { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.two-col { display: flex; gap: 40px; align-items: flex-start; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.two-col > * { flex: 1 1 0; min-width: 0; }
.two-col__left { flex: 1; }
.two-col__right { flex: 1; }
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-orange {
  display: inline-block;
  background: #d35400;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-orange:hover { background: #b94700; }
.cmh-clear-sig {
  background: #6c757d !important;
  margin-top: 0.25rem;
  padding: 4px 12px;
  font-size: 0.875rem;
  border-radius: 4px;
}
.cmh-clear-sig:hover {
  background: #5a6268 !important;
}

/* ---------- PAGE BANNER ---------- */
.page-banner {
  position: relative;
  height: 240px;
  background-size: cover;
  background-position: center top; /* #2: bias to top so faces/subjects near the top aren't cropped */
  overflow: hidden;
}
/* R2 (2026-07): the .quicklinks band (style.css `.quicklinks{margin-top:-30px}`) overlays
   the banner's bottom ~30px; the base `center top` top-anchors the image so a mid-image
   subject hid under the band. Center the composition in the visible strip above the band
   for the general-medical styles that keep the overlap. (style4 handled in its own bundle,
   background only; styles 5/6/7 reset the overlap so they don't need this.) Founder
   live-tunes the exact %. */
body.style-style1 .page-banner,
body.style-style3 .page-banner { background-position: center 40%; }

/* R5 (2026-07): the demo "This is a Demo Site" <p> set its pre-CTA gap via an inline
   style="" which the platform CSP (no 'unsafe-inline' for style-src) drops, collapsing
   the spacing. This class restores the gap CSP-safely. Applied in each demo contact block. */
.demo-notice__text { margin: 0 0 20px 0; line-height: 1.6; }

.page-banner__overlay { display: none; }
.page-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-banner__title {
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.65), 0 1px 4px rgba(0,0,0,0.5);
  margin: 0;
}

/* ---------- ABOUT PAGE ---------- */
.about__hero {
  padding: 60px 0;
}
.about__hero .two-col {
  /* Phase O.HOTFIX.2 2026-05-30: flex-start so image top aligns with subhead.
     Was 'center' which vertically centered the shorter image col within the
     taller text col, pushing image far below subhead. Affects all styles
     (style1 + style2 + style1-fork tenants); style2's overrides has its own
     redundant flex-start !important from O.HOTFIX (harmless after this flip). */
  align-items: flex-start;
}
.about__hero .two-col__left {
  flex: 0.45;
}
.about__hero .two-col__right {
  flex: 0.55;
}
.about__heading {
  font-family: 'Raleway', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  line-height: 1.3;
}
.about__subheading {
  font-family: 'Raleway', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.3;
}
.about__cta-text {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 15px;
}
.about__text p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 15px;
}
.about__bullets {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.about__bullets li {
  padding: 8px 0 8px 30px;
  position: relative;
  color: #333;
  font-weight: 500;
  font-size: 15px;
}
.about__bullets li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.about__image img {
  width: 100%;
  display: block;
}

/* ---------- SERVICE CARDS GRID ---------- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}
.service-card {
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}
.service-card__image {
  /* Hf-pdf-feedback-batch-C #5: aspect-ratio clamp prevents AI-gen images
     with varying aspects from causing card layout 'jumping' across tabs.
     Pair with height:auto per feedback_css_aspect_ratio_height_auto_trap. */
  position: relative;
  aspect-ratio: 4 / 3;
  height: auto;
  overflow: hidden;
}
.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card__icon {
  display: none;
  position: absolute;
  bottom: -22px;
  left: 20px;
  width: 55px;
  height: 55px;
  background: #fff;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  object-fit: contain;
}
.service-card__content {
  padding: 20px;
  flex: 1;
}
.service-card__name {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}
.service-card__desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.service-card__link {
  display: block;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #333;
  padding: 10px 18px;
  transition: background 0.3s, color 0.3s;
  text-align: center;
  margin: 0 20px 20px 20px;
}
.service-card__link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---------- DOCTOR CARDS (HORIZONTAL — service detail) ---------- */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.doctor-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.doctor-card__photo {
  width: 180px;
  flex-shrink: 0;
}
.doctor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doctor-card__info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.doctor-card__name {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}
.doctor-card__title {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}
.doctor-card__specialty {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 15px;
}
.doctor-card__cta {
  display: inline-block;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  text-align: center;
}
.doctor-card__cta:hover {
  background: var(--primary);
  color: #fff;
}

/* ---------- DOCTOR CARDS (CIRCULAR — team page) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* A8 (2026-07): a 4th doctor orphaned bottom-LEFT under the 3-col grid (grid
   left-aligns a lone last-row item). Flex-wrap + center makes the orphan center,
   mirroring style5 (styles/style5/overrides.css:737). Scoped to the styles that use
   the shared .team-grid with no bespoke layout — style1 (no bundle) and style4
   (includes style1's team template). style2 keeps its own grid, style3 is handled in
   its bundle (.doctor-grid), style7 deliberately uses repeat(4). */
body.style-style1 .team-grid,
body.style-style4 .team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
body.style-style1 .team-grid > .doctor-circle,
body.style-style4 .team-grid > .doctor-circle {
  flex: 1 1 280px;
  max-width: 360px;
}
.doctor-circle {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.doctor-circle__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  background: #e8f4fb;
}
.doctor-circle__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.doctor-circle__name {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.doctor-circle__underline {
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 18px;
}
.doctor-circle__cta {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--primary, var(--primary));
  background: transparent;
  color: var(--primary, var(--primary));
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: auto;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.doctor-circle__cta:hover {
  background: var(--primary, var(--primary));
  color: #fff;
  border-color: var(--primary, var(--primary));
}


/* ===== PATIENT FORMS GRID ===== */
.form-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: center;
}

.form-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.form-card:hover {
  box-shadow: 0 6px 24px rgba(0, 60, 90, 0.10);
  transform: translateY(-2px);
}

.form-card__desc-area {
  width: 100%;
  background: linear-gradient(160deg, #e8f4f8 0%, #cce8f0 100%);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  margin-bottom: 20px;
}

.form-card__desc {
  font-size: 14px;
  color: #1a4a6b;
  line-height: 1.6;
  margin: 0;
  font-style: normal;
}

.form-card__name {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 20px 10px;
  line-height: 1.4;
}

.form-card__underline {
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 20px;
}

.form-card__cta {
  display: block;
  width: calc(100% - 48px);
  padding: 10px 16px;
  border: 1.5px solid var(--primary, var(--primary));
  background: transparent;
  color: var(--primary, var(--primary));
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: auto;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.form-card__cta:hover {
  background: var(--primary, var(--primary));
  color: #fff;
  border-color: var(--primary, var(--primary));
}

@media (max-width: 900px) {
  .form-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .form-cards-grid { grid-template-columns: 1fr; }
}
/* ===== END PATIENT FORMS GRID ===== */

/* ---------- CTA BAR (team + appointment pages) ---------- */
.cta-bar {
  padding: 60px 0;
  background: #f8f9fa;
}
.cta-bar__heading {
  font-family: 'Raleway', sans-serif;
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: #333;
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.5;
}
.cta-bar__phone {
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.cta-bar__phone i {
  margin-right: 8px;
}

/* ---------- SERVICE DETAIL SIDEBAR ---------- */
/* Phase I 2026-05-30: switched from flex to grid with explicit grid-column
   so DOM order (main first, sidebar second) can drive mobile flow while
   desktop keeps sidebar-LEFT main-RIGHT visually. */
.service-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 50px 0;
  align-items: start;
  grid-auto-flow: dense; /* #7: backfill row-1/col-1 so the DOM-second sidebar sits beside the main column, not auto-placed to row 2 */
}
.service-sidebar {
  grid-column: 1;
}
.service-main {
  grid-column: 2;
}
@media (max-width: 900px) {
  .service-layout {
    grid-template-columns: 1fr;
  }
  .service-sidebar,
  .service-main {
    grid-column: auto;
  }
}
.service-sidebar__heading {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.service-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.service-sidebar__item {
  border-left: 3px solid #e0e0e0;
  transition: border-color 0.3s;
}
.service-sidebar__item.active {
  border-left-color: var(--primary);
}
.service-sidebar__item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.3s, background 0.3s;
}
.service-sidebar__item a:hover {
  color: var(--primary);
  background: #f8f9fa;
}
.service-sidebar__item.active a {
  color: var(--primary);
  font-weight: 600;
}
.service-sidebar__emergency {
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin-bottom: 25px;
  text-align: center;
}
.service-sidebar__emergency-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 10px;
}
.service-sidebar__emergency h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}
.service-sidebar__emergency p {
  color: #666;
  font-size: 15px;
}
.service-sidebar__hours {
  border: 1px solid #e0e0e0;
  padding: 20px;
}
.service-sidebar__hours h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-sidebar__hours-underline {
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin-bottom: 15px;
}
.service-sidebar__hours p {
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

.service-main { flex: 1; }
.service-main__image {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 25px;
}
.service-main__image img {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 4 / 3; /* #8: render portrait sources as a rectangular crop */
  object-fit: cover;
  height: auto; /* pair with aspect-ratio (css_aspect_ratio_height_auto_trap) */
}
.service-main__title {
  font-family: 'Raleway', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.service-main__content {
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
}
.service-main__subservices { margin-bottom: 40px; }
.service-main__subservice {
  padding: 15px 20px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.service-main__subservice:nth-child(odd) { background: #f8f9fa; }
.service-main__subservice:nth-child(even) { background: #fff; }

/* ---------- BLOG CARDS ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.blog-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.blog-card__image {
  height: 220px;
  overflow: hidden;
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__content { padding: 25px; }
.blog-card__title {
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.blog-card__title a {
  color: #333;
  text-decoration: none;
}
.blog-card__title a:hover { color: var(--primary); }
.blog-card__excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
}
.blog-card__meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}
.blog-card__link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.blog-card__link:hover { text-decoration: underline; }

/* ---------- BLOG DETAIL ---------- */
.blog-featured {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}
.blog-featured img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.blog-article h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}
.blog-article__body {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}
.blog-article__body h3,
.blog-article__body h4 {
  color: #333;
  margin: 25px 0 10px;
}
.blog-article__body p {
  margin-bottom: 15px;
}

/* ---------- CONTACT PAGE ---------- */
.contact-map {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}
.contact-section { padding: 60px 0; }
.contact-form__group { margin-bottom: 1.75rem; }
.contact-form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  color: #333;
  transition: border-color 0.3s;
  box-sizing: border-box;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--primary);
  outline: none;
}
.contact-form__textarea {
  height: 130px;
  resize: vertical;
}
.contact-info__item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-info__icon {
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.contact-info__text {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- FAQ ACCORDION ---------- */
.faq-section { padding: 60px 0; }
.faq-accordion__item {
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
}
.faq-accordion__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  transition: background 0.3s, color 0.3s;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-accordion__item.active .faq-accordion__question {
  background: var(--primary);
  color: #fff;
}
.faq-accordion__icon { font-size: 18px; }
.faq-accordion__item.active .faq-accordion__icon::after { content: '\2212'; }
.faq-accordion__icon::after { content: '+'; }
.faq-accordion__answer {
  display: none;
  padding: 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}
.faq-accordion__item.active .faq-accordion__answer { display: block; }


/* ---------- DOCTOR DETAIL ---------- */
.doctor-profile { padding: 50px 0; }
.doctor-profile__card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: center;
  padding-bottom: 25px;
}
.doctor-profile__photo img { width: 100%; display: block; }
.doctor-profile__name {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 15px 0 5px;
}
.doctor-profile__spec { color: var(--primary); font-size: 15px; margin-bottom: 5px; }
.doctor-profile__degree { font-size: 14px; color: #666; }
.doctor-bio { margin-bottom: 30px; }
.doctor-bio h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.doctor-bio p { color: #666; line-height: 1.8; }
.doctor-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.doctor-table th {
  text-align: left;
  padding: 10px 15px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.doctor-table td {
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #555;
}
.doctor-table tr:nth-child(even) td { background: #f8f9fa; }
.doctor-personal {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 4px;
  margin-top: 25px;
}
.doctor-personal h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.doctor-personal__item {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.doctor-personal__icon { color: var(--primary); width: 20px; text-align: center; }

/* ---------- SHOP ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.product-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.product-card:hover { transform: translateY(-3px); }
.product-card__image { height: 220px; overflow: hidden; background: #f8f9fa; display: flex; align-items: center; justify-content: center; }
.product-card__image img { width: 100%; height: 220px; object-fit: contain; }
.product-card__content { padding: 20px; }
.product-card__name { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 8px; }
.product-card__price { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.product-card__rating { color: #f5a623; font-size: 14px; margin-bottom: 12px; }

/* ---------- INNER PAGE MOBILE RESPONSIVE ---------- */
@media (max-width: 768px) {
  .two-col { flex-direction: column; gap: 25px; }
  .about__hero .two-col__left,
  .about__hero .two-col__right { flex: 1; }
  .services-grid { gap: 15px; } .service-card { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
  /* #7: removed dead `.service-layout { flex-direction: column; }` — the layout is display:grid (flex-direction is inert); mobile stacking is handled by the max-width:900px grid-template-columns:1fr blocks above. */
  .service-sidebar { width: 100%; }
  .doctors-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .doctor-card { flex-direction: column; }
  .doctor-card__photo { width: 100%; height: 160px; }
  .blog-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .page-banner { height: 190px; }
  .page-banner__title { font-size: 24px; }
  .section { padding: 40px 0; }
  .section-heading { font-size: 26px; }
  /* Hf-pdf-feedback-batch-C #5: height:auto pairs with aspect-ratio at L192 (per feedback_css_aspect_ratio_height_auto_trap) */
  .service-card__image { height: auto; }
  .contact-map { height: 250px; }
  .cta-bar__heading { font-size: 22px; }
  .blog-article { max-width: 100%; padding: 30px 15px 40px; }
  .about__heading { font-size: 24px; }
  .about__subheading { font-size: 22px; }
}
@media (max-width: 480px) {
  .service-card { flex: 0 0 100%; max-width: 100%; }
  .team-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .inner-container { padding: 0 15px; }
}


/* ============================================================
   APPOINTMENT PICKER v48 — Complete calendar UI rewrite
   ============================================================ */

/* ===== Progress Indicator ===== */
.appt-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  padding: 20px 0;
}
.appt-progress__step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.appt-progress__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e9ecef;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.appt-progress__step.active .appt-progress__dot {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,84,133,0.3);
}
.appt-progress__step.completed .appt-progress__dot {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.appt-progress__label {
  font-size: 13px;
  color: #aaa;
  font-weight: 600;
  transition: color 0.3s;
}
.appt-progress__step.active .appt-progress__label {
  color: var(--primary);
}
.appt-progress__step.completed .appt-progress__label {
  color: var(--primary);
}
.appt-progress__line {
  width: 50px;
  height: 2px;
  background: #e0e0e0;
  margin: 0 10px;
  transition: background 0.3s;
}
.appt-progress__line.completed {
  background: var(--primary);
}

/* ===== Back Button ===== */
.appt-back {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 15px;
  margin-bottom: 20px;
  padding: 4px 0;
  font-family: inherit;
  font-weight: 500;
}
.appt-back:hover { text-decoration: underline; }

/* ===== Step 1: Type Cards (dark blue filled buttons) ===== */
.appt-type-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}
.appt-type-card {
  flex: 0 0 260px;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,84,133,0.2);
}
.appt-type-card:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,84,133,0.35);
}
.appt-type-card__icon {
  font-size: 28px;
  color: #fff;
  opacity: 0.9;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.appt-type-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.appt-type-card__title {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.appt-type-card__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* ===== Step 2: Doctor Grid ===== */
.appt-doctor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}
.appt-doctor-card {
  flex: 0 0 180px;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 25px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.appt-doctor-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(0,84,133,0.12);
}
.appt-doctor-card.selected {
  border-color: var(--primary);
  background: #f0f7fc;
  box-shadow: 0 4px 18px rgba(0,84,133,0.18);
}
.appt-doctor-card__photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 3px solid #e8e8e8;
  transition: border-color 0.25s;
}
.appt-doctor-card.selected .appt-doctor-card__photo {
  border-color: var(--primary);
}
.appt-doctor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.appt-doctor-card__name {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0 0 4px;
}
.appt-doctor-card__specialty {
  font-size: 12px;
  color: #888;
  margin: 0 0 10px;
}
.appt-doctor-card__select {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 20px;
  padding: 5px 20px;
  transition: all 0.25s;
}
.appt-doctor-card:hover .appt-doctor-card__select,
.appt-doctor-card.selected .appt-doctor-card__select {
  background: var(--primary);
  color: #fff;
}

/* ===== Step 2: Service Grid ===== */
.appt-service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}
.appt-service-card {
  flex: 0 0 220px;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
}
.appt-service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(0,84,133,0.12);
}
.appt-service-card.selected {
  border-color: var(--primary);
  background: #f0f7fc;
}
.appt-service-card__image {
  height: 130px;
  overflow: hidden;
}
.appt-service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.appt-service-card__name {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin: 12px 0 4px;
}
.appt-service-card__select {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 0 15px;
  transition: color 0.25s;
}
.appt-service-card.selected .appt-service-card__select {
  color: var(--primary);
  font-weight: 700;
}

/* ===== Step 3: Calendar + Times Layout ===== */
.appt-datetime {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

/* --- Calendar Container --- */
.appt-calendar {
  flex: 0 0 340px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.appt-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.appt-calendar__nav {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  transition: all 0.2s;
}
.appt-calendar__nav:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.appt-calendar__month {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #1a202c;
}

/* --- Weekday Headers --- */
.appt-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}
.appt-calendar__wday {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 0;
}

/* --- Day Cells Grid --- */
.appt-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

/* --- Individual Day Cell --- */
.appt-cal-cell {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: default;
  transition: all 0.15s ease;
  padding: 0;
  font-family: inherit;
  gap: 2px;
}
.appt-cal-cell--empty {
  visibility: hidden;
}
.appt-cal-cell__num {
  line-height: 1;
}
.appt-cal-cell--disabled {
  color: #cbd5e0;
  cursor: default;
}
.appt-cal-cell--available {
  color: #2d3748;
  cursor: pointer;
  font-weight: 500;
}
.appt-cal-cell--available:hover {
  background: #ebf5fb;
  color: var(--primary);
}
.appt-cal-cell--selected {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,84,133,0.3);
}
.appt-cal-cell--selected .appt-cal-cell__num {
  color: #fff;
}

/* Today: dot indicator below the number */
.appt-cal-cell--today {
  font-weight: 700;
}
.appt-cal-cell__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  display: block;
}
.appt-cal-cell--selected .appt-cal-cell__dot {
  background: #fff;
}

/* ===== Time Slots ===== */
.appt-times {
  flex: 1;
}
.appt-times__heading {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 6px;
}
.appt-times__hint {
  color: #a0aec0;
  font-size: 14px;
  margin: 0;
}
.appt-times__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Time pill buttons */
.appt-time-pill {
  padding: 10px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  color: #4a5568;
  font-weight: 500;
}
.appt-time-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f7fbfe;
}
.appt-time-pill--selected {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,84,133,0.3);
}

/* ===== Continue / Submit Button ===== */
.appt-btn-continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s ease;
}
.appt-btn-continue:hover {
  background: var(--primary-dark);
}
.appt-btn-continue:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

/* ===== Step 4: Confirm Layout ===== */
.appt-confirm-layout {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}
.appt-summary {
  flex: 0 0 280px;
  background: #f7fbfe;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
}
.appt-summary__heading {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.appt-summary__row {
  margin-bottom: 12px;
  font-size: 14px;
  color: #2d3748;
}
.appt-summary__label {
  font-weight: 600;
  color: #718096;
  display: inline-block;
  min-width: 72px;
}

/* ===== Step 4: Patient Form ===== */
.appt-form {
  flex: 1;
}
.appt-form__field {
  margin-bottom: 18px;
}
.appt-form__label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 6px;
  font-size: 14px;
}
.appt-form__input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  color: #2d3748;
  background: #fff;
}
.appt-form__input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,84,133,0.1);
}
.appt-form__input::placeholder {
  color: #a0aec0;
}
textarea.appt-form__input {
  resize: vertical;
}

/* ============================================================
   APPOINTMENT PICKER — Mobile Responsive
   ============================================================ */
@media (max-width: 768px) {
  .appt-progress__label { display: none; }
  .appt-progress__line { width: 20px; margin: 0 6px; }
  .appt-type-cards { flex-direction: column; align-items: center; gap: 12px; }
  .appt-type-card { flex: 0 0 auto; width: 100%; max-width: 340px; }
  .appt-doctor-card { flex: 0 0 calc(50% - 15px); }
  .appt-service-card { flex: 0 0 calc(50% - 15px); }
  .appt-datetime { flex-direction: column; gap: 25px; }
  .appt-calendar { flex: 0 0 auto; width: 100%; max-width: 370px; margin: 0 auto; }
  .appt-confirm-layout { flex-direction: column; gap: 20px; }
  .appt-summary { flex: 0 0 auto; }
}
@media (max-width: 480px) {
  .appt-doctor-card { flex: 0 0 100%; }
  .appt-service-card { flex: 0 0 100%; }
  .appt-calendar { max-width: 100%; padding: 16px; }
  .appt-progress__dot { width: 30px; height: 30px; font-size: 12px; }
  .appt-type-card { padding: 20px 18px; }
  .appt-cal-cell { font-size: 13px; }
  .appt-time-pill { padding: 8px 14px; font-size: 13px; }
}

/* ===== HOME PAGE: Center services grid (5 items in 6-col grid) ===== */
.dept-tabs {
  grid-template-columns: repeat(5, 1fr);
}
.departments__inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Gynecology slug: Update service detail route ===== */
/* No CSS needed — slug handled in DB */

/* ===== APPOINTMENT FIXES v49b ===== */

/* Time grid  fixed 4-col CSS grid so AM/PM lines up perfectly */
.appt-times__grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  flex-wrap: unset !important;
}

/* Time pills  fixed width, center-aligned text, Raleway font */
.appt-time-pill {
  font-family: 'Raleway', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  text-align: center !important;
  width: 100% !important;
  padding: 10px 8px !important;
  min-width: 0 !important;
}

/* Booking label  match site subhead style */
#appt-selection-label {
  font-family: 'Raleway', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--primary) !important;
  margin-bottom: 30px !important;
}

/* Mobile: 2 columns for time grid */
@media (max-width: 600px) {
  .appt-times__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.page-banner__title { position:absolute !important; width:1px !important; height:1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; }

/* -- Banner quick links (inner pages) -- */
/* DEPRECATED  page-banner QL moved to .quicklinks section  remove at v5 AMI bake

*/

/* ===== PATIENT FORMS GRID ===== */
.form-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: center;
}

.form-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.form-card:hover {
  box-shadow: 0 6px 24px rgba(0, 60, 90, 0.10);
  transform: translateY(-2px);
}

.form-card__desc-area {
  width: 100%;
  background: linear-gradient(160deg, #e8f4f8 0%, #cce8f0 100%);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  margin-bottom: 20px;
}

.form-card__desc {
  font-size: 14px;
  color: #1a4a6b;
  line-height: 1.6;
  margin: 0;
  font-style: normal;
}

.form-card__name {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 20px 10px;
  line-height: 1.4;
}

.form-card__underline {
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 20px;
}

.form-card__cta {
  display: block;
  width: calc(100% - 48px);
  padding: 10px 16px;
  border: 1.5px solid var(--primary, var(--primary));
  background: transparent;
  color: var(--primary, var(--primary));
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: auto;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.form-card__cta:hover {
  background: var(--primary, var(--primary));
  color: #fff;
  border-color: var(--primary, var(--primary));
}

@media (max-width: 900px) {
  .form-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .form-cards-grid { grid-template-columns: 1fr; }
}
/* ===== END PATIENT FORMS GRID ===== */

/* ---------- CTA BAR (team + appointment pages) ---------- */
.cta-bar {
  padding: 60px 0;
  background: #f8f9fa;
}
.cta-bar__heading {
  font-family: 'Raleway', sans-serif;
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: #333;
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.5;
}
.cta-bar__phone {
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.cta-bar__phone i {
  margin-right: 8px;
}

/* ---------- SERVICE DETAIL SIDEBAR ---------- */
/* Phase I 2026-05-30: switched from flex to grid with explicit grid-column
   so DOM order (main first, sidebar second) can drive mobile flow while
   desktop keeps sidebar-LEFT main-RIGHT visually. */
.service-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 50px 0;
  align-items: start;
  grid-auto-flow: dense; /* #7: backfill row-1/col-1 so the DOM-second sidebar sits beside the main column, not auto-placed to row 2 */
}
.service-sidebar {
  grid-column: 1;
}
.service-main {
  grid-column: 2;
}
@media (max-width: 900px) {
  .service-layout {
    grid-template-columns: 1fr;
  }
  .service-sidebar,
  .service-main {
    grid-column: auto;
  }
}
.service-sidebar__heading {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.service-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.service-sidebar__item {
  border-left: 3px solid #e0e0e0;
  transition: border-color 0.3s;
}
.service-sidebar__item.active {
  border-left-color: var(--primary);
}
.service-sidebar__item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.3s, background 0.3s;
}
.service-sidebar__item a:hover {
  color: var(--primary);
  background: #f8f9fa;
}
.service-sidebar__item.active a {
  color: var(--primary);
  font-weight: 600;
}
.service-sidebar__emergency {
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin-bottom: 25px;
  text-align: center;
}
.service-sidebar__emergency-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 10px;
}
.service-sidebar__emergency h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}
.service-sidebar__emergency p {
  color: #666;
  font-size: 15px;
}
.service-sidebar__hours {
  border: 1px solid #e0e0e0;
  padding: 20px;
}
.service-sidebar__hours h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-sidebar__hours-underline {
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin-bottom: 15px;
}
.service-sidebar__hours p {
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

.service-main { flex: 1; }
.service-main__image {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 25px;
}
.service-main__image img {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 4 / 3; /* #8: render portrait sources as a rectangular crop */
  object-fit: cover;
  height: auto; /* pair with aspect-ratio (css_aspect_ratio_height_auto_trap) */
}
.service-main__title {
  font-family: 'Raleway', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.service-main__content {
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
}
.service-main__subservices { margin-bottom: 40px; }
.service-main__subservice {
  padding: 15px 20px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.service-main__subservice:nth-child(odd) { background: #f8f9fa; }
.service-main__subservice:nth-child(even) { background: #fff; }

/* ---------- BLOG CARDS ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.blog-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.blog-card__image {
  height: 220px;
  overflow: hidden;
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__content { padding: 25px; }
.blog-card__title {
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.blog-card__title a {
  color: #333;
  text-decoration: none;
}
.blog-card__title a:hover { color: var(--primary); }
.blog-card__excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
}
.blog-card__meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}
.blog-card__link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.blog-card__link:hover { text-decoration: underline; }

/* ---------- BLOG DETAIL ---------- */
.blog-featured {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}
.blog-featured img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.blog-article h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}
.blog-article__body {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}
.blog-article__body h3,
.blog-article__body h4 {
  color: #333;
  margin: 25px 0 10px;
}
.blog-article__body p {
  margin-bottom: 15px;
}

/* ---------- CONTACT PAGE ---------- */
.contact-map {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}
.contact-section { padding: 60px 0; }
.contact-form__group { margin-bottom: 1.75rem; }
.contact-form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  color: #333;
  transition: border-color 0.3s;
  box-sizing: border-box;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--primary);
  outline: none;
}
.contact-form__textarea {
  height: 130px;
  resize: vertical;
}
.contact-info__item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-info__icon {
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.contact-info__text {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- FAQ ACCORDION ---------- */
.faq-section { padding: 60px 0; }
.faq-accordion__item {
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
}
.faq-accordion__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  transition: background 0.3s, color 0.3s;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-accordion__item.active .faq-accordion__question {
  background: var(--primary);
  color: #fff;
}
.faq-accordion__icon { font-size: 18px; }
.faq-accordion__item.active .faq-accordion__icon::after { content: '\2212'; }
.faq-accordion__icon::after { content: '+'; }
.faq-accordion__answer {
  display: none;
  padding: 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}
.faq-accordion__item.active .faq-accordion__answer { display: block; }


/* ---------- DOCTOR DETAIL ---------- */
.doctor-profile { padding: 50px 0; }
.doctor-profile__card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: center;
  padding-bottom: 25px;
}
.doctor-profile__photo img { width: 100%; display: block; }
.doctor-profile__name {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 15px 0 5px;
}
.doctor-profile__spec { color: var(--primary); font-size: 15px; margin-bottom: 5px; }
.doctor-profile__degree { font-size: 14px; color: #666; }
.doctor-bio { margin-bottom: 30px; }
.doctor-bio h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.doctor-bio p { color: #666; line-height: 1.8; }
.doctor-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.doctor-table th {
  text-align: left;
  padding: 10px 15px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.doctor-table td {
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #555;
}
.doctor-table tr:nth-child(even) td { background: #f8f9fa; }
.doctor-personal {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 4px;
  margin-top: 25px;
}
.doctor-personal h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.doctor-personal__item {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.doctor-personal__icon { color: var(--primary); width: 20px; text-align: center; }

/* ---------- SHOP ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.product-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.product-card:hover { transform: translateY(-3px); }
.product-card__image { height: 220px; overflow: hidden; background: #f8f9fa; display: flex; align-items: center; justify-content: center; }
.product-card__image img { width: 100%; height: 220px; object-fit: contain; }
.product-card__content { padding: 20px; }
.product-card__name { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 8px; }
.product-card__price { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.product-card__rating { color: #f5a623; font-size: 14px; margin-bottom: 12px; }

/* ---------- INNER PAGE MOBILE RESPONSIVE ---------- */
@media (max-width: 768px) {
  .two-col { flex-direction: column; gap: 25px; }
  .about__hero .two-col__left,
  .about__hero .two-col__right { flex: 1; }
  .services-grid { gap: 15px; } .service-card { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
  /* #7: removed dead `.service-layout { flex-direction: column; }` — the layout is display:grid (flex-direction is inert); mobile stacking is handled by the max-width:900px grid-template-columns:1fr blocks above. */
  .service-sidebar { width: 100%; }
  .doctors-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .doctor-card { flex-direction: column; }
  .doctor-card__photo { width: 100%; height: 160px; }
  .blog-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .page-banner { height: 190px; }
  .page-banner__title { font-size: 24px; }
  .section { padding: 40px 0; }
  .section-heading { font-size: 26px; }
  /* Hf-pdf-feedback-batch-C #5 */
  .service-card__image { height: auto; }
  .contact-map { height: 250px; }
  .cta-bar__heading { font-size: 22px; }
  .blog-article { max-width: 100%; padding: 30px 15px 40px; }
  .about__heading { font-size: 24px; }
  .about__subheading { font-size: 22px; }
}
@media (max-width: 480px) {
  .service-card { flex: 0 0 100%; max-width: 100%; }
  .team-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .inner-container { padding: 0 15px; }
}


/* ============================================================
   APPOINTMENT PICKER v48 — Complete calendar UI rewrite
   ============================================================ */

/* ===== Progress Indicator ===== */
.appt-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  padding: 20px 0;
}
.appt-progress__step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.appt-progress__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e9ecef;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.appt-progress__step.active .appt-progress__dot {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,84,133,0.3);
}
.appt-progress__step.completed .appt-progress__dot {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.appt-progress__label {
  font-size: 13px;
  color: #aaa;
  font-weight: 600;
  transition: color 0.3s;
}
.appt-progress__step.active .appt-progress__label {
  color: var(--primary);
}
.appt-progress__step.completed .appt-progress__label {
  color: var(--primary);
}
.appt-progress__line {
  width: 50px;
  height: 2px;
  background: #e0e0e0;
  margin: 0 10px;
  transition: background 0.3s;
}
.appt-progress__line.completed {
  background: var(--primary);
}

/* ===== Back Button ===== */
.appt-back {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 15px;
  margin-bottom: 20px;
  padding: 4px 0;
  font-family: inherit;
  font-weight: 500;
}
.appt-back:hover { text-decoration: underline; }

/* ===== Step 1: Type Cards (dark blue filled buttons) ===== */
.appt-type-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}
.appt-type-card {
  flex: 0 0 260px;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,84,133,0.2);
}
.appt-type-card:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,84,133,0.35);
}
.appt-type-card__icon {
  font-size: 28px;
  color: #fff;
  opacity: 0.9;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.appt-type-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.appt-type-card__title {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.appt-type-card__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* ===== Step 2: Doctor Grid ===== */
.appt-doctor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}
.appt-doctor-card {
  flex: 0 0 180px;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 25px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.appt-doctor-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(0,84,133,0.12);
}
.appt-doctor-card.selected {
  border-color: var(--primary);
  background: #f0f7fc;
  box-shadow: 0 4px 18px rgba(0,84,133,0.18);
}
.appt-doctor-card__photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 3px solid #e8e8e8;
  transition: border-color 0.25s;
}
.appt-doctor-card.selected .appt-doctor-card__photo {
  border-color: var(--primary);
}
.appt-doctor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.appt-doctor-card__name {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0 0 4px;
}
.appt-doctor-card__specialty {
  font-size: 12px;
  color: #888;
  margin: 0 0 10px;
}
.appt-doctor-card__select {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 20px;
  padding: 5px 20px;
  transition: all 0.25s;
}
.appt-doctor-card:hover .appt-doctor-card__select,
.appt-doctor-card.selected .appt-doctor-card__select {
  background: var(--primary);
  color: #fff;
}

/* ===== Step 2: Service Grid ===== */
.appt-service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}
.appt-service-card {
  flex: 0 0 220px;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
}
.appt-service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(0,84,133,0.12);
}
.appt-service-card.selected {
  border-color: var(--primary);
  background: #f0f7fc;
}
.appt-service-card__image {
  height: 130px;
  overflow: hidden;
}
.appt-service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.appt-service-card__name {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin: 12px 0 4px;
}
.appt-service-card__select {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 0 15px;
  transition: color 0.25s;
}
.appt-service-card.selected .appt-service-card__select {
  color: var(--primary);
  font-weight: 700;
}

/* ===== Step 3: Calendar + Times Layout ===== */
.appt-datetime {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

/* --- Calendar Container --- */
.appt-calendar {
  flex: 0 0 340px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.appt-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.appt-calendar__nav {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  transition: all 0.2s;
}
.appt-calendar__nav:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.appt-calendar__month {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #1a202c;
}

/* --- Weekday Headers --- */
.appt-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}
.appt-calendar__wday {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 0;
}

/* --- Day Cells Grid --- */
.appt-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

/* --- Individual Day Cell --- */
.appt-cal-cell {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: default;
  transition: all 0.15s ease;
  padding: 0;
  font-family: inherit;
  gap: 2px;
}
.appt-cal-cell--empty {
  visibility: hidden;
}
.appt-cal-cell__num {
  line-height: 1;
}
.appt-cal-cell--disabled {
  color: #cbd5e0;
  cursor: default;
}
.appt-cal-cell--available {
  color: #2d3748;
  cursor: pointer;
  font-weight: 500;
}
.appt-cal-cell--available:hover {
  background: #ebf5fb;
  color: var(--primary);
}
.appt-cal-cell--selected {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,84,133,0.3);
}
.appt-cal-cell--selected .appt-cal-cell__num {
  color: #fff;
}

/* Today: dot indicator below the number */
.appt-cal-cell--today {
  font-weight: 700;
}
.appt-cal-cell__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  display: block;
}
.appt-cal-cell--selected .appt-cal-cell__dot {
  background: #fff;
}

/* ===== Time Slots ===== */
.appt-times {
  flex: 1;
}
.appt-times__heading {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 6px;
}
.appt-times__hint {
  color: #a0aec0;
  font-size: 14px;
  margin: 0;
}
.appt-times__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Time pill buttons */
.appt-time-pill {
  padding: 10px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  color: #4a5568;
  font-weight: 500;
}
.appt-time-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f7fbfe;
}
.appt-time-pill--selected {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,84,133,0.3);
}

/* ===== Continue / Submit Button ===== */
.appt-btn-continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s ease;
}
.appt-btn-continue:hover {
  background: var(--primary-dark);
}
.appt-btn-continue:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

/* ===== Step 4: Confirm Layout ===== */
.appt-confirm-layout {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}
.appt-summary {
  flex: 0 0 280px;
  background: #f7fbfe;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
}
.appt-summary__heading {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.appt-summary__row {
  margin-bottom: 12px;
  font-size: 14px;
  color: #2d3748;
}
.appt-summary__label {
  font-weight: 600;
  color: #718096;
  display: inline-block;
  min-width: 72px;
}

/* ===== Step 4: Patient Form ===== */
.appt-form {
  flex: 1;
}
.appt-form__field {
  margin-bottom: 18px;
}
.appt-form__label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 6px;
  font-size: 14px;
}
.appt-form__input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  color: #2d3748;
  background: #fff;
}
.appt-form__input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,84,133,0.1);
}
.appt-form__input::placeholder {
  color: #a0aec0;
}
textarea.appt-form__input {
  resize: vertical;
}

/* ============================================================
   APPOINTMENT PICKER — Mobile Responsive
   ============================================================ */
@media (max-width: 768px) {
  .appt-progress__label { display: none; }
  .appt-progress__line { width: 20px; margin: 0 6px; }
  .appt-type-cards { flex-direction: column; align-items: center; gap: 12px; }
  .appt-type-card { flex: 0 0 auto; width: 100%; max-width: 340px; }
  .appt-doctor-card { flex: 0 0 calc(50% - 15px); }
  .appt-service-card { flex: 0 0 calc(50% - 15px); }
  .appt-datetime { flex-direction: column; gap: 25px; }
  .appt-calendar { flex: 0 0 auto; width: 100%; max-width: 370px; margin: 0 auto; }
  .appt-confirm-layout { flex-direction: column; gap: 20px; }
  .appt-summary { flex: 0 0 auto; }
}
@media (max-width: 480px) {
  .appt-doctor-card { flex: 0 0 100%; }
  .appt-service-card { flex: 0 0 100%; }
  .appt-calendar { max-width: 100%; padding: 16px; }
  .appt-progress__dot { width: 30px; height: 30px; font-size: 12px; }
  .appt-type-card { padding: 20px 18px; }
  .appt-cal-cell { font-size: 13px; }
  .appt-time-pill { padding: 8px 14px; font-size: 13px; }
}

/* ===== HOME PAGE: Center services grid (5 items in 6-col grid) ===== */
.dept-tabs {
  grid-template-columns: repeat(5, 1fr);
}
.departments__inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Gynecology slug: Update service detail route ===== */
/* No CSS needed — slug handled in DB */

/* ===== APPOINTMENT FIXES v49b ===== */

/* Time grid  fixed 4-col CSS grid so AM/PM lines up perfectly */
.appt-times__grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  flex-wrap: unset !important;
}

/* Time pills  fixed width, center-aligned text, Raleway font */
.appt-time-pill {
  font-family: 'Raleway', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  text-align: center !important;
  width: 100% !important;
  padding: 10px 8px !important;
  min-width: 0 !important;
}

/* Booking label  match site subhead style */
#appt-selection-label {
  font-family: 'Raleway', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--primary) !important;
  margin-bottom: 30px !important;
}

/* Mobile: 2 columns for time grid */
@media (max-width: 600px) {
  .appt-times__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.page-banner__title { position:absolute !important; width:1px !important; height:1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; }

/* -- Banner quick links (inner pages) -- */
.page-banner__quicklinks {
  flex-shrink: 0;
  background: var(--primary);
  z-index: 1;
}
.page-banner__quicklinks-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.page-banner__ql-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 32px;
  color: #fff;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s;
  justify-content: center;
}
.page-banner__ql-item:last-child { border-right: none; }
.page-banner__ql-item:hover { background: rgba(255,255,255,0.08); }
.page-banner__ql-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.page-banner__ql-text {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .page-banner__ql-item { padding: 14px 12px; gap: 8px; }
  .page-banner__ql-icon { font-size: 15px; }
  .page-banner__ql-text { font-size: 10px; letter-spacing: 0; }
}

/* section-intro: optional paragraph below page headings */
.section-intro {
  color: #555;
  font-size: 16px;
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
  line-height: 1.6;
}

/*  Patient form 2-col grid layout  */
.contact-form__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
}
.contact-form__group.field--full {
    grid-column: 1 / -1;
}
.contact-form__group.field--half {
    grid-column: span 1;
}
@media (max-width: 640px) {
    .contact-form__fields {
        grid-template-columns: 1fr;
    }
    .contact-form__group.field--half {
        grid-column: 1 / -1;
    }
}

/*  Patient Form Page Layout  */
.pf-page {
    padding: 3.75rem 0 5rem;
}

/* HIPAA notice  replaces old inline-styled box */
.pf-hipaa-note {
    font-size: 13px;
    color: #777;
    border-top: 1px solid #e8e8e8;
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 1.75rem;
}
.pf-hipaa-note i {
    color: var(--primary);
    margin-right: 5px;
}
.pf-hipaa-note strong {
    color: #444;
}

/* Form action bar  submit + back link */
.pf-form-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 3rem;
}
.pf-back-link {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
.pf-back-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/*  Patient Form Actions (submit bar)  */
.patient-form__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 3.5rem;
    margin-top: 0.5rem;
}
.patient-form__back {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
.patient-form__back:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Patient form HIPAA notice */
.patient-form__hipaa {
    font-size: 13px;
    color: #777;
    border-top: 1px solid #e8e8e8;
    padding-top: 1.25rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}
.patient-form__hipaa i { color: var(--primary); margin-right: 5px; }
.patient-form__hipaa strong { color: #444; }


/* Testimonial stars */
.testimonial__stars { margin-top: 10px; letter-spacing: 2px; }
.star--filled { color: #f5a623; font-size: 20px; }
.star--empty { color: #ddd; font-size: 20px; }
.testimonial__role { font-size: 13px; color: rgba(255,255,255,0.7); margin: 2px 0 8px; font-style: italic; }

/* Square integration */
.square-status { display:flex; align-items:center; gap:10px; margin-bottom:1.5rem; }
.square-badge-connected { color:#2e7d32; font-weight:600; }
.square-badge-connected::before { content:'● '; }
.square-badge-disconnected { color:#888; }
.square-badge-disconnected::before { content:'○ '; }
.square-webhook-url { font-family:monospace; font-size:13px; background:#f8f8f8; padding:8px 12px; border:1px solid #e0e0e0; width:100%; }
.square-token-masked { font-family:monospace; color:#888; font-size:13px; }
.square-last-sync { font-size:12px; color:#999; margin-top:6px; }


/* Shop buy button */
.product-buy-btn { display:block; margin-top:12px; text-align:center; text-decoration:none; }
/* Stock indicators */
.product-stock { display:inline-block; font-size:12px; font-weight:600; padding:3px 10px; border-radius:20px; margin-bottom:10px; }
.product-stock--out { background:#f5f5f5; color:#999; }
.product-stock--low { background:#fff3cd; color:#856404; }

/* ---- PRODUCT CARD RELIABILITY FIX ---- */
/* Ensure product cards are always visible regardless of JS animation state.
   This prevents invisible products when IntersectionObserver fails to trigger
   for below-fold items on pages with many products. */
.products-grid .product-card {
  opacity: 1 !important;
  transform: none !important;
}
/* Ensure product images are fully visible with padding, not cropped at edges */
.product-card__image {
  padding: 10px;
  box-sizing: border-box;
}
.product-card__image img {
  object-fit: contain !important;
  border-radius: 4px;
}

/* ═══ DEMO STYLE SELECTOR STRIP ═══ */
.demo-style-strip {
  background: #b8590c;
  text-align: center;
  height: 40px;
  line-height: 40px;
  position: sticky;
  top: 0;
  z-index: 1001;
}
.demo-style-strip a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: Cabin, sans-serif;
  letter-spacing: 0.3px;
}
.demo-style-strip a:hover {
  text-decoration: underline;
  color: #fff;
}
/* Push sticky header below the strip */
body.has-demo-strip .header { top: 40px !important; }
@media (max-width: 768px) {
  .demo-style-strip { height: 36px; line-height: 36px; }
  .demo-style-strip a { font-size: 0.9rem; }
  body.has-demo-strip .header { top: 36px !important; }
}

/* ═══ BILLING FORM STYLES ═══ */
.billing-field { margin-bottom: 20px; }
.billing-field label { display: block; font-weight: 600; margin-bottom: 6px; color: #333; }
.billing-field input, .billing-field textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; }
.billing-field input:focus, .billing-field textarea:focus { border-color: var(--primary); outline: none; }
#card-container { min-height: 44px; border: 1px solid #ddd; border-radius: 4px; padding: 12px; }
.billing-submit-btn { width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: 4px; font-size: 1.1rem; font-weight: 600; cursor: pointer; }
.billing-submit-btn:hover { background: var(--primary-dark); }
.billing-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.billing-success { background: #d4edda; color: #155724; padding: 20px; border-radius: 4px; text-align: center; }
.billing-error { background: #f8d7da; color: #721c24; padding: 20px; border-radius: 4px; text-align: center; margin-top: 15px; }

/* Phase O.HOTFIX.3 2026-05-31 — Phase O.1's 80px estimate assumed align-items:
   center was still in play. After O.HOTFIX.2 flipped to align-items:flex-start
   globally, 80px over-shot subhead by ~36px on style1 + maga-zin (probe diff
   +36). Reduced to 44px so image top lands within ±15px of subhead top.
   Style2 has its own padding-top: 75px override in overrides.css that remains
   untouched (style2's eyebrow + heading stack is taller). */
.about__hero .about__image {
    padding-top: 44px;
}
@media (max-width: 900px) {
    .about__hero .about__image { padding-top: 0; }
}

/* Tester round-1 #11/#12 (2026-06-18): flash/alert messages had no styling
   (used by forms_fill.html and other flash() surfaces) so they rendered as
   bare unstyled text. Give them visible padding, color and a bordered panel. */
.alert { padding: 14px 18px; border-radius: 6px; font-size: 1.05rem; margin: 0 0 20px; }
.alert-danger { background: #fdecea; color: #8a1c1c; border: 1px solid #f3b4ae; }
.alert-success { background: #e7f6ec; color: #1c6b34; border: 1px solid #aeddbd; }

/* Blog article prose: indent first line + space between paragraphs (2026-06-23, all styles) */
.blog-article__body p { text-indent: 1.6em; margin-bottom: 18px; }

/* ═══ SPECIAL OFFER / BOOKING CTA band (book_now_cta shared partial, 2026-07-01) ═══ */
/* Eyebrow: shared across ALL styles (new element). --primary reads on the light bands
   (styles 5/6/7 already scope band bg light; 1/2/3/4 bands below). NOT --accent — accent
   fails AA on light bands (Phase 1 lesson). Styles 5/6/7 keep their bespoke band CSS. */
.book-now-cta__eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  font-weight: 700; color: var(--primary); margin: 0 0 10px;
}
/* Style1 has no overrides.css (it is the base) — its scoped band lives here. */
body.style-style1 .book-now-cta { background: #f5f8fa; padding: 56px 20px; text-align: center; }
body.style-style1 .book-now-cta__heading { color: var(--primary); font-size: 1.9rem; margin: 0 0 12px; }
body.style-style1 .book-now-cta__text { color: #455; margin: 0 auto 24px; max-width: 52ch; line-height: 1.6; }
body.style-style1 .book-now-cta__btn { display: inline-block; background: var(--primary); color: #fff; padding: 14px 32px; border-radius: 4px; text-decoration: none; font-weight: 600; }
body.style-style1 .book-now-cta__btn:hover { opacity: 0.92; color: #fff; }

/* ═══ SERVICES DETAIL sections (Phase 3, 2026-07-01; styles 1/2/3/6/7) ═══
   Alternating image/text rows from the Service table (full_description). Base layout;
   var(--primary) + inherited heading fonts (__name is an h2) adapt to each style; per-style
   refinements live in each overrides.css. Distinct class from style5's .svc-block (untouched). */
.services-detail { padding: 8px 0; }
/* Phase 3 polish (2026-07-02): align-items stretch so the media column fills the block
   height (no floating gap when full_description is long). Media is capped [320,520] so a
   very long text block (style1) tops out the image at 520px top-aligned instead of a
   giant stretched photo; short blocks (style6/7) the image fills the block exactly. */
.services-detail__block { display: flex; gap: 44px; align-items: stretch; margin: 0 0 56px; }
.services-detail__block:last-child { margin-bottom: 8px; }
.services-detail__block--reverse { flex-direction: row-reverse; }
.services-detail__media { flex: 1 1 46%; min-width: 0; min-height: 320px; max-height: 520px; }
.services-detail__img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.services-detail__body { flex: 1 1 54%; min-width: 0; text-align: left; }
.services-detail__name { font-size: 1.9rem; line-height: 1.15; margin: 0 0 10px; color: var(--primary); }
.services-detail__tagline { font-weight: 600; font-size: 1.05rem; margin: 0 0 14px; color: var(--primary); opacity: .82; }
.services-detail__text { line-height: 1.7; }
.services-detail__text p { margin: 0 0 12px; }
.services-detail__actions { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.services-detail__btn { display: inline-block; padding: 12px 28px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.services-detail__btn--solid { background: var(--primary); color: #fff; }
.services-detail__btn--solid:hover { opacity: .92; color: #fff; }
.services-detail__btn--outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.services-detail__btn--outline:hover { background: var(--primary); color: #fff; }
@media (max-width: 820px) {
  .services-detail__block, .services-detail__block--reverse { flex-direction: column; gap: 22px; margin-bottom: 40px; }
  .services-detail__media { min-height: 0; max-height: none; }  /* reset cap: stacked column, fixed img height below */
  .services-detail__img { height: 240px; }
  .services-detail__name { font-size: 1.55rem; }
}

/* ============================================================================
   Services promo band (services_promo shared partial, 2026-07-02) — two tiles
   [ Shop | Special Offer ] on /services for all 7 styles. Shared structure here;
   per-style colour comes from each style's --primary (body.style-<id> sets it),
   so the offer tile is style-scoped without per-style CSS. Shop tile bg is an
   <img> (CSP-safe: no inline style=""). --single = one tile spans the band.
   ========================================================================== */
.services-promo { padding: 56px 20px; }
.services-promo__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.services-promo--single .services-promo__inner { grid-template-columns: 1fr; max-width: 720px; }
.services-promo__tile {
  position: relative; overflow: hidden; border-radius: 8px;
  min-height: 240px; display: flex; align-items: center; justify-content: center;
  text-align: center; text-decoration: none; isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease;
}
.services-promo__tile:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.services-promo__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
/* dark scrim over the shop photo for legible white text */
.services-promo__tile--shop::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.55) 100%);
}
/* offer tile = solid brand panel (no image), colour per style via --primary */
.services-promo__tile--offer { background: var(--primary, #1f6feb); }
.services-promo__overlay { position: relative; z-index: 2; padding: 32px 28px; color: #fff; max-width: 44ch; }
.services-promo__eyebrow { margin: 0 0 8px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.services-promo__heading { margin: 0 0 10px; font-size: 1.6rem; line-height: 1.2; color: #fff; }
.services-promo__text { margin: 0 0 18px; font-size: 1rem; line-height: 1.55; opacity: .95; }
.services-promo__link { display: inline-block; font-weight: 700; font-size: .98rem; color: #fff; }
.services-promo__tile:hover .services-promo__link { text-decoration: underline; }
@media (max-width: 820px) {
  .services-promo__inner { grid-template-columns: 1fr; gap: 16px; }
  .services-promo__tile { min-height: 200px; }
  .services-promo__heading { font-size: 1.4rem; }
}

/* ===== FORMS STATUS / CONFIRMATION PAGES (C7, PDF demo6) =====
   forms_verify_sent / forms_verified / forms_expired used Bootstrap utility classes
   (.container.py-5 > .row.justify-content-center > .col-lg-6 > .card.card-body.p-5) that are
   NOT loaded on tenant styles (Bootstrap is absent from the public bundle) -> computed 0px
   padding, cramped against the banner + footer on all 7 styles. These real classes replace
   them; no inline styles (CSP-safe). forms_start + custom_page already use real .section /
   .inner-container padding and are unchanged here except for a stray dead py-5 in their
   empty states. */
.forms-status {
  padding: 56px 20px;
}
.forms-status__card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  padding: 44px 36px;
  text-align: center;
}
.forms-status__icon {
  margin-bottom: 20px;
  line-height: 0;
}
.forms-status__title {
  margin: 0 0 12px;
}
.forms-status__text {
  margin: 0 0 12px;
  line-height: 1.6;
}
.forms-status__muted {
  display: block;
  color: #6b7280;
  margin: 0 0 12px;
  line-height: 1.6;
}
.forms-status__muted:last-child {
  margin-bottom: 0;
}
.forms-status__rule {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 24px 0;
}
/* Empty-state note for forms_start / custom_page (replaces dead Bootstrap .text-muted.py-5).
   Those pages already have real .section / .inner-container padding; this just styles the
   "nothing here yet" paragraph with a real muted color + breathing room. */
.page-empty-note {
  color: #6b7280;
  padding: 40px 0;
  margin: 0;
}

/* ===== AI FORMS leg B — conversational fill-assist pane (CSP-safe, no inline styles) ===== */
.ai-fill { margin: 0 auto 24px; max-width: 640px; }
.ai-fill__toggle {
  display: inline-block; background: transparent; border: 1.5px solid var(--primary);
  color: var(--primary); border-radius: 6px; padding: 10px 18px; font-size: 0.95rem;
  cursor: pointer; font-weight: 600;
}
.ai-fill__toggle:hover { background: var(--primary); color: #fff; }
.ai-fill__pane {
  margin-top: 14px; border: 1px solid rgba(0,0,0,0.12); border-radius: 10px;
  background: #fff; padding: 16px; box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}
.ai-fill__log { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.ai-fill__msg { padding: 8px 12px; border-radius: 12px; max-width: 85%; line-height: 1.4; font-size: 0.95rem; }
.ai-fill__msg--bot { background: #f1f3f5; color: #1f2933; align-self: flex-start; }
.ai-fill__msg--user { background: var(--primary); color: #fff; align-self: flex-end; }
.ai-fill__row { display: flex; gap: 8px; margin-top: 12px; }
.ai-fill__input { flex: 1; padding: 10px 12px; border: 1px solid rgba(0,0,0,0.2); border-radius: 6px; font-size: 0.95rem; }
.ai-fill__send { background: var(--primary); color: #fff; border: none; border-radius: 6px; padding: 10px 18px; cursor: pointer; font-weight: 600; }
.ai-fill__send:disabled, .ai-fill__input:disabled { opacity: 0.55; cursor: not-allowed; }
.ai-fill__note { margin: 10px 0 0; font-size: 0.82rem; color: #6b7280; }
.ai-fill__filled { outline: 2px solid rgba(56,161,105,0.5); }
