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

/* ---- Variables ---- */
:root {
  --cp-dark:    #2D123F;
  --cp-red:     #8E3078;
  --cp-red-lt:  #F3E6F1;
  --cp-red-bg:  #F8ECF6;
  --cp-bg:      #F6F8FA;
  --cp-white:   #ffffff;
  --cp-text:    #2D123F;
  --cp-muted:   #6b7280;
  --cp-border:  #e5e7eb;
  --cp-radius:  12px;
  --cp-shadow:  0 4px 24px rgba(45,18,63,0.08);
}

*, *::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; }

/* Gradient Button Matching Mockup */
.cp-gradient-btn {
  background: linear-gradient(90deg, #D4106F 0%, #3B0E44 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 500;
  border-radius: 50px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cp-gradient-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* ============================================================
   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-dark) !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-dark);
  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;
}
.cp-btn-book:hover {
  background: #3a2f30;
  color: var(--cp-white);
  transform: translateY(-1px);
}

/* 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-dark);
  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-dark);
  color: var(--cp-white);
  border: none;
  border-radius: 100px;
  padding: 13px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cp-btn-primary:hover {
  background: #3a2f30;
  color: var(--cp-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(78,68,69,0.2);
}

.cp-btn-secondary {
  background: var(--cp-red-lt);
  color: var(--cp-dark);
  border: none;
  border-radius: 100px;
  padding: 13px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.cp-btn-secondary:hover {
  background: #f5d0d4;
  color: var(--cp-dark);
  transform: translateY(-2px);
}

.cp-btn-cta {
  background: transparent;
  color: var(--cp-white);
  border: 2px solid var(--cp-white);
  border-radius: 100px;
  padding: 12px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cp-btn-cta:hover {
  background: var(--cp-white);
  color: var(--cp-dark);
}

/* ============================================================
   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; }

/* ============================================================
   CANCER TYPE CARDS
   ============================================================ */
.cp-cancer-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-cancer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cp-shadow);
  border-color: var(--cp-red-lt);
}
.cp-cancer-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
.cp-cancer-icon img { width: 44px; height: 44px; object-fit: contain; }
.cp-cancer-title { font-size: 16px; font-weight: 700; color: var(--cp-text); margin-bottom: 10px; }
.cp-cancer-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: 48px;
  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-dark);
  color: var(--cp-white);
  border-color: var(--cp-dark);
}
.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-treatment-card {
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--cp-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.cp-treatment-card-title { font-size: 18px; font-weight: bold; color: var(--cp-dark); margin-bottom: 10px; }
.cp-treatment-card-desc { font-size: 14px; color: #666; margin-bottom: 20px; flex-grow: 1; }

.cp-testimonial-card {
  border-radius: 12px;
  padding: 24px;
  min-width: 320px;
  flex-shrink: 0;
  min-height: 250px;
}
.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: #1a2a4a;
  color: var(--cp-white);
  padding: 72px 0;
}
.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: var(--cp-dark); color: var(--cp-white); }
.cp-quote {
  font-size: 52px; font-weight: 700; line-height: 1;
  color: var(--cp-red-lt); margin-bottom: 6px;
}
.cp-testi-dark .cp-quote { color: rgba(255,255,255,0.25); }
.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-dark); }

/* ============================================================
   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: #fce8eb; color: #c0566b; }
.cp-tag-research  { background: #e8edf8; color: #3a5fa0; }
.cp-tag-support   { background: #e8f5ed; color: #2a7a4e; }
.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='%234e4445'%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-dark); box-shadow: none; }
.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%; }
}

/* ============================================================
   LEAD FORM (HERO / MODAL)
   ============================================================ */
.cp-lead-form-card {
  background: var(--cp-white);
  border-radius: var(--cp-radius);
  padding: 32px 24px;
  box-shadow: 0 8px 30px rgba(78, 68, 69, 0.12);
  border: 1px solid var(--cp-border);
}
.cp-lead-icon {
  width: 40px;
  height: 40px;
  background: var(--cp-red-bg);
  color: var(--cp-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.cp-lead-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--cp-text);
  margin: 0;
}
.cp-lead-form-subtitle {
  font-size: 14px;
  color: var(--cp-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.cp-input-group {
  position: relative;
  display: block;
}
.cp-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  pointer-events: none;
  z-index: 2;
}
.cp-input-group .form-control,
.cp-input-group .form-select {
  padding-left: 42px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--cp-border);
  font-size: 14px;
  color: var(--cp-text);
  background: var(--cp-bg);
  transition: all 0.2s;
}
.cp-input-group .form-control:focus,
.cp-input-group .form-select:focus {
  background: var(--cp-white);
  border-color: var(--cp-dark);
  box-shadow: 0 0 0 4px rgba(78, 68, 69, 0.1);
}
.cp-phone-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cp-country-code-wrapper {
  position: relative;
  width: 90px;
  flex-shrink: 0;
}
.cp-country-code-wrapper .cp-phone-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  z-index: 2;
}
.cp-country-code {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--cp-border);
  background: var(--cp-bg);
  padding-left: 36px;
  font-size: 14px;
  color: var(--cp-text);
  text-align: center;
}
.cp-phone-group .form-control {
  flex-grow: 1;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--cp-border);
  background: var(--cp-bg);
  font-size: 14px;
  padding-left: 16px;
}
.cp-upload-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-text);
  margin-bottom: 6px;
  display: block;
  text-align: center;
}
.cp-file-upload-box {
  border: 2px dashed var(--cp-border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background: var(--cp-bg);
  cursor: pointer;
  transition: all 0.2s;
}
.cp-file-upload-box:hover {
  border-color: var(--cp-red);
  background: var(--cp-red-lt);
}
.cp-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.cp-upload-icon {
  font-size: 24px;
  color: var(--cp-muted);
}
.cp-file-upload-box:hover .cp-upload-icon {
  color: var(--cp-red);
}
.cp-upload-text {
  font-size: 14px;
  color: var(--cp-text);
}
.cp-upload-hint {
  font-size: 12px;
  color: var(--cp-muted);
}
.cp-btn-submit-lead {
  background: var(--cp-dark);
  color: var(--cp-white);
  height: 48px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  margin-top: 12px;
  transition: all 0.2s;
}
.cp-btn-submit-lead:hover {
  background: #3a2f30;
  color: var(--cp-white);
  transform: translateY(-2px);
}
.cp-secure-note {
  font-size: 12px;
  color: var(--cp-muted);
}

/* ============================================================
   STICKY WHATSAPP BUTTON
   ============================================================ */
@keyframes cp-wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.cp-whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
  text-decoration: none;
  animation: cp-wa-pulse 2s infinite;
}

.cp-whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  color: #fff;
  animation: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* ============================================================
   CUSTOM PAGINATION
   ============================================================ */
.pagination {
  gap: 6px;
  flex-wrap: wrap;
}
.page-item .page-link {
  color: var(--cp-dark);
  border: 1px solid #e5e7eb;
  border-radius: 8px !important;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  margin: 0;
}
.page-item .page-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(142, 48, 120, 0.25);
}
.page-item .page-link:hover {
  background-color: var(--cp-red-lt);
  color: var(--cp-red);
  border-color: var(--cp-red-lt);
}
.page-item.active .page-link {
  background-color: var(--cp-red);
  border-color: var(--cp-red);
  color: #fff;
  box-shadow: 0 4px 10px rgba(142, 48, 120, 0.2);
}
.page-item.disabled .page-link {
  color: #a0aabf;
  background-color: #f8fafc;
  border-color: #e5e7eb;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES FOR CAROUSEL
   ============================================================ */
@media (max-width: 991px) {
  .cp-carousel-arrow {
    display: none !important; /* Hide arrows on mobile/tablet, rely on native touch swipe */
  }
  .cp-carousel-track {
    gap: 16px;
    padding: 8px 16px 20px; /* Add side padding so cards don't touch edges */
    scroll-padding-left: 16px; /* Align snap to padding */
  }
  .cp-doctor-card, .cp-hospital-card, .cp-testimonial-card, .cp-treatment-card {
    min-width: 260px; /* Make cards slightly narrower to fit better */
  }
  .cp-hospital-card {
    min-width: 280px;
  }
  .cp-testimonial-card {
    min-width: 280px;
  }
}

@media (max-width: 575px) {
  .cp-doctor-card, .cp-treatment-card {
    min-width: 240px;
  }
  .cp-hospital-card, .cp-testimonial-card {
    min-width: 260px;
  }
  .cp-section {
    padding: 30px 0;
  }
}

/* Blog Cards Mobile Layout */
@media (max-width: 767.98px) {
  .cp-blog-card {
    flex-direction: row !important;
    align-items: center;
  }
  .cp-blog-img {
    height: 110px !important;
    width: 110px !important;
    min-width: 110px;
    border-radius: 12px 0 0 12px;
  }
  .cp-blog-body {
    padding: 15px !important;
    gap: 6px !important;
  }
  .cp-blog-title {
    font-size: 14px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cp-blog-excerpt {
    display: none !important;
  }
  .cp-blog-date {
    font-size: 11px !important;
    margin-top: 4px;
  }
}
