/* ============================================================
   RESET & DASAR
============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --text: #1a1a1a;
  --nav-bg: #f5f5f5;
  --nav-text: #333;
  --accent: #0b8a83;
  --hover-bg: #e6f2ec;
}

html[data-theme="dark"] {
  --bg: #121212;
  --text: #eaeaea;
  --nav-bg: #1e1e1e;
  --nav-text: #ddd;
  --accent: #0b8a83;
  --hover-bg: #223d3c;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
  padding-bottom: 80px;
}

/* ============================================================
   🌙 DARK MODE - WARNA UNTUK SEMUA BAGIAN
============================================================ */

/* === Warna dasar halaman === */
html[data-theme="dark"] body {
  background: #121212;
  color: #eaeaea;
}

/* === Navigasi / Header === */
html[data-theme="dark"] .nav {
  background: #1e1e1e;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

html[data-theme="dark"] .nav a {
  color: #eaeaea;
}

html[data-theme="dark"] .nav a:hover {
  color: #0b8a83; /* aksen tosca */
}

/* ============================================================
   📰 HERO BERITA UTAMA
============================================================ */
html[data-theme="dark"] .hero {
  background: #181818;
}

html[data-theme="dark"] .hero-main {
  background: #1e1e1e;
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

html[data-theme="dark"] .hero-content .kicker {
  color: #0b8a83; /* hijau tosca cerah */
}

html[data-theme="dark"] .hero-title a {
  color: #ffffff;
}

html[data-theme="dark"] .hero-title a:hover {
  color: #0b8a83;
}

html[data-theme="dark"] .hero-excerpt {
  color: #cfcfcf;
}

html[data-theme="dark"] .hero-meta {
  color: #aaa;
}

/* ============================================================
   🗞️ CARD BERITA (List Berita)
============================================================ */
html[data-theme="dark"] .card {
  background: #1e1e1e;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

html[data-theme="dark"] .card-body .card-title a {
  color: #fff;
}

html[data-theme="dark"] .card-body .card-title a:hover {
  color: #0b8a83;
}

html[data-theme="dark"] .card-body .kicker,
html[data-theme="dark"] .card-body .read-more a {
  color: #0b8a83;
}

/* ============================================================
   ⭐ BERITA POPULER / TRENDING
============================================================ */
html[data-theme="dark"] .trending li {
  background: #1e1e1e;
  transition: background 0.3s;
}

html[data-theme="dark"] .trending li:hover {
  background: #00c46b33; /* hijau tosca transparan */
}

html[data-theme="dark"] .trending li a {
  color: #eaeaea;
}

html[data-theme="dark"] .trending li a:hover {
  color: #0b8a83;
}

html[data-theme="dark"] .trend-rank {
  background: #0b8a83;
  color: #fff;
}

/* ============================================================
   🏷️ KATEGORI (CHIP)
============================================================ */
html[data-theme="dark"] .category-list .chip {
  background-color: #173331; /* hijau tosca tua */
  color: #33c2b7;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

html[data-theme="dark"] .category-list .chip:hover {
  background-color: #00c46b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

/* ============================================================
   📦 WIDGET
============================================================ */
html[data-theme="dark"] .widget {
  background: #1b1b1b;
  color: #eaeaea;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ============================================================
   NAVIGASI UTAMA
============================================================ */
.nav {
  background: var(--nav-bg);
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  z-index: 999;
  /* Tambahan opsional */
  width: 100%;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === BRAND === */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.brand:hover .site-title {
  color: var(--accent);
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;
}

.site-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--nav-text);
}

.site-sub {
  font-size: 0.7rem;
  color: var(--nav-text);
  opacity: 0.8;
}

html[data-theme="light"] .site-title {
  color: #006d77; /* tosca gelap */
}

html[data-theme="dark"] .site-title {
  color: #33c2b7; /* tosca terang di dark mode */
}


/* === LINK NAVIGASI === */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

/* === DROPDOWN MENU === */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 30px;
  left: 0;
  background: var(--nav-bg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  flex-direction: column;
  min-width: 150px;
    min-width: 150px;
  z-index: 999;
}

.dropdown-content a {
  padding: 10px 15px;
  display: block;
  color: var(--nav-text);
}

.dropdown-content a:hover {
  background: var(--hover-bg);
  color: var(--accent);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.nav-links > .dropdown > a {
  padding: 10px 12px;  /* lebih luas agar mouse tidak keluar area */
  display: flex;
  align-items: center;
  gap: 5px;
}


/* === ICON CONTROL === */
.controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--nav-text);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--hover-bg);
}

@media (max-width: 768px) {
  /* Atur jarak antar ikon di HP */
  .controls {
    gap: 6px; /* lebih rapat dari versi desktop (10px → 4px) */
  }

  /* Kecilkan padding ikon biar proporsional */
  .icon-btn {
    padding: 3px; /* semula 6px */
    font-size: 1rem; /* sedikit lebih kecil agar seimbang */
  }

  /* Sesuaikan ukuran ikon di dalamnya */
  .icon-btn i {
    font-size: 1.2rem; /* bisa disesuaikan: 1.1–1.3rem */
  }
}



/* ============================================================
   MENU MOBILE
============================================================ */
/* Tombol hamburger */
#hamburger {
  display: none;
}

/* Ukuran dan posisi ikon diseragamkan */
#hamburger i {
  font-size: 1.3rem;        /* ukuran sama untuk kedua ikon */
  width: 1.3rem;            /* pastikan lebarnya sama */
  height: 1.3rem;           /* tingginya sama */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Saat menu aktif (ikon jadi X) */
#hamburger.active i {
  transform: rotate(180deg); /* opsional biar ada efek muter */
}



/* ============================================================
   MENU MOBILE (Full layar slide dari kanan)
============================================================ */
#mobileMenu {
  position: fixed;
  top: 40;
  right: 0;
  width: 100%; /* full layar HP */
  height: 100vh;
  background: var(--nav-bg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%); /* sembunyi di luar layar kanan */
  transition: transform 0.35s ease-in-out, opacity 0.3s ease;
  opacity: 0;
  z-index: 998;
}

#mobileMenu.active {
  transform: translateX(0); /* muncul dari kanan */
  opacity: 1;
}

#mobileMenu a {
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--nav-text);
  text-decoration: none;
  border-bottom: 2px solid rgba(0,0,0,0.05);
}

#mobileMenu a:hover {
  color: var(--accent);
}

/* Dropdown mobile */
.mobile-dropdown-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--nav-text);
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.mobile-dropdown-content {
  display: none;
  flex-direction: column;
  padding-left: 15px;   /* beri sedikit jarak dari kiri */
  margin: 0;
  list-style: none;      /* hilangkan bullet */
}

.mobile-dropdown-content li {
  border-bottom: 1px solid rgba(0,0,0,0.1); /* garis bawah tiap item */
}

.mobile-dropdown-content li a {
  padding: 12px 15px;   /* lebih lega untuk klik jari */
  font-size: 1rem;
  display: block;
  color: var(--nav-text);
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.mobile-dropdown-content li a:hover {
  background: var(--hover-bg);
  color: var(--accent);
}

/* Hapus garis bawah untuk item terakhir biar rapi */
.mobile-dropdown-content li:last-child {
  border-bottom: none;
}

/* Posisi ikon sosmed */
#mobileMenu .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: auto; /* dorong ke bawah */
  margin-bottom: 320px; /* naik sedikit dari tepi bawah */
  width: 100%;
  position: relative;
}

/* Ukuran & efek ikon */
#mobileMenu .social-icons a {
  background: #0b8a83;    
  color: #fafcfc;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.2s ease;
  border-bottom: none;
}

#mobileMenu .social-icons a:hover {
  color: var(--accent);
  transform: scale(1.15);
}

/* Overlay gelap di belakang menu */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 997;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}


/* ========================================
   Dark Mode - garis bawah menu mobile
======================================== */
html[data-theme="dark"] #mobileMenu a,
html[data-theme="dark"] .mobile-dropdown-title {
  border-bottom: 2px solid rgba(255,255,255,0.15); /* putih transparan */
}


#mobileMenu a:last-child {
  border-bottom: none; /* hilangkan garis terakhir */
}


/* ============================================================
   ANIMASI HALUS MENU MOBILE
============================================================ */
#mobileMenu {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

#mobileMenu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* ============================================================
   RESPONSIVE NAV
============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  #hamburger { display: block; }
  #mobileMenu.active { display: flex; }
}

/* ============================================================
   HERO BERITA UTAMA
============================================================ */
.hero {
  width: 100%;
  padding: 3rem 5%;
  background-color: #e8edec;
}

.hero-main {
  display: flex;
  gap: 2rem;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  min-height: 350px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-main:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.hero-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  min-height: 350px;
  border-radius: 15px 0 0 15px;
}

.hero-content {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content .kicker {
  color: #009688;
  font-weight: 600;
  font-size: 0.6rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #025c53;
}

.hero-title a {
  color: #008080;
  text-decoration: none;
}

.hero-title a:hover {
  color: #005f5f;
}

.hero-excerpt {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-size: 0.85rem;
  color: #888;
}

/* ============================================================
   GRID BERITA + SIDEBAR
============================================================ */
.grid {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 3rem 5%;
}

section { flex: 2; }
aside { flex: 1; min-width: 280px; }

/* ============================================================
   CARD BERITA
============================================================ */
.card {
  display: flex;
  gap: 1.5rem;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.card-thumb {
  width: 25%;
  min-width: 100px;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 15px 0 0 15px;
}

.card-body {
  flex: 1;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.card-body .kicker {
  font-size: 0.6rem;
  color: #009688;
  font-weight: 600;
  text-transform: uppercase;
}

.card-body .card-title a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #073b4c;
  text-decoration: none;
}

.card-body .card-title a:hover {
  color: #008080;
}

.card-body .read-more a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #009688;
  text-decoration: none;
}

.card-body .read-more a:hover {
  color: #00796b;
}

/* ============================================================
   BANNER
============================================================ */
.banner-slider {
  position: relative;
  width: 100%;
  height: 176px; /* sesuaikan tinggi */
  overflow: hidden;
  margin-top: 90px;
  justify-content: center;
  align-items: center;
}

.banner-slider .slide {
  position: absolute;
  width: 90%;
  height: 90%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
}

.banner-slider .slide.active {
  opacity: 1;
}

.card-body .read-more {
  display: none;
}


/* ============================================================
   RESPONSIVE KHUSUS HP (≤768px)
============================================================ */
@media (max-width: 768px) {

  .banner-slider {
    height: auto; /* biar menyesuaikan isi */
    aspect-ratio: 16/9; /* atau proporsi 4/3, tergantung gambar */
    margin-top: 20px;
    margin-bottom: 0rem; /* 🌟 tambahkan jarak bawah */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .banner-slider .slide {
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  
  /* === Hero utama jadi vertikal + gambar landscape === */
  .hero {
    padding: 0 0.8rem;
    background: transparent;
    margin-bottom: 1.2rem;
  }

  .hero-main {
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  }

.hero-image {
  width: 100%;
  height: 160px; /* tinggi tetap agar tidak terlalu besar */
  background-size: cover;
  background-position: center center;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  position: relative;
}

.hero-image {
  width: 100%;
  height: 160px !important; /* paksa override */
  min-height: unset !important; /* hapus batas bawah dari desktop */
  background-size: cover;
  background-position: center;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  position: relative;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05), rgba(0,0,0,0.3));
  mix-blend-mode: multiply;
  pointer-events: none;
}

  /* Fallback jika aspect-ratio tidak didukung */
  .hero-image::before {
    content: "";
    display: block;
    padding-top: 56.25%;
  }

  .hero-content {
    padding: 0.3rem 1rem 1.2rem;
  }

  .hero-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }

  .hero-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.6rem;
  }

  .hero-meta {
    font-size: 0.8rem;
    color: #999;
  }

  /* === Cards berita jadi vertikal ringkas === */
  .cards {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .card {
    flex-direction: row;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    gap: 0.8rem;
    padding: 0.6rem;
  }

  .card-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
  }

  .card-body {
    flex: 1;
    padding: 0;
  }

  .card-title a {
    font-size: 0.95rem;
    color: #064e3b;
    font-weight: 600;
    line-height: 1.3;
  }

  .card-title a:hover {
    color: #008080;
  }

  /* === Sidebar pindah ke bawah === */
  .grid {
    flex-direction: column;
  }

  aside {
    margin-top: 1.5rem;
  }

  .widget {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
  }

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.category-list .chip {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  background-color: #e6f4f1;
  color: #006d77;
  border-radius: 25px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-list .chip:hover {
  background-color: #006d77;
  color: #fff;
  transform: translateY(-2px);
}

  .trend-rank {
    background-color: #009688;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 0.4rem;
  }
}

/* ============================================================
   WIDGET BERITA POPULER (MODERN STYLE)
============================================================ */
.trending {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trending li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #ffffff;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.trending li:hover {
  background: #e6f4f1;
  transform: translateX(4px);
}

/* Nomor ranking */
.trend-rank {
  width: 26px;
  height: 26px;
  background: #00897b; /* hijau tosca gelap */
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  line-height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Judul berita populer */
.trending li a {
  color: #006d5b; /* hijau tosca gelap */
  font-weight: 600;
  text-decoration: none; /* hilangkan garis bawah */
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.trending li a:hover {
  color: #004d40; /* lebih gelap saat hover */
}

/* Teks ketika belum ada berita */
.trending .muted {
  color: #777;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem 0;
}

/* Tampilan di HP */
@media (max-width: 768px) {
  .trending li {
    padding: 0.5rem 0.7rem;
    gap: 0.5rem;
  }

  .trend-rank {
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
  }

  .trending li a {
    font-size: 0.9rem;
  }
}

/* ============================================================
   CATEGORY LIST - DESKTOP STYLE (RAPI & MODERN)
============================================================ */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* jarak antar chip */
  margin-top: 0.8rem;
}

.category-list .chip {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background-color: #e6f4f1;
  color: #006d77;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.category-list .chip:hover {
  background-color: #006d77;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Pusatkan kategori bila widget lebar */
.widget .category-list {
  justify-content: flex-start; /* bisa ubah ke center kalau mau di tengah */
}


@media (max-width: 768px) {
  /* Kategori di card berita */
  .card-body .kicker {
    font-size: 0.6rem; /* lebih kecil di HP */
  }

  /* Kategori di berita utama / hero */
  .hero-content .kicker {
    font-size: 0.6rem; 
  }
}

/* Widget Donasi Elegan dengan Ikon */
.donasi-widget {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  position: relative;
}

.donasi-widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

/* Tambahkan ikon hati di atas judul */
.donasi-widget h4::before {
  content: "❤"; /* bisa ganti dengan ikon lain */
  display: block;
  font-size: 2rem;
  color: #0b8a83;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.donasi-widget:hover h4::before {
  transform: scale(1.2);
}

.donasi-widget h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0b8a83;
  margin-bottom: 0.8rem;
}

.donasi-widget .muted {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* Tombol Donasi */
.btn-donasi {
  background: linear-gradient(135deg, #0b8a83, #00c46b);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.8rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-donasi:hover {
  background: linear-gradient(135deg, #00c46b, #0b8a83);
  transform: scale(1.05);
}

@media (max-width: 768px) {

  .donasi-widget {
    padding: 1.5rem 1rem;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  }

  .donasi-widget h4::before {
    font-size: 1.6rem; /* lebih kecil agar proporsional */
    margin-bottom: 0.4rem;
  }

  .donasi-widget h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .donasi-widget .muted {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .btn-donasi {
    font-size: 0.95rem;
    padding: 0.55rem 1.5rem;
  }
}


/* STYLE FOR PHOTO CAROUSEL */
/* ===== STYLE FOR PHOTO CAROUSEL ===== */
.widget.photo-carousel-widget {
  margin-top: 10px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* posisi semua elemen ke kanan */
  margin-right: 120px;    /* jarak dari sisi kanan layar */
}

/* supaya judul “Galeri Foto” pas di tengah kotak foto */
.widget.photo-carousel-widget h4 {
  width: 250px;           /* samakan dengan lebar foto */
  text-align: center;     /* teks di tengah */
  margin-bottom: 10px;    /* jarak sedikit dari foto */
}

.photo-carousel {
  position: relative;
  width: 250px;
  height: 350px;
  overflow: hidden;
  max-width: 100%;
}

.carousel-container {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

@media (max-width: 768px) {
  .widget.photo-carousel-widget {
    align-items: center;       /* ubah dari kanan ke tengah */
    margin-right: 0;           /* hilangkan jarak kanan */
    margin-top: 5px !important;     
    margin-bottom: 30px
  }

  .photo-carousel {
    width: 60%;
    height: auto;
    margin: 0 auto;            /* pastikan benar-benar di tengah */
  }

  .carousel-btn {
    font-size: 18px;
  }
}
