/* ===========================
   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%);
}
    /* ===== New pill-style hero CTAs ===== */
    .hero-cta-strip.hero-cta-strip--pills {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: clamp(10px, 1.8vh, 18px);
        width: min(960px, 94vw);
        z-index: 5;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

/* RHAC green pill buttons on hero strip */
.hero-cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 999px;
    /* RHAC-style green gradient */
    background: linear-gradient(135deg, #009245, #00b96a);
    color: #ffffff;
    font-weight: 600;
    font-size: clamp(14px, 1.6vw, 16px);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

    .hero-cta-pill:hover,
    .hero-cta-pill:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 16px 40px rgba(0,0,0,.35);
        /* Slightly darker on hover */
        background: linear-gradient(135deg, #00753a, #009245);
        border-color: rgba(255,255,255,.65);
        text-decoration: none;
    }


/* Mobile layout: pills on 2 rows if needed */
@media (max-width:768px) {
    .hero-cta-strip.hero-cta-strip--pills {
        position: static;
        transform: none;
        margin: 12px auto 0;
        padding: 6px 4px;
        width: 100%;
    }

    .hero-cta-pill {
        flex: 1 1 calc(50% - 8px);
        font-size: 14px;
        padding: 10px 14px;
        text-align: center;
    }
}

.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; }
/* === ABOUT CLINIC full-screen section === */
.full-screen-about {
    /* break out of .container to full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    /* full screen height */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #e0f7ef 0, #f7fafc 45%, #eef2ff 100%);
    padding: clamp(24px, 6vh, 40px) 0;
}

/* Wider ABOUT CLINIC layout */
.about-clinic-inner {
    width: 100%;
    max-width: min(1360px, 96vw); /* was 1120px */
    margin: 0 auto;
    padding: 0 12px;
}

.about-clinic-card {
    width: 100%;
    border-radius: 28px;
}




    .about-clinic-card .card-header {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .about-clinic-card .eyebrow {
        font-size: .8rem;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: #64748b;
        margin-bottom: .35rem;
    }

    .about-clinic-card .card-title {
        font-size: clamp(1.3rem, 2.1vw, 1.7rem);
        color: #0f172a;
    }

.about-clinic-body {
    font-size: .95rem;
    line-height: 1.7;
    color: #334155;
    margin-top: 1rem;
}

    /* bullets */
    .about-clinic-body .about-list {
        padding-left: 1.3rem;
        margin: 0 0 1.1rem;
    }

        .about-clinic-body .about-list li {
            margin-bottom: .35rem;
        }

/* Mobile tweaks */
@media (max-width:768px) {
    .full-screen-about {
        align-items: flex-start;
        padding-top: 70px; /* keep some space under hero */
    }

    .about-clinic-card {
        border-radius: 18px;
    }

    .about-clinic-body {
        font-size: .92rem;
    }
}
/* On very large screens, keep it elegant, not too narrow */
@media (min-width: 1440px) {
    .about-clinic-inner {
        max-width: 1400px;
    }
}
/* ===== FAQ CARD IN BOOKING-CARD ===== */
.faq-card {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(15,23,42,.12);
    border: 1px solid #e5e7eb;
}

    /* ----- CARD TITLE USE MOUL ----- */
    .faq-card .card-title {
        font-family: 'Moul', serif !important;
        font-size: 1.45rem;
        color: #16a34a;
        text-align: center;
        font-weight: 400; /* Moul doesn’t need bold */
        letter-spacing: 0.5px;
    }

    /* ----- FAQ CONTENT USE BATTAMBANG ----- */
    .faq-card,
    .faq-card .faq-question,
    .faq-card .faq-body {
        font-family: 'Battambang', 'Khmer OS Battambang', sans-serif !important;
    }

.faq-list {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.faq-item + .faq-item {
    border-top: 1px solid #e5e7eb;
}

.faq-trigger {
    width: 100%;
    border: 0;
    background: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    color: #111827;
}

.faq-icon {
    font-size: 1.4rem;
    color: #111827;
}

.faq-body {
    display: none;
    padding: 0 18px 14px;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.faq-item.is-open .faq-body {
    display: block;
}

.faq-item.is-open .faq-trigger {
    background: #f9fafb;
}

/* MOBILE */
@media (max-width:768px) {
    .faq-card .card-title {
        font-size: 1.25rem;
    }
}
/* FAQ answer list (Battambang, lines with dash) */
.faq-answer-list {
    list-style: none;
    margin: .35rem 0 0;
    padding-left: 0;
    font-family: 'Battambang', 'Khmer OS Battambang', sans-serif;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #6b7280; /* gray like screenshot */
}

    .faq-answer-list li {
        margin-bottom: 2px;
    }

        /* show dash in front of each line, like your sample */
        .faq-answer-list li::before {
            content: "– ";
            margin-right: .25rem;
        }
/* ===== FONT SIZE UPDATES ===== */

/* Question text */
.faq-trigger {
    font-size: 1.25rem !important; /* increase from ~1.05rem */
    font-weight: 700;
    padding: 16px 20px;
}

/* Answer text */
.faq-answer-list {
    font-size: 1.18rem !important; /* increase from 0.98rem */
    line-height: 1.85 !important;
}

    /* Answer list items */
    .faq-answer-list li {
        margin-bottom: 6px;
    }

        /* Dash before each bullet */
        .faq-answer-list li::before {
            content: "– ";
            font-size: 1.2rem !important; /* match answer size */
            margin-right: .35rem;
        }
/* FAQ answer lines (for all styles: bullets or numbered) */
.faq-body {
    padding: 12px 22px 16px;
}

.faq-answer-line {
    font-family: 'Battambang', 'Khmer OS Battambang', sans-serif;
    font-size: 1.18rem;
    line-height: 1.85;
    color: #6b7280;
    margin: 0 0 4px;
}

/* Optional: make intro line slightly stronger */
.faq-intro-line {
    font-weight: 700;
    margin-bottom: 6px;
}
.faq-answer-line {
    font-family: 'Battambang', 'Khmer OS Battambang', sans-serif;
    font-size: 1.18rem;
    line-height: 1.85;
    color: #6b7280;
    margin: 0 0 4px;
}

.faq-intro-line {
    font-weight: 700;
    margin-bottom: 6px;
}
/* =========================================================
   HOME NEWS – MODERN HEADER + COMPACT SLIDER (DEFAULT 3)
   ========================================================= */

#home-news{
  position: relative;
}

/* Modern header row */
.home-news-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.home-news-h2{
  margin:0;
  font-size: 2.2rem;
  font-weight: 900;
  color:#009245;
}
.home-news-sub{
  margin:6px 0 0;
  font-size: 1.15rem;
  color:#64748b;
  line-height: 1.7;
  max-width: 560px;
}
.home-news-all{
  text-decoration:none;
  font-weight:900;
  color:#4c1d95; /* purple like your screenshot link */
  white-space:nowrap;
}
.home-news-all:hover{ text-decoration:underline; }

/* slider wrap */
.home-news-slider-wrap{
  position: relative;
}

/* allow equal height */
#home-news .swiper-wrapper{ align-items: stretch; }
#home-news .swiper-slide{ display:flex; height:auto; }

/* reduce empty space: make slider padding tight */
#home-news .news-slider{
  padding: 10px 42px 8px; /* arrows space left/right, not too huge */
}

/* Card */
.home-news-card{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;

  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,0.25);
  box-shadow: 0 14px 34px rgba(15,23,42,0.10);
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-news-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15,23,42,0.14);
}

/* Cover (balanced height -> no huge blank) */
.home-news-cover{
  position:relative;
  display:block;
  width:100%;
  height: 170px; /* ✅ modern balance */
  background:#eef2f7;
  overflow:hidden;
}
.home-news-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02);
  transition: transform .35s ease;
}
.home-news-card:hover .home-news-cover img{ transform: scale(1.07); }

.home-news-cover-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.38) 58%,
    rgba(255,255,255,0.92) 100%);
  pointer-events:none;
}

/* Chip */
.home-news-chip{
  position:absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .92rem;
  color:#0b5136;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 10px 20px rgba(15,23,42,0.12);
  backdrop-filter: blur(10px);
}

/* Body */
.home-news-body{
  padding: 14px 16px 16px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  flex:1;
}

.home-news-date-row{
  display:flex;
  align-items:center;
  gap:10px;
  color:#64748b;
  font-weight: 900;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148,163,184,0.22);
}
.home-news-date-row i{ color:#00b96a; }

/* Title + excerpt clamps */
.home-news-title{
  margin:0;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 900;
}
.home-news-title a{ color:#0f172a; text-decoration:none; }
.home-news-title a:hover{ text-decoration:underline; }

.clamp-2{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: calc(1.25em * 2);
}

.home-news-author{
  font-size: 1.05rem;
  color:#334155;
}
.home-news-author strong{ font-weight: 900; color:#0f172a; }

.home-news-excerpt{
  margin:0;
  font-size: 1.05rem;
  line-height: 1.7;
  color:#334155;
}
.clamp-3{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: calc(1.7em * 3);
}

/* Button */
.home-news-btn{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration:none;

  background: rgba(214,241,255,0.70);
  border: 1px solid rgba(56,189,248,0.32);
  color:#009245;
  font-weight: 900;

  box-shadow: 0 10px 18px rgba(15,23,42,0.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.home-news-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(15,23,42,0.12);
}

/* Arrows */
.home-news-nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.32);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 32px rgba(15,23,42,0.16);
  color:#0f172a;

  display:flex;
  align-items:center;
  justify-content:center;
}
.home-news-prev{ left: -10px; }
.home-news-next{ right: -10px; }

/* Responsive */
@media (max-width: 991.98px){
  .home-news-h2{ font-size: 1.85rem; }
  .home-news-sub{ font-size: 1.05rem; }
  #home-news .news-slider{ padding: 10px 12px 8px; }
  .home-news-prev{ left: 6px; }
  .home-news-next{ right: 6px; }
  .home-news-cover{ height: 160px; }
}

@media (max-width: 575.98px){
  .home-news-head{ flex-direction:column; align-items:flex-start; }
  .home-news-all{ margin-top: 4px; }
  .home-news-cover{ height: 175px; }
  .home-news-nav{ width: 38px; height: 38px; }
}
/* ============================
   HOME NEWS (reuse news.css cards)
   add slider + nav buttons only
   ============================ */
#home-news .news-home-slider-wrap{
  position: relative;
}

#home-news .news-home-swiper{
  padding: 8px 44px 6px; /* room for arrows */
}

#home-news .news-home-swiper .swiper-wrapper{
  align-items: stretch;
}
#home-news .news-home-swiper .swiper-slide{
  height: auto;
  display: flex;
}

/* Make cards equal height inside slides */
#home-news .news-card{
  height: 100%;
}

/* header link right */
.news-home-all{
  text-decoration:none;
  font-weight: 900;
  color:#4c1d95; /* modern purple like your screenshot */
  white-space:nowrap;
}
.news-home-all:hover{ text-decoration: underline; }

/* arrows */
#home-news .news-home-nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 46px;
  height: 46px;
  border-radius: 999px;

  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 16px 30px rgba(15,23,42,0.16);
  color: #0f172a;

  display:flex;
  align-items:center;
  justify-content:center;
}
#home-news .news-home-prev{ left: -8px; }
#home-news .news-home-next{ right: -8px; }

#home-news .news-home-nav:hover{
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 991.98px){
  #home-news .news-home-swiper{ padding: 8px 12px 6px; }
  #home-news .news-home-prev{ left: 6px; }
  #home-news .news-home-next{ right: 6px; }
}
@media (max-width: 575.98px){
  #home-news .news-home-nav{ width:38px; height:38px; }
}
/* ============================
   HOME NEWS – CLEAN MODERN FIX
   ============================ */

/* make swiper slides equal height */
#home-news .swiper-wrapper {
  align-items: stretch;
}

#home-news .swiper-slide {
  height: auto;
  display: flex;
}

#home-news .news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ---------- IMAGE AREA ---------- */
#home-news .news-card-image-wrapper {
  height: 150px;              /* 🔥 reduced from tall */
  overflow: hidden;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

#home-news .news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* remove heavy gradient if exists */
#home-news .news-card-image-wrapper::after {
  display: none;
}

/* ---------- BODY ---------- */
#home-news .news-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* ---------- TITLE CLAMP ---------- */
#home-news .news-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}

/* ---------- EXCERPT CLAMP ---------- */
#home-news .news-card-excerpt {
  font-size: 1.05rem;
  line-height: 1.6;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.6em * 3);
}

/* ---------- BUTTON ---------- */
#home-news .news-card-readmore {
  margin-top: auto;  /* push button bottom */
  font-weight: 900;
}

/* ---------- ARROWS CLEAN ---------- */
#home-news .news-home-nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 10px 24px rgba(15,23,42,0.15);
}

#home-news .news-home-nav:hover {
  transform: translateY(-50%) scale(1.08);
}

/* ---------- MOBILE ---------- */
@media (max-width: 991px) {
  #home-news .news-card-image-wrapper {
    height: 160px;
  }
}

@media (max-width: 575px) {
  #home-news .news-card-image-wrapper {
    height: 170px;
  }
}
/* HOME NEWS: swiper stable layout */
#home-news .news-home-swiper{
  padding: 8px 24px 6px; /* not too wide */
  overflow: hidden;      /* ✅ important */
}

/* keep slides equal height */
#home-news .swiper-wrapper{ align-items: stretch; }
#home-news .swiper-slide{
  height: auto;
  display: flex;
}

/* card full height */
#home-news .news-card{
  width: 100%;
  height: 100%;
  display:flex;
  flex-direction:column;
}

/* image wrapper lock height (works for image + no-image) */
#home-news .news-card-image-wrapper{
  height: 210px;           /* ✅ consistent */
  overflow: hidden;        /* ✅ prevent tall no-image text from expanding */
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* image fill */
#home-news .news-card-image{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* no-image block must fit */
#home-news .news-card-noimage{
  height:100%;
  width:100%;
  overflow:hidden;         /* ✅ prevent expanding */
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:18px;
  text-align:center;
}

/* keep khmer title not too huge */
#home-news .news-card-noimage .noimage-title{
  font-size: 1.6rem !important;
  line-height: 1.45 !important;
  max-height: calc(1.45em * 3 + 8px);
  overflow:hidden;
}

/* tablet/mobile hero height */
@media (max-width: 991.98px){
  #home-news .news-card-image-wrapper{ height: 190px; }
}
@media (max-width: 575.98px){
  #home-news .news-card-image-wrapper{ height: 175px; }
}
/* ============================
   HOME NEWS: Khmer Title + No Crop
   ============================ */

/* Use Khmer Moul for hero-title (no-image) + card title */
#home-news .news-card-title.kh-font,
#home-news .news-card-noimage .noimage-title.kh-font{
  font-family: "Moul","Battambang","Siemreap",system-ui,sans-serif !important;
  font-weight: 400;
  letter-spacing: .2px;
}

/* Hero wrapper fixed height but allow text not to be cut */
#home-news .news-card-image-wrapper{
  height: 210px;
  overflow: hidden;                 /* keep image clean */
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* No-image hero: add safe padding + no hard clamp that cuts Khmer legs */
#home-news .news-card-noimage{
  height: 100%;
  width: 100%;
  overflow: hidden;
  padding: 22px 18px 22px;          /* ✅ more bottom space */
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* No-image title: DO NOT clamp by max-height; allow wrap safely */
#home-news .news-card-noimage .noimage-title{
  line-height: 1.65 !important;     /* ✅ Khmer safe */
  padding-bottom: 10px;             /* ✅ avoid cut bottom */
  margin: 0;
  overflow: visible !important;     /* ✅ prevent glyph cut */
  display: block !important;
}

/* Optional: limit by line-clamp but safe (3 lines) */
#home-news .news-card-noimage .noimage-title{
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

/* Card title in body (if you want Moul too) */
#home-news .news-card-title{
  line-height: 1.55;
  padding-bottom: 4px;
}

/* responsive hero height */
@media (max-width: 991.98px){
  #home-news .news-card-image-wrapper{ height: 190px; }
}
@media (max-width: 575.98px){
  #home-news .news-card-image-wrapper{ height: 175px; }
}
/* =========================
   NO-IMAGE TITLE (Khmer safe)
   ========================= */

#home-news .news-card-noimage{
  height: 100%;
  width: 100%;
  overflow: hidden;
  padding: 22px 18px 22px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* ✅ Khmer safe: do NOT use line-clamp */
#home-news .news-card-noimage .noimage-title.kh-font{
  font-family: "Moul","Battambang","Siemreap",system-ui,sans-serif !important;
  font-weight: 400;

  font-size: 1.75rem;
  line-height: 1.75;          /* ✅ bigger line-height for Khmer legs */
  padding-bottom: 12px;       /* ✅ avoid cutting bottom */
  margin: 0;

  /* show up to 3 lines by limiting height instead of clamp */
  max-height: calc(1.75em * 3 + 14px);
  overflow: hidden;

  /* modern fade at bottom (no “cut” feeling) */
  -webkit-mask-image: linear-gradient(#000 86%, transparent);
  mask-image: linear-gradient(#000 86%, transparent);
}
#home-news .news-card-noimage .noimage-title.kh-font{
  max-height: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
/* ============================
   HOME NEWS: No-Image Khmer Safe
   ============================ */

/* fixed hero height (same as image cards) */
#home-news .news-card-image-wrapper{
  height: 210px;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* no-image hero container */
#home-news .news-card-noimage{
  height: 100%;
  width: 100%;
  overflow: hidden;                 /* keep within hero height */
  padding: 26px 18px 30px;          /* ✅ more bottom space */
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* ✅ Khmer title: remove clamp/mask; use safe line box */
#home-news .news-card-noimage .noimage-title.kh-font{
  font-family: "Moul","Battambang","Siemreap",system-ui,sans-serif !important;
  font-weight: 400;

  /* ✅ keep it readable but not too huge */
  font-size: 1.65rem;
  line-height: 2.05 !important;     /* ✅ Khmer legs safe (IMPORTANT) */

  /* ✅ give glyph room (prevents cutting bottom) */
  padding: 0 .25rem .55rem !important;
  margin: 0 !important;

  /* ✅ wrap safely */
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;

  /* ✅ if text is long, cut by container, NOT by line box */
  display: block !important;
  max-height: 8.0em;                /* ✅ safer than calc(...) */
  overflow: hidden;

  /* ❌ make sure these are NOT applied */
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* smaller screens */
@media (max-width: 991.98px){
  #home-news .news-card-image-wrapper{ height: 190px; }
  #home-news .news-card-noimage{ padding: 22px 16px 26px; }
  #home-news .news-card-noimage .noimage-title.kh-font{
    font-size: 1.45rem;
    line-height: 2.0 !important;
    max-height: 8.2em;
  }
}
@media (max-width: 575.98px){
  #home-news .news-card-image-wrapper{ height: 175px; }
  #home-news .news-card-noimage .noimage-title.kh-font{
    font-size: 1.3rem;
    line-height: 2.0 !important;
  }
}
/* =========================================
   HOME NEWS - NO IMAGE: Khmer legs SAFE (FINAL)
   Put this at the VERY END of home.css
   ========================================= */

#home-news .news-card-image-wrapper{
  height: 210px;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* ✅ STOP vertical-centering that causes clipping */
#home-news .news-card-noimage{
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;

  /* ✅ top aligned so long text doesn't clip at bottom */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start !important;

  /* ✅ give room for Khmer legs */
  padding: 26px 18px 44px !important;
  text-align: center;
}

/* ✅ modern fade at bottom (NO mask, NO clamp) */
#home-news .news-card-noimage::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 46px;
  pointer-events:none;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0),
    rgba(224,246,246,0.55),
    rgba(224,246,246,0.95)
  );
}

/* ✅ Khmer title: NO clamp, NO mask. Just safe line-height + padding */
#home-news .news-card-noimage .noimage-title.kh-font{
  font-family: "Moul","Battambang","Siemreap",system-ui,sans-serif !important;
  font-weight: 400 !important;

  font-size: 1.65rem;
  line-height: 2.15 !important;          /* ✅ Khmer legs safe */
  padding: 6px 6px 18px !important;       /* ✅ extra bottom */

  margin: 0 !important;

  /* wrap safely */
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;

  /* ✅ allow long text but keep inside hero */
  max-height: calc(2.15em * 3 + 18px) !important; /* ~3 lines */
  overflow: hidden !important;

  /* ❌ hard reset anything old */
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* optional badge spacing if you have it */
#home-news .news-card-noimage .noimage-badge{
  margin-bottom: 10px;
}

/* responsive */
@media (max-width: 991.98px){
  #home-news .news-card-image-wrapper{ height: 190px; }
  #home-news .news-card-noimage{ padding: 22px 16px 40px !important; }
  #home-news .news-card-noimage .noimage-title.kh-font{
    font-size: 1.45rem;
    max-height: calc(2.1em * 3 + 18px) !important;
    line-height: 2.1 !important;
  }
}
@media (max-width: 575.98px){
  #home-news .news-card-image-wrapper{ height: 175px; }
  #home-news .news-card-noimage .noimage-title.kh-font{
    font-size: 1.3rem;
    line-height: 2.05 !important;
  }
}
/* =========================
   HOME NEWS (hnews-*)  ✅ no conflict with news.css
   ========================= */

.home-news .home-news-wrap{
  position: relative;
  padding: 6px 44px; /* space for nav buttons */
}

.home-news-all{
  text-decoration: none;
  color: #0b5fae;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-news-nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 26px rgba(15,23,42,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 5;
}
.home-news-prev{ left: 6px; }
.home-news-next{ right: 6px; }

.home-news-slider{ overflow: hidden; }
.home-news-slider .swiper-slide{ height: auto; }

/* Card */
.hnews-card{
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(148,163,184,.25);
  box-shadow: 0 12px 30px rgba(15,23,42,.10);
  height: 100%;
}
.hnews-link{ display:block; color:inherit; text-decoration:none; }

/* Hero area fixed height => all equal */
.hnews-hero{
  position: relative;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15,165,110,.14), rgba(14,165,233,.12));
}
.hnews-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* Category tag (top-left) */
.hnews-tag{
  position:absolute;
  left: 12px;
  top: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,165,110,.20);
  font-weight: 900;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* No image hero */
.hnews-noimg{
  height: 100%;
  width: 100%;
  padding: 18px 16px 20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;     /* ✅ avoid clipping Khmer legs */
  text-align:center;
}
.hnews-noimg-badge{
  display:inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,165,110,.20);
  font-weight: 900;
  margin-top: 6px;
  margin-bottom: 12px;
}

/* ✅ Khmer-safe title (NO clamp, NO mask) */
.hnews-noimg-title.kh-font{
  font-family: "Moul","Battambang","Siemreap",system-ui,sans-serif !important;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 2.15 !important;       /* ✅ Khmer legs safe */
  padding-bottom: 18px;               /* ✅ prevent bottom cut */
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;

  /* keep inside hero; if too long, just hide extra (no cut legs) */
  max-height: 8.6em;                  /* ~4 lines safe */
  overflow: hidden;
}

/* Body */
.hnews-body{
  padding: 14px 16px 16px;
  display:flex;
  flex-direction:column;
  min-height: 220px; /* keep cards same overall height */
}
.hnews-meta{ margin-bottom: 6px; }
.hnews-date{
  color:#64748b;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.hnews-title{
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.55; /* Khmer safe */
  margin: 6px 0 8px;
}

.hnews-excerpt{
  color:#4b5563;
  line-height: 1.8;
  margin: 0 0 12px;
}

.hnews-more{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight: 900;
  color:#059669;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(14,165,233,.18);
  background: linear-gradient(180deg, rgba(14,165,233,.10), rgba(14,165,233,.05));
}

/* Responsive */
@media (max-width: 991.98px){
  .home-news .home-news-wrap{ padding: 6px 40px; }
  .hnews-hero{ height: 190px; }
  .hnews-noimg-title.kh-font{ font-size: 1.35rem; }
}
@media (max-width: 575.98px){
  .home-news .home-news-wrap{ padding: 6px 10px; }
  .home-news-nav{ display:none; } /* on phone swipe is enough */
  .hnews-hero{ height: 175px; }
}
/* ===========================
   Modern Videos Pagination
=========================== */
.videos-page .video-pagination-wrap{
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.videos-page .video-pagination-summary{
  color: #64748b;
  font-size: .98rem;
  font-weight: 600;
  text-align: center;
}

.videos-page .video-pagination{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.videos-page .video-pagination li{
  margin: 0;
  padding: 0;
}

.videos-page .video-pagination li a,
.videos-page .video-pagination li span{
  min-width: 46px;
  height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .98rem;
  border: 1px solid #dbe5df;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: all .18s ease;
}

.videos-page .video-pagination li a:hover{
  background: linear-gradient(135deg, #009245, #00b96b);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 146, 69, 0.22);
}

.videos-page .video-pagination li.active span{
  background: linear-gradient(135deg, #009245, #00b96b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(0, 146, 69, 0.22);
}

.videos-page .video-pagination li.disabled span{
  background: #f8fafc;
  color: #94a3b8;
  border-color: #e2e8f0;
  box-shadow: none;
  cursor: not-allowed;
}

.videos-page .video-pagination .page-arrow{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.videos-page .video-pagination .page-arrow svg{
  width: 18px;
  height: 18px;
}

@media (max-width: 640px){
  .videos-page .video-pagination{
    gap: 8px;
  }

  .videos-page .video-pagination li a,
  .videos-page .video-pagination li span{
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    font-size: .93rem;
  }

  .videos-page .video-pagination-summary{
    font-size: .92rem;
  }
}
