/* Numbered badge for journey steps */
.journey-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6c4ed9;
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(61,61,139,0.10);
  border: 2px solid #ececf6;
}
/* Bariatric Journey Section */
.bariatric-journey.section--light {
  background: linear-gradient(180deg, #f7f7fc 80%, #f2f2fa 100%);
  border-radius: 36px;
  box-shadow: 0 4px 24px rgba(61,61,139,0.07);
  padding: 44px 24px 38px 24px;
  margin: 48px auto 32px auto;
  max-width: 1200px;
  position: relative;
}
.bariatric-journey .section-header {
  margin-bottom: 18px;
}
.bariatric-journey-img-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto 0 auto;
}
.bariatric-journey-img-row .journey-img {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bariatric-journey-img-row .journey-img img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(61,61,139,0.09);
  background: #fff;
  border: 1px solid #ececf6;
  padding: 8px;
}
.bariatric-journey-img-row .journey-steps {
  flex: 2 1 600px;
  min-width: 320px;
  max-width: 700px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.journey-step {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(61,61,139,0.07);
  padding: 22px 16px;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
}
.journey-step:hover {
  box-shadow: 0 6px 24px rgba(61,61,139,0.13);
}
.journey-step h3 {
  margin-bottom: 8px;
  font-size: 1.13em;
  color: #3d3d8b;
}
.journey-step p {
  text-align: center;
  color: #444;
  font-size: 1em;
}
.introduction.section--light {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #f7f7fc 80%, rgba(247,247,252,0) 100%);
  box-shadow: none;
  border-radius: 36px;
  padding-bottom: 32px;
  transition: background 0.4s, border-radius 0.3s;
}

/* Bariatric Introduction Section */
.bariatric-intro-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto 18px auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.bariatric-intro-text {
  flex: 2 1 480px;
  min-width: 280px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bariatric-intro-text p {
  color: #444;
  font-size: 1.13em;
  line-height: 1.8;
  margin-bottom: 14px;
}
.bariatric-intro-image {
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bariatric-intro-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(61,61,139,0.13);
  background: #fff;
  border: 1px solid #ececf6;
  padding: 8px;
}
/* Bariatric Qualifications Checklist */
.bariatric-qualifications {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 0 18px;
  padding: 0;
}
.bariatric-qualifications-item {
  background: #fafaff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(61,61,139,0.06);
  padding: 18px 22px 18px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.08em;
  line-height: 1.7;
  border-left: 4px solid #3d3d8b;
}
.bariatric-qualifications-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  color: #6c4ed9;
  margin-top: 2px;
}
.bariatric-pill {
  background: #3d3d8b;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 0.98em;
  margin-right: 6px;
  display: inline-block;
}
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color: #222;
  background: #f4f4f8;
  line-height: 1.5;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* Utility */
.container-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Personalization Bar */
.personalization-bar {
  background: #ede8fa;
  color: #4a228c;
  font-size: 14px;
  text-align: center;
  padding: 6px 12px;
}

/* Sticky CTA (mobile) */
.sticky-cta {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 999;
  display: none;
}
.sticky-cta .btn-primary.small {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 25px;
  display: inline-block;
}

/* Navbar */
header.navbar {
  position: sticky;
  top: 0;
  background: white;
  z-index: 900;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  width: 100%;
}
.logo img, .logo .nav-logo {
  height: 42px;
  max-width: 180px;
  object-fit: contain;
}
.nav-menu {
  display: flex;
}
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 22px;
  align-items: center;
}
.nav-menu ul li a {
  text-decoration: none;
  color: #2c0a4d;
  padding: 10px 8px;
  font-weight: 600;
  position: relative;
  transition: color .2s;
}
.nav-menu ul li a:hover,
.nav-menu ul li a:focus {
  color: #5a2ea6;
}
.nav-menu ul li a.active {
  color: #5a2ea6;
}
.nav-menu ul li a.active::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 2px;
  background: #5a2ea6;
  border-radius: 2px;
}
.cta-nav {
  background: #5a2ea6;
  color: white !important;
  padding: 10px 18px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-menu ul li a.cta-nav {
  white-space: nowrap;
}
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  padding: 8px;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  background: #5a2ea6;
  height: 3px;
  width: 24px;
  border-radius: 2px;
  position: relative;
  transition: all .3s ease;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before {
  top: -7px;
}
.hamburger::after {
  top: 7px;
}
.nav-menu.open {
  display: block;
}

/* ===== Hero Section ===== */
.hero {
  padding: 80px 16px 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,#f4f0fa 0%,#e8e4fb 60%);
  min-height: 520px;
}

.hero-content {
  max-width: 1000px;
  margin: auto;
  position: relative;
  text-align: center;
  padding: 0 16px;
  z-index: 1; /* Ensure content is above the background */
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: none;
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: none;
}

.hero-content .subhead {
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto 24px;
  color: #ffffff;
  text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-bg .bg-slides-wrapper {
    animation: none;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("Images/Surgery Room.jpeg") center/cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 30px;
}
.btn-primary, .btn-secondary {
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-primary {
  background: #5a2ea6;
  color: white;
  padding: 14px 26px;
  font-size: 16px;
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  filter: brightness(1.05);
}
.btn-secondary {
  background: white;
  color: #5a2ea6;
  padding: 14px 26px;
  border: 2px solid #5a2ea6;
  font-size: 16px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #f4f0fa;
}

/* Who I Am Card */
.whoami-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  justify-content: center;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 32px -4px rgba(90,46,166,0.15);
  padding: 20px;
}
.whoami-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  background: #e3e0f7;
}
.whoami-text {
  max-width: 600px;
  text-align: left;
}
.whoami-text h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}
.whoami-text p {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #444;
}
.small-link {
  font-size: 0.85rem;
  color: #5a2ea6;
  text-decoration: none;
}
.small-link:hover {
  text-decoration: underline;
}

/* Certifications */
.certifications {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cert-text {
  font-weight: 600;
  font-size: 0.85rem;
  color: #5a2ea6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cert-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cert-badge img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: grayscale(25%);
  transition: filter .25s ease, transform .2s ease;
}
.cert-badge img:hover,
.cert-badge img:focus {
  filter: none;
  transform: scale(1.05);
}

/* Stats Counters */
.stats-counters {
  max-width: 1000px;
  margin: 40px auto 10px;
  padding: 0 16px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.counter-wrapper {
  background: #fff;
  padding: 22px 26px;
  border-radius: 12px;
  box-shadow: 0 20px 40px -4px rgba(90,46,166,0.08);
  flex: 1 1 220px;
  min-width: 180px;
  text-align: center;
  position: relative;
}
.counter {
  font-size: 2.75rem;
  font-weight: 700;
  color: #5a2ea6;
  line-height: 1.1;
}
.label {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #444;
  font-weight: 600;
}

/* Section headers */
.section-header {
  max-width: 1000px;
  margin: 0 auto 30px;
  padding: 0 16px;
  text-align: center;
}
.section-header h2 {
  font-size: 2rem;
  color: #2c0a4d;
  margin-bottom: 8px;
}
.section-header p {
  color: #555;
  font-size: 1rem;
}

/* Before/After Cards */
.before-after-cards {
  display: grid;
  gap: 32px;
  max-width: 1100px;
  margin: auto;
  padding: 20px 16px;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
}
.ba-card {
  position: relative;
  background: white;
  padding: 22px 24px;
  border-radius: 16px;
  box-shadow: 0 20px 40px -8px rgba(90,46,166,0.1);
}
.ba-card img.ba-img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 14px;
}
.ba-card h3 {
  margin-top: 8px;
  font-size: 1.25rem;
  color: #2c0a4d;
}
.ba-card p {
  margin: 6px 0;
  color: #555;
}
.ba-card blockquote {
  font-style: italic;
  margin: 12px 0;
  color: #666;
}
.ba-card .author {
  font-weight: 600;
  margin-top: 4px;
}
.img-fallback {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  inset: 0;
  background: rgba(255,255,255,0.9);
  color: #5a2ea6;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-card .show-fallback + .img-fallback,
.ba-card .img-fallback.show-fallback {
  display: flex;
}

/* Testimonials Carousel */
.testimonials {
  padding: 8px 2px; /* minimal vertical and horizontal space */
}
.testimonial-carousel {
  max-width: 820px;
  margin: auto;
  position: relative;
  padding: 0px 8px 4px; /* minimal padding */
}
.testimonial-track {
  display: flex;
  overflow: hidden;
  /* Removed min-height constraint to allow flexible sizing */
}
.testimonial {
  min-width: 100%;
  background: #fff;
  padding: 20px 24px; /* Increased padding for better readability */
  border-radius: 14px;
  box-shadow: 0 18px 40px -4px rgba(90,46,166,0.07);
  position: relative;
  transition: opacity .35s ease;
  text-align: center;
  opacity: 0;
  display: none;
  /* Removed any height constraints to allow flexible sizing */
}
.testimonial.active { opacity: 1; display: block; }
.testimonial h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #2c0a4d;
}
.testimonial p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #2c0a4d;
  margin-bottom: 12px;
}
.testimonial p::before,
.testimonial p::after {
  color: #5a2ea6;
  font-weight: 700;
  font-size: 1.4rem;
}
.testimonial p::before { content: '“'; margin-right: 3px; }
.testimonial p::after  { content: '”'; margin-left: 3px; }
.stars {
  font-size: 1rem;
  margin-top: 6px;
}
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid rgba(90,46,166,0.35);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a2ea6;
  transition: background .2s, box-shadow .2s;
  z-index: 3;
}
.carousel-control:hover, .carousel-control:focus { background: rgba(90,46,166,0.08); box-shadow: 0 6px 16px rgba(90,46,166,0.15); }
.carousel-control.prev { left: 6px; }
.carousel-control.next { right: 6px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #cfcbe4; border: none; cursor: pointer; }
.dot.active, .dot:focus { background: #5a2ea6; }
.dot:focus-visible { outline: 3px solid rgba(90,46,166,0.4); }

@media (max-width: 600px) {
  .testimonial-carousel { padding: 10px 38px 22px; }
  .testimonial p { font-size: 1rem; }
}

/* Video Testimonials */
.video-testimonials {
  padding: 60px 16px;
}
.video-grid {
  display: grid;
  gap: 24px;
  max-width: 1100px;
  margin: auto;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
}
.video-card {
  background: white;
  padding: 18px 16px;
  border-radius: 12px;
  box-shadow: 0 24px 50px -8px rgba(90,46,166,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder .play-button {
  font-size: 48px;
  color: white;
  opacity: 0.9;
}
.video-placeholder .video-text {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #2c0a4d;
}

/* Footer */
footer {
  background: #2c0a4d;
  color: white;
  padding: 50px 20px;
}
.footer-top {
  text-align: center;
  margin-bottom: 30px;
}
.logo-footer img {
  height: 50px;
  object-fit: contain;
}
.footer-main {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 25px;
}
.column {
  flex: 1 1 220px;
  min-width: 180px;
}
.footer-main h3, 
.footer-main h4 {
  color: #ffffff !important;
  margin-bottom: 12px;
  font-size: 18px;
}
.footer-main p {
  color: #ffffff !important;
}
.footer-main ul {
  list-style: none;
  padding: 0;
}
.footer-main li {
  margin: 6px 0;
}
.footer-main li a {
  color: #ffffff !important;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-main li a:hover {
  color: #e6e6e6 !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  padding-top: 15px;
  font-size: 13px;
  color: #ffffff !important;
}

/* Fade-in utility */
.fade-up {
  opacity: 0;
  transform: translateY(15px);
  transition: all .6s ease-out;
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    padding: 60px 16px 40px;
  }
  .trust-badges {
    flex-direction: column;
  }
  .whoami-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .whoami-text {
    max-width: 100%;
  }
  .testimonial-track {
    overflow: visible;
  }
  .carousel-control.prev {
    left: 0;
  }
  .carousel-control.next {
    right: 0;
  }
}

@media (max-width: 900px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    width: 240px;
    box-shadow: 0 14px 44px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 14px 0;
    display: none;
  }
  .nav-menu.open {
    display: block;
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 0;
  }
  .nav-menu ul li {
    width: 100%;
  }
  .nav-menu ul li a {
    display: block;
    padding: 12px 18px;
  }
  .nav-toggle {
    display: block;
  }
  .sticky-cta {
    display: block;
  }
}

/* Accessibility focus */
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(90,46,166,0.6);
  outline-offset: 2px;
}

/* About page specific additions */
.about-hero {
  padding: 100px 16px 60px;
  background: linear-gradient(135deg,#f4f0fa 0%,#e8e4fb 60%);
  position: relative;
  color: #2c0a4d;
}
.mission-values .approach-cards,
.team-grid {
  display: grid;
  gap: 28px;
  max-width: 1100px;
  margin: auto;
  padding: 0 16px;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
}
.approach-card {
  background: white;
  padding: 20px 18px;
  border-radius: 12px;
  box-shadow: 0 18px 36px -4px rgba(90,46,166,0.08);
  text-align: center;
}
.approach-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.team-section .team-card,
.surgeon-profiles .team-card {
  background: white;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 14px;
  box-shadow: 0 20px 48px -6px rgba(90,46,166,0.1);
  align-items: flex-start;
}
.team-card .team-photo {
  flex: 0 0 120px;
  position: relative;
}
.team-card .team-photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  background: #e3e0f7;
}
.placeholder-photo {
  width: 120px;
  height: 120px;
  background: #dcd7ec;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #5a2ea6;
}
.team-info {
  flex: 1;
}
.team-info .position {
  font-size: 0.9rem;
  color: #5a2ea6;
  margin: 4px 0 8px;
  font-weight: 600;
}
.affiliations .affiliation-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 16px;
  max-width: 900px;
  margin: auto;
}
.aff-badge img {
  height: 50px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter .25s ease, transform .2s ease;
}
.aff-badge img:hover,
.aff-badge img:focus {
  filter: none;
  transform: scale(1.05);
}
.cta {
  background: #f4f0fa;
  padding: 60px 16px;
  text-align: center;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Press / Featured In */
.press-mentions {
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px 16px;
}
.press-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
}
.press-card {
  background: white;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 16px 36px -4px rgba(90,46,166,0.1);
  position: relative;
}
.press-logo {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #5a2ea6;
}
.press-quote {
  font-style: italic;
  margin: 10px 0;
  color: #444;
}

.press-source {
  font-size: 12px;
  color: #555;
}

/* Dynamic Press Card Styles */
.press-logo-wrapper {
  width: 100px;
  margin-bottom: 6px;
}
.press-logo-img {
  width: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter .25s ease, transform .2s ease;
}
.press-logo-img:hover,
.press-logo-img:focus {
  filter: none;
  transform: scale(1.05);
}
.press-read-more {
  margin-top: 8px;
  display: inline-block;
  font-size: 0.85rem;
  color: #5a2ea6;
  text-decoration: none;
  font-weight: 600;
}

/* A/B Test block */
.ab-test {
  background: white;
  padding: 40px 16px;
  border-radius: 12px;
  max-width: 1100px;
  margin: 40px auto;
  box-shadow: 0 20px 50px -6px rgba(90,46,166,0.1);
}
.variant-toggle {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.ab-variant {
  display: none;
}
.callout {
  background: #f0edfa;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 8px 0;
}
.ab-variant ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 8px;
}

/* Core values */
.core-values {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
}
.core-values-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
}
.value-card {
  background: white;
  padding: 18px 16px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 18px 40px -4px rgba(90,46,166,0.08);
}
.value-card:hover,
.value-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -8px rgba(90,46,166,0.15);
}
.value-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.value-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.value-desc {
  font-size: 0.9rem;
  color: #555;
}
.value-extra {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #333;
  opacity: 0;
  transition: opacity .3s ease;
}
.value-card:hover .value-extra {
  opacity: 1;
}

/* Awards */
.awards-grid {
  padding: 0;
}
.awards-grid-inner {
  display: grid;
  gap: 24px;
  max-width: 1100px;
  margin: auto;
  padding: 0 16px;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
}
.award {
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 18px 40px -6px rgba(90,46,166,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.award-logo img {
  height: 50px;
  object-fit: contain;
}
.year {
  font-size: 12px;
  margin-top: 6px;
  color: #666;
}

/* Trust seals */
.trust-seals {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  background: #f9f7fd;
  border-radius: 12px;
}
.seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  min-width: 140px;
  text-align: center;
}
.seal-icon {
  font-size: 28px;
}
.seal-title {
  font-weight: 600;
  margin-top: 4px;
}
.seal-desc {
  font-size: 0.8rem;
  color: #444;
}

/* FAQ */
.faq {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 16px;
}
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 16px;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  position: relative;
}
.faq-answer {
  padding: 0 16px 16px;
  display: none !important;
  font-size: 0.95rem;
  color: #444;
}
.faq-answer[aria-hidden="false"] {
  display: block !important;
}
.faq-answer.faq-open {
  display: block !important;
}
/* Force show when style attribute is set */
.faq-answer[style*="display: block"] {
  display: block !important;
}
.faq-question:focus {
  outline: 2px solid #5a2ea6;
}
.arrow {
  transition: transform .3s ease;
}
.faq-question[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

/* Social proof ticker */
.social-proof {
  max-width: 1100px;
  margin: 40px auto;
  background: white;
  padding: 16px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 18px 40px -4px rgba(90,46,166,0.08);
}
.ticker-label {
  font-weight: 600;
  white-space: nowrap;
}
.ticker {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 1.2em;
}
.ticker-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity .5s ease;
  opacity: 0;
}
.ticker-item.active {
  opacity: 1;
}

/* Media Appearances & Publications */
.media-appearances {
  max-width: 1100px;
  margin: 40px auto;
  padding: 24px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 18px 40px -6px rgba(90,46,166,0.1);
}
.media-appearances .section-header {
  margin-bottom: 20px;
}
.media-appearances h2 {
  color: #2c0a4d;
}
.media-appearances p {
  color: #555;
  font-size: 0.95rem;
}
.media-appearances h3 {
  margin-top: 32px;
  font-size: 1.2rem;
  color: #2c0a4d;
  margin-bottom: 12px;
}
.media-appearances ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}
.media-appearances ul li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 8px;
  color: #444;
  line-height: 1.4;
}
.media-appearances ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #5a2ea6;
  font-size: 1.2em;
  line-height: 1;
}
.media-appearances a {
  color: #5a2ea6;
  text-decoration: none;
  font-weight: 600;
}
.media-appearances a:hover,
.media-appearances a:focus {
  text-decoration: underline;
}

/* Media Appearances – Enhanced Styling */
.media-appearances .section-header {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 32px;
}
.media-appearances .section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #5a2ea6;
  border-radius: 2px;
}
.media-appearances h3 {
  font-size: 1.25rem;
  color: #2c0a4d;
  margin-top: 32px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ede8fa;
  padding-bottom: 6px;
}
.media-appearances ul li {
  background: #f9f7fd;
  border-left: 4px solid #5a2ea6;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 6px;
  transition: background .3s ease;
}
.media-appearances ul li:hover {
  background: #efeafc;
}
.media-appearances ul li strong {
  display: inline-block;
  background: #5a2ea6;
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.media-appearances ul li a {
  color: #5a2ea6;
  text-decoration: none;
  font-weight: 600;
}
.media-appearances ul li a:hover,
.media-appearances ul li a:focus {
  text-decoration: underline;
}


/* Horizontal Timeline Styles for Media Appearances (Updated for arrows outside) */
.timeline-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.timeline {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  margin: 0 40px; /* leave room for arrows */
  scrollbar-width: none;
}
.timeline::-webkit-scrollbar {
  display: none;
}
/* .timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  height: 4px;
  width: 100%;
  background: #5a2ea6;
  border-radius: 2px;
  z-index: 1;
} */
.timeline-item {
  flex: 0 0 auto;
  width: 200px;
  margin-right: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 44px;
  z-index: 2;
}
.timeline-item:last-child {
  margin-right: 0;
}
.timeline-logo {
  margin-bottom: 18px;
  text-align: left;
}
.timeline-logo img {
  width: 160px;
  height: auto;
  object-fit: contain;
}
.timeline-content {
  text-align: left;
  max-width: 180px;
}
.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: #5a2ea6;
  margin-bottom: 4px;
}
.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2c0a4d;
  margin-bottom: 6px;
}
.timeline-content p {
  margin: 0 0 6px;
  color: #444;
}
.timeline-content a {
  font-size: 0.85rem;
  color: #5a2ea6;
  text-decoration: none;
  font-weight: 600;
}
.timeline-content a:hover,
.timeline-content a:focus {
  text-decoration: underline;
}
.timeline-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #5a2ea6;
  color: #5a2ea6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}
.timeline-nav.prev { left: 0; }
.timeline-nav.next { right: 0; }

/* hide timeline markers */
.timeline-item::before {
  display: none;
}

/* About page: Medical and Leadership team grid */
.surgeon-profiles .team-grid,
.team-section .team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1100px;
  margin: auto;
  padding: 0 16px;
}
.surgeon-profiles .team-card,
.team-section .team-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.see-more {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: #5a2ea6;
  border: 1px solid #5a2ea6;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.see-more:hover,
.see-more:focus {
  background: #5a2ea6;
  color: white;
}

/* Bio expand/collapse animation (moved from about.html) */
.bio-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
  opacity: 0;
  margin-top: 0;
}
.bio-extra.open {
  max-height: 400px; /* large enough to fit typical bio text */
  opacity: 1;
  margin-top: 8px;
}
.see-more[aria-expanded="true"] {
  font-weight: 600;
}

/* Override fade-up to ensure content is visible without JS */
.fade-up {
  opacity: 1 !important;
  transform: none !important;
}

/* Global styles for buttons */
.btn-primary {
  background: #6c4ed9; /* neutral purple used across site */
  color: #fff;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-primary:hover, .btn-primary:focus {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

/* Keep global secondary button simple */
.btn-secondary {
  background: transparent;
  color: #5a2ea6;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(90,46,166,0.12);
}

/* Patient-Resources specific button overrides (scoped) */
.page-hero .btn-primary,
.resources-grid .btn-primary,
.forms-list li a.btn-primary {
  background: linear-gradient(180deg,#4b208f 0%,#5a2ea6 100%);
  box-shadow: 0 8px 28px rgba(90,46,166,0.12);
  padding: 10px 18px;
  border-radius: 10px;
}
.page-hero .btn-primary:hover,
.resources-grid .btn-primary:hover { box-shadow: 0 12px 36px rgba(90,46,166,0.18); transform: translateY(-2px); }

/* Trust Badges Emphasis */
.trust-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.trust-badges .badge {
  background: rgb(255, 255, 255);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgb(82, 74, 74);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Hero background rotating carousel */
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.bg-slides-wrapper { position: relative; height: 100%; }
.bg-slide { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center center; background-repeat: no-repeat; filter: brightness(0.55); opacity: 0; transition: opacity 1.2s ease-in-out; }
.bg-slide.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .bg-slide { transition: none; } }
/* Ensure hero content sits above */
.hero { position: relative; }
.hero .hero-overlay { position: absolute; inset: 0; background: rgba(44,10,77,0.45); z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.hero .bg-slides-wrapper .bg-slide img{ display:none; }

/* SNM diagram figure styling */
.content-image figure {
  margin: 20px auto;
  max-width: 400px;
}
.content-image figcaption {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-top: 8px;
  line-height: 1.4;
}
/* Emphasized SNM device styling */
.device-emphasis {
  margin: 30px auto;
  max-width: 500px;
  text-align: center;
}
.device-emphasis img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Modern Incontinence Page Styles */

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Section backgrounds */
.section--light { background: #fff; }
.section--dark  { background: #f4f4f8; }

/* Modern section header */
.section-header.modern {
  text-align: center;
  margin-bottom: 20px;
}
.section-header.modern .section-line {
  width: 60px;
  height: 4px;
  background: #5a2ea6;
  margin: 0 auto 12px;
  border-radius: 2px;
}
.section-header.modern h2 {
  font-size: 2rem;
  color: #2c0a4d;
}

/* Feature cards */
.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.feature-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 16px;
}
.feature-card:before {
  content: '✔';
  font-size: 1.25rem;
  color: #5a2ea6;
  flex-shrink: 0;
}

/* CTA styling */
.get-started {
  text-align: center;
  padding: 60px 0;
}
.get-started .btn-primary,
.get-started .btn-secondary {
  margin: 0 12px;
  min-width: 160px;
}

/* Image & figure styling */
.hero-image img,
.content-image img,
.device-emphasis img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Journey Slider Styles */
.journey-container {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto 40px;
}
.journey-slides {
  flex: 1;
  overflow: hidden;
}
.journey-slide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.journey-slide .step-image-container img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}
.journey-slide .step-content {
  flex: 1;
}
.journey-slide .step-number {
  background: #5a2ea6;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  font-weight: bold;
  margin-bottom: 8px;
}
.journey-slide h3 {
  margin: 4px 0;
  font-size: 1.1rem;
  color: #2c0a4d;
}
.journey-slide p {
  color: #444;
}
.journey-nav {
  background: #fff;
  border: 1px solid #5a2ea6;
  color: #5a2ea6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.journey-nav:hover {
  background: #5a2ea6;
  color: #fff;
}
/* Horizontal Stepper Styles */
.stepper {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}
.stepper-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.stepper-btn {
  background: #fff;
  border: 1px solid #5a2ea6;
  color: #5a2ea6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
}
.stepper-btn:hover {
  background: #5a2ea6;
  color: #fff;
}
.stepper-list {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stepper-step {
  width: 32px;
  height: 32px;
  border: 2px solid #5a2ea6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a2ea6;
  cursor: pointer;
  font-weight: bold;
}
.stepper-step.active {
  background: #5a2ea6;
  color: #fff;
}
.stepper-content {
  border-top: 1px solid #ddd;
  padding-top: 24px;
}
.step-panel {
  display: none;
  text-align: center;
}
.step-panel.active {
  display: block;
}
.stepper-step.disabled {
  opacity: 0.4;
  cursor: default;
}
.stepper-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.infographic-small img {
  max-width: 300px;
  float: right;
  margin: 0 0 20px 20px;
  cursor: pointer;
}
.infographic-caption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
  clear: both;
  text-align: left;
}
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content {
  background: #fff;
  margin: 60px auto;
  padding: 20px;
  max-width: 1200px;
  width: 92%;
  border-radius: 8px;
  position: relative;
  animation: slideInUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-content img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  font-weight: bold;
  color: #5a2ea6;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #333;
}

/* Team Bio Modal Styles */
.bio-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.bio-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
  margin: 40px auto;
  padding: 0;
  max-width: 800px;
  width: 92%;
  border-radius: 16px;
  position: relative;
  animation: slideInUp 0.4s ease;
  box-shadow: 0 25px 80px rgba(0,0,0,0.25);
  overflow: hidden;
}

.bio-modal-header {
  background: linear-gradient(135deg, #6c4ed9 0%, #8b5cf6 100%);
  color: white;
  padding: 30px;
  text-align: center;
  position: relative;
}

.bio-modal-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 4px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: white;
  overflow: hidden;
}

.bio-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.bio-modal-name {
  font-size: 2.2em;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bio-modal-title {
  font-size: 1.2em;
  opacity: 0.9;
  margin: 0 0 20px 0;
  font-weight: 400;
}

.bio-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
}

.bio-badge {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.bio-badge:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.bio-badge-icon {
  font-size: 1em;
}

.bio-modal-body {
  padding: 40px;
  line-height: 1.7;
  color: #444;
}

.bio-modal-body p {
  margin-bottom: 20px;
  font-size: 1.05em;
}

.bio-modal-body p:last-child {
  margin-bottom: 0;
}

.bio-modal-section {
  margin-bottom: 30px;
}

.bio-modal-section h4 {
  color: #6c4ed9;
  font-size: 1.3em;
  margin-bottom: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.bio-modal-section h4:before {
  content: "▶";
  margin-right: 8px;
  font-size: 0.8em;
  opacity: 0.7;
}

.bio-modal-highlights {
  background: #f8f9fc;
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid #6c4ed9;
  margin: 25px 0;
}

.bio-modal-highlights ul {
  margin: 0;
  padding-left: 20px;
}

.bio-modal-highlights li {
  margin-bottom: 8px;
  color: #555;
}

.bio-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: bold;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
}

.bio-modal-close:hover {
  color: white;
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

/* Responsive styles for bio modal */
@media (max-width: 768px) {
  .bio-modal-content {
    margin: 20px auto;
    width: 95%;
  }
  
  .bio-modal-header {
    padding: 25px 20px;
  }
  
  .bio-modal-photo {
    width: 100px;
    height: 100px;
  }
  
  .bio-modal-name {
    font-size: 1.8em;
  }
  
  .bio-modal-body {
    padding: 30px 25px;
  }
  
  .bio-modal-close {
    top: 10px;
    right: 15px;
    font-size: 28px;
    width: 35px;
    height: 35px;
  }
  
  .bio-modal-badges {
    gap: 6px;
  }
  
  .bio-badge {
    padding: 4px 8px;
    font-size: 0.8em;
  }
  
  .bio-badge-icon {
    font-size: 0.9em;
  }
}
/* Video Hero Enhancements */
.hero.video-hero {
  overflow: visible; /* allow video to show */
  padding: 80px 16px 0; /* sit below banner/navbar, match hero side padding */
  background: #f9f5fe; /* maintain background gradient */
}

.hero.video-hero .hero-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio to control hero height */
  overflow: hidden;
}

.hero.video-hero .hero-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero.video-hero .hero-content {
  padding: 40px 16px;
}

/* Incontinence: two-up videos under hero */
.video-under-hero .video-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}
.video-under-hero .video-container {
  flex: 1 1 520px;       /* grow/shrink, base width */
  max-width: 540px;      /* ensures two fit within 1100px container */
}
.video-under-hero .ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.video-under-hero .ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 600px) {
  .video-under-hero .video-container {
    max-width: 100%;
  }
}
/* What to Expect two-column layout */
.what-to-expect .expect-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.what-to-expect .expect-content {
  flex: 1 1 560px;
  min-width: 300px;
}
.what-to-expect .expect-aside {
  flex: 0 1 380px;
  max-width: 420px;
}
/* Override float when infographic sits in the sidebar */
.what-to-expect .expect-aside .infographic-small img {
  float: none;
  max-width: 100%;
  margin: 0;
}

/* Understanding Fecal Incontinence – Infographic */
.infographic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 20px;
}
.infographic-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 16px 16px 18px;
  border-left: 4px solid #5a2ea6;
}
.infographic-card h3 {
  font-size: 1.05rem;
  color: #2c0a4d;
  margin-bottom: 8px;
}
.infographic-card p,
.infographic-card ul {
  font-size: 0.95rem;
  color: #444;
}
.infographic-card ul {
  list-style: disc;
  margin-left: 1.2rem;
  padding-left: 0.2rem;
}
.infographic-note {
  max-width: 1000px;
  margin: 8px auto 0;
  padding: 0 16px;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}
/* Incontinence page: make testimonials skinnier */
#testimonials .testimonial-carousel {
  max-width: 720px; /* was 1000px site-wide */
}
#testimonials .testimonial {
  padding: 20px 22px; /* Good padding for readability */
  /* Removed max-height and overflow to allow full content display */
}
#testimonials .testimonial p {
  font-size: 0.95rem;
}

/* Symptoms Checker */
.symptoms-checker {
  padding: 60px 16px;
  background: #f9f7fd;
  border-radius: 12px;
  box-shadow: 0 18px 40px -6px rgba(90,46,166,0.1);
}
.symptoms-checker h2 {
  color: #2c0a4d;
  margin-bottom: 16px;
}
.symptoms-checker p {
  color: #555;
  margin-bottom: 24px;
}
.symptoms-checker .checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.symptoms-checker .checklist li {
  background: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}
.symptoms-checker .checklist li .check-icon {
  font-size: 24px;
  color: #5a2ea6;
}
.symptoms-checker .checklist li span {
  color: #444;
  font-size: 0.95rem;
}

/* Intro split: text/cards + infographic image */
.intro-split {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.intro-split .intro-left {
  flex: 1 1 480px;
  min-width: 300px;
}
.intro-split .intro-right {
  flex: 0 1 520px;   /* give the checklist more room */
  max-width: 600px;  /* allow a larger rendered width */
}
.intro-split .intro-right img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Align symptoms assessment with the "Why It Happens" box */
.checklist-container {
  margin-top: 130px;
}

/* SNM Effectiveness – enhanced visuals */
.snm-effectiveness {
  padding: 60px 16px;
}
.snm-effectiveness .snm-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(90,46,166,0.15);
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 28px 24px;
  position: relative;
}
.snm-effectiveness .snm-panel::before {
  content: '';
  position: absolute;
  top: -10px; left: 24px; right: 24px;
  height: 6px;
  background: linear-gradient(90deg,#5a2ea6, #8b5cf6);
  border-radius: 8px;
}
.snm-effectiveness .section-header.modern { margin-bottom: 18px; }
.snm-effectiveness .lead {
  color: #444;
  font-size: 1rem;
  margin: 6px 0 18px;
}
.snm-effectiveness .two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.snm-effectiveness h3 {
  color: #2c0a4d;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.snm-effectiveness .feature-list {
  list-style: none;
  margin: 0; padding: 0;
}
.snm-effectiveness .feature-list li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
  color: #333;
}
.snm-effectiveness .feature-list li::before {
  content: '✔';
  position: absolute; left: 0; top: 0;
  color: #2aa781;
  font-weight: 700;
}
.snm-effectiveness .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.snm-effectiveness .stat-card {
  background: #f7f5fe;
  border: 1px solid #ede8fa;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; gap: 10px; align-items: center;
}
.snm-effectiveness .stat-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: #5a2ea6; color: #fff; font-weight: 700;
}
.snm-effectiveness .stat-text { color: #3b3360; font-weight: 600; }

/* Make zoomable images indicate interactivity */
.zoomable { cursor: zoom-in; }

/* What to Expect – enhanced visuals */
.what-to-expect { padding: 60px 16px; }
.what-to-expect .expect-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(90,46,166,0.15);
  padding: 22px 24px;
}
.what-to-expect .expect-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.what-to-expect .expect-item:last-child { border-bottom: none; }
.what-to-expect .expect-badge {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: #5a2ea6;
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(90,46,166,0.25);
}
.what-to-expect .expect-text h4 {
  margin: 0 0 4px;
  color: #2c0a4d;
  font-size: 1.05rem;
}
.what-to-expect .expect-text p {
  margin: 0;
  color: #444;
}
/* Right graphic as a framed card */
.expect-aside .art {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px -10px rgba(90,46,166,.18);
  padding: 10px;
}
.expect-aside .art img { width: 100%; height: auto; border-radius: 10px; display: block; }
.expect-aside .infographic-caption { text-align: center; margin-top: 8px; color: #555; }
/* Make right column sticky on large screens */
@media (min-width: 1024px) {
  .expect-aside { position: sticky; top: 90px; }
}
/* What to Expect – panel + numbered headings (no markup change needed) */
.what-to-expect .expect-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(90,46,166,0.15);
  padding: 22px 24px;
  counter-reset: expect-step;
}
.what-to-expect .expect-content h3 {
  position: relative;
  margin: 10px 0 6px;
  padding-left: 46px;
  color: #2c0a4d;
}
.what-to-expect .expect-content h3::before {
  counter-increment: expect-step;
  content: counter(expect-step);
  position: absolute;
  left: 0; top: 0.1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #5a2ea6;
  color: #fff;
  font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(90,46,166,0.25);
}
.what-to-expect .expect-content p {
  margin: 0 0 14px;
  color: #444;
}
/* Frame the right-side infographic nicely even with old markup */
.what-to-expect .expect-aside .infographic-small {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px -10px rgba(90,46,166,0.18);
  padding: 12px;
}
.what-to-expect .expect-aside .infographic-small img {
  border-radius: 10px;
}
@media (min-width: 1024px) {
  .what-to-expect .expect-aside { position: sticky; top: 90px; }
}
/* Listen to the Whole Experience */
.listen-experience { padding: 60px 16px; }
.listen-experience .split {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.listen-experience .copy {
  flex: 1 1 420px;
  min-width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(90,46,166,0.15);
  padding: 22px 24px;
}
.listen-experience .copy h3 { color: #2c0a4d; margin-bottom: 10px; }
.listen-experience .copy p { color: #444; margin-bottom: 10px; }
.listen-experience .copy ul { margin: 8px 0 0 1.1rem; color: #444; }
.listen-experience .media {
  flex: 1 1 520px;
  min-width: 320px;
}
.embed-16x9 { position: relative; width: 100%; padding-bottom: 56.25%; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px -10px rgba(0,0,0,0.15); background:#000; }
.embed-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Full‑bleed utility: make a section span the full viewport width even inside a centered wrapper */
.full-bleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}
/* Keep inner content visually centered within full‑bleed */
.full-bleed .section-header,
.full-bleed .testimonial-carousel {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Make the testimonial card a bit slimmer */
#testimonials .testimonial-carousel { max-width: 640px; }
/* SNM Info — visual refresh */
.snm-info { padding: 60px 16px; }

.snm-info .snm-knowledge{
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(90,46,166,.15);
  padding: 24px 28px;
  counter-reset: snmstep;
}

.snm-info .snm-knowledge h3{
  position: relative;
  margin: 18px 0 8px;
  padding-left: 56px;
  color: #2c0a4d;
}
.snm-info .snm-knowledge h3::before{
  counter-increment: snmstep;
  content: counter(snmstep);
  position: absolute; left: 0; top: 0.05rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: #5a2ea6; color: #fff; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(90,46,166,.25);
}

.snm-info .snm-knowledge h3 + p{
  margin: 0 0 14px;
  background: #f9f7fd;
  border: 1px solid #ede8fa;
  border-left: 4px solid #5a2ea6;
  padding: 12px 14px;
  border-radius: 10px;
  color: #444;
}

.snm-info .snm-knowledge p{ margin: 0 0 12px; color:#444; }

/* “Not appropriate” list */
.snm-info .snm-knowledge ul{
  list-style: none; margin: 8px 0 6px; padding: 0;
  background:#fff; border:1px solid #ede8fa; border-radius:12px; padding:12px 14px;
}
.snm-info .snm-knowledge ul li{
  position: relative; padding-left: 26px; margin: 8px 0; color:#333;
}
.snm-info .snm-knowledge ul li::before{
  content: "•";
  position: absolute; left: 8px; top: 2px;
  color: #5a2ea6; font-weight: 900;
}

/* Inline link -> subtle pill button */
.snm-info .snm-knowledge p a{
  display: inline-block;
  border: 1px solid #5a2ea6;
  color: #5a2ea6; text-decoration: none; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; margin-left: 6px;
}
.snm-info .snm-knowledge p a:hover,
.snm-info .snm-knowledge p a:focus{
  background:#f4f0fa;
  outline: none;
}

/* Small screens */
@media (max-width: 640px){
  .snm-info .snm-knowledge{ padding: 20px 16px; }
  .snm-info .snm-knowledge h3{ padding-left: 48px; }
  .snm-info .snm-knowledge h3::before{ width:30px; height:30px; }
}
/* Accredited & Certified – uniform logo cards */
.accredit-logos{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:center;
  align-items:center;
  max-width:1100px;
  margin:8px auto 0;
}
/* Uniform logo card size + subtle elevation */
.accredit-logo{
  width:200px;
  height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border-radius:12px;
  box-shadow:0 22px 48px -16px rgba(90,46,166,.20);
  padding:12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.accredit-logo:hover,
.accredit-logo:focus-within{
  transform: translateY(-2px);
  box-shadow:0 26px 56px -16px rgba(90,46,166,.24);
}
.accredit-logo img{
  max-width:100%;
  max-height:72px; /* consistent visual height across logos */
  object-fit:contain;
}
@media (max-width:600px){
  .accredit-logo{ width:48%; height:110px; }
  .accredit-logo img{ max-height:62px; }
}

/* SNM Works – formatted two‑column layout with cards */
.snm-helps { padding: 60px 16px; }
.snm-helps .works-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;                /* increased breathing room */
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
  padding: 0 16px;
}
.snm-helps .card{
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(90,46,166,.15);
  padding: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.snm-helps .card:hover,
.snm-helps .card:focus-within{
  transform: translateY(-2px);
  box-shadow: 0 26px 60px -16px rgba(90,46,166,.20);
}
.snm-helps .figure-card img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.snm-helps .mini-labels{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px;
}
.snm-helps .mini-pill{
  background: #f0edfa;
  color: #2c0a4d;
  border: 1px solid #ede8fa;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}
/* Step list readability */
.snm-helps .steps ol{ margin:  0; padding-left: 1.3rem; line-height: 1.6; }
.snm-helps .steps li{ margin: 4px 0; }
.snm-helps .steps{ margin-top: 10px; color:#444; font-size: .95rem; }
.snm-helps .steps ol{ margin: 0; padding-left: 1.2rem; }

.snm-helps .col{ display: grid; gap: 16px; }

.snm-helps .device-card{ text-align: center; }
.snm-helps .device-card img{
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 12px;
 display: block;
  margin: 0 auto;
}
.snm-helps .device-card .caption{ color:#555; font-size:.95rem; margin-top:8px; }

.snm-helps .text-card{ padding: 18px 20px; }
.snm-helps .text-card h3{ color:#2c0a4d; margin: 6px 0 8px; font-size:1.05rem; }
.snm-helps .text-card p{ color:#444; margin: 0 0 10px; }
.snm-helps .text-card ul{ color:#444; margin: 0 0 0 1.2rem; }

.snm-helps .stat-pill{
  display: inline-block;
  background: #eaf7f2;
  color: #1f7e5e;
  border: 1px solid #cfeee2;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  margin: 2px 0 10px;
}
.snm-helps .inline-link{
  display: inline-block;
  margin-top: 6px;
  color: #5a2ea6;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed #b8a5ec;
}
.snm-helps .inline-link:hover,
.snm-helps .inline-link:focus{
  text-decoration: none;
  border-bottom-color: transparent;
}

@media (max-width: 900px){
  .snm-helps .works-grid{ grid-template-columns: 1fr; }
}

.snm-helps .section-header.modern h2{
  font-size: 2.25rem;
}

/* Insurance logos – continuous left-to-right ticker */
 .ins-ticker{
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 10px auto 0;
  padding: 12px 0;
  /* soft edge fades */
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
 .ins-track{
  display: flex;
  align-items: center;
  gap: 36px;
  will-change: transform;
  animation: ins-scroll 38s linear infinite;
  animation-direction: reverse; /* move left ➜ right */
}
@keyframes ins-scroll{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* because we duplicate the row */
}
 .ins-logo{
  flex: 0 0 auto;
  height: 64px;              /* uniform logo lane height */
  display: flex;
  align-items: center;
}
 .ins-logo img{
  height: auto;
  max-height: 48px;          /* consistent visual size */
  width: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(20%);
  opacity: 0.95;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
 .ins-logo:hover img{
  filter: none;
  opacity: 1;
  transform: scale(1.04);
  pointer-events: auto;
}
 .ins-ticker:hover .ins-track{ animation-play-state: paused; }

@media (max-width: 700px){
  .ins-track{ gap: 22px; }
  .ins-logo{ height: 54px; }
  .ins-logo img{ max-height: 40px; }
}
@media (prefers-reduced-motion: reduce){
  .ins-track{ animation: none; }
}
/* Why Choose – elevated panel, icon list, chips */
.why-choose { padding: 60px 16px; }
.why-choose .why-panel{
  background:#fff;
  border-radius:16px;
  box-shadow:0 24px 60px -12px rgba(90,46,166,.15);
  max-width:1100px;
  margin: 0 auto;
  padding: 24px 24px 26px;
  position: relative;
}
.why-choose .why-panel::before{
  content:'';
  position:absolute;
  top:-10px; left:24px; right:24px;
  height:6px;
  background:linear-gradient(90deg,#5a2ea6,#8b5cf6);
  border-radius:8px;
}
.why-choose .why-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:24px;
  align-items:center;
}
.why-choose .why-list{
  list-style:none;
  padding:0; margin:0 0 10px;
  display:grid; gap:10px;
}
.why-choose .why-list li{
  background:#f9f7fd;
  border:1px solid #ede8fa;
  border-left:4px solid #5a2ea6;
  border-radius:10px;
  padding:12px 14px 12px 40px;
  position:relative;
  color:#333;
}
.why-choose .why-list li::before{
  content:'✔';
  position:absolute;
  left:12px; top:11px;
  width:20px; height:20px;
  display:grid; place-items:center;
  color:#1f7e5e; font-weight:700;
}
.why-choose .why-chips{
  display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 14px;
}
.why-choose .why-chip{
  background:#f0edfa;
  border:1px solid #ede8fa;
  color:#2c0a4d;
  font-weight:700;
  font-size:.85rem;
  padding:6px 10px;
  border-radius:999px;
}
.why-choose .why-image{
  background:#fff;
  border-radius:14px;
  box-shadow:0 16px 40px -10px rgba(90,46,166,.18);
  padding:10px;
}
.why-choose .why-image img{
  width:100%; height:auto; display:block; border-radius:10px;
}
.why-choose .cta-row{ display:flex; gap:12px; flex-wrap:wrap; }
.why-choose .cta-row .btn-secondary{ border-width:1px; }
/* Responsive */
@media (max-width: 900px){
  .why-choose .why-grid{ grid-template-columns: 1fr; }
}

/* ===== Upgraded CTA Panel ===== */
.get-started.cta {
  padding: 70px 16px;
  background: #f4f4f8;
}
.get-started.cta .cta-panel{
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg,#5a2ea6 0%,#7c50d6 45%,#9b75ff 100%);
  color:#fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(90,46,166,.35);
  padding: 36px 28px 30px;
  position: relative;
  overflow: hidden;
}
.get-started.cta .cta-panel::after,
.get-started.cta .cta-panel::before{
  content:'';
  position:absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity:.25;
}
.get-started.cta .cta-panel::before{
  width: 240px; height: 240px;
  right: -60px; top: -60px;
  background: radial-gradient(circle at 30% 30%, #fff, transparent 60%);
}
.get-started.cta .cta-panel::after{
  width: 280px; height: 280px;
  left: -80px; bottom: -80px;
  background: radial-gradient(circle at 70% 70%, #fff, transparent 60%);
}
.get-started.cta .section-header.modern { margin-bottom: 10px; }
.get-started.cta .section-header.modern .section-line{
  background: rgba(255,255,255,.95);
}
.get-started.cta .section-header.modern h2{
  color:#fff;
  font-size: 2.25rem;
}
.get-started.cta .cta-sub{
  color: rgba(255,255,255,.92);
  margin-top: 6px;
  font-size: 1rem;
}
.get-started.cta .cta-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top: 14px;
}
/* CTA button variants for dark panel */
.btn-white{
  background:#fff;
  color:#5a2ea6;
  padding:14px 26px;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
  display:inline-block;
  border:none;
  box-shadow: 0 10px 26px -10px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-white:hover,.btn-white:focus{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.4);
}
.btn-outline-white{
  background: transparent;
  color:#fff;
  border:2px solid rgba(255,255,255,.95);
  padding:14px 26px;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
  display:inline-block;
  transition: background .2s ease, transform .2s ease;
}
.btn-outline-white:hover,.btn-outline-white:focus{
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}
.get-started.cta .cta-badges{
  display:flex; gap:8px; flex-wrap:wrap; justify-content:center;
  margin-top: 14px;
}
.get-started.cta .cta-chip{
  background: rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.35);
  color:#fff;
  font-weight:700;
  font-size:.85rem;
  padding:6px 10px;
  border-radius:999px;
}
.get-started.cta .cta-note{
  text-align:center;
  margin-top: 14px;
  color: rgba(255,255,255,.92);
}
.get-started.cta .cta-note a{
  color:#fff;
  font-weight:700;
  text-decoration:none;
  border-bottom:1px dotted rgba(255,255,255,.6);
}
@media (max-width:600px){
  .get-started.cta .section-header.modern h2{ font-size:1.9rem; }
}

/* Bariatric Info (Everything You Need to Know) — v2 ===== */
.bariatric-info.section--dark {
  background: linear-gradient(180deg, #f7f7fc 0%, #f1effa 100%);
  padding: 46px 16px 44px;
  border-radius: 36px;
  box-shadow: 0 20px 60px -10px rgba(90,46,166,.12);
  max-width: 1200px;
  margin: 42px auto;
}
.bariatric-info .section-header.modern { margin-bottom: 20px; }

/* Layout: card grid + optional aside */
.bi-wrap{
  display: grid;
  grid-template-columns: minmax(0,1fr) 360px;
  gap: 28px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 1020px){
  .bi-wrap{ grid-template-columns: 1fr; }
}

/* 3-up information cards */
.bi-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
@media (max-width: 860px){
  .bi-grid{ grid-template-columns: 1fr; }
}
.bi-card{
  background: #fff;
  border: 1px solid #ececf6;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 12px 30px -12px rgba(61,61,139,.18);
}
.bi-card h3{
  color: #3d3d8b;
  margin-bottom: 8px;
  font-size: 1.15rem;
}
.bi-card p{ color:#444; }
.bi-icon{
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 10px;
}

/* Lists inside cards */
.bi-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.bi-list li{
  position: relative;
  padding-left: 26px;
  color:#444;
}
.bi-list li::before{
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: #1f7e5e;
  font-weight: 700;
}

/* Aside / Illustration */
.bi-aside{
  background: #fff;
  border: 1px solid #ececf6;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 14px 40px -14px rgba(61,61,139,.18);
}
.bi-illustration{
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid #f0eef9;
}
.bi-illustration img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.bi-caption{
  font-size: .92rem;
  color: #555;
  margin-top: 8px;
  text-align: center;
}
/* ===== Bariatric Info — visual polish v3 ===== */
.bariatric-info.section--dark{
  /* token-like variables scoped to this section */
  --ns-primary: #5a2ea6;
  --ns-accent:  #6c4ed9;
  --ns-ink:     #2c0a4d;
  --ns-muted:   #5b5b74;
  --card-bg:    #ffffff;

  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f7fc 0%, #f1effa 100%);
  border-radius: 36px;
  box-shadow: 0 22px 64px -14px rgba(90,46,166,.14);
}

/* soft decorative blobs */
.bariatric-info.section--dark::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(30rem 30rem at 18% -10%, rgba(108,78,217,.10), transparent 55%),
    radial-gradient(24rem 24rem at 118% 28%, rgba(90,46,166,.08), transparent 60%);
  pointer-events:none;
}

/* header tweaks */
.bariatric-info .section-header.modern .subhead{
  color: var(--ns-muted);
  max-width: 720px;
  margin: 6px auto 0;
  font-size: 1.05rem;
}

/* grid spacing refinement */
.bi-wrap{ gap: 30px; }
.bi-grid{ gap: 22px; }

/* cards */
.bi-card{
  background: var(--card-bg);
  border: 1px solid #ececf6;
  border-radius: 18px;
  padding: 20px 18px 18px;
  box-shadow: 0 16px 38px -16px rgba(61,61,139,.22);
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
  overflow: hidden;
}
/* subtle gradient top accent */
.bi-card::after{
  content:'';
  position:absolute;
  left:0; right:0; top:0;
  height: 3px;
  background: linear-gradient(90deg, var(--ns-accent), #9a7df2 55%, #b8a8f2);
  opacity: .65;
}
.bi-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 56px -20px rgba(61,61,139,.30);
  border-color: #e4e1f6;
}
.bi-card:focus-within{
  outline: 0;
  box-shadow: 0 0 0 3px rgba(108,78,217,.16), 0 22px 52px -18px rgba(61,61,139,.28);
}

/* icon badge */
.bi-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg,#f3edff,#ebe7fb);
  color: var(--ns-accent);
  border: 1px solid #e8e4fb;
  box-shadow: 0 10px 22px -12px rgba(61,61,139,.30);
  margin-bottom: 12px;
  font-size: 1.35rem;
}

/* headings & copy */
.bi-card h3{
  color: var(--ns-ink);
  letter-spacing: .2px;
  margin-bottom: 10px;
}
.bi-card p{ color:#3f3f57; }

/* list bullets */
.bi-list{
  gap: 10px;
}
.bi-list li{
  color:#3f3f57;
  padding-left: 28px;
}
.bi-list li::before{
  content:'';
  position:absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0 40%, transparent 41%),
              linear-gradient(135deg, var(--ns-accent), #8b6df0);
  box-shadow: 0 3px 10px -4px rgba(61,61,139,.35);
}
/* the checkmark inside the dot */
.bi-list li{ position: relative; }
.bi-list li::after{
  content: '✓';
  position: absolute;
  left: 6px;
  top: 0;
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.4;
  font-weight: 800;
}

/* Aside / Illustration — glass card + sticky on desktop */
.bi-aside{
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  backdrop-filter: saturate(120%) blur(6px);
  border: 1px solid #ececf6;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 26px 60px -20px rgba(61,61,139,.28);
  position: sticky;
  top: 96px;
}
.bi-illustration{
  border: 0;
  padding: 0;
}
.bi-illustration img{
  display:block;
  width:100%;
  height:auto;
  border-radius: 14px;
  box-shadow: 0 18px 44px -16px rgba(61,61,139,.3);
  transition: transform .22s ease, box-shadow .22s ease;
}
.bi-illustration img:hover{
  transform: translateY(-3px);
  box-shadow: 0 26px 70px -22px rgba(61,61,139,.38);
}
.bi-caption{
  color: #4b4b66;
  font-size: .94rem;
  margin-top: 10px;
}

/* responsive fine-tuning */
@media (max-width: 1020px){
  .bi-aside{ position: relative; top: 0; }
}
@media (max-width: 860px){
  .bariatric-info.section--dark{ border-radius: 28px; }
  .bi-card{ padding: 18px 16px; }
  .bi-icon{ width:44px;height:44px; }
}

/* Mobile Optimization - Comprehensive */
@media (max-width: 768px) {
  /* Reset checklist alignment for mobile */
  .checklist-container {
    margin-top: 20px;
  }
  
  /* Intro split mobile adjustments */
  .intro-split {
    flex-direction: column;
    gap: 30px;
  }
  
  .intro-split .intro-left,
  .intro-split .intro-right {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  /* Ensure buttons are touch-friendly */
  .btn-primary,
  .btn-secondary,
  .cta-nav {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Cards and grids mobile responsive */
  .infographic-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .infographic-card {
    text-align: center;
  }
  
  /* Video containers mobile */
  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Journey steps mobile */
  .bariatric-journey-img-row {
    flex-direction: column;
    gap: 30px;
  }
  
  /* Section padding adjustments */
  section {
    padding: 40px 16px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .section-header h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .checklist-container {
    margin-top: 10px;
  }
  
  /* Smaller text for very small screens */
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  /* Ensure forms are mobile-friendly */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px;
    padding: 12px;
  }
  
  /* Mobile navigation improvements */
  .nav-menu {
    font-size: 16px;
  }
  
  .nav-menu ul li a {
    padding: 15px 18px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Testimonial cards mobile */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  /* Bio modal mobile improvements */
  .bio-modal-content {
    width: 95%;
    margin: 10px auto;
  }
  
  .bio-modal-header {
    padding: 20px 15px;
  }
  
  .bio-modal-body {
    padding: 20px 15px;
  }
  
  /* Image gallery mobile improvements */
  .image {
    cursor: pointer;
    transition: transform 0.2s ease; /* Faster animation for mobile */
  }
  
  /* Video container mobile improvements */
  .video-container {
    margin: 1.5rem 0;
  }
  
  /* Checklist actions mobile */
  .checklist-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }
  
  .checklist-actions .btn-secondary,
  .checklist-actions .btn-primary {
    width: 100%;
    text-align: center;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .image:hover {
    transform: none;
  }
  
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
  
  /* Larger touch targets for touch devices */
  .clickable-image {
    padding: 10px;
  }
}

/* Landscape phone orientation */
@media (max-width: 896px) and (orientation: landscape) {
  .hero {
    padding: 60px 16px 40px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  /* Reduce section padding in landscape */
  section {
    padding: 30px 16px;
  }
}

/* Override inline styles for mobile responsiveness */
@media (max-width: 768px) {
  /* Video row responsive override */
  .video-row[style] {
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 1rem 0.5rem !important;
  }
  
  /* Video container responsive override */
  .video-container[style],
  .video-container-wrapper[style] {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Card max-width override for mobile */
  .card[style*="max-width"] {
    max-width: 100% !important;
    margin: 0 1rem !important;
  }
  
  /* Form container override */
  div[style*="max-width: 500px"] {
    max-width: 100% !important;
    margin: 0 1rem !important;
  }
}

/* Very small screens - additional overrides */
@media (max-width: 480px) {
  /* Modal image responsive */
  #ba-modal-img[style] {
    max-width: 95vw !important;
    max-height: 80vh !important;
  }
  
  /* Video modal responsive */
  #video-modal-iframe-container[style] {
    width: 95vw !important;
    height: 53.4vw !important;
    max-height: 400px !important;
  }
}

/* Mobile accessibility and performance improvements */
@media (max-width: 768px) {
  /* Improve scrolling performance */
  * {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Improve text readability */
  body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  
  /* Skip link for mobile screen readers */
  .skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
  }
  
  .skip-link:focus {
    top: 6px;
  }
  
  /* Focus indicators for mobile keyboard users */
  a:focus,
  button:focus,
  input:focus,
  textarea:focus,
  select:focus {
    outline: 2px solid #6c4ed9;
    outline-offset: 2px;
  }
  
  /* Improve contrast for mobile readability */
  .subhead,
  .lead {
    color: #333;
  }
  
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  /* Optimize images for mobile */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary,
  .btn-secondary {
    border: 2px solid currentColor;
  }
  
  .infographic-card {
    border: 1px solid currentColor;
  }
}