/* ============================================================
   EthosMedi — Custom CSS (Bootstrap 5 Override Layer)
   Figma-matched padding, colors, and components
   ============================================================ */

/* ---- Variables — EthosMedi Brand Theme ---- */
:root {
  /* Primary: EthosMedi Blue ("ethos") */
  --cp-blue:    #009688;
  --cp-blue-dk: #00796B;
  --cp-blue-lt: #E8EEFB;
  --cp-blue-bg: #F0F4FF;

  /* Secondary: EthosMedi Teal ("medi") */
  --cp-teal:    #1B4DB8;
  --cp-teal-dk: #153A8E;
  --cp-teal-lt: #E0F5F3;
  --cp-teal-bg: #F0FBF9;

  /* Accent: EthosMedi Red (dot + tagline) */
  --cp-red:     #C0392B;
  --cp-red-lt:  #FDECEA;
  --cp-red-bg:  #FFF5F4;

  /* Semantic aliases (used throughout) */
  --cp-dark:    #009688;
  --cp-bg:      #F9FAFB;
  --cp-white:   #ffffff;
  --cp-text:    #1F2937;
  --cp-muted:   #6B7280;
  --cp-border:  #E5E7EB;
  --cp-radius:  12px;
  --cp-shadow:  0 4px 24px rgba(0,150,136,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, sans-serif;
  color: var(--cp-text);
  background: var(--cp-white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   NAVBAR
   ============================================================ */
.cp-navbar {
  background: var(--cp-white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  padding: 0;
  min-height: 72px;
}

.cp-navbar-scrolled {
  border-bottom-color: var(--cp-border);
  box-shadow: 0 2px 20px rgba(78,68,69,0.07);
}

.cp-navbar .container-xl {
  height: 72px;
  display: flex;
  align-items: center;
}

/* Brand */
.cp-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  font-weight: 400;
  color: var(--cp-dark);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.cp-brand strong { font-weight: 700; }
.cp-logo-icon { color: var(--cp-red); font-size: 18px; line-height: 1; }

/* Desktop nav links */
.cp-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--cp-text) !important;
  letter-spacing: 0.28px;
  padding: 6px 10px !important;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  position: relative;
}
.cp-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--cp-red);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s;
}
.cp-nav-link:hover::after,
.cp-nav-link.active::after { transform: scaleX(1); }
.cp-nav-link:hover, .cp-nav-link.active { color: var(--cp-red) !important; }

/* Book button */
.cp-btn-book {
  background: var(--cp-teal);
  color: var(--cp-white);
  border: none;
  border-radius: 100px;
  padding: 10px 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,150,136,0.25);
}
.cp-btn-book:hover {
  background: var(--cp-teal-dk);
  color: var(--cp-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,150,136,0.35);
}

/* Hamburger toggler */
.cp-toggler {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.cp-toggler:hover { background: var(--cp-bg); }
.cp-toggler span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cp-dark);
  border-radius: 2px;
  transition: all 0.3s;
}
/* Bootstrap handles toggler open/close state via JS */

/* Offcanvas */
.cp-offcanvas {
  max-width: 300px;
}
.cp-mobile-link {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: var(--cp-text);
  padding: 14px 8px;
  border-bottom: 1px solid var(--cp-border);
  transition: color 0.2s, padding-left 0.2s;
}
.cp-mobile-link:hover { color: var(--cp-red); padding-left: 16px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.cp-btn-primary {
  background: var(--cp-teal);
  color: var(--cp-white);
  border: none;
  border-radius: 100px;
  padding: 13px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0,150,136,0.22);
}
.cp-btn-primary:hover {
  background: var(--cp-teal-dk);
  color: var(--cp-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,150,136,0.32);
}

.cp-btn-secondary {
  background: var(--cp-teal-lt);
  color: var(--cp-blue-dk);
  border: 2px solid var(--cp-blue);
  border-radius: 100px;
  padding: 11px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}
.cp-btn-secondary:hover {
  background: var(--cp-blue);
  color: var(--cp-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27,77,184,0.28);
}

.cp-btn-cta {
  background: transparent;
  color: var(--cp-white);
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 100px;
  padding: 12px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cp-btn-cta:hover {
  background: var(--cp-white);
  color: var(--cp-teal);
  border-color: var(--cp-white);
  box-shadow: 0 6px 20px rgba(255,255,255,0.25);
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
.cp-section { padding: 80px 0; }
.cp-section-header { margin-bottom: 48px; }
.cp-section-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--cp-text);
  margin-bottom: 14px;
}
.cp-section-sub {
  font-size: 15px;
  color: var(--cp-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================================
   HERO
   ============================================================ */
.cp-hero {
  padding: 64px 0 80px;
  background: var(--cp-white);
}
.cp-hero-title {
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--cp-text);
  margin-bottom: 20px;
}
.cp-hero-desc {
  font-size: 15px;
  color: var(--cp-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}
.cp-hero-img {
  border-radius: var(--cp-radius);
  object-fit: cover;
  max-height: 640px;
  width: 100%;
}
.cp-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cp-dark);
}
.cp-badge-icon { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

/* ============================================================
   SPECIALTY CARDS
   ============================================================ */
.cp-specialty-card {
  background: var(--cp-bg);
  border-radius: var(--cp-radius);
  padding: 28px 22px;
  border: 1px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.cp-specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cp-shadow);
  border-color: var(--cp-red-lt);
}
.cp-specialty-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
.cp-specialty-icon img { width: 44px; height: 44px; object-fit: contain; }
.cp-specialty-title { font-size: 16px; font-weight: 700; color: var(--cp-text); margin-bottom: 10px; }
.cp-specialty-desc { font-size: 13px; color: var(--cp-muted); line-height: 1.65; margin: 0; }

/* ============================================================
   DOCTORS CAROUSEL
   ============================================================ */
.cp-doctors-section { background: var(--cp-bg); }

/*
  Outer wrapper: full width relative container so arrows can
  be absolutely positioned at the page edges
*/
.cp-carousel-outer {
  position: relative;
  width: 100%;
}

/* Arrow buttons — absolutely positioned at each side */
.cp-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--cp-border);
  background: var(--cp-white);
  color: var(--cp-dark);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.cp-carousel-arrow:hover {
  background: var(--cp-teal);
  color: var(--cp-white);
  border-color: var(--cp-teal);
  box-shadow: 0 4px 14px rgba(0,150,136,0.25);
}
.cp-carousel-prev { left: 16px; }
.cp-carousel-next { right: 16px; }

/* Inner container: holds the track, same width as page content */
.cp-carousel-container {
  /* no extra styles needed — container-xl + px-4/px-lg-5 handles it */
}

/* Track wrapper — hides overflow */
.cp-carousel-track-wrap {
  overflow: hidden;
  width: 100%;
}

/* Scrollable track */
.cp-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 2px 20px;
}
.cp-carousel-track::-webkit-scrollbar { display: none; }

/* Doctor card — exactly 3 visible by default */
.cp-doctor-card {
  flex: 0 0 calc((100% - 2 * 24px) / 3);
  min-width: 240px;
  background: var(--cp-white);
  border-radius: var(--cp-radius);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 2px 12px rgba(78,68,69,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cp-doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cp-shadow);
}
.cp-doctor-img {
  height: 220px;
  overflow: hidden;
  background: var(--cp-bg);
}
.cp-doctor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.cp-doctor-body { padding: 18px 18px 16px; }
.cp-doctor-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.cp-doctor-name { font-size: 15px; font-weight: 700; color: var(--cp-text); }
.cp-verified { width: 18px; height: 18px; object-fit: contain; }
.cp-tag-spec {
  background: var(--cp-bg);
  color: var(--cp-dark);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
}
.cp-tag-exp {
  display: inline-flex;
  align-items: center;
  background: var(--cp-red-bg);
  color: var(--cp-red);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
}
.cp-doctor-bio {
  font-size: 13px;
  color: var(--cp-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}
.cp-view-profile {
  display: block;
  text-align: center;
  padding: 12px 0 0;
  border-top: 1px solid var(--cp-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-dark);
  transition: color 0.2s;
}
.cp-view-profile:hover { color: var(--cp-red); }

/* ============================================================
   HOSPITALS
   ============================================================ */
.cp-hospital-card {
  background: var(--cp-white);
  border-radius: var(--cp-radius);
  overflow: hidden;
  border: 1px solid var(--cp-border);
  box-shadow: 0 2px 10px rgba(78,68,69,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cp-hospital-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cp-shadow);
}
.cp-hospital-img-wrap { position: relative; height: 210px; overflow: hidden; background: var(--cp-bg); }
.cp-hospital-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.cp-hospital-card:hover .cp-hospital-img-wrap img { transform: scale(1.04); }
.cp-hosp-badge {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--cp-white);
  color: var(--cp-dark);
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.cp-hospital-body { padding: 20px; }
.cp-hospital-name { font-size: 15px; font-weight: 700; color: var(--cp-text); margin-bottom: 8px; }
.cp-hospital-addr {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--cp-muted); margin-bottom: 14px;
}
.cp-hospital-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-stat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500;
  color: var(--cp-dark);
  background: var(--cp-bg);
  border: 1px solid var(--cp-border);
  border-radius: 6px; padding: 5px 10px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cp-cta-banner {
  background: linear-gradient(135deg, #004D40 0%, #009688 45%, #1B4DB8 100%);
  color: var(--cp-white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cp-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cp-cta-title {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.cp-cta-desc {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 32px;
  line-height: 1.75;
  max-width: 400px;
}
.cp-cta-img {
  border-radius: var(--cp-radius);
  max-height: 380px;
  width: 100%;
  object-fit: cover;
  opacity: 0.88;
}

/* ============================================================
   WHY CHOOSE
   ============================================================ */
.cp-why-section { background: var(--cp-bg); }
.cp-why-card {
  background: var(--cp-white);
  border-radius: 20px;
  padding: 52px 48px;
  box-shadow: var(--cp-shadow);
}
.cp-why-title { font-size: clamp(22px, 2.8vw, 32px); font-weight: 700; margin-bottom: 14px; }
.cp-why-desc { font-size: 14px; color: var(--cp-muted); margin-bottom: 28px; line-height: 1.75; }
.cp-why-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--cp-text);
  padding: 6px 0;
}
.cp-check { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.cp-check-txt { color: var(--cp-red); font-weight: 700; }

/* ============================================================
   STATS / COUNTER
   ============================================================ */
.cp-stats-row { padding: 20px 0; }
.cp-stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--cp-text);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
  transition: all 0.1s;
}
.cp-stat-label {
  font-size: 14px;
  color: var(--cp-muted);
  font-weight: 500;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.cp-testi-section { background: var(--cp-bg); }
.cp-testi-card {
  background: var(--cp-white);
  border-radius: var(--cp-radius);
  padding: 28px;
  box-shadow: 0 2px 12px rgba(78,68,69,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cp-testi-card:hover { transform: translateY(-3px); box-shadow: var(--cp-shadow); }
.cp-testi-dark { background: linear-gradient(135deg, var(--cp-teal) 0%, var(--cp-blue-dk) 100%); color: var(--cp-white); }
.cp-quote {
  font-size: 52px; font-weight: 700; line-height: 1;
  color: var(--cp-teal-lt); margin-bottom: 6px;
}
.cp-testi-dark .cp-quote { color: rgba(255,255,255,0.22); }
.cp-testi-text { font-size: 14px; color: var(--cp-muted); line-height: 1.75; margin-bottom: 24px; }
.cp-testi-dark .cp-testi-text { color: rgba(255,255,255,0.82); }
.cp-testi-author { display: flex; align-items: center; gap: 12px; }
.cp-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--cp-bg) center/cover no-repeat;
}
.cp-author-name { font-size: 14px; font-weight: 700; margin: 0; color: var(--cp-text); }
.cp-testi-dark .cp-author-name { color: var(--cp-white); }
.cp-author-handle { font-size: 12px; color: var(--cp-muted); margin: 0; }
.cp-testi-dark .cp-author-handle { color: rgba(255,255,255,0.55); }
.cp-dot {
  display: inline-block; width: 28px; height: 5px;
  border-radius: 100px; background: var(--cp-border);
  transition: background 0.3s;
}
.cp-dot-active { background: var(--cp-blue); }

/* ============================================================
   BLOG
   ============================================================ */
.cp-blog-card {
  background: var(--cp-white);
  border-radius: var(--cp-radius);
  overflow: hidden;
  border: 1px solid var(--cp-border);
  box-shadow: 0 2px 12px rgba(78,68,69,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  color: var(--cp-text);
}
.cp-blog-card:hover { transform: translateY(-4px); box-shadow: var(--cp-shadow); }
.cp-blog-img { height: 210px; overflow: hidden; }
.cp-blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cp-blog-card:hover .cp-blog-img img { transform: scale(1.05); }
.cp-blog-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.cp-blog-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
}
.cp-tag-wellness { background: var(--cp-red-lt); color: var(--cp-red); }
.cp-tag-research  { background: var(--cp-blue-lt); color: var(--cp-teal-dk); }
.cp-tag-support   { background: var(--cp-teal-lt); color: var(--cp-blue-dk); }
.cp-blog-title { font-size: 16px; font-weight: 700; color: var(--cp-text); margin: 0; line-height: 1.4; }
.cp-blog-excerpt { font-size: 13px; color: var(--cp-muted); flex: 1; margin: 0; line-height: 1.6; }
.cp-blog-date { font-size: 12px; color: var(--cp-muted); font-weight: 500; }

/* ============================================================
   FAQ
   ============================================================ */
.cp-faq-section { background: var(--cp-bg); }
.cp-faq-title { font-size: clamp(22px, 3vw, 34px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.cp-faq-desc { font-size: 14px; color: var(--cp-muted); line-height: 1.75; }

.cp-accordion { display: flex; flex-direction: column; gap: 12px; }
.cp-acc-item {
  border: 1px solid var(--cp-border) !important;
  border-radius: var(--cp-radius) !important;
  overflow: hidden;
  background: var(--cp-white);
}
.cp-acc-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--cp-text) !important;
  background: var(--cp-white) !important;
  padding: 20px 24px;
  border: none !important;
  box-shadow: none !important;
}
.cp-acc-btn:not(.collapsed) {
  background: var(--cp-white) !important;
  color: var(--cp-text) !important;
  box-shadow: none !important;
}
.cp-acc-btn::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231B4DB8'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  width: 20px; height: 20px;
}
.cp-acc-body {
  font-size: 14px;
  color: var(--cp-muted);
  line-height: 1.75;
  padding: 0 24px 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.cp-footer { background: var(--cp-white); }
.cp-footer-top { border-top: 1px solid var(--cp-border); padding: 60px 0 40px; }
.cp-footer-brand { text-decoration: none; }
.cp-footer-tag { font-size: 14px; color: var(--cp-muted); max-width: 220px; line-height: 1.6; }
.cp-footer-col-title {
  font-size: 13px; font-weight: 700;
  color: var(--cp-text); margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.cp-footer-links { padding: 0; margin: 0; list-style: none; }
.cp-footer-links li { margin-bottom: 10px; }
.cp-footer-links a { font-size: 14px; color: var(--cp-muted); transition: color 0.2s; }
.cp-footer-links a:hover { color: var(--cp-red); }

.cp-footer-bottom { background: var(--cp-bg); padding: 40px 0 20px; }
.cp-newsletter-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.cp-newsletter-sub { font-size: 14px; color: var(--cp-muted); max-width: 380px; }
.cp-newsletter-input {
  border: 1px solid var(--cp-border);
  border-radius: 100px;
  padding: 12px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--cp-text);
  transition: border-color 0.2s;
  min-width: 240px;
}
.cp-newsletter-input:focus { outline: none; border-color: var(--cp-teal); box-shadow: 0 0 0 3px rgba(0,150,136,0.12); }
.cp-footer-copy { font-size: 13px; color: var(--cp-muted); margin: 0; }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */

/* Tablets */
@media (max-width: 991.98px) {
  .cp-section { padding: 60px 0; }
  .cp-hero { padding: 44px 0 60px; }
  .cp-cta-banner { padding: 52px 0; }
  .cp-cta-desc { max-width: 100%; }
  .cp-why-card { padding: 36px 28px; }

  /* Doctor card: 2 per row on tablet */
  .cp-doctor-card { flex: 0 0 calc((100% - 24px) / 2); }

  /* Arrows: smaller on tablet, still at page edges */
  .cp-carousel-arrow { width: 38px; height: 38px; font-size: 14px; }
  .cp-carousel-prev { left: 8px; }
  .cp-carousel-next { right: 8px; }
}

/* Mobile */
@media (max-width: 767.98px) {
  .cp-section { padding: 48px 0; }
  .cp-section-title { font-size: 22px; }

  .cp-hero { padding: 36px 0 48px; }
  .cp-hero-title { font-size: 28px; }
  .cp-hero-desc { max-width: 100%; }

  /* Doctor card: 1 wide card on mobile */
  .cp-doctor-card { flex: 0 0 82vw; min-width: unset; }

  /* Arrows smaller on mobile */
  .cp-carousel-arrow { width: 34px; height: 34px; font-size: 13px; }
  .cp-carousel-prev { left: 4px; }
  .cp-carousel-next { right: 4px; }

  .cp-why-card { padding: 28px 20px; }

  .cp-cta-banner { padding: 44px 0; }
  .cp-cta-title { font-size: 26px; }
  .cp-cta-img { max-height: 240px; }

  .cp-newsletter-input { min-width: unset; width: 100%; }
}

/* ============================================================
   NEW HERO & LEAD FORM
   ============================================================ */
.cp-hero {
  position: relative;
  background: var(--cp-white);
  padding: 24px 0 32px;
  overflow: hidden;
}
.cp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.20; /* Very subtle blue map */
  z-index: 0;
}
.cp-hero > .container-xl {
  position: relative;
  z-index: 2;
}
.cp-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cp-white);
  color: var(--cp-text);
  border: 1px solid var(--cp-border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.cp-hero-tag i {
  font-size: 16px;
}
.cp-hero-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--cp-text);
  margin-bottom: 20px;
}
.cp-hero-title span {
  color: var(--cp-teal, #009688);
}
.cp-hero-desc {
  font-size: 16px;
  color: var(--cp-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 520px;
}
.cp-hero-stats {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 32px;
  display: inline-flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.cp-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cp-stat-icon {
  width: 40px;
  height: 40px;
}
.cp-stat-text h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--cp-text);
  margin: 0;
}
.cp-stat-text p {
  font-size: 12px;
  color: var(--cp-muted);
  margin: 0;
}

/* Form Styles */
.cp-lead-form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.1);
  position: relative;
  z-index: 10;
}
.cp-lead-form-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--cp-text);
  margin-bottom: 8px;
}
.cp-lead-form-subtitle {
  font-size: 14px;
  color: var(--cp-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}
.cp-input-group {
  position: relative;
}
.cp-input-group .form-control,
.cp-input-group .form-select {
  padding-left: 44px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--cp-border);
  font-size: 14px;
}
.cp-input-group .form-control:focus,
.cp-input-group .form-select:focus {
  border-color: var(--cp-teal);
  box-shadow: 0 0 0 3px rgba(0,150,136,0.1);
}
.cp-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  font-size: 18px;
  z-index: 5;
}
.cp-phone-group {
  display: flex;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  height: 40px;
  overflow: hidden;
}
.cp-phone-group:focus-within {
  border-color: var(--cp-teal);
  box-shadow: 0 0 0 3px rgba(0,150,136,0.1);
}
.cp-country-code-wrapper {
  display: flex;
  align-items: center;
  background: #F9FAFB;
  border-right: 1px solid var(--cp-border);
  padding: 0 10px;
  position: relative;
}
.cp-phone-icon {
  color: #9CA3AF;
  font-size: 16px;
  margin-right: 6px;
}
.cp-country-code {
  border: none;
  background: transparent;
  padding: 0 20px 0 0;
  font-size: 14px;
  cursor: pointer;
  box-shadow: none !important;
}
.cp-phone-group .form-control {
  border: none;
  height: 100%;
  box-shadow: none !important;
  font-size: 14px;
}
.cp-upload-label {
  font-size: 13px;
  color: var(--cp-text);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.cp-file-upload-box {
  border: 2px dashed var(--cp-border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  background: #F9FAFB;
  cursor: pointer;
  transition: all 0.2s;
}
.cp-file-upload-box:hover {
  border-color: var(--cp-teal);
  background: #F0FBF9;
}
.cp-upload-icon {
  font-size: 24px;
  color: var(--cp-muted);
  margin-bottom: 4px;
}
.cp-upload-text {
  font-size: 14px;
  color: var(--cp-text);
  display: block;
}
.cp-upload-hint {
  font-size: 12px;
  color: #9CA3AF;
}
.cp-btn-submit-lead {
  background: var(--cp-blue, #1B4DB8) !important;
  color: #ffffff !important;
  height: 40px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
}
.cp-btn-submit-lead:hover {
  background: var(--cp-blue-dk, #153A8E) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27,77,184,0.25);
}
.cp-secure-note {
  font-size: 11px;
  color: #9CA3AF;
}

/* Hero Features (4 items inline) */
.cp-hero-features {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.cp-hf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.cp-hf-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--cp-teal);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin-bottom: 12px;
}
.cp-hf-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--cp-text);
  margin: 0 0 4px;
}
.cp-hf-text p {
  font-size: 11px;
  color: var(--cp-muted);
  margin: 0;
  line-height: 1.3;
}

/* Stats (White background strip) */
.cp-hero-stats {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--cp-border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.cp-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cp-stat-icon-l {
  font-size: 28px;
  color: var(--cp-blue);
}
.cp-stat-text h4 {
  font-size: 24px;
  font-weight: 800;
  color: var(--cp-text);
  margin: 0;
}
.cp-stat-text p {
  font-size: 12px;
  color: var(--cp-muted);
  margin: 0;
}

/* Bottom Strip (Light blue) */
.cp-bottom-strip {
  background: #F4F8FB;
  padding: 30px 0;
  border-bottom: 1px solid #E5E7EB;
}
.cp-bs-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cp-bs-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cp-bs-icon {
  font-size: 24px;
  color: var(--cp-teal);
}
.cp-bs-item h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--cp-text);
  margin: 0 0 4px;
}
.cp-bs-item p {
  font-size: 12px;
  color: var(--cp-muted);
  margin: 0;
}

/* Lead form icon */
.cp-lead-icon {
  width: 44px;
  height: 44px;
  background: #E0F5F3;
  color: var(--cp-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

@media (max-width: 991px) {
  .cp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 1;
  }
  .cp-hero .container-xl {
    position: relative;
    z-index: 2;
  }
  .cp-hero-desc {
    color: #111827;
    font-weight: 500;
  }
}

/* Treatment Cards */
.cp-treatment-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 20px 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cp-treatment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.cp-tc-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}
.cp-tc-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-tc-title {
  font-size: 17px;
  font-weight: 800;
  color: #0A1B3F;
  margin-bottom: 12px;
}
.cp-tc-desc {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
  margin-bottom: 20px;
}
.cp-tc-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: auto;
  align-self: flex-end;
  position: absolute;
  bottom: 20px;
  right: 20px;
  transition: all 0.3s;
}
.cp-treatment-card:hover .cp-tc-arrow {
  transform: translateX(4px);
}

/* Custom 5 column grid for lg screens */
@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

/* Colors for dynamic loop */
.color-0 { background: #FFF1F2; color: #F43F5E; }
.color-0.cp-tc-arrow { background: #FFF1F2; color: #F43F5E; }

.color-1 { background: #F3E8FF; color: #9333EA; }
.color-1.cp-tc-arrow { background: #F3E8FF; color: #9333EA; }

.color-2 { background: #E0F2FE; color: #0284C7; }
.color-2.cp-tc-arrow { background: #E0F2FE; color: #0284C7; }

.color-3 { background: #DCFCE7; color: #16A34A; }
.color-3.cp-tc-arrow { background: #DCFCE7; color: #16A34A; }

.color-4 { background: #FEF9C3; color: #CA8A04; }
.color-4.cp-tc-arrow { background: #FEF9C3; color: #CA8A04; }

/* Life Saving Decisions Section */
#life-saving-decisions {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.cp-ls-badge {
  display: inline-flex;
  align-items: center;
  background: #F4F8FB;
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  color: #1B4DB8;
}
.cp-ls-title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  color: #0A1B3F;
  line-height: 1.25;
  margin-bottom: 20px;
}
.cp-ls-desc {
  font-size: 18px;
  color: #4B5563;
  line-height: 1.5;
}
.cp-ls-feature-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.cp-ls-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 32px;
}
.bg-blue-light { background: #EBF4FF; }
.bg-green-light { background: #E6F6ED; }
.text-success { color: #10B981 !important; }

.cp-ls-feature-content h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}
.cp-ls-feature-content.blue h4 { color: #1B4DB8; }
.cp-ls-feature-content.green h4 { color: #10B981; }

.cp-ls-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cp-ls-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #374151;
  margin-bottom: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.cp-ls-list li i {
  font-size: 16px;
  margin-top: 2px;
}

.cp-ls-image-wrapper {
  position: relative;
  padding-left: 20px;
}
.cp-ls-main-img {
  width: 100%;
  border-radius: 400px 0 0 400px; /* Large curved mask */
  box-shadow: -10px 10px 40px rgba(0,0,0,0.05);
  object-fit: cover;
  min-height: 550px;
}
.cp-ls-cards-container {
  position: absolute;
  bottom: -40px;
  left: -20px;
  right: -20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.cp-ls-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  flex: 1;
}
.cp-ls-card h5 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 2px;
  color: #0A1B3F;
}
.cp-ls-card p {
  font-size: 11px;
  color: #6B7280;
  margin: 0;
  line-height: 1.3;
}

/* New Treatment Card Background Image Design */
.cp-treatment-card-bg {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 300px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.cp-treatment-card-bg:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(27, 77, 184, 0.15);
}
.cp-tc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 27, 63, 0.95) 0%, rgba(10, 27, 63, 0.4) 50%, rgba(0,0,0,0) 100%);
  z-index: 1;
}
.cp-tc-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}
.cp-tc-content .cp-tc-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.cp-tc-content .cp-tc-desc {
  font-size: 14px;
}

/* Journey CTA Section */
.cp-journey-section {
  background: linear-gradient(135deg, #0f8674 0%, #175498 100%);
  position: relative;
  padding: 60px 0;
  overflow: hidden;
}
.cp-journey-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 25%, transparent 25%);
  background-size: 40px 40px;
  background-position: 0 0;
  opacity: 1;
}
.cp-journey-section > .container-xl {
  position: relative;
  z-index: 2;
}
.cp-journey-title {
  color: #ffffff;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.cp-journey-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.cp-btn-outline-white {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}
.cp-btn-outline-white:hover {
  background: #ffffff;
  color: #0f8674;
}
.cp-journey-img {
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

/* ============================================================
   WHATSAPP FLOATING ICON
   ============================================================ */
.cp-whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.cp-whatsapp-float:hover {
  background-color: #128C7E;
  color: #FFF;
  transform: translateY(-5px);
  box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
  .cp-whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 26px;
  }
}
