/* ============================= */
/* FIX LINK COLOR ON MOBILE TAP */
/* ============================= */

.box-item a,
#td-mobile-nav a,
.td-mobile-main-menu a {
    color: #ffffff;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.box-item a:hover,
#td-mobile-nav a:hover,
.td-mobile-main-menu a:hover {
    color: #ffcc00;
}

.box-item a:active,
.box-item a:focus,
#td-mobile-nav a:active,
#td-mobile-nav a:focus,
.td-mobile-main-menu a:active,
.td-mobile-main-menu a:focus {
    color: #ffcc00 !important;
    background-color: rgba(255, 255, 255, 0.1);
}

#td-mobile-nav a,
.td-mobile-main-menu a {
    -webkit-tap-highlight-color: rgba(255, 204, 0, 0.3);
}

#td-mobile-nav a:focus,
.td-mobile-main-menu a:focus {
    outline: none;
}


/* ============================= */
/* HOMEPAGE BERITA FIX (AMAN)   */
/* ============================= */

/* hanya homepage */
.home-row-berita {
    display: flex;
    flex-wrap: wrap;
}

/* kolom ikut tinggi tertinggi */
.home-row-berita > div {
    display: flex;
    flex-direction: column;
}

/* box slider */
.home-slider-box {
    height: 360px;
    overflow: hidden;
    position: relative;
}

/* gambar slider */
.home-slider-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* caption */
.home-slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.65);
    padding: 10px;
}

.home-slider-caption h4,
.home-slider-caption h5 {
    color: #fff;
    margin: 0;
    font-size: 14px;
    line-height: 18px;
}


/* ============================= */
/* MOBILE FIX                   */
/* ============================= */

@media (max-width: 767px) {

    .home-row-berita {
        display: block;
    }

    .home-slider-box {
        height: auto;
    }

}

/* ============================= */
/* GALERI VIDEO FIX              */
/* ============================= */

.video-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    margin-bottom: 15px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

.video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===============================
   FIX MENU MOBILE TIDAK TERBACA
   =============================== */
@media (max-width: 991px) {

  /* Warna teks menu */
  #header .header-nav-main nav > ul > li > a,
  #header .header-nav-main nav > ul > li > a.dropdown-toggle {
    color: #ffffff !important;
    font-weight: 600;
  }

  /* Hover / focus */
  #header .header-nav-main nav > ul > li > a:hover,
  #header .header-nav-main nav > ul > li > a:focus {
    color: #fff200 !important;
    background: rgba(0,0,0,0.18) !important;
  }

  /* Active menu */
  #header .header-nav-main nav > ul > li.active > a {
    color: #fff200 !important;
    background: rgba(0,0,0,0.22) !important;
  }
}

/* =====================================
   HEADER TOP IMAGE - COVER & RAMPING
   ===================================== */

#header .header-column > div{
  width: 100%;
  overflow: hidden;
}

/* DEFAULT (desktop biasa) */
#header img.header-title-img{
  width: 100%;
  height: 220px;              /* LEBIH RAMPING */
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Desktop besar */
@media (min-width: 1200px){
  #header img.header-title-img{
    height: 260px;
  }
}

/* Tablet */
@media (max-width: 991px){
  #header img.header-title-img{
    height: 180px;
  }
}

/* Mobile */
@media (max-width: 575px){
  #header img.header-title-img{
    height: 140px;
  }
}

/* =================================================
   FIX FINAL: WARNA SUBMENU (MEGA MENU) MOBILE
   ================================================= */
@media (max-width: 991px){

  /* teks submenu */
  #header .header-nav-main nav > ul li.dropdown-mega 
  .dropdown-mega-sub-nav > li > a{
    color: #ffffff !important;
    background: transparent !important;
    opacity: 1 !important;
  }

  /* hover / focus / active submenu */
  #header .header-nav-main nav > ul li.dropdown-mega 
  .dropdown-mega-sub-nav > li > a:hover,
  #header .header-nav-main nav > ul li.dropdown-mega 
  .dropdown-mega-sub-nav > li > a:focus,
  #header .header-nav-main nav > ul li.dropdown-mega 
  .dropdown-mega-sub-nav > li.active > a{
    color: #ffffff !important;
    background: rgba(255,255,255,0.18) !important;
  }

  /* icon panah submenu (jika ada) */
  #header .header-nav-main nav > ul li.dropdown-mega 
  .dropdown-mega-sub-nav > li > a:before{
    color: #ffffff !important;
  }
}

/* ================================
   FIX: menu mobile bisa scroll & bisa disorot sampai bawah
   ================================ */
@media (max-width: 991px){

  /* pastikan layer menu di atas konten */
  #header .header-nav-main{
    position: relative;
    z-index: 9999;
  }

  /* bikin area menu bisa di-scroll */
  #header .header-nav-main nav{
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* supaya area klik/hover full lebar */
  #header .header-nav-main nav a{
    display: block;
    width: 100%;
    padding: 10px 14px;
  }
}

/* jarak slider ke link terkait */
.jarak-slider{
  margin-bottom: -15px;
}

/* rapatkan link terkait ke berita */
.link-terkait{
  margin-bottom: -15px;
}

/* rapikan section berita */
.berita-terbaru{
  padding-top: 10px !important;
}

/* =====================================
   RAPATKAN SEMUA SECTION KE BAWAH
   ===================================== */

/* kurangi padding semua section */
.section{
  padding-top: 25px !important;
  padding-bottom: 25px !important;
}

/* khusus section tanpa background */
.section.section-no-background{
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

/* rapikan jarak antar row */
.section .row{
  margin-bottom: 10px;
}

/* rapikan judul section */
.section h2,
.section h3{
  margin-bottom: 15px !important;
}

/* rapatkan galeri video */
.video-box{
  margin-bottom: 10px !important;
}

/* rapatkan container terakhir (sebelum footer) */
.section:last-of-type{
  padding-bottom: 10px !important;
}

/* ===== FOOTER COPYRIGHT: TEKS PAS DI TENGAH ===== */
#footer{
  padding: 0 !important;
  margin-top: 0 !important;
}

#footer .footer-copyright{
  margin-top: 0 !important;     /* hilangkan jarak atas */
  padding: 0 !important;        /* hilangkan padding besar */
  min-height: 55px;             /* tinggi bar */
  display: flex !important;
  align-items: center !important;   /* tengah vertikal */
  justify-content: center !important;/* tengah horizontal */
}

#footer .footer-copyright .container{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#footer .footer-copyright p{
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

/* ================================
   INFO BOX HOME (LOKASI + SOSIAL + KONTAK)
   ================================ */

.info-footer-section {
  padding: 40px 0;
}

.info-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  min-height: 320px;
}

.info-card h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.info-card h4 span {
  color: orange;
}

.map-mini iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: 10px;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-list li {
  margin-bottom: 10px;
  font-weight: 500;
}

.info-box {
  background: #fff3e6;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 15px;
}

.btn-contact {
  display: inline-block;
  margin-top: 15px;
  background: orange;
  padding: 8px 16px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.btn-contact:hover {
  background: #ff7a00;
}

.map-mini{
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.map-mini iframe{
  width: 100%;
  height: 180px; /* lebih proporsional */
  border: 0;
  display: block;
}

.map-note{
  display: block;
  margin-top: 6px;
  color: #777;
  font-size: 12px;
}

/* HOME MID: padding top khusus (mengganti inline style di content.php) */
.home-mid{ padding-top:10px !important; }

/* RAPIN 3 KOLOM TENGAH HOME */
.home-mid .row-eq-height{
  display: flex;
  flex-wrap: wrap;
}
.home-mid .row-eq-height > [class*="col-"]{
  display: flex;
}
.home-mid .row-eq-height > [class*="col-"] > div{
  width: 100%;
  display: flex;
  flex-direction: column;
}
.home-mid .row-eq-height > [class*="col-"] > div > div:last-child{
  flex: 1;
}

/* ===== BERITA TERBARU: 4 ITEM LEBIH GEDE & RATA ===== */
.berita-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.berita-item{
  display: block;
  text-decoration: none !important;
  color: #333 !important;
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #eee;
  height: 215px;              /* KUNCI: semua sama tinggi */
}

.berita-thumb{
  height: 135px;              /* thumbnail lebih gede */
  overflow: hidden;
}

.berita-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.berita-title{
  padding: 10px 10px 12px;
  font-weight: 800;
  font-size: 13px;
  line-height: 18px;
  height: 60px;               /* KUNCI: judul tetap rata */
  overflow: hidden;
}

/* tombol pill biar seragam */
.btn-pill{
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #ff6600;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 12px;
}

/* mobile: jadi 1 kolom biar lega */
@media (max-width: 480px){
  .berita-grid{ grid-template-columns: 1fr; }
  .berita-item{ height: auto; }
  .berita-title{ height: auto; }
}

/* Card Berita: tombol selalu di bawah */
.berita-box{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.berita-grid{
  flex: 1;
}

.berita-btn-wrap{
  margin-top: auto;
  padding-top: 12px;
}

/* ================================
   OPSI A: BERITA LEBIH BESAR & PENUH
   ================================ */

.berita-item{
  height: 245px;       /* Card berita lebih tinggi */
}

.berita-thumb{
  height: 165px;       /* Gambar lebih besar */
}

.berita-title{
  height: 70px;        /* Judul lebih lega */
  font-size: 13px;
  line-height: 18px;
}

/* Birthday Blessing: tampilkan gambar FULL (tidak terpotong) */
.birthday-frame{
  background: #f2f2f2;      /* biar kalau ada sisa kanan/kiri tetap bagus */
}

.birthday-frame img{
  width: 100%;
  height: 100%;
  object-fit: contain !important;  /* KUNCI: tidak crop */
}

/* ================================
   FIX RESPONSIVE HOME (HP)
   ================================ */

@media (max-width: 991px){

  /* matikan flex equal height */
  .home-mid .row-eq-height{
    display: block !important;
  }

  .home-mid .row-eq-height > [class*="col-"]{
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px){

  /* berita jadi 1 kolom */
  .berita-grid{
    grid-template-columns: 1fr !important;
  }

  .berita-item,
  .berita-thumb,
  .berita-title{
    height: auto !important;
  }

  .birthday-frame{
    height: auto !important;
  }
}

/* ================================
   RAPATKAN JARAK HOME - HP SAJA
   (tidak ganggu laptop)
   ================================ */
@media (max-width: 768px){

  /* jarak dari section tengah ke section info */
  .home-mid{
    padding-bottom: 10px !important;
    margin-bottom: 0 !important;
  }

  /* section Lokasi/Sosial/Kontak */
  .info-footer-section{
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-top: 0 !important;
  }

  /* jarak antar kotak saat turun jadi 1 kolom */
  .info-footer-section .row > [class*="col-"]{
    margin-bottom: 12px !important;
  }

  /* rapatkan isi card */
  .info-card{
    min-height: auto !important;
    padding: 16px !important;
  }

  /* map sedikit diperkecil biar tidak makan ruang */
  .map-mini iframe{
    height: 160px !important;
  }

  /* tombol hubungi */
  .btn-contact{
    margin-top: 10px !important;
  }
}

/* Rapatkan jarak Birthday ke Lokasi (HP) */
@media (max-width: 768px){

  /* kurangi jarak bawah card Birthday */
  .home-mid .col-md-4:last-child{
    margin-bottom: 8px !important;
  }

  /* kurangi jarak atas section Lokasi */
  .info-footer-section{
    margin-top: -10px !important;
  }
}

/* ================= LIVE STREAMING ================= */
.home-live{ padding: 10px 0 0; }
.live-embed{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.live-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.live-actions{ margin-top: 12px; }

.live-badge{
  display:inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #ff2d2d;
  color: #fff;
}


/* ================= LIVE PLACEHOLDER ================= */

.live-placeholder{
  padding: 40px 15px;
  text-align: center;
  border-radius: 12px;
  background: #f9f9f9;
  border: 1px dashed #ccc;
  color: #444;
  margin-bottom: 10px;
}

.live-placeholder p{
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.live-placeholder small{
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #777;
}

/* ================================
   HOME EXTRA (RENUNGAN / BERITA / POLLING)
   ================================ */

.home-extra{
  padding-top: 0;
  padding-bottom: 15px;
}

.home-extra-row{
  display: flex;
  flex-wrap: wrap;
}

.home-extra-col{
  margin-bottom: 20px;
  display: flex;
}

.home-card{
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-card__head{
  padding: 14px 14px 10px;
  border-bottom: 1px solid #f2f2f2;
}

.home-card__title{
  font-size: 18px;
  font-weight: 900;
}

.home-card__subtitle{
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

.home-card__body{
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.accent{ color: #ff6600; }

.home-muted{ color:#777; }

.home-mt-8{ margin-top: 8px; }
.home-mt-12{ margin-top: 12px; }

/* tombol rata bawah */
.home-btn{
  display: inline-block;
  margin-top: auto;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
}

.home-btn--orange{
  background: #ff6600;
  color: #fff !important;
}

.home-btn--primary{
  background: #2c6bd9; /* mengikuti style btn-primary kamu */
  color: #fff;
}

.home-btn--ghost{
  background: #f4f4f4;
  color: #333;
}

/* Renungan */
.home-renungan-item{ margin-bottom: 12px; }

.home-renungan-title{
  font-weight: 800;
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 6px;
  max-height: 36px;
  overflow: hidden;
}

.home-video{
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.home-video iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Berita carousel */
.home-carousel{ width: 100%; overflow: hidden; }
.home-berita-link{ text-decoration: none; color:#333; display:block; }
.home-berita-thumb{
  width: 100%;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
}
.home-berita-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-berita-title{
  padding-top: 10px;
  font-weight: 900;
  font-size: 13px;
  line-height: 18px;
  max-height: 54px;
  overflow: hidden;
}

.home-carousel-indicators{ bottom: 8px; }
.home-carousel-indicators li{
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.25);
}
.home-carousel-indicators .active{
  background: #ff6600;
  border-color: #ff6600;
}

/* Polling */
.home-poll-question{
  font-weight: 900;
  font-size: 13px;
  line-height: 18px;
  margin-bottom: 10px;
}

.home-poll-option{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}
.home-poll-option input[type="radio"]{ margin: 0; }

/* hasil polling */
.home-result-title{
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 8px;
}
.home-result-question{
  font-weight: 700;
  margin-bottom: 10px;
}
.home-result-row{ margin-bottom: 10px; }
.home-result-line{ font-size: 13px; margin-bottom: 4px; }
.home-bar{
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  height: 10px;
}
.home-bar__fill{
  height: 10px;
  background: #ff6600;
}
.home-result-total{
  font-size: 12px;
  color: #777;
}

/* Mobile */
@media (max-width: 991px){
  .home-extra-row{ display: block; }
  .home-extra-col{ display: block; }
}

/* Samakan posisi tombol Berita dengan tombol Khotbah (naikkan tombol berita) */
.home-mid .berita-btn-wrap{
  margin-top: 89px !important;   /* sebelumnya auto -> jadi terlalu bawah */
  padding-top: 0 !important;
}

/* ===== Galeri Foto Detail Berita ===== */
.berita-galeri{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.berita-galeri-item{
  display:block;
  border-radius: 12px;
  overflow:hidden;
}

.berita-galeri-item img{
  width:100%;
  height:160px;
  object-fit:cover;
  display:block;
  transition: .2s;
}

.berita-galeri-item:hover img{
  transform: scale(1.03);
}

@media (max-width: 768px){
  .berita-galeri{ grid-template-columns: repeat(2, 1fr); }
  .berita-galeri-item img{ height:130px; }
}

/* ================================
   FIX TAMPILAN FORM PENDAFTARAN
   ================================ */
.pendaftaran-wrap{
  padding-top: 25px;
  padding-bottom: 25px;
}

.pendaftaran-wrap .form-group{
  margin-bottom: 14px;
}

.pendaftaran-wrap label{
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.pendaftaran-wrap .form-control{
  width: 100% !important;
  max-width: 100%;
}

.pendaftaran-wrap .row{
  margin-left: -15px;
  margin-right: -15px;
}

.pendaftaran-wrap [class*="col-"]{
  padding-left: 15px;
  padding-right: 15px;
}

.pendaftaran-wrap label,
.pendaftaran-wrap .help-block,
.pendaftaran-wrap small{
  text-align: left;
}

/* ================================
   HOME SHORTS / TESTIMONI
   ================================ */

.home-shorts{
  padding: 10px 0 0;
}

.home-shorts .shorts-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}

@media (max-width: 992px){
  .home-shorts .shorts-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px){
  .home-shorts .shorts-grid{
    grid-template-columns: 1fr;
  }
}

.home-shorts .shorts-item{
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.home-shorts .shorts-title{
  padding:10px 12px;
  font-weight:800;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.home-shorts .shorts-frame{
  position:relative;
  width:100%;
  padding-top:177.78%; /* Rasio 9:16 Shorts */
  background:#000;
}

.home-shorts .shorts-frame iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* ================================
   OVERRIDE: SHORTS GRID FULL LEBAR & MENDATAR
   (supaya tampil 4 kolom seperti contoh Polimdo)
   ================================ */

.home-shorts{ width:100%; }
.home-shorts .container{ max-width: 1200px; }
.home-shorts .shorts-grid{
  width:100%;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* card lebih “rapi” */
.home-shorts .shorts-item{ box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

/* =================================
   SHORTS PREMIUM ELEGANT EFFECT
   ================================= */

.home-shorts .shorts-item{
  opacity: 0.95;
  transform: translateY(0);
  border: 1px solid rgba(255,102,0,0.12);
  transition: 
      opacity 0.35s ease,
      transform 0.35s ease,
      box-shadow 0.35s ease,
      border-color 0.35s ease;
  cursor: pointer;
}

/* Hover */
.home-shorts .shorts-item:hover{
  opacity: 1;
  transform: translateY(-8px);
  border-color: rgba(255,102,0,0.6);
  box-shadow: 
      0 14px 35px rgba(0,0,0,0.18),
      0 0 15px rgba(255,102,0,0.25);
}

/* Click */
.home-shorts .shorts-item:active{
  transform: translateY(-3px);
}

/* =====================================
   RAPIIKAN IBADAH MINGGU INI
   ===================================== */

.ibadah-card{
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-height: 170px;
}

.ibadah-icon img{
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ff8a00;
}

.ibadah-info{
  flex: 1;
}

.ibadah-info h4{
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 16px;
}

.ibadah-info p{
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.ibadah-info p strong{
  min-width: 85px;
  display: inline-block;
  color: #333;
}

.ibadah-row{
  display: grid;
  grid-template-columns: 70px 8px 1fr;  /* label lebih kecil, value lebih lebar */
  column-gap: 6px;
  margin-bottom: 8px;
  font-size: 13.5px;
  align-items: start;
}


.ibadah-label{
  font-weight: 700;
  color: #333;
}

.ibadah-sep{
  font-weight: 700;
  color: #333;
}

.ibadah-value{
  color: #666;
  line-height: 1.45;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word; /* ganti dari anywhere */
}


.ibadah-card{
  height: 100%;
}

.ibadah-icon{
  flex: 0 0 70px;
}

@media (max-width: 768px){
  .ibadah-card{
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  .ibadah-icon{
    margin-bottom: 10px;
  }
}

/* FIX: jangan sampai teks jadi per-huruf / vertical */
.ibadah-week-bg .ibadah-value,
.ibadah-week-bg .ibadah-label,
.ibadah-week-bg .ibadah-sep{
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
  writing-mode: horizontal-tb !important;
  letter-spacing: normal !important;
}

.ibadah-week-bg .col-md-4{
  min-width: 280px;
}


/* ======================================
   ULANG TAHUN CARD (GANTI PENGUMUMAN)
   ====================================== */

.ultah-card{
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.10);
  overflow: hidden;
  margin-bottom: 20px;
}

.ultah-card__head{
  padding: 14px 14px 10px;
  border-bottom: 1px solid #f2f2f2;
}

.ultah-card__title{
  font-size: 18px;
  font-weight: 900;
}

.ultah-card__subtitle{
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

.ultah-card__body{
  padding: 12px;
}

/* ===== LIST ULTAH ===== */

/* list: otomatis menyesuaikan lebar */
.ultah-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

/* item: foto kiri, teks kanan */
.ultah-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #fff3e6;
  min-width: 0;           /* penting biar teks tidak mendorong */
}

/* avatar */
.ultah-avatar{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.ultah-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* teks kanan */
.ultah-text{ min-width:0; }
.ultah-name{
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ultah-rayon{
  font-size: 10px;
  color: #ff6600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* jangan biarkan parent memotong */
.ultah-card, .ultah-card__body{
  overflow: visible;
}

.ultah-empty{
  font-size: 13px;
  color: #777;
}

/* ===== DIVIDER ===== */

.ultah-divider{
  height: 1px;
  background: #f2f2f2;
  margin: 15px 0;
}

/* ===== BIRTHDAY BLESSING ===== */

.ultah-blessing-title{
  font-weight: 900;
  margin-bottom: 10px;
}

.ultah-frame{
  width: 100%;
  height: 420px; /* bebas kamu tentukan */
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
}


.ultah-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* indicator warna orange */
.ultah-indicators li{
  background-color: #ddd;
}

.ultah-indicators .active{
  background-color: #ff6600;
}

/* mobile */
@media (max-width: 576px){
  .ultah-frame{ aspect-ratio: 4 / 5; }
}

.home-live{
  transition: all .3s ease;
}

.home-live.off-mode{
  opacity: .95;
}

/* =====================================
   LIVE TOP BAR (BANNER LIVE)
   ===================================== */

.live-topbar{
  background: linear-gradient(90deg, #ff2d2d, #ff6600);
  color: #ffffff;
  padding: 10px 0;
  font-size: 14px;
  text-align: center;
  position: relative;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.live-topbar .container{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live-dot{
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse{
  0%{ opacity: 1; transform: scale(1); }
  50%{ opacity: 0.5; transform: scale(1.4); }
  100%{ opacity: 1; transform: scale(1); }
}

.live-link{
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  transition: 0.2s;
}

.live-link:hover{
  opacity: 0.85;
}

/* Pastikan hero tidak menimpa banner */
.hero-home{
  position: relative;
  z-index: 1;
}

.hero-overlay{
  z-index: 0;
}

/* Mobile adjustment */
@media (max-width: 768px){
  .live-topbar{
    font-size: 12px;
    padding: 8px 5px;
  }
}


/* ================================
   PLAYLIST DETAIL (RENUNGAN HARIAN)
   ================================ */
.playlist-detail{
  padding-top: 15px;
  padding-bottom: 30px;
}

.playlist-detail > h2{
  text-align: center;
  font-weight: 900;
  margin: 10px 0 22px;
}

/* rapikan jarak grid (bootstrap row) */
.playlist-detail .post-columns > [class*="col-"]{
  margin-bottom: 18px;
}

/* card */
.playlist-detail .post{
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* header */
.playlist-detail .post-header{
  padding: 12px 14px 0;
}

.playlist-detail .post-title{
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
  margin: 0;
  max-height: 2.7em;          /* clamp 2 baris */
  overflow: hidden;
}

.playlist-detail .post-title a{
  text-decoration: none;
}

.playlist-detail .post-meta{
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

/* isi ringkas + tombol rata bawah */
.playlist-detail .post-entry{
  padding: 10px 14px 0;
  color: #666;
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}

.playlist-detail .post-more{
  padding: 12px 14px 14px;
  margin-top: auto;          /* tombol selalu di bawah */
}

.playlist-detail .more-link{
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ff6600;
  color: #fff !important;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none !important;
}

.playlist-detail .more-link:hover{
  opacity: .9;
}

/* Mobile: judul halaman jangan terlalu besar */
@media (max-width: 576px){
  .playlist-detail > h2{ font-size: 20px; }
}

.video-box{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  border-radius: 14px;
}

.video-box iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-wrapper{
  padding: 0;
  border: 0;
}



/* =========================================
   IBADAH MINGGU INI (CARD MENEMPEL + HOVER)
========================================= */

.ibadah-week-bg{
  background: url('/asset/images/awan.png') center center / cover no-repeat;
}

/* overlay tipis */
.ibadah-week-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.55);
  pointer-events:none;
}

.ibadah-week-bg .ibadah-wrap{
  position: relative;
  z-index: 2;
}

.ibadah-title{
  font-size: 44px;
  font-weight: 900;
  margin: 0;
  line-height: 1.05;
}

.ibadah-accent{
  color:#ff8a00;
}

.ibadah-subtitle{
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

/* row jarak atas */
.ibadah-row-wrap{
  margin-top: 22px;
}

/* BIKIN RAPAT MENEMPEL (hapus gutter bootstrap) */
.ibadah-row-wrap{
  margin-left: 0;
  margin-right: 0;
}

.ibadah-row-wrap > .ibadah-col{
  padding-left: 0;
  padding-right: 0;
}

/* Card jadi satu panel menempel */
.ibadah-card{
  background:#fff;
  padding: 20px 18px;
  display:flex;
  align-items:center;
  gap:14px;
  min-height: 130px;

  border: 1px solid #eee;
  border-right: 0;                 /* biar menempel */
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

/* rounded hanya kiri/kanan */
.ibadah-row-wrap > .ibadah-col:first-child .ibadah-card{
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}
.ibadah-row-wrap > .ibadah-col:last-child .ibadah-card{
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  border-right: 1px solid #eee;
}

/* hover */
.ibadah-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  background: rgba(255,102,0,.04);
  position: relative;
  z-index: 3;
}

/* icon bulat */
.ibadah-icon{
  width:66px;
  height:66px;
  border-radius:50%;
  border:3px solid #ff8a00;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#fff;
  flex: 0 0 66px;
}

.ibadah-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* info */
.ibadah-info h4{
  margin:0 0 8px 0;
  font-size:16px;
  font-weight:900;
  color:#111;
}

/* baris label : value (rapi kolom) */
.ibadah-row{
  display: grid;
  grid-template-columns: 80px 12px 1fr;
  gap: 6px;
  margin: 3px 0;
  font-size: 13px;
  color:#555;
}

.ibadah-label{ font-weight: 800; color:#222; }
.ibadah-sep{ text-align:center; color:#777; }
.ibadah-value{ color:#555; }

/* responsive */
@media (max-width: 991px){
  .ibadah-title{ font-size: 34px; }
}

/* Mobile: slider swipe */
@media (max-width: 767px){

  .ibadah-week-bg{ padding: 34px 0 28px; }
  .ibadah-title{ font-size: 28px; }

  /* TRACK */
  #ibadahSlider{
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    gap: 12px;
    padding: 8px 15px 14px;
    margin: 14px 0 0 !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #ibadahSlider::-webkit-scrollbar{ height: 0; }

  /* ITEM (FULL, tanpa potongan) */
  #ibadahSlider > .ibadah-col{
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }

  .ibadah-card{
    border-radius: 16px;
    padding: 18px 16px;
    min-height: auto;
    border-right: 1px solid #eee;
  }

  .ibadah-icon{ width: 60px; height: 60px; flex: 0 0 60px; }
  .ibadah-info h4{ font-size: 16px; }
  .ibadah-row{ grid-template-columns: 80px 12px 1fr; font-size: 13px; }
}

/* Biar overlay background tidak ganggu swipe */
.ibadah-week-bg::before{ pointer-events: none; }

@media (max-width: 767px){
  .ibadah-card{
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.14);
    background: rgba(255,102,0,.04);
    position: relative;
    z-index: 3;
  }
}

@media (max-width: 767px){
  .ibadah-week-bg{
    padding-top: 20px;   /* dari 34px jadi 20px */
  }
}

@media (max-width: 767px){
  .ibadah-card{
    transform: translateY(-3px);
   /* tadinya -6px */
  }
}

/* ================================
   CLOUD MENU - ELEGAN SOLID + HOVER (NO TRANSPARAN)
   (FINAL - tidak bentrok)
================================ */

.cloud-menu-wrap{
  margin-top: 0 !important;
  padding: 0 !important;
}

/* PANEL LUAR */
.cloud-menu-row{
  position: relative;
  border-radius: 0 !important;
  overflow: hidden;

  background: #ffffff !important; /* panel putih solid */
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: none !important;

  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

/* MATIKAN semua overlay lama */
.cloud-menu-row::before,
.cloud-menu-row::after{
  content: none !important;
  display: none !important;
}

/* hilangkan gutter bootstrap */
.cloud-menu-row > [class*="col-"]{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* divider antar kolom */
.cloud-menu-row > [class*="col-"]:not(:last-child){
  border-right: 1px solid rgba(0,0,0,0.08) !important;
}

/* ITEM */
.cloud-item{
  position: relative;
  z-index: 2;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  background: #f2f2f2 !important;   /* solid (tidak transparan) */
  height: 140px;
  padding: 22px 12px;

  text-decoration:none !important;
  color:#222 !important;

  border-radius: 0 !important;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

/* hover premium */
.cloud-item:hover{
  background: #e9e9e9 !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.10);
}

/* garis bawah orange saat hover */
.cloud-item::after{
  content:"";
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 3px;
  background: #ff8a00;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

.cloud-item:hover::after{
  opacity: 1;
  transform: translateY(0);
}

/* icon */
.cloud-item img{
  width: 56px;
  height: auto;
  margin-bottom: 10px;

  opacity: 1 !important;
  transform: none !important;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.12));
}

/* title */
.cloud-title{
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
  color: #222;
}

/* Mobile: hover lebih halus (touch) */
@media (max-width: 767px){
  .cloud-item{
    height: 110px;
    padding: 16px 10px;
  }

  /* di mobile biasanya hover tidak konsisten, jadi jangan naik */
  .cloud-item:hover{
    transform: none;
    box-shadow: none;
    background: #e9e9e9 !important;
  }

  .cloud-item::after{
    left: 10px;
    right: 10px;
    bottom: 8px;
  }

  .cloud-item img{ width: 48px; }
  .cloud-title{ font-size: 12px; }
}

/* =========================================
   CLOUD MENU - DIVIDER ORANGE ELEGAN
========================================= */

/* pastikan kolom bisa jadi patokan divider */
.cloud-menu-row > [class*="col-"]{
  position: relative;
}

/* HAPUS divider abu-abu lama kalau masih ada */
.cloud-menu-row > [class*="col-"]:not(:last-child){
  border-right: none !important;
}

/* Divider orange di antara kolom */
.cloud-menu-row > [class*="col-"]:not(:last-child)::after{
  content:"";
  position:absolute;
  top: 18px;
  bottom: 18px;
  right: 0;
  width: 2px;

  /* orange elegan (gradient halus) */
  background: linear-gradient(
    to bottom,
    rgba(255,138,0,0),
    rgba(255,138,0,0.95),
    rgba(255,138,0,0)
  );

  opacity: .9;
  z-index: 5;
}

/* Biar divider tetap kelihatan walau item punya shadow */
.cloud-item{
  box-shadow: none !important; /* optional: biar clean */
}

/* Hover tetap premium */
.cloud-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.10);
}

/* Mobile: divider jangan terlalu tinggi */
@media (max-width: 767px){
  .cloud-menu-row > [class*="col-"]:not(:last-child)::after{
    top: 14px;
    bottom: 14px;
    width: 2px;
  }
}

@media (max-width: 767px){
  .cloud-menu-wrap{
    margin-top: -18px;
    padding: 10px 10px 0;
  }
  .cloud-item{
    height: 125px;
    padding: 18px 10px;
  }
  .cloud-item img{ width: 54px; }
  .cloud-title{ font-size: 13px; }
}

/* =========================================
   CLOUD MENU - PREMIUM FLOATING
   Solid, clean, elegan, tidak transparan
========================================= */

/* Bungkus panel dibuat sedikit turun & mengambang */
.cloud-menu-wrap{
  margin-top: -30px !important;   /* sedikit overlap ke banner */
  position: relative;
  z-index: 10;
}

/* Panel utama */
.cloud-menu-row{
  background: #ffffff !important;
  border-radius: 14px !important;   /* sedikit rounded premium */
  overflow: hidden;

  border: 1px solid rgba(0,0,0,0.06);

  /* floating shadow elegan */
  box-shadow:
    0 18px 40px rgba(0,0,0,0.12),
    0 4px 10px rgba(0,0,0,0.06);

  transition: box-shadow .25s ease;
}

/* Hover seluruh panel (efek mahal halus) */
.cloud-menu-row:hover{
  box-shadow:
    0 22px 50px rgba(0,0,0,0.16),
    0 6px 14px rgba(0,0,0,0.08);
}

/* Divider orange tetap premium */
.cloud-menu-row > [class*="col-"]:not(:last-child)::after{
  width: 2px;
  opacity: .9;
}

/* Item */
.cloud-item{
  background: linear-gradient(180deg,#f5f5f5 0%, #ededed 100%) !important;
  height: 140px;
  padding: 22px 12px;
  transition: transform .2s ease, background .2s ease;
}

/* Hover item */
.cloud-item:hover{
  background: linear-gradient(180deg,#fafafa 0%, #f0f0f0 100%) !important;
  transform: translateY(-4px);
}

/* Underline orange lebih smooth */
.cloud-item::after{
  height: 3px;
  border-radius: 999px;
}

/* Icon lebih hidup */
.cloud-item img{
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.15));
  transition: transform .2s ease;
}

.cloud-item:hover img{
  transform: scale(1.05);
}

/* Title lebih premium */
.cloud-title{
  font-weight: 900;
  letter-spacing: .3px;
}

/* Mobile tetap rapi */
@media (max-width: 767px){
  .cloud-menu-wrap{
    margin-top: -18px !important;
  }

  .cloud-menu-row{
    border-radius: 10px !important;
  }

  .cloud-item{
    height: 110px;
  }

  .cloud-item:hover{
    transform: none;
  }
}

/* =========================================
   CLOUD MENU - REFINED PREMIUM VERSION
========================================= */

/* Floating lebih elegan */
.cloud-menu-wrap{
  margin-top: -40px !important;
  z-index: 20;
}

/* Panel */
.cloud-menu-row{
  background: #ffffff !important;
  border-radius: 18px !important;
  border: 1px solid rgba(0,0,0,0.05);

  box-shadow:
    0 25px 60px rgba(0,0,0,0.12),
    0 8px 20px rgba(0,0,0,0.06);
}

/* Divider orange dibuat lebih premium */
.cloud-menu-row > [class*="col-"]:not(:last-child)::after{
  width: 1.5px;
  opacity: .75;

  background: linear-gradient(
    to bottom,
    rgba(255,138,0,0),
    #ff8a00,
    rgba(255,138,0,0)
  );
}

/* Item lebih halus */
.cloud-item{
  background: linear-gradient(180deg,#f7f7f7 0%, #eeeeee 100%) !important;
  transition: all .25s ease;
}

/* Hover lebih elegan (tidak terlalu meloncat) */
.cloud-item:hover{
  background: linear-gradient(180deg,#fafafa 0%, #f1f1f1 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

/* Underline lebih subtle */
.cloud-item::after{
  height: 2px;
}

/* Icon lebih refined */
.cloud-item img{
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.15));
  transition: transform .25s ease;
}

.cloud-item:hover img{
  transform: scale(1.04);
}

/* Typography lebih premium */
.cloud-title{
  font-weight: 900;
  letter-spacing: .4px;
}

/* =========================================
   CLOUD MENU - HIGH END REFINED VERSION
========================================= */

/* Panel lebih smooth */
.cloud-menu-row{
  background: #ffffff !important;
  border-radius: 20px !important;

  border: 1px solid rgba(0,0,0,0.05);

  box-shadow:
    0 30px 70px rgba(0,0,0,0.12),
    0 10px 25px rgba(0,0,0,0.06);

  transition: all .3s ease;
}

/* Divider orange dibuat ultra-refined */
.cloud-menu-row > [class*="col-"]:not(:last-child)::after{
  width: 1px;
  opacity: .6;

  background: linear-gradient(
    to bottom,
    rgba(255,138,0,0),
    #ff8a00,
    rgba(255,138,0,0)
  );
}

/* Item lebih halus & classy */
.cloud-item{
  background: linear-gradient(
    180deg,
    #f9f9f9 0%,
    #f0f0f0 100%
  ) !important;

  transition: all .25s ease;
}

/* Hover lebih subtle (premium style tidak terlalu meloncat) */
.cloud-item:hover{
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f3f3f3 100%
  ) !important;

  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.10);
}

/* Underline dibuat lebih slim & classy */
.cloud-item::after{
  height: 2px;
  border-radius: 999px;
}

/* Icon refined */
.cloud-item img{
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.18));
  transition: transform .25s ease;
}

.cloud-item:hover img{
  transform: scale(1.03);
}

/* Typography lebih elegan */
.cloud-title{
  font-weight: 900;
  letter-spacing: .5px;
}


/* =========================================
   CLOUD MENU - FINAL BALANCED GLASS
========================================= */

.cloud-menu-row{
  background: rgba(255,255,255,0.32) !important;

  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);

  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,0.55);

  box-shadow:
    0 40px 90px rgba(0,0,0,0.25),
    0 12px 30px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.cloud-item{
  background: rgba(255,255,255,0.65) !important;
  transition: all .25s ease;
}

.cloud-item:hover{
  background: rgba(255,255,255,0.85) !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}


/* =========================================
   OFFCANVAS MOBILE MENU 
   untuk #header .header-nav-main collapse
   ========================================= */
@media (max-width: 991px){

  /* 1) Panel menu jadi drawer kiri */
  #header .header-nav-main{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    width: min(85vw, 320px) !important;
    overflow-y: auto !important;
    border-radius: 0 !important;
    padding: 14px 0 !important;

 background: #000000 !important;

    box-shadow: 8px 0 24px rgba(0,0,0,0.35) !important;

    transform: translateX(-105%);
    transition: transform .25s ease;
    z-index: 9999 !important;
  }

  /* 2) Saat menu terbuka (Bootstrap v3: .in) */
  #header .header-nav-main.collapse.in{
    transform: translateX(0);
  }

  /* 2b) Kalau Bootstrap v4/v5 (pakai .show) */
  #header .header-nav-main.collapse.show{
    transform: translateX(0);
  }

  /* 3) Overlay tipis di sisa layar (BUKAN full hitam) */
  body::before{
    content:"";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.18); /* tipis saja */
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 9998; /* di bawah panel */
  }

  /* aktifkan overlay saat menu terbuka */
  body:has(#header .header-nav-main.collapse.in)::before,
  body:has(#header .header-nav-main.collapse.show)::before{
    opacity: 1;
    visibility: visible;
  }

  /* rapikan item menu biar seperti list */
  #header .header-nav-main nav > ul > li > a{
    padding: 12px 16px !important;
  }
}

/* =========================================
   MOBILE MENU CLOSE BUTTON (X)
   ========================================= */
@media (max-width: 991px){

  .mobile-menu-close{
    position: absolute;
    top: 15px;
    right: 18px;
    background: transparent;
    border: 0;
    font-size: 22px;
    color: #ffffff;
    z-index: 10000;
  }

  .mobile-menu-close:hover{
    color: #f2f2f2;
    cursor: pointer;
  }

  /* beri jarak isi menu dari tombol X */
  #header .header-nav-main nav{
    margin-top: 40px;
  }
}

/* =========================================
   GLOBAL FONT
   ========================================= */

body{
  font-family: 'Poppins', sans-serif !important;
}

/* khusus menu mobile */
#header .header-nav-main{
  font-family: 'Poppins', sans-serif !important;
}

.mobile-menu-close{
  display:none;
}

@media (max-width: 991px){
  .header-nav-main.show .mobile-menu-close,
  .header-nav-main.in .mobile-menu-close{ /* buat bootstrap lama */
    display:block;
    position:absolute;
    top:10px;
    left:10px;
    z-index:9999;
    background:transparent;
    border:0;
    font-size:22px;
  }
}
/* =========================================
   FIX: TEKS DI MEGA MENU MOBILE (h3/p) BIAR PUTIH
   ========================================= */
@media (max-width: 991px){
  #header .header-nav-main .dropdown-mega-content,
  #header .header-nav-main .dropdown-mega-content h1,
  #header .header-nav-main .dropdown-mega-content h2,
  #header .header-nav-main .dropdown-mega-content h3,
  #header .header-nav-main .dropdown-mega-content h4,
  #header .header-nav-main .dropdown-mega-content p,
  #header .header-nav-main .dropdown-mega-content b,
  #header .header-nav-main .dropdown-mega-content span,
  #header .header-nav-main .dropdown-mega-content li{
    color: #fff !important;
    opacity: 1 !important;
  }

  #header .header-nav-main .dropdown-mega-content a{ color:#fff !important; }
  #header .header-nav-main .dropdown-mega-content a:hover{ color:#fff200 !important; }
}


/* =========================================
   HEADER GLASS ON SCROLL 
   TANPA on-light (biar selalu kelihatan)
   ========================================= */

/* default transparan */
#header,
#header .header-body,
#header .header-container{
  background: transparent !important;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

/* saat scroll: gelap transparan + blur */
#header.scrolled,
#header.scrolled .header-body,
#header.scrolled .header-container{
  background: rgba(0,0,0,.55) !important;   /* ubah .55 jadi .65 kalau mau lebih gelap */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

/* warna menu tetap putih */
#header .header-nav-main nav > ul > li > a,
#header.scrolled .header-nav-main nav > ul > li > a{
  color: #fff !important;
}


.berita-terbaru-grid{
  display: flex;
  flex-wrap: wrap;
}

.berita-terbaru-col{
  display: flex;
}

.berita-terbaru-item{
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (max-width: 576px){
  .berita-terbaru-col{
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
}