/* ===========================
   HOME / HERO + CTA + SECTIONS
   =========================== */

/* Full-bleed hero wrapper */
.hero-slider-section.hero-fullbleed{position:relative;width:100%;min-height:clamp(320px,40vw,520px);overflow:hidden;background:#000}
.hero-shell{position:relative;width:100%;height:100%}
.hero-slider{width:100%;height:100%}
.hero-slide{position:relative;width:100%;height:100%}
.hero-slide-media,.hero-slide-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-slide-media img{object-position:center 22%}
.hero-slide-overlay{position:absolute;inset:0;z-index:1;background:
  radial-gradient(120% 120% at 20% 50%,rgba(0,0,0,.22) 0%,rgba(0,0,0,.06) 45%,rgba(0,0,0,0) 70%),
  linear-gradient(0deg,rgba(0,0,0,.28) 0%,rgba(0,0,0,0) 40%);pointer-events:none}

/* Arrows (white chevrons) */
.hero-nav{position:absolute;top:50%;transform:translateY(-50%);width:60px;height:60px;background:transparent;border:0;z-index:6;cursor:pointer}
.hero-nav::before{content:"";display:block;width:22px;height:22px;border-top:3px solid #fff;border-right:3px solid #fff;filter:drop-shadow(0 2px 6px rgba(0,0,0,.35))}
.hero-prev{left:10px}.hero-prev::before{transform:rotate(-135deg)}
.hero-next{right:10px}.hero-next::before{transform:rotate(45deg)}
@media (min-width:1024px){.hero-nav{width:74px;height:74px}.hero-nav::before{width:28px;height:28px;border-width:4px}}
.hero-pagination{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);z-index:6}
.hero-pagination .swiper-pagination-bullet{width:8px;height:8px;background:#fff;opacity:.65}
.hero-pagination .swiper-pagination-bullet-active{opacity:1;transform:scale(1.2)}

/* CTA strip (3 tiles) */
.hero-cta-strip{
  position:absolute;left:50%;transform:translateX(-50%);
  bottom:clamp(8px,1.4vh,14px);
  width:min(1240px,94vw);z-index:5;
  display:grid;grid-template-columns:repeat(3,1fr);
  border:1px solid rgba(255,255,255,.55);border-radius:22px;overflow:hidden;
  box-shadow:0 40px 90px rgba(0,0,0,.35);
  backdrop-filter:blur(6px) saturate(120%);-webkit-backdrop-filter:blur(6px) saturate(120%);
}
.cta-tile{position:relative;min-width:0;color:#fff;min-height:clamp(72px,10.5vw,96px);padding:10px 16px;border-right:1px solid rgba(255,255,255,.45);text-decoration:none}
.cta-tile:last-child{border-right:0}
.cta-glass{background:radial-gradient(120% 120% at 15% 20%,rgba(0,0,0,.35) 0%,rgba(0,0,0,.18) 45%,rgba(0,0,0,.12) 70%,rgba(0,0,0,0) 100%),linear-gradient(180deg,rgba(30,30,30,.42),rgba(30,30,30,.22))}
.cta-contact{background:linear-gradient(180deg,#3bb1ff 0%,#0a82ea 60%,#006ad3 100%)}
.cta-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cta-title{font-weight:800;letter-spacing:.2px;font-size:clamp(16px,1.8vw,22px)}
.cta-go{width:32px;height:32px;border-radius:999px;display:grid;place-items:center;background:rgba(255,255,255,.22);color:#fff;border:1px solid rgba(255,255,255,.35);box-shadow:0 10px 22px rgba(0,0,0,.22)}
.cta-contact .cta-go{background:#fff;color:#0c58b8;border:0}
.cta-icon{align-self:flex-start;font-size:clamp(20px,2.2vw,26px);text-shadow:0 6px 18px rgba(0,0,0,.26);opacity:.95}
.cta-phone{display:flex;align-items:center;gap:12px;margin-top:8px}
.cta-phone i{font-size:clamp(20px,2vw,24px)}
.cta-hotline-label{font-weight:700;opacity:.9;line-height:1;font-size:clamp(12px,1.2vw,14px)}
.cta-hotline-number{font-weight:900;letter-spacing:.4px;font-size:clamp(15px,1.6vw,20px);line-height:1.1}
@media (max-width:768px){
  .hero-cta-strip{position:static;transform:none;width:100%;grid-template-columns:1fr;border-radius:16px;margin:12px auto 0}
  .cta-tile+.cta-tile{border-left:0;border-top:1px solid rgba(255,255,255,.35)}
}

/* Section system */
.section{padding:clamp(28px,5vw,56px) 0}
.section--alt{background:#f7fbf9}
.section.--tight{padding:clamp(22px,3.6vw,44px) 0}
.section-head{text-align:center;margin:0 auto clamp(18px,3.6vw,28px);max-width:820px}
.section-head .eyebrow{display:inline-block;padding:4px 10px;border-radius:999px;background:#eaf7f0;color:#009245;font-weight:800;letter-spacing:.3px;font-size:.9rem;margin-bottom:10px}
.section-head .section-desc{color:#5a6a62;margin:0}

/* Khmer display title */
.kh-title{font-family:'Moul','Moulpali','Battambang',system-ui,-apple-system,sans-serif;font-weight:400;font-size:clamp(34px,4.8vw,56px);line-height:1.15;letter-spacing:0;color:#222;margin:0 auto clamp(12px,1.6vw,18px);text-align:center}
.kh-title::after{content:"";display:block;width:64px;height:3px;margin:12px auto 0;background:#009245;border-radius:3px}

/* Why choose us cards */
.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;text-align:center}
.feature-item{background:#fff;border-radius:16px;box-shadow:0 4px 15px rgba(0,0,0,.08);padding:18px 14px}
.feature-icon{font-size:2.2rem;color:#009245;margin-bottom:.75rem;display:block}
.feature-title{margin:.25rem 0 .5rem;font-weight:700}

/* Services slider cards */
.services-section .slider-wrapper{background:#e7f8f0;border-radius:16px;padding:clamp(14px,2.2vw,26px);position:relative;overflow:hidden}
.homepage-services-slider.swiper{overflow:visible!important}
.homepage-services-slider .swiper-slide{width:300px;height:auto;opacity:.85;transform:scale(.98);transition:transform .28s ease,opacity .28s ease}
.homepage-services-slider .swiper-slide-active{opacity:1;transform:scale(1)}
.services-section .service-item{display:flex;flex-direction:column;justify-content:center;background:#fff;padding:1.25rem;border-radius:12px;border:1px solid #e9ecef;box-shadow:0 5px 20px rgba(0,0,0,.05);text-decoration:none;height:100%}
.services-section .service-item-header{display:flex;align-items:center;margin-bottom:.65rem}
.services-section .service-icon{font-size:1.6rem;color:#009245;margin-right:.65rem}
.services-section .service-item-description{display:block;font-size:.95rem;color:#6c757d;line-height:1.5;margin:0;text-align:left}

/* News */
.news-section .slider-wrapper{padding:clamp(14px,2.2vw,26px);border-radius:16px}
.news-card{background:#fff;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;text-decoration:none;box-shadow:0 4px 15px rgba(0,0,0,.08)}
.news-card-img{width:100%;height:180px;object-fit:cover}
.news-card .card-body{padding:1.1rem;display:flex;flex-direction:column;gap:.5rem;text-align:left}
.news-meta{font-size:.85rem;color:#6c757d}

/* Clinics */
.clinic-map-section .slider-wrapper{background:#e7f8f0;padding:clamp(14px,2.2vw,26px);border-radius:16px}
.clinic-card-compact{background:#fff;border-radius:12px;padding:1.5rem;border:1px solid #e6efe9;box-shadow:0 5px 20px rgba(0,0,0,.06);display:flex;flex-direction:column}
.card-header-compact{display:flex;align-items:center;margin-bottom:1rem}
.icon-wrapper-compact i{font-size:1.6rem;color:#009245;margin-right:.6rem}
.title-compact{font-weight:800;margin:0}
.detail-item-compact{display:flex;align-items:flex-start;font-size:.95rem;color:#6c757d;line-height:1.5;margin:0 0 .5rem}
.detail-item-compact i{color:#009245;margin-right:.5rem;margin-top:3px;width:16px;text-align:center}

/* Swiper nav buttons */
.slider-wrapper{position:relative}
.swiper{width:100%;height:100%;padding:10px 0}
.swiper-slide{display:flex;justify-content:center;align-items:stretch;height:auto}
.swiper-nav-button{position:absolute;top:40%;transform:translateY(-50%);width:42px;height:42px;border-radius:12px;background:#fff;border:1px solid #e1e6ea;cursor:pointer;color:#2e2e2e;z-index:10;box-shadow:0 4px 15px rgba(0,0,0,.08)}
.swiper-nav-button:hover{color:#009245}
.swiper-nav-button.prev-slide{left:-40px}
.swiper-nav-button.next-slide{right:-40px}
.swiper-nav-button i{font-size:1.35rem}

/* =============== SPACING “FIX PACK” =============== */

/* remove divider gap & pull first section up */
.hero-slider-section.hero-fullbleed{margin-bottom:0}
.shape-divider--soft{display:none}
.home-v2 .hero-slider-section.hero-fullbleed + section{
  margin-top:clamp(-32px,-3vw,-18px);
  padding-top:clamp(10px,1.4vw,16px);
  position:relative;z-index:2;
}

/* tighter global rhythm */
.home-v2 .section,
.home-v2 .homepage-section{padding-block:clamp(20px,3.2vw,40px)}
.home-v2 section + section{margin-top:clamp(10px,1.8vw,16px)}

/* titles already scaled via .kh-title */
.section-head{margin:0 auto clamp(14px,2.6vw,24px);max-width:860px}
.section-head .eyebrow{margin-bottom:8px}
.section-head .section-desc{margin-top:6px}

/* keep pagination close */
.hero-slider-section.hero-fullbleed .hero-pagination{bottom:6px}

/* phones: hero height & pull-up */
@media (max-width:640px){
  .hero-slider-section.hero-fullbleed{min-height:240px}
  .hero-slider-section.hero-fullbleed .hero-slider{height:clamp(260px,55vw,360px)}
  .home-v2 .hero-slider-section.hero-fullbleed + section{margin-top:-18px}
}
/* === Requested updates ================================================== */

/* 1) Hide eyebrow label across all sections */
.section-head .eyebrow{ display:none !important; }

/* 2) Title sizes (Khmer friendly) */
.section-title,
.kh-title,
.medical-theme-home .section-title {
  /* Khmer-first stack + Latin fallbacks */
  font-family: 'Moul','Moulpali','Noto Sans Khmer','Battambang',system-ui,-apple-system,sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 36px);   /* ↓ smaller */
  line-height: 1.25;
  letter-spacing: 0;                     /* crisp Khmer */
  color: #1e2723;
}
.kh-title::after{ width:56px; height:3px; } /* keep the small accent line */

/* 3) Modern “popup” card surface for each section */
.section-surface{
  background:#fff;
  border:1px solid #e9f1ec;
  border-radius:22px;
  box-shadow:
    0 18px 40px rgba(17,24,39,.10),
    0 2px 6px rgba(17,24,39,.06) inset;
  padding: clamp(20px, 2.2vw, 32px);
}

/* tighter rhythm between sections, letting the cards pop */
.home-v2 section + section{ margin-top: clamp(8px, 1.6vw, 14px); }

/* Inside the card, keep sliders clean (no colored panels) */
.section-surface .slider-wrapper{ background: transparent !important; }

/* Feature items get a slightly softer look to match the new card */
.section-surface .feature-item{
  border:1px solid #eef3f0;
  box-shadow: 0 10px 26px rgba(17,24,39,.06);
}

/* Swiper nav buttons float slightly over the card edge */
.section-surface .swiper-nav-button{
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

/* Mobile: keep card padding comfy */
@media (max-width:640px){
  .section-surface{ border-radius:16px; padding:16px; }
}
/* ---------------------------
   Tighter rhythm between sections
   --------------------------- */
.home-v2 .section,
.home-v2 .homepage-section{
  /* smaller top/bottom padding on every section */
  padding: clamp(16px, 3vw, 34px) 0;
}

/* shrink the gap between any two sections */
.home-v2 section + section{
  margin-top: clamp(6px, 1vw, 10px);
}

/* pull the first content section up under the hero a bit more */
.hero-slider-section.hero-fullbleed + .section-after-hero{
  margin-top: -40px;                  /* was milder; closer now */
  padding-top: clamp(8px, 1.2vw, 12px);
  position: relative;
  z-index: 2;
}

/* ---------------------------
   Keep slider content inside the section card
   --------------------------- */
.section-surface{
  padding: clamp(16px, 1.8vw, 28px);
  border-radius: 20px;
  overflow: hidden;                    /* <- clips slides/shadows/text inside */
}

/* also clip the slider wrapper itself */
.section-surface .slider-wrapper{ overflow: hidden; }

/* make sure slides stretch nicely */
.homepage-services-slider .swiper-wrapper,
.news-slider .swiper-wrapper,
.homepage-clinics-slider .swiper-wrapper{
  align-items: stretch;
}

/* ---------------------------
   Fix purple/underlined text + overflow on Services cards
   --------------------------- */
.section-surface a,
.services-section .service-item{
  color: #1d2730;
  text-decoration: none !important;   /* kill default underline */
}
.section-surface a:visited{ color:#1d2730; }

/* wrap long Khmer/English lines safely inside cards */
.service-item-header h3,
.news-card .h5,
.title-compact,
.section-surface p{
  overflow-wrap: anywhere;            /* modern safe wrapping */
  word-break: break-word;             /* fallback */
}

/* optional: keep services cards neat and centered */
.homepage-services-slider .swiper-slide{ width: 320px; }
.homepage-services-slider .swiper-slide .service-item{
  border:1px solid #e9eef3;
}
.homepage-services-slider .swiper-slide-active .service-item{
  border-color:#d9e7ef;
  box-shadow:0 12px 36px rgba(25,40,65,.12);
}
/* ===== Ultra-compact vertical rhythm (stronger reduction) ===== */

/* shrink section padding */
.home-v2 .section,
.home-v2 .homepage-section{
  padding: clamp(10px, 2vw, 22px) 0;          /* was larger */
}

/* shrink the space under section headers */
.home-v2 .section .section-head,
.home-v2 .homepage-section .section-head{
  margin: 0 auto clamp(8px, 1.2vw, 14px);
}

/* almost no gap between sections */
.home-v2 section + section{
  margin-top: clamp(0px, .5vw, 6px);
}

/* pull the first content section tighter under the hero */
.hero-slider-section.hero-fullbleed + .section-after-hero{
  margin-top: -56px;                           /* was -40px */
  padding-top: clamp(6px, 1vw, 10px);
  position: relative;
  z-index: 2;
}

/* tighten the white “surface” wrapper inside sections */
.section-surface{
  padding: clamp(12px, 1.2vw, 18px);           /* was 16–28px */
  border-radius: 18px;
  overflow: hidden;
}

/* compact on phones too */
@media (max-width: 768px){
  .home-v2 .section,
  .home-v2 .homepage-section{ padding: 10px 0; }
  .home-v2 section + section{ margin-top: 6px; }
  .hero-slider-section.hero-fullbleed + .section-after-hero{ margin-top: -42px; }
}
/* === Fine-tune spacing under the hero (WHY section) === */
/* Move the first content section (section-after-hero) DOWN a bit */
.hero-slider-section.hero-fullbleed + .section-after-hero{
  margin-top: clamp(10px, 1.4vw, 20px) !important;  /* was negative; now a small gap */
  padding-top: clamp(12px, 1.6vw, 22px);            /* keep internal padding tidy */
  position: relative;
  z-index: 2;
}

/* On phones keep it modest */
@media (max-width: 768px){
  .hero-slider-section.hero-fullbleed + .section-after-hero{
    margin-top: 12px !important;
  }
}
/* === Hero CTA Strip: increase transparency & lighten chrome === */
.hero-cta-strip{
  /* lighter glass */
  backdrop-filter: blur(5px) saturate(110%);
  -webkit-backdrop-filter: blur(5px) saturate(110%);
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.18); /* softer glow */
}

.hero-cta-strip .cta-tile{
  /* more see-through glass */
  background: rgba(15, 23, 42, .10) !important;
  border-color: rgba(255,255,255,.16) !important;
  min-height: clamp(72px, 10vw, 96px); /* keeps it compact */
}

.hero-cta-strip .cta-tile:hover{
  background: rgba(15, 23, 42, .14) !important;
}

/* Contact tile: keep brand look but make it translucent */
.hero-cta-strip .cta-tile.cta-contact{
  background: linear-gradient(
    135deg,
    rgba(0,146,69, .70) 0%,
    rgba(0,118,56, .68) 100%
  ) !important;
  border-color: rgba(255,255,255,.14) !important;
}

/* UI bits lighter as well */
.hero-cta-strip .cta-go{
  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.35);
}
.hero-cta-strip .cta-contact .cta-go{
  background: rgba(255,255,255,.20) !important;
  border: 0;
  color: #fff;
}

/* Keep text readable over busy photos */
.hero-cta-strip .cta-title,
.hero-cta-strip .cta-hotline-label,
.hero-cta-strip .cta-hotline-number{
  text-shadow: 0 2px 10px rgba(0,0,0,.22);
}

/* dividers between tiles a bit softer */
.hero-cta-strip .cta-tile + .cta-tile{
  border-left: 1px solid rgba(255,255,255,.14) !important;
}

/* Phones: a touch stronger for legibility */
@media (max-width: 640px){
  .hero-cta-strip .cta-tile{
    background: rgba(15, 23, 42, .16) !important;
  }
}
/* ===== Find a Clinic: show 3 cards comfortably on desktop ===== */
#locations .container{
  max-width: 1440px;            /* give the row more room */
}

#locations .slider-wrapper{
  padding-left: 0;
  padding-right: 0;
}

.homepage-clinics-slider.swiper{
  overflow: visible !important; /* so shadows aren’t clipped */
}

/* Optional: if you prefer “auto” widths */
#locations .homepage-clinics-slider .swiper-slide{
  width: clamp(360px, 31vw, 440px);
}
/* === Widen main homepage sections (like #locations) =================== */
/* You can bump 1440px to 1560px/1600px if you want them even wider */
#why .container,
#services .container,
#news .container{
  max-width: 1440px;
}

/* Optional: give the card rows a bit more breathing room on wide screens */
#services .slider-wrapper,
#news .slider-wrapper{
  padding-left: 0;
  padding-right: 0;
}

/* WHY CHOOSE US: keep a clean 4-up grid on desktop */
#why .features-grid{
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 28px;
}
@media (max-width: 1024px){
  #why .features-grid{ grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (max-width: 640px){
  #why .features-grid{ grid-template-columns: 1fr; }
}
/* ==== Video Education grid ==== */
.video-section { background: #fff; }
.video-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Card */
.video-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #e9eef2;
  /* nice popup shadow like you asked */
  box-shadow:
    rgba(50, 50, 93, 0.25) 0 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0 30px 60px -30px,
    rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
  transition: transform .15s ease, box-shadow .2s ease;
}
.video-card:hover{
  transform: translateY(-2px);
}

/* Responsive 16:9 video embed */
.ratio-16x9{ position:relative; padding-top:56.25%; }
.ratio-16x9 iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

.video-body{ padding:16px 18px 18px; }
.video-title{
  margin:0 0 8px;
  font-size:1.1rem;
  font-weight:800;
  line-height:1.35;
  color:#1e2b23;
  font-family:'Battambang','Open Sans',sans-serif;
}
.video-meta{ display:flex; gap:14px; color:#647a6e; font-size:.95rem; }
.video-meta .meta i{ margin-right:6px; }

.video-cta{ text-align:center; margin-top:22px; }
.video-cta .btn.btn-primary{
  display:inline-block; padding:12px 26px; border-radius:999px;
  background:linear-gradient(90deg, #009245, #00c389); color:#fff; text-decoration:none; font-weight:800;
}

@media (max-width:1024px){
  .video-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width:640px){
  .video-grid{ grid-template-columns: 1fr; }
}
/* Filter select (match your dropdown style) */
.video-select{
  display:inline-block;
  padding:10px 14px;
  font-size:16px;
  font-weight:500;
  color:#333;
  background:#fff;
  border:1px solid #ccc;
  border-radius:10px;
  box-shadow:0 1px 3px rgba(0,0,0,.12);
  min-width:220px;
}

/* Grid/cards */
.video-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(320px, 1fr));
  gap:20px;
  margin-top:16px;
}
.video-card{
  background:#fff;
  border:1px solid #e6e8eb;
  border-radius:12px;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
  overflow:hidden;
}
.ratio-16x9{ position:relative; padding-top:56.25%; }
.ratio-16x9 iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-body{ padding:14px 16px 16px; }
.video-title{ font-size:1.05rem; line-height:1.45; margin:0 0 10px; }
.video-meta{ display:flex; gap:16px; align-items:center; color:#6b7280; font-size:.925rem; }
.video-meta .meta{ display:inline-flex; gap:8px; align-items:center; }

/* Optional: View All button (if you also show it here) */
.btn-view-all{
  display:inline-block; padding:10px 18px; font-size:16px; font-weight:500;
  color:#333; background:#fff; border:1px solid #ccc; border-radius:8px;
  box-shadow:0 1px 3px rgba(0,0,0,.1); text-decoration:none; transition:.2s;
}
.btn-view-all:hover{ background:#f1f1f1; border-color:#999; }
