/* ============================================
   Children Heart Care - pixel-tuned clone
   Palette: orange #e35023, primary purple #362f72,
   nav purple #60569e, light purple #8f86c6, soft grey #cbc9d7
   Service link red #dd3333
   Font: Roboto (Google Fonts)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
  font-size: 14px;
}

a { color: #60569e; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #e35023; }

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4, h5 { font-family: 'Roboto', sans-serif; font-weight: 500; }

/* ---------- Top bar ---------- */
.top-bar {
  background: #e35023;
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
  line-height: 1.4;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-contact a {
  color: #fff;
  margin-right: 16px;
  font-size: 13px;
  font-weight: 400;
}
.top-contact a:hover { color: #ffe2d6; }
.top-contact i { margin-right: 6px; }

.top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-menu {
  list-style: none;
  display: flex;
  gap: 16px;
}
.top-menu a {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
}
.top-menu a:hover { color: #ffe2d6; }
.top-search {
  color: #fff;
  cursor: pointer;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
}

/* ---------- Main header ---------- */
.main-header {
  background: #fff;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.main-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand img {
  max-height: 80px;
  width: auto;
}

.header-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}
.btn {
  display: inline-block;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
}
.btn-outline {
  background: #362f72;
  color: #fff;
  border: 2px solid #362f72;
  padding: 12px 18px;
  font-size: 11px;
  /* Two equal-sized hospital CTAs in the header */
  flex: 1 1 220px;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
}
.btn-outline:hover {
  background: #e35023;
  color: #fff;
  border-color: #e35023;
}
.btn-primary {
  background: #e35023;
  color: #fff;
  border: 0;
  padding: 12px 32px;
  margin-top: 16px;
  font-size: 12px;
}
.btn-primary:hover { background: #362f72; color: #fff; }

.nav-toggle {
  display: none;
  background: #362f72;
  color: #fff;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  font-size: 20px;
  cursor: pointer;
}

/* Secondary nav items (FAQs, Media & News, Photo Gallery, etc.) appear in
   the top-bar on desktop. On mobile they're duplicated inside the hamburger
   menu via .mobile-only-nav, and hidden on desktop. */
.nav-list .mobile-only-nav { display: none; }
/* Social channels block lives inside the drawer — desktop hides it. */
.nav-socials { display: none; }
@media (max-width: 768px) {
  .nav-list .mobile-only-nav {
    display: block;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  .nav-list .mobile-only-nav:first-of-type {
    border-top: 2px solid rgba(255,255,255,0.25);
    margin-top: 8px;
    padding-top: 8px;
  }
  .nav-list .mobile-only-nav > a {
    font-size: 13px;
    opacity: 0.85;
    padding: 10px 16px;
  }
}

/* ---------- Primary nav ---------- */
.primary-nav {
  background: #60569e;
}
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  color: #fff;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
}
.nav-list > li:hover > a,
.nav-list > li.active > a {
  background: #4d4486;
  color: #ffe2d6;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background: #fff;
  min-width: 280px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-top: 3px solid #e35023;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 50;
  text-align: left;
}
.has-sub:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li a {
  display: block;
  padding: 10px 18px;
  color: #444;
  font-size: 13px;
  border-bottom: 1px solid #f1f1f1;
}
.submenu li a:hover {
  background: #f7f6fc;
  color: #e35023;
  padding-left: 24px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  height: 460px;
  background: #111;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}
.hero-dots span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  border: 2px solid #fff;
}
.hero-dots span:hover { transform: scale(1.15); }
.hero-dots span.active { background: #e35023; border-color: #e35023; }

/* ---------- Doctor intro ---------- */
.doctor-intro {
  background: url('../images/lightbg.jpg') center center / cover no-repeat;
  text-align: center;
  padding: 60px 0;
}
.doctor-intro h2 {
  color: #e35023;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}
.doctor-intro h3 {
  color: #362f72;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 24px;
}
.doctor-roles p {
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.7;
}
.doctor-roles strong { color: #000; }
.doctor-roles span { color: #808080; }

/* ---------- Why choose ---------- */
.why-choose {
  padding: 50px 0 30px;
}
.why-choose h2 {
  color: #e35023;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.why-choose h3 {
  text-align: center;
  color: #362f72;
  font-weight: 500;
  font-size: 17px;
  margin-bottom: 24px;
}
.why-choose p {
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.7;
  text-align: justify;
  color: #444;
}

/* ---------- Services ---------- */
.services { padding: 30px 0 60px; }
.services h2 {
  color: #362f72;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: #777;
  margin-bottom: 30px;
  font-size: 15px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Service card with overlay caption (matches original) */
.service-card {
  position: relative;
  overflow: hidden;
  background: #000;
}
.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.service-card:hover img { transform: scale(1.05); opacity: 0.7; }

.service-caption-wrap {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50px;
  background: rgba(51,51,51,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  transition: height 0.5s ease, background 0.5s ease;
  padding: 0 12px;
}
.service-card:hover .service-caption-wrap {
  height: 100%;
  background: rgba(54, 47, 114, 0.85);
}
.service-caption-title {
  width: 100%;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}
.service-card:hover .service-caption-title {
  margin-bottom: 16px;
}
.service-link {
  display: none;
  border: 2px solid #fff;
  padding: 6px 22px;
  color: #fff;
  font-size: 14px;
  background: #dd3333;
  transition: background 0.3s ease;
  text-transform: capitalize;
}
.service-link:hover { background: #d93604; color: #fff; }
.service-card:hover .service-link { display: inline-block; }

/* ---------- Videos ---------- */
.videos {
  background: #ecebf3;
  padding: 50px 0;
}
.videos h2 {
  text-align: center;
  color: #362f72;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.video-card { text-align: center; }
.video-thumb {
  position: relative;
  background: #000;
  color: #fff;
  height: 170px;
  display: block;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.35));
  z-index: 1;
}
.video-thumb i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 56px;
  color: rgba(255, 30, 30, 0.92);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  transition: transform 0.25s ease;
}
.video-thumb:hover { box-shadow: 0 12px 24px rgba(0,0,0,0.25); }
.video-thumb:hover img { transform: scale(1.06); opacity: 0.85; }
.video-thumb:hover i { transform: translate(-50%, -50%) scale(1.1); }
.video-card p {
  margin-top: 10px;
  font-size: 13px;
  color: #444;
  font-weight: 500;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background:
    linear-gradient(rgba(20, 15, 40, 0.78), rgba(20, 15, 40, 0.78)),
    url('../images/testimonial.jpg') center center / cover no-repeat;
  color: #fff;
  padding: 80px 0;
  position: relative;
}
.testimonials h2 {
  text-align: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}
.testimonials .section-sub { color: #d4cde8; margin-bottom: 36px; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: transparent;
  text-align: center;
  padding: 0 16px;
}
.testimonial-card .author {
  font-size: 17px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 4px;
}
.testimonial-card .meta {
  font-size: 13px;
  color: #b4abd4;
  margin-bottom: 14px;
  font-style: italic;
}
.testimonial-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #fff;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.testimonial-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.testimonial-dots span.active { background: #e35023; }

/* Video dots are mobile-only (the carousel is mobile-only). */
.video-dots { display: none; }

/* ---------- FAQ ---------- */
.faqs { padding: 50px 0; background: #fafafa; }
.faqs h2 {
  text-align: center;
  color: #362f72;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
}
.faq-list { max-width: 900px; margin: 0 auto; }
/* Homepage FAQ-only details styling (scoped to .faq-list so it doesn't leak
   into accordion-blocks on /faqs, /know-your-doctor, etc.) */
.faq-list details {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  background: #fff;
}
.faq-list summary {
  padding: 16px 22px;
  cursor: pointer;
  font-weight: 500;
  color: #362f72;
  list-style: none;
  position: relative;
  padding-right: 50px;
  font-size: 15px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #e35023;
  font-weight: 300;
  line-height: 1;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p {
  padding: 0 22px 18px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* ---------- CTA trio ---------- */
.cta-trio {
  background: #cbc9d7;
  padding: 50px 0;
}
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.cta-card {
  background: transparent;
  text-align: center;
  padding: 12px 18px;
}
.cta-card h4 {
  color: #362f72;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
}
.cta-card p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 18px;
}
.cta-btn {
  display: inline-block;
  background: #362f72;
  color: #fff;
  padding: 10px 24px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background 0.25s ease;
}
.cta-btn i { margin-left: 6px; font-size: 11px; }
.cta-btn:hover { background: #e35023; color: #fff; }

.social-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #362f72;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.social-row a:hover { background: #e35023; color: #fff; transform: translateY(-2px); }

/* ===========================================
   Inner-page styles (about / know-your-doctor)
   =========================================== */

/* Light gray page banner */
.page-banner {
  background: #eeeeee;
  padding: 28px 0;
}
.page-banner h1 {
  color: #333;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  text-align: left;
  letter-spacing: 0.2px;
}

/* Dark purple breadcrumb band */
.breadcrumb-bar {
  background: #362f72;
  padding: 12px 0;
}
.breadcrumb {
  list-style: none;
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #fff;
  margin: 0;
}
.breadcrumb a { color: #fff; font-weight: 700; }
.breadcrumb a:hover { color: #ffd9c9; }
.breadcrumb .separator { color: #e35023; font-weight: 700; }
.breadcrumb .current { color: #fff; font-weight: 700; }

/* Page main / layout */
.page-main {
  padding: 40px 0;
  background: #fff;
}
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.page-layout.single-col {
  display: block;
}
.page-title {
  color: #60569e;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 14px 0;
  text-align: left;
}
.credentials {
  color: #60569e;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  margin: 0 0 22px 0;
}

/* Left-aligned intro text block */
.profile-intro-text {
  margin-bottom: 24px;
}
.profile-intro-text p {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 14px;
}
.profile-intro-text strong { color: #222; }

.highlight-list { margin-top: 14px; }

/* Red square bullets (matches original) */
.red-square-list {
  list-style: none;
  padding-left: 0;
  margin: 18px 0;
}
.red-square-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 10px;
}
.red-square-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: #e35023;
}
.red-square-list li strong { color: #222; }

/* Photo floated right inside main content */
.profile-photo-float {
  float: right;
  width: 280px;
  margin: 0 0 18px 28px;
  border-radius: 2px;
}
.has-float::after {
  content: '';
  display: table;
  clear: both;
}

/* Shared page section title */
.section-title {
  color: #362f72;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-lede {
  color: #555;
  font-size: 14px;
  margin-bottom: 20px;
}
.section-lede a { color: #e35023; font-weight: 700; }

/* ---------- Contact page ---------- */
.locations { margin-bottom: 40px; }
.locations-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}
.locations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.locations-table thead th {
  background: #60569e;
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.locations-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #ececec;
  color: #333;
  vertical-align: top;
}
.locations-table tbody tr:nth-child(even) { background: #fafafa; }
.locations-table tbody tr:hover { background: #f3f1fa; }
.locations-table tbody tr:last-child td { border-bottom: 0; }

.get-in-touch { margin-bottom: 40px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: start;
}
.contact-form { display: block; }
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d4d4d4;
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: #60569e;
  box-shadow: 0 0 0 3px rgba(96, 86, 158, 0.15);
}
.contact-form textarea {
  margin-bottom: 14px;
  resize: vertical;
  min-height: 120px;
}
.contact-form .btn-primary { margin-top: 0; }

/* Honeypot field hidden from real users */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form alerts */
.form-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
}
.form-alert i { font-size: 18px; }
.form-alert-success {
  background: #e6f4ea;
  border-left: 4px solid #2e7d32;
  color: #1b5e20;
}
.form-alert-error {
  background: #fdecea;
  border-left: 4px solid #c62828;
  color: #b71c1c;
}

.contact-quick {
  background: #f7f6fc;
  padding: 22px;
  border-radius: 4px;
  border-left: 4px solid #e35023;
}
.quick-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #e6e2f0;
}
.quick-item:last-child { border-bottom: 0; }
.quick-item > i {
  color: #fff;
  background: #60569e;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: 0 0 36px;
}
.quick-item h4 {
  color: #362f72;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.quick-item p { font-size: 14px; color: #444; margin: 0; line-height: 1.5; }
.quick-item p a { color: #444; }
.quick-item p a:hover { color: #e35023; }

.map-section { margin-bottom: 30px; }
.map-embed {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Maps grid (one per location) */
.map-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 18px;
}
.map-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.map-card:hover {
  box-shadow: 0 10px 22px rgba(54, 47, 114, 0.1);
  transform: translateY(-2px);
}
.map-card-title {
  color: #362f72;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.map-card-title i {
  color: #e35023;
  margin-right: 6px;
  font-size: 14px;
}
.map-card-area {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}
.map-card .map-embed {
  margin-top: auto;
}
@media (max-width: 768px) {
  .map-grid { grid-template-columns: 1fr; }
}

/* Equal-width table columns */
.locations-table.equal-cols { table-layout: fixed; }
.locations-table.equal-cols td,
.locations-table.equal-cols th {
  vertical-align: top;
  word-wrap: break-word;
}
.locations-table td a {
  color: #362f72;
  font-weight: 600;
}
.locations-table td a:hover { color: #e35023; }
.locations-table td small {
  display: block;
  font-size: 12px;
  color: #888;
  font-style: italic;
  margin-top: 4px;
  line-height: 1.4;
}

/* ---------- FAQ page ---------- */
.faq-group {
  margin-bottom: 44px;
}
.faq-group:first-of-type { margin-top: 8px; }
.faq-group-title {
  color: #fff;
  background: #60569e;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 3px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ---------- Hub pages (card grids) ---------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 14px;
}
.hub-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(54, 47, 114, 0.12);
}
.hub-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}
.hub-card h3 a { color: #362f72; }
.hub-card h3 a:hover { color: #e35023; }
.hub-card p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}
.hub-card-link {
  color: #e35023;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.hub-card-link i { margin-left: 5px; font-size: 11px; }
.hub-card-link:hover { color: #362f72; }

/* Lead paragraph */
.lead-paragraph {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 22px;
}

/* CTA bar at bottom of sub-pages */
.cta-bar {
  margin-top: 30px;
  padding: 24px;
  background: #f7f6fc;
  border-left: 4px solid #e35023;
  border-radius: 3px;
}
.cta-bar h4 {
  color: #362f72;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cta-bar p { color: #555; font-size: 14px; margin-bottom: 12px; }
.cta-bar .btn-primary { margin-top: 0; }

/* Testimonials page */
.testimonial-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 14px;
}
.testimonial-item {
  background: #fafafa;
  border-left: 4px solid #60569e;
  padding: 20px 22px;
  border-radius: 3px;
}
.testimonial-item h4 {
  color: #362f72;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.testimonial-item h4 span {
  color: #888;
  font-weight: 400;
  font-size: 14px;
  font-style: italic;
}
.testimonial-item p { font-size: 14px; color: #444; line-height: 1.7; margin: 0; }

/* Outstanding Results stats */
.result-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 20px 0 30px;
}
.result-stats .stat {
  background: linear-gradient(135deg, #362f72, #60569e);
  color: #fff;
  padding: 28px 18px;
  border-radius: 4px;
  text-align: center;
}
.result-stats .num {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}
.result-stats .lbl {
  display: block;
  font-size: 13px;
  color: #ded9f0;
  line-height: 1.4;
}

/* 404 page */
.not-found-card {
  text-align: center;
  padding: 40px 20px 20px;
}
.not-found-code {
  font-size: 96px;
  font-weight: 900;
  color: #e35023;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -2px;
}
.not-found-card h2 {
  color: #362f72;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}
.not-found-card > p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}
.not-found-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.not-found-actions .btn-primary { margin-top: 0; }
.btn-outline-dark {
  background: #fff;
  color: #362f72;
  border: 2px solid #362f72;
  padding: 10px 22px;
  font-size: 12px;
}
.btn-outline-dark:hover { background: #362f72; color: #fff; }

.not-found-links {
  margin-top: 20px;
  background: #f7f6fc;
  padding: 22px;
  border-radius: 4px;
  text-align: left;
  display: inline-block;
}
.not-found-links h4 {
  color: #362f72;
  margin-bottom: 12px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.not-found-links ul {
  list-style: none;
  columns: 2;
  column-gap: 30px;
}
.not-found-links li { margin-bottom: 6px; }
.not-found-links a { color: #60569e; font-size: 14px; }
.not-found-links a:hover { color: #e35023; }

/* Legal pages (Privacy / Terms) */
.legal-content p,
.legal-content li { font-size: 15px; color: #333; line-height: 1.75; }
.legal-content p { margin-bottom: 14px; }
.legal-effective {
  background: #f7f6fc;
  border-left: 4px solid #e35023;
  padding: 10px 14px;
  margin-bottom: 22px !important;
  font-size: 14px !important;
  color: #444 !important;
}
.legal-content .block-heading { margin-top: 26px; }

/* Sitemap page */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 20px;
}
.sitemap-block h3 {
  color: #362f72;
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid #e35023;
}
.sitemap-block h3 a { color: #362f72; }
.sitemap-block h3 a:hover { color: #e35023; }
.sitemap-block ul {
  list-style: disc;
  padding-left: 22px;
}
.sitemap-block li { margin-bottom: 5px; }
.sitemap-block a { color: #555; font-size: 14px; }
.sitemap-block a:hover { color: #e35023; }

/* Footer legal strip */
.footer-legal {
  list-style: none;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
}
.footer-legal li { position: relative; }
.footer-legal li + li::before {
  content: '\2022';
  position: absolute;
  left: -10px;
  color: rgba(255,255,255,0.6);
}
.footer-legal a {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: #ffe2d6; text-decoration: underline; }

@media (max-width: 600px) {
  .sitemap-grid { grid-template-columns: 1fr; }
  .not-found-links ul { columns: 1; }
}

/* Appointments page cards */
.appt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 18px 0 30px;
}
.appt-card {
  background: #fff;
  border: 1px solid #ececec;
  border-left: 4px solid #e35023;
  border-radius: 4px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.appt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(54, 47, 114, 0.12);
}
.appt-card h3 {
  color: #362f72;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.appt-line {
  margin-bottom: 6px;
  font-size: 14px;
  color: #444;
}
.appt-line i {
  color: #e35023;
  width: 18px;
  margin-right: 6px;
}
.appt-line strong { color: #222; }
.appt-btn {
  margin-top: 14px !important;
  display: inline-block;
}

/* Blog "Read full article on the live site" CTA at the top of detail pages */
.full-article-cta {
  background: #fff7f3;
  border: 1px solid #f7d8c8;
  border-left: 4px solid #e35023;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.full-article-cta p {
  margin: 0;
  font-size: 14px;
  color: #5a3a2b;
  flex: 1 1 280px;
  line-height: 1.5;
}
.full-article-cta .btn-primary { margin-top: 0; }
.full-article-cta .btn-primary i { margin-left: 6px; }

/* Blog index cards — paired "Summary" + "Full article" links */
.blog-card-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.blog-card-source {
  color: #60569e;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.blog-card-source:hover { color: #e35023; }
.blog-card-source i { margin-left: 5px; font-size: 11px; }

/* Blog list — single-column stack with image + author/date byline,
   matches the live site's layout */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 18px;
}
.blog-list-col { min-width: 0; }
.blog-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 1fr;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(54, 47, 114, 0.12);
}
.blog-card-image {
  display: block;
  background: #f4f4f7;
  overflow: hidden;
  border-right: 1px solid #ececec;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.04); }
.blog-card-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
}
.blog-card-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.blog-card-title a {
  color: #362f72;
  text-decoration: none;
}
.blog-card-title a:hover { color: #e35023; }
.blog-card-meta {
  margin: 0 0 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #888;
}
.blog-card-meta i { color: #60569e; margin-right: 4px; }
.blog-card-excerpt {
  color: #555;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 12px;
  flex: 1;
}
.blog-card-readmore {
  align-self: flex-start;
  color: #e35023;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
}
.blog-card-readmore i { margin-left: 5px; font-size: 11px; }
.blog-card-readmore:hover { color: #362f72; }

/* Blog detail author box (bottom of every blog post, matches live site) */
.author-box {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
  margin: 30px 0 20px;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.author-box-photo {
  float: left;
  padding: 20px;
}
.author-box-photo img {
  width: 100px;
  height: 100px;
  display: block;
  border-radius: 0;
  margin: 0;
}
.author-box-name {
  color: #60569e;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 20px 20px 6px 0;
  padding-top: 0;
}
.author-box-bio {
  margin: 0 20px 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}
.author-box-bio p { margin: 6px 0 10px; }
.author-box-bio strong { color: #362f72; }
.author-box-socials {
  clear: both;
  background: #fcfcfc;
  border-top: 1px solid #eee;
  padding: 8px 14px;
  display: flex;
  gap: 6px;
}
.author-box-socials a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: 15px;
  border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease;
}
.author-box-socials a:hover { color: #fff; background: #60569e; }

@media (max-width: 600px) {
  .author-box-photo {
    float: none;
    padding: 20px 20px 0;
    text-align: center;
  }
  .author-box-photo img { margin: 0 auto; }
  .author-box-name { text-align: center; margin: 14px 20px 8px; }
  .author-box-bio { margin: 0 16px 14px; text-align: left; }
  .author-box-socials { justify-content: center; }
}

/* Blog detail page byline (above the article body) */
.blog-detail-meta {
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #888;
}
.blog-detail-meta i { color: #60569e; margin-right: 5px; }
.blog-detail img { max-width: 100%; height: auto; border-radius: 3px; margin: 12px 0; }
.blog-detail a img { display: inline-block; }

/* Mobile: blog cards stack image-on-top */
@media (max-width: 700px) {
  .blog-card { grid-template-columns: 1fr; }
  .blog-card-image { border-right: 0; border-bottom: 1px solid #ececec; }
  .blog-card-image img { min-height: 200px; max-height: 240px; }
}

/* Sub-page 2-column layout (sidebar with siblings + content) */
.page-layout.with-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 6px;
}
.subpage-sidebar {
  background: #fff;
  padding: 0;
  position: sticky;
  top: 16px;
}
.sidebar-section-title {
  color: #362f72;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #60569e;
  letter-spacing: 0.2px;
}
.sidebar-siblings {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-siblings li {
  margin: 0;
  border-bottom: 1px solid #ececec;
}
.sidebar-siblings li:last-child {
  border-bottom: 0;
}
.sidebar-siblings a {
  display: block;
  padding: 10px 6px 10px 22px;
  position: relative;
  color: #444;
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.2s ease, padding-left 0.2s ease, background 0.2s ease;
}
.sidebar-siblings a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 6px;
  top: 12px;
  color: #e35023;
  font-size: 12px;
}
.sidebar-siblings a:hover {
  color: #e35023;
  background: #fcf7f5;
  padding-left: 26px;
}
.sidebar-siblings li.active > a {
  color: #e35023;
  font-weight: 600;
  background: #fcf7f5;
}

/* Right-hand content column */
.page-content-col {
  min-width: 0; /* prevent overflow inside grid cell */
  font-size: 15px;
  color: #333;
  line-height: 1.7;
}
.page-content-col > .lead-paragraph,
.page-content-col > p {
  font-size: 15px;
  color: #333;
  line-height: 1.75;
  margin: 0 0 14px;
}
.page-content-col h2,
.page-content-col h3,
.page-content-col h4 {
  color: #362f72;
  margin-top: 22px;
  margin-bottom: 12px;
  line-height: 1.35;
}
.page-content-col h2 { font-size: 22px; font-weight: 700; }
.page-content-col h3 { font-size: 18px; font-weight: 700; }
.page-content-col h4 { font-size: 16px; font-weight: 600; }
.page-content-col ul,
.page-content-col ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.page-content-col li {
  margin-bottom: 6px;
  line-height: 1.7;
}
.page-content-col a {
  color: #60569e;
  font-weight: 500;
}
.page-content-col a:hover {
  color: #e35023;
}
.page-content-col strong { color: #222; }

/* Images inside content (imported posts): float right, scale to a sensible
   size, give the surrounding text breathing room. */
.page-content-col img {
  max-width: 320px;
  height: auto;
  float: right;
  margin: 0 0 18px 24px;
  border-radius: 4px;
}
.page-content-col p > a > img,
.page-content-col > a > img { display: block; }

/* Anchored image link should keep its float */
.page-content-col a img { display: block; }

/* Clearfix for the article so the floated image doesn't escape it */
.page-content-col::after {
  content: '';
  display: block;
  clear: both;
}

@media (max-width: 900px) {
  .page-layout.with-sidebar {
    grid-template-columns: 1fr;
  }
  .subpage-sidebar {
    position: static;
    border: 1px solid #ececec;
    border-radius: 4px;
    padding: 18px;
  }
  .page-content-col img {
    float: none;
    display: block;
    margin: 0 auto 18px;
    max-width: 100%;
  }
}

/* Outstanding Results — case-study gallery */
.case-studies {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 14px;
}
.case-study {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
.case-photo {
  display: block;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.case-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(54, 47, 114, 0.15);
}
.case-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.case-body { padding-top: 4px; }
.case-heading {
  color: #333;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #60569e;
  line-height: 1.35;
  text-transform: none;
}
.case-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.case-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: #333;
  line-height: 1.65;
  margin-bottom: 8px;
}
.case-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #e35023;
}
.case-bullets li strong { color: #222; }

@media (max-width: 768px) {
  .case-study { grid-template-columns: 1fr; }
  .case-photo { max-width: 320px; }
}

/* Photo gallery caption (overlay shown beneath each photo) */
.photo-gallery .media-tile { max-height: 460px; }
.photo-caption {
  display: block;
  padding: 10px 14px;
  background: #fff;
  color: #444;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  border-top: 1px solid #ececec;
}

/* Video gallery — 3-column grid of YouTube embeds */
.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 18px;
}
.video-tile {
  background: #000;
  border: 1px solid #ececec;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(54, 47, 114, 0.18);
}
.video-aspect {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}
.video-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 992px) {
  .video-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .video-gallery-grid { grid-template-columns: 1fr; }
}

/* Media & News gallery — masonry-style so each clipping shows at full,
   uncropped aspect ratio. Uses CSS multi-column layout. */
.media-gallery {
  column-count: 3;
  column-gap: 18px;
  margin-top: 18px;
}
.media-tile {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 0 18px;
  /* Cap height so very tall clippings don't dominate the layout. */
  max-height: 520px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.media-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(54, 47, 114, 0.18);
}
.media-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.25s ease;
}
.media-tile:hover img {
  opacity: 0.85;
}
/* Soft fade-out at the bottom of clipped tiles so it's clear there's
   more content available via click (no abrupt cut). */
.media-tile::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
/* Show the fade only when the image is taller than the tile cap. */
.media-tile.is-clipped::after { opacity: 1; }
.media-tile-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(54, 47, 114, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.media-tile:hover .media-tile-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 992px) {
  .media-gallery { column-count: 2; }
}
@media (max-width: 600px) {
  .media-gallery { column-count: 1; }
}

/* Gallery / coming-soon placeholder */
.gallery-empty {
  text-align: center;
  padding: 60px 30px;
  background: #f7f6fc;
  border-radius: 6px;
  border: 1px dashed #c9c4e3;
  margin-top: 20px;
}
.gallery-empty i {
  font-size: 56px;
  color: #60569e;
  margin-bottom: 14px;
}
.gallery-empty h3 {
  color: #362f72;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.gallery-empty p {
  color: #666;
  font-size: 14px;
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-list { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .blog-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hub-grid { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: 1fr; }
}

/* Accordion sections (matches original SiteOrigin accordion) */
.accordion-block {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  background: transparent;
  border-radius: 0;
  outline: none;
}
.accordion-block summary {
  color: #333;
  font-size: 17px;
  font-weight: 700;
  padding: 18px 4px;
  list-style: none;
  position: relative;
  padding-right: 44px;
  cursor: pointer;
  outline: none;
  user-select: none;
}
.accordion-block summary:focus,
.accordion-block summary:focus-visible {
  outline: none;
  background: rgba(96, 86, 158, 0.04);
}
.accordion-block summary:hover {
  color: #60569e;
}
.accordion-block summary::-webkit-details-marker { display: none; }
.accordion-block summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #333;
  font-weight: 300;
  line-height: 1;
}
.accordion-block[open] summary::after { content: '−'; color: #e35023; }
.accordion-block[open] summary { color: #60569e; }
.accordion-block .accordion-body {
  padding: 6px 4px 22px;
}
.accordion-block .accordion-body p {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 12px;
}
.bullet-list {
  list-style: disc;
  padding-left: 22px;
  margin: 0;
}
.bullet-list li {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 6px;
  padding-left: 0;
}
.bullet-list li::before { content: none; }
.bullet-list li strong { color: #222; }

/* Sidebar */
.page-sidebar { padding-top: 4px; }
.sidebar-block { margin-bottom: 28px; }
.sidebar-block h4 {
  color: #333;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  text-transform: none;
  letter-spacing: 0;
}
.sidebar-list { list-style: disc; padding-left: 22px; }
.sidebar-list li { margin-bottom: 6px; }
.sidebar-list a {
  color: #60569e;
  font-size: 14px;
  line-height: 1.5;
}
.sidebar-list a:hover { color: #e35023; }

/* ---------- Footer ---------- */
.footer {
  background: #60569e;
  color: #fff;
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h5 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.25);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.footer-col h5.footer-stacked-heading {
  margin-top: 26px;
}
.footer-col ul {
  list-style: none;
  margin-bottom: 6px;
  column-count: 2;
  column-gap: 24px;
}
.footer-col li {
  margin-bottom: 6px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}
.footer-col a {
  color: #e0dcf0;
  font-size: 13px;
  display: inline-block;
  line-height: 1.5;
  transition: padding-left 0.2s ease, color 0.2s ease;
}
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-col a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 6px;
  color: #cbc9d7;
}

/* Full-width Quick Links row */
.footer-quick-links {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 26px;
}
.footer-quick-links h5 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.25);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.footer-quick-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 4px;
}
.footer-quick-links li { margin: 0; }
.footer-quick-links a {
  color: #e0dcf0;
  font-size: 13px;
  display: inline-block;
  line-height: 1.6;
  transition: color 0.2s ease;
}
.footer-quick-links a:hover { color: #fff; }
.footer-quick-links a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 5px;
  color: #cbc9d7;
}

.footer-bottom {
  background: #8f86c6;
  color: #fff;
  padding: 14px 0;
  font-size: 13px;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom-inner p { margin: 0; }
.designed-by a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}
.designed-by a:hover { color: #ffe2d6; }

@media (max-width: 600px) {
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ---------- Floating buttons ---------- */
.floating-buttons {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.fb-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}
.fb-btn:hover { transform: scale(1.1); color: #fff; }
.fb-whatsapp { background: #25d366; }
.fb-call { background: #e3242b; }
.fb-mail { background: #e35023; }
.fb-map { background: #2196f3; }
.fb-clock { background: #ff9800; }

/* Captcha row on the main contact form */
.contact-form .captcha-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fafafa;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  padding: 14px 16px;
  margin: 18px 0 22px;
  flex-wrap: wrap;
}
.contact-form .captcha-row label {
  font-size: 14px;
  color: #444;
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}
.contact-form .captcha-row label strong {
  color: #362f72;
  font-size: 17px;
  letter-spacing: 1px;
  margin-left: 4px;
}
.contact-form .captcha-row input[type="text"] {
  width: 140px !important;
  max-width: 140px;
  flex: 0 0 140px;
  padding: 9px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  margin: 0;
}
.contact-form .captcha-row input[type="text"]:focus {
  outline: 0;
  border-color: #5d3eb1;
  box-shadow: 0 0 0 2px rgba(93,62,177,0.15);
}
.contact-form .captcha-row + .btn { margin-top: 6px; }

@media (max-width: 600px) {
  .contact-form .captcha-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .contact-form .captcha-row label { text-align: left; }
  .contact-form .captcha-row input[type="text"] {
    width: 100% !important;
    max-width: none;
    flex: 1 1 auto;
  }
}

/* Captcha inside the floating Ask Us widget (compact, inline) */
.ask-us-captcha {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f5fc;
  border: 1px solid #e1dcef;
  border-radius: 3px;
  padding: 8px 10px;
  margin-top: 2px;
}
.ask-us-captcha label {
  font-size: 13px;
  font-weight: 600;
  color: #362f72;
  margin: 0;
  letter-spacing: 0.5px;
}
.ask-us-captcha input[type="text"] {
  flex: 1;
  min-width: 0;
  width: auto !important;
  padding: 6px 8px !important;
  font-size: 13px;
}

/* Ask Us widget: collapsed pill + expandable quick contact form
   (matches live site's wp-cf7 widget behavior — click pill to reveal form) */
.ask-us-widget {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.ask-us-btn {
  background: #5d3eb1;
  color: #fff;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.2s ease;
  font-family: inherit;
}
.ask-us-btn:hover { background: #4a3094; color: #fff; }
.ask-us-icon {
  background: rgba(255,255,255,0.2);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.25s ease;
}
.ask-us-widget.open .ask-us-icon { transform: rotate(45deg); }

.ask-us-form {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  padding: 18px;
  width: 320px;
  max-width: calc(100vw - 36px);
  border-top: 4px solid #5d3eb1;
  animation: askUsSlideIn 0.22s ease-out;
}
.ask-us-form[hidden] { display: none; }
@keyframes askUsSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ask-us-form-inner { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ask-us-form-inner input,
.ask-us-form-inner textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  color: #333;
}
.ask-us-form-inner input:focus,
.ask-us-form-inner textarea:focus {
  outline: 0;
  border-color: #5d3eb1;
  box-shadow: 0 0 0 2px rgba(93,62,177,0.15);
}
.ask-us-form-inner textarea { resize: vertical; min-height: 70px; }
.ask-us-submit {
  background: #e35023;
  color: #fff;
  border: 0;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 4px;
  font-family: inherit;
  transition: background 0.2s ease;
}
.ask-us-submit:hover { background: #c84218; }
.ask-us-submit:disabled { opacity: 0.6; cursor: wait; }
.ask-us-status {
  margin: 4px 0 0;
  font-size: 12px;
  min-height: 16px;
  color: #555;
}
.ask-us-status.is-error { color: #c0392b; }
.ask-us-status.is-success { color: #2e8b57; }

/* ---------- Scroll-top button ----------
   Sits ABOVE the Ask Us widget (Ask Us is bottom: 18px, ~45px tall — leave a
   small gap above it). On mobile the Ask Us widget is lifted to bottom: 80px
   to clear the floating call/whatsapp buttons, so scroll-top lifts too. */
.scroll-top {
  position: fixed;
  bottom: 76px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #362f72;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.25s ease;
  z-index: 99;
}
.scroll-top:hover { background: #e35023; color: #fff; }
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* When the Ask Us widget is open, hide the scroll-top button so it
   doesn't overlap the form's Submit button. */
.ask-us-widget.open ~ .scroll-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}
@media (max-width: 600px) {
  .scroll-top {
    bottom: 140px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-list > li > a,
  .top-menu a { padding: 14px 10px; }
  .top-menu a { padding: 0; }
  .top-menu { gap: 12px; }
}

@media (max-width: 992px) {
  .service-grid,
  .video-grid,
  .testimonial-grid,
  .footer-grid,
  .cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-ctas { width: 100%; justify-content: center; }
  .btn-outline { font-size: 11px; padding: 8px 14px; }
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-col ul { column-count: 1; }
}

@media (max-width: 600px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar-inner { justify-content: center; text-align: center; }
  /* Hide the top-bar secondary menu on mobile — those items are now
     rendered inside the hamburger via .mobile-only-nav. Keep just the
     phone + email contact strip visible. */
  .top-right { display: none; }
  .main-header-inner { justify-content: space-between; align-items: center; }
  /* Compact CTA buttons on mobile — still visible (visitors expect the
     MAX + Pitampura links here), but tight font/padding so they don't
     eat the viewport. Side-by-side via flex; wrap to two lines internally
     when the label is long. */
  .header-ctas {
    width: 100%;
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .header-ctas .btn-outline {
    flex: 1 1 0;
    min-width: 0;
    font-size: 10px;
    line-height: 1.25;
    padding: 8px 10px;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: normal;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1002; /* sits above the drawer + backdrop so it can close it */
  }

  /* Right-side slide-in drawer. The whole .primary-nav becomes a fixed
     panel that slides in from the right edge when .nav-list has .open.
     Items inside use one unified style — no visual difference between
     main nav and the secondary "mobile-only-nav" items. */
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: #362f72;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.2);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav .container {
    padding: 60px 0 24px;
    max-width: none;
  }
  body.nav-open .primary-nav { transform: translateX(0); }

  /* Backdrop overlay behind the drawer */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    animation: navBackdropIn 0.25s ease-out;
  }
  @keyframes navBackdropIn { from { opacity: 0; } to { opacity: 1; } }

  /* Lock body scroll when drawer is open */
  body.nav-open { overflow: hidden; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    max-height: none;
    overflow: visible;
    transition: none;
  }
  /* Unified item styling — no border-top, no opacity, same font/padding for
     every entry whether it's a primary nav item or a secondary one. */
  .nav-list > li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-list > li:last-child { border-bottom: 0; }
  .nav-list > li > a,
  .nav-list .mobile-only-nav > a {
    display: block;
    text-align: left;
    padding: 14px 22px;
    font-size: 14px;
    color: #fff;
    opacity: 1;
    font-weight: 500;
  }
  .nav-list > li.active > a,
  .nav-list .mobile-only-nav.active > a {
    background: rgba(255,255,255,0.08);
    color: #fff;
  }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.15);
  }
  .has-sub.is-open .submenu { max-height: 1200px; }
  .submenu li a {
    color: rgba(255,255,255,0.85);
    padding: 10px 22px 10px 38px;
    font-size: 13px;
    display: block;
  }
  /* Injected "View <Hub Name>" link — sits at the top of each submenu so
     the parent hub page stays reachable on mobile. */
  .submenu .go-to-hub a {
    color: #fff;
    font-weight: 600;
    background: rgba(255,255,255,0.06);
    border-left: 3px solid #e35023;
    padding-left: 35px;
  }
  .submenu .go-to-hub a i {
    margin-left: 6px;
    font-size: 11px;
    opacity: 0.8;
  }
  /* Don't auto-open submenus on hover — phones don't hover.
     The :hover open behavior is killed by .is-open being the trigger. */
  .has-sub:hover .submenu { max-height: 0; }
  .has-sub.is-open .submenu { max-height: 1200px; }
  .has-sub > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
    transition: transform 0.2s ease;
  }
  .has-sub.is-open > a::after { transform: rotate(180deg); }

  /* Reset the special mobile-only-nav border/divider styles — items now
     look identical to the rest of the menu. */
  .nav-list .mobile-only-nav {
    display: block;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-list .mobile-only-nav:first-of-type {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0;
    padding-top: 0;
  }

  /* Social channels at the bottom of the drawer */
  .nav-socials {
    display: block;
    padding: 22px 22px 28px;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 8px;
  }
  .nav-socials-label {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
  }
  .nav-socials-row {
    display: flex;
    gap: 10px;
  }
  .nav-socials-row a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .nav-socials-row a:hover,
  .nav-socials-row a:focus {
    background: #e35023;
    transform: translateY(-2px);
  }
  /* Mobile hero: auto-height to the source image's aspect ratio so the
     full banner (text + subjects) is visible — never cropped. */
  .hero {
    height: auto !important;
    aspect-ratio: 1333 / 400;
    min-height: 0 !important;
    background: #fff;
  }
  .hero-slide,
  .hero .hero-slide { position: absolute; inset: 0; }
  .hero-slide img,
  .hero .hero-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
  }

  .service-grid,
  .video-grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  /* CTA trio (Blog / Contact Us / Get Social) — keep horizontal on mobile
     as a 3-column compact strip so it doesn't stack and eat 3 screens
     of vertical space. */
  .cta-trio { padding: 22px 0; }
  .cta-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .cta-card { padding: 8px 4px; }
  .cta-card h4 { font-size: 14px; margin-bottom: 6px; }
  .cta-card p { font-size: 11px; line-height: 1.4; margin-bottom: 10px; }
  .cta-btn {
    padding: 7px 10px;
    font-size: 10px;
    letter-spacing: 0.2px;
  }
  .cta-btn i { display: none; }
  .cta-social .social-row { gap: 6px; justify-content: center; }
  .cta-social .social-row a {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .doctor-intro h2 { font-size: 24px; }
  .why-choose h2,
  .services h2,
  .videos h2,
  .testimonials h2,
  .faqs h2 { font-size: 22px; }
  .floating-buttons { right: 10px; }
  .fb-btn { width: 40px; height: 40px; font-size: 16px; }
  .profile-photo-float {
    float: none;
    display: block;
    margin: 0 auto 18px;
    width: 100%;
    max-width: 240px;
  }
  .inner-banner h1 { font-size: 24px; }
  .page-title { font-size: 20px; }
}

/* ---------- Mobile responsive: gap-filling rules ---------- */

/* Make wide data tables (locations, schedules, etc.) horizontally scrollable
   on narrow screens instead of overflowing the viewport */
@media (max-width: 900px) {
  .locations-table-wrap,
  .table-responsive,
  .schedule-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }
  .locations-table,
  .schedule-table {
    min-width: 720px;
  }
}

/* Hub grids — collapse from 3-col to 2-col then 1-col */
@media (max-width: 992px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card { padding: 16px; }
  .hub-card h3 { font-size: 16px; }
}

/* Outstanding-results case studies: image-left grid -> stacked on mobile */
@media (max-width: 768px) {
  .case-study,
  .case-studies .case-study {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .case-study img,
  .case-study .case-image img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
  }
}

/* Maps grid: collapse to 1 column on phones */
@media (max-width: 768px) {
  .map-grid { grid-template-columns: 1fr; gap: 16px; }
  .map-card iframe { height: 220px; }
}

/* Photo + Media gallery masonry: reduce columns on small screens */
@media (max-width: 992px) {
  .photo-gallery,
  .media-gallery { column-count: 2; }
}
@media (max-width: 600px) {
  .photo-gallery,
  .media-gallery { column-count: 1; }
}

/* Footer Quick Links: wrap nicely and tighten spacing */
@media (max-width: 768px) {
  .footer-quick-links ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
  }
  .footer-quick-links li a { font-size: 12px; }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Floating Ask Us / phone / WhatsApp — keep buttons reachable but small */
@media (max-width: 600px) {
  .ask-us-widget {
    right: 10px;
    bottom: 80px;
  }
  .ask-us-btn {
    padding: 10px 14px;
    font-size: 12px;
  }
  .ask-us-form { width: 280px; padding: 14px; }
  .floating-buttons { bottom: 12px; }
  .floating-buttons .fb-btn { width: 38px; height: 38px; font-size: 15px; }
}

/* Breadcrumb — wrap & shrink on tight screens */
@media (max-width: 600px) {
  .breadcrumb-bar { padding: 10px 0; }
  .breadcrumb {
    flex-wrap: wrap;
    font-size: 12px;
    gap: 4px 6px;
    justify-content: center;
  }
  .page-banner { padding: 24px 0; }
  .inner-banner h1,
  .page-banner h1 { font-size: 20px; line-height: 1.3; }
}

/* Sub-page layout: stacked sidebar already collapses at 900px;
   tidy spacing + sidebar siblings appearance on phones */
@media (max-width: 900px) {
  .page-layout.with-sidebar {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .subpage-sidebar { position: static; }
  .sidebar-siblings { max-height: none; }
}
@media (max-width: 600px) {
  .page-content-col img,
  .page-content img {
    float: none !important;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 16px 0 !important;
  }
  .page-content-col,
  .page-content {
    font-size: 15px;
    line-height: 1.65;
  }
  .page-content h2 { font-size: 20px; }
  .page-content h3 { font-size: 17px; }
  .page-content ul,
  .page-content ol { padding-left: 22px; }
}

/* Contact page: stacked form + sidebar, full-width inputs */
@media (max-width: 768px) {
  .contact-grid,
  .contact-section .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea { width: 100%; box-sizing: border-box; }
  .contact-info-card { padding: 18px; }
}

/* Homepage hero + section padding tightening */
@media (max-width: 600px) {
  /* Hero already auto-sized via aspect-ratio at 768px — no fixed height
     override here. Just shrink any overlaid text. */
  .hero h1 { font-size: 18px; line-height: 1.25; }
  .hero p { font-size: 12px; }
  section { padding: 32px 0; }
  .container { padding-left: 16px; padding-right: 16px; }
  .doctor-intro h2 { font-size: 20px; }
  .why-choose h2,
  .services h2,
  .videos h2,
  .testimonials h2,
  .faqs h2 { font-size: 19px; }
}

/* Top bar: scale phone/email so they don't overflow */
@media (max-width: 600px) {
  .top-bar { font-size: 11px; }
  .top-menu { gap: 8px; font-size: 11px; }
  .top-menu a { padding: 2px 4px; }
  .top-bar-info { flex-wrap: wrap; gap: 6px 12px; justify-content: center; }
}

/* Header logo + CTAs: prevent logo from being huge on phones */
@media (max-width: 600px) {
  .site-logo img,
  .main-header img { max-height: 48px; width: auto; }
  .main-header { padding: 10px 0; }
  .header-ctas .btn-outline {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* Testimonials carousel/grid: ensure no horizontal overflow */
@media (max-width: 600px) {
  .testimonial-card {
    padding: 16px;
    font-size: 14px;
  }
  .testimonial-card p { font-size: 14px; line-height: 1.55; }

  /* Mobile videos: horizontal swipe carousel, mirrors testimonials. */
  .video-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .video-grid::-webkit-scrollbar { display: none; }
  .video-grid > .video-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    padding: 0 8px;
    box-sizing: border-box;
  }
  .video-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
  }
  .video-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(54,47,114,0.3);
    cursor: pointer;
    transition: background 0.2s ease;
  }
  .video-dots span.active { background: #e35023; }

  /* Mobile testimonials: horizontal swipe carousel instead of a vertical
     stack. Native CSS scroll-snap — no JS needed for the swipe itself. */
  .testimonial-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    scroll-behavior: smooth;
    /* Hide scrollbar visually but keep functionality */
    scrollbar-width: none;
  }
  .testimonial-grid::-webkit-scrollbar { display: none; }
  .testimonial-grid > .testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .testimonial-dots { margin-top: 18px; }
  .testimonial-dots span { width: 8px; height: 8px; }
}

/* FAQs accordion: tighten on phones */
@media (max-width: 600px) {
  .faq-list summary { font-size: 14px; padding: 12px 14px; }
  .faq-list details > div,
  .faq-list details > p { font-size: 13px; padding: 0 14px 12px; }
}

/* Generic safety net: stop horizontal overflow from rogue elements */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  img, video, iframe { max-width: 100%; height: auto; }
  table { max-width: 100%; }
}

