* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0f3d2e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    z-index: 1000;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
}

.caption {
    background: rgba(0,0,0,0.5);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
}

.prev { left: 20px; }
.next { right: 20px; }

/* INFAQ */
.infaq-banner {
    margin-top: 30px;
    padding: 10px;
    margin-left: 80px;
    background: #ffffff;
    display: flex;
    justify-content: center;
}

.infaq-card {
    animation: float 4s ease-in-out infinite;
}

.infaq-card img {
    max-width: 900px;
    width: 90%;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* SECTIONS */
.about, .news, .maps {
    padding: 80px 10%;
    text-align: center;
    margin-top: 20px;
}


/* Container Utama Berita */
.news-container {
    display: flex;
    overflow-x: auto; /* Mengaktifkan geser kanan-kiri */
    gap: 15px;
    padding: 20px 15px;
    scroll-snap-type: x mandatory; /* Biar kartu 'nempel' pas digeser */
    -webkit-overflow-scrolling: touch; /* Biar scroll lancar di iPhone */
}

/* Sembunyikan scrollbar yang mengganggu di bawah kartu */
.news-container::-webkit-scrollbar {
    display: none;
}

/* Gaya Kartu Berita */
.news-card {
    flex: 0 0 260px; /* Kunci lebar kartu agar tidak mengecil/gepeng */
    scroll-snap-align: start; /* Titik berhenti saat digeser */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Pastikan gambar di dalam kartu pas */
.news-card img {
    width: 100%;
    height: 10px;
    object-fit: cover;
}

/* Merapikan teks di bawah gambar agar tidak berhimpitan */
.news-card h3, .news-card p {
    padding: 0 12px;
    margin: 10px 0;
}

/* FOOTER */
.footer {
    background: #1e201f;
    color: white;
    text-align: center;
    padding: 30px;
}
p{
    font-size: 20px;
    margin-top: 10px;
    text-align: justify;
}
h2{
    font-size: 20px ;
}
.marquee-info {
    background-color: #198754;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px; /* tinggi navbar */
}
.social-media {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
}

.social-media h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #145a32;
}

.social-media p {
    color: #555;
    margin-bottom: 40px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social {
    width: 160px;
    height: 120px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.social i {
    font-size: 36px;
    margin-bottom: 10px;
}

.social span {
    font-weight: 600;
}

.social:hover {
    transform: translateY(-6px);
}

/* WARNA PLATFORM */
.instagram i { color: #E1306C; }
.youtube i   { color: #FF0000; }
.tiktok i    { color: #000; }
.whatsapp i  { color: #25D366; }

.renovation {
    padding: 60px 20px;
    background: #ffffff;
    text-align: center;
}

.renovation h2 {
    font-size: 28px;
    color: #145a32;
    margin-bottom: 10px;
}

.renovation-desc {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
}

.renovation-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

.reno-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.reno-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.reno-card p {
    padding: 15px;
    font-size: 14px;
    color: #333;
}

.reno-card:hover {
    transform: translateY(-5px);
}
/* DONASI */
.donasi {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.donasi h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #0f3d2e;
}

.donasi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.donasi-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.donasi-card:hover {
    transform: translateY(-6px);
}

/* FOTO 1:1 (KOTAK) */
.donasi-card img {
    width: 100%;
    aspect-ratio: 1 / 1;   /* ⬅ KUNCI FOTO 1:1 */
    object-fit: cover;
}

.donasi-card h3 {
    margin: 15px 10px 5px;
    color: #145a32;
}

.donasi-card p {
    font-size: 14px;
    padding: 0 15px 20px;
    color: #555;
}
/* ABOUT */
.about {
    padding: 70px 20px;
    background: #ffffff;
}

.about-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: center;
}

/* FOTO 1:1 */
.about-image img {
    width: 100%;
    aspect-ratio: 1 / 1;   /* ⬅ FOTO KOTAK */
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.about-text h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #0f3d2e;
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

/* RESPONSIVE HP */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-text {
        text-align: center;
    }
}
/* RUNNING TEXT DEFAULT */
.marquee-info {
    display: block;
    background: #1e8f5a;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    z-index: 999;
}

/* DESKTOP */
@media (min-width: 769px) {
    .marquee-info {
        margin-top: 40px; /* tinggi navbar desktop */
    }
}

/* HP */
@media (max-width: 768px) {
    .marquee-info {
        margin-top: 10px; /* WAJIB lebih besar */
        font-size: 13px;
        padding: 10px 0;
    }
}
/* WRAPPER */
.wrapper {
  padding: 60px 20px;
}

.wrapper.first {
  background: #ffffff;
}

.wrapper.style2 {
  background: #f1f1f1;
}

.wrapper.style3 {
  background: #ffffff;
}

.wrapper.style4 {
  background: #0f5132;
  color: #fff;
}
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f5f7f8;
  color: #333;
  line-height: 1.6;
}

/* NAVBAR */
#nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f5132;
}

#nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 12px 0;
}

#nav ul li {
  margin: 0 15px;
}

#nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

#nav ul li a:hover {
  color: #ffc107;
}

/* RUNNING TEXT */
.marquee-info {
  background: #198754;
  color: #fff;
  padding: 10px 0;
  font-weight: 600;
}

/* WRAPPER */
.wrapper {
  padding: 60px 20px;
}

.wrapper.first {
  background: #ffffff;
}

.wrapper.style2 {
  background: #f1f1f1;
}

.wrapper.style3 {
  background: #ffffff;
}

.wrapper.style4 {
  background: #0f5132;
  color: #fff;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
}

/* GRID */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* IMAGE */
.image.fit img {
  width: 100%;
  border-radius: 12px;
}

/* HEADINGS */
h1, h2, h3 {
  margin-bottom: 15px;
  color: #0f5132;
}

.wrapper.style4 h2,
.wrapper.style4 h3 {
  color: #fff;
}

/* BUTTON */
.button {
  display: inline-block;
  background: #198754;
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
}

.button:hover {
  background: #157347;
}

/* BOX */
.box {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.box.style1 .icon {
  font-size: 40px;
  margin-bottom: 15px;
  color: #198754;
}

/* DONASI CARD */
.box.style2 {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.box.style2 img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.box.style2 h3 {
  margin-top: 15px;
}

.box.style2 p {
  padding: 0 15px 20px;
}

/* CONTACT */
.wrapper.style4 a {
  color: #ffc107;
  text-decoration: none;
  font-weight: bold;
}

.wrapper.style4 a:hover {
  text-decoration: underline;
}

.wrapper.style4 footer {
  margin-top: 30px;
  font-size: 14px;
  opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }

  #nav ul {
    flex-wrap: wrap;
  }

  #nav ul li {
    margin: 8px;
  }

  .box.style2 img {
    height: 180px;
  }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0f3d2e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    z-index: 1000;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
}

/* SLIDER */
.slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top:0;
}

.slides {
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.caption {
    background: rgba(0,0,0,0.5);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
}

.prev { left: 20px; }
.next { right: 20px; }

/* INFAQ */
.infaq-banner {
    margin-top: 30px;
    padding: 10px;
    margin-left: 80px;
    background: #ffffff;
    display: flex;
    justify-content: center;
}

.infaq-card {
    animation: float 4s ease-in-out infinite;
}

.infaq-card img {
    max-width: 900px;
    width: 90%;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* SECTIONS */
.about, .news, .maps {
    padding: 80px 10%;
    text-align: center;
    margin-top: 20px;
}

.news-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.card {
    width: 300px;
}

.card img {
    width: 100%;
    border-radius: 10px;
}

/* FOOTER */
.footer {
    background: #282b2a;
    color: white;
    text-align: center;
    padding: 30px;
}
p{
    font-size: 20px;
    margin-top: 10px;
    text-align: justify;
}
h2{
    font-size: 20px ;
}
.marquee-info {
    background-color: #198754;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px; /* tinggi navbar */
}
.social-media {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
}

.social-media h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #145a32;
}

.social-media p {
    color: #555;
    margin-bottom: 40px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social {
    width: 160px;
    height: 120px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.social i {
    font-size: 36px;
    margin-bottom: 10px;
}

.social span {
    font-weight: 600;
}

.social:hover {
    transform: translateY(-6px);
}

/* WARNA PLATFORM */
.instagram i { color: #E1306C; }
.youtube i   { color: #FF0000; }
.tiktok i    { color: #000; }
.whatsapp i  { color: #25D366; }

.renovation {
    padding: 60px 20px;
    background: #ffffff;
    text-align: center;
}

.renovation h2 {
    font-size: 28px;
    color: #145a32;
    margin-bottom: 10px;
}

.renovation-desc {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
}

.renovation-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

.reno-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.reno-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.reno-card p {
    padding: 15px;
    font-size: 14px;
    color: #333;
}

.reno-card:hover {
    transform: translateY(-5px);
}
/* DONASI */
.donasi {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.donasi h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #0f3d2e;
}

.donasi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.donasi-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.donasi-card:hover {
    transform: translateY(-6px);
}

/* FOTO 1:1 (KOTAK) */
.donasi-card img {
    width: 100%;
    aspect-ratio: 1 / 1;   /* ⬅ KUNCI FOTO 1:1 */
    object-fit: cover;
}

.donasi-card h3 {
    margin: 15px 10px 5px;
    color: #145a32;
}

.donasi-card p {
    font-size: 14px;
    padding: 0 15px 20px;
    color: #555;
}
/* ABOUT */
.about {
    padding: 70px 20px;
    background: #ffffff;
}

.about-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: center;
}

/* FOTO 1:1 */
.about-image img {
    width: 100%;
    aspect-ratio: 1 / 1;   /* ⬅ FOTO KOTAK */
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.about-text h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #0f3d2e;
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

/* RESPONSIVE HP */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-text {
        text-align: center;
    }
}
/* RUNNING TEXT DEFAULT */
.marquee-info {
    display: block;
    background: #1e8f5a;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    z-index: 999;
}

/* DESKTOP */
@media (min-width: 769px) {
    .marquee-info {
        margin-top: 10px; /* tinggi navbar desktop */
    }
}

/* HP */
@media (max-width: 768px) {
    .marquee-info {
        margin-top: 120px; /* WAJIB lebih besar */
        font-size: 13px;
        padding: 10px 0;
    }
}
/* BUTTON LINK OPERASIONAL */
a.operasional {
  display: inline-block;
  background: #198754;          /* hijau masjid */
  color: #ffffff !important;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4);
}

a.operasional:hover {
  background: #157347;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(25, 135, 84, 0.55);
}
/* TOMBOL KONFIRMASI WHATSAPP */
a.konfirmasi {
  display: block;
  width: fit-content;
  margin: 40px auto;            /* CENTER */
  background: #198754;          /* hijau masjid */
  color: #ffffff !important;
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(25, 135, 84, 0.45);
}

a.konfirmasi:hover {
  background: #157347;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(25, 135, 84, 0.6);
}
/* JADWAL SHOLAT */
.prayer-times {
    padding: 60px 20px;
    text-align: center;
    background: #f5f5f5;
}

.prayer-times h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.prayer-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.prayer-card {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 120px;
}

.prayer-card h3 {
    margin-bottom: 10px;
}

.prayer-card p {
    font-size: 20px;
    font-weight: bold;
    color: #0a7c3b;
}
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }
}
/* =========================
   NAVBAR MOBILE FIX
========================= */
@media (max-width: 768px) {

  .navbar {
    flex-direction: row;          /* tetap sejajar */
    padding: 12px 5%;
  }

  /* LOGO */
  .logo img {
    width: 35px;
  }

  /* MENU */
  .navbar ul {
    position: absolute;
    top: 65px;                   /* tinggi navbar */
    right: 0;
    background: #0f3d2e;
    width: 200px;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    display: none;               /* sembunyi dulu */
  }

  .navbar ul.active {
    display: flex;               /* muncul pas diklik */
  }

}
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}
/* LOGO TEXT FIX */
.logo h3 {
  color: #ffffff;     /* Biar kontras */
  font-size: 20px;
  font-weight: bold;
}

/* MOBILE */
@media (max-width: 768px) {

  .logo h3 {
    font-size: 16px;   /* Kecilkan di HP */
    line-height: 1.3;  /* Jarak baris */
  }

}
/* ===== SLIDER FIX ===== */

.slider {
  width: 100%;
  max-height: 400px;      /* Batas tinggi desktop */
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Gambar */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* MOBILE */
@media (max-width: 768px) {

  .slider {
    aspect-ratio: 16 / 9;
    max-height: 220px;   /* Dipendekin di HP */
  }

}
.navbar {
  display: flex;
  align-items: center;
}

/* --- PERBAIKAN NAVBAR & BURGER --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0f3d2e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Memastikan semua item di navbar (logo & burger) rata tengah vertikal */
    padding: 10px 8%; /* Padding atas bawah dikecilkan sedikit agar lebih proporsional */
    z-index: 1000;
    height: 70px; /* Tentukan tinggi pasti agar mudah menghitung margin element di bawahnya */
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    line-height: 1; /* Menghilangkan extra space di atas/bawah icon burger */
    padding: 5px;
}

/* --- PERBAIKAN BANNER INFAQ (HILANGKAN LATAR PUTIH) --- */
.infaq-banner {
    margin-top: 30px;
    padding: 10px;
    margin-left: 0; /* Ubah dari 80px ke 0 agar rata tengah di layar */
    background: transparent; /* Ubah dari #ffffff ke transparent */
    display: flex;
    justify-content: center;
}

.infaq-card {
    background: transparent; /* Pastikan pembungkusnya transparan */
    animation: float 4s ease-in-out infinite;
    display: flex;
    justify-content: center;
}

.infaq-card img {
    max-width: 900px;
    width: 100%; /* Gunakan 100% untuk responsivitas */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* Shadow halus saja */
}

/* --- PERBAIKAN RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 5%;
        height: 60px; /* Lebih pendek sedikit di HP */
    }

    .menu-toggle {
        display: block; /* Munculkan burger di HP */
        margin-left: auto; /* Dorong ke kanan jika ada logo */
    }

    .logo h3 {
        font-size: 14px; /* Kecilkan teks judul agar tidak tabrakan dengan burger */
        max-width: 200px;
    }
}
/* Container untuk Kartu Donasi agar Sejajar (Grid) */
.donasi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Memastikan kartu donasi memiliki tinggi yang seragam */
.donasi-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.donasi-card:hover {
    transform: translateY(-5px);
}

.donasi-card img {
    width: 100%;
    height: 250px; /* Samakan tinggi semua gambar */
    object-fit: cover; /* Gambar akan terpotong rapi, tidak gepeng */
}

/* Merapikan teks di dalam kartu */
.donasi-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #145a32;
}

.donasi-card p {
    font-size: 14px;
    color: #666;
    text-align: left; /* Teks deskripsi card rata kiri biar rapi */
}

/* Navbar Fix */
.navbar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (max-width: 768px) {
    .donasi-container {
        grid-template-columns: 1fr; /* Memaksa kartu jadi satu kolom di HP */
        padding: 0 10px;
    }

    .donasi-card img {
        height: 200px; /* Sedikit lebih pendek di HP supaya tidak memenuhi layar */
    }
}
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Mencegah layar geser ke kanan */
    scroll-behavior: smooth;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0f3d2e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 70px;
    z-index: 10000;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 40px; border-radius: 50%; }
.logo h3 { color: white; font-size: 16px; margin: 0; }

.navbar ul { display: flex; list-style: none; gap: 20px; }
.navbar a { color: white; text-decoration: none; font-size: 14px; }

/* RUNNING TEXT */
.marquee-info {
    background: #198754;
    color: white;
    padding: 10px 0;
    margin-top: 70px; /* Di bawah navbar */
}

/* SLIDER */
.slider {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
}
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: 0.8s;
}
.slide.active { opacity: 1; }
.caption {
    background: rgba(0,0,0,0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

/* BANNER INFAQ - FIX RATA TENGAH */
.infaq-banner {
    padding: 30px 10px;
    display: flex;
    justify-content: center;
    background: white;
}
.infaq-card { max-width: 900px; width: 100%; text-align: center; }
.infaq-card img { width: 100%; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* NEWS CONTAINER - FIX SWIPE SAMPING */
.news { padding: 50px 0; text-align: center; }
.news h2 { margin-bottom: 20px; color: #0f3d2e; }

.news-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.news-container::-webkit-scrollbar { display: none; }

.news-card {
    flex: 0 0 280px; /* Kunci lebar kartu */
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    scroll-snap-align: start;
}
.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-card h3 { font-size: 16px; padding: 10px 15px 5px; color: #0f3d2e; }
.news-card p { font-size: 14px; padding: 0 15px 15px; color: #666; text-align: left; }

/* RESPONSIVE HP */
@media (max-width: 768px) {
    .navbar ul {
        display: none; /* Sembunyikan menu desktop */
    }
    .menu-toggle { display: block; color: white; font-size: 25px; cursor: pointer; }
    .slider { height: 220px; }
    .logo h3 { font-size: 13px; }
}
/* --- FIX GOOGLE MAPS ADIL & ESTETIK --- */
.map-container {
    width: 100%;
    max-width: 900px; /* Biar gak terlalu lebar di monitor gede */
    margin: 0 auto; /* Tengahin */
    aspect-ratio: 16 / 9; /* Rasio layar lebar */
    border: 5px solid #0f3d2e; /* BORDER HIJAU PEKAT */
    border-radius: 20px; /* RADIUS POJOKAN */
    overflow: hidden; /* WAJIB: Biar map-nya ikut melengkung */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Biar di HP rasionya agak kotak sedikit biar lega */
@media (max-width: 768px) {
    .map-container {
        aspect-ratio: 4 / 3; /* Lebih tinggi dikit buat layar HP */
        border-width: 3px; /* Tipisin dikit border di HP */
        border-radius: 15px;
    }
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}