@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
:root {
  --primary: #000;
  --secondary: #ea8512; /* oranye */
  --bg-light: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  font-weight: 500;
      background: #fff;
      color: #111;
      line-height: 1.6;
  margin: 0;
  background: var(--bg-light);
  padding-top: 70px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 28px; /* bigger */
  background: transparent;
  background: rgba(0, 0, 0, 0.9);          /* transparent at top */
  transition: background 0.3s ease;
}
.navbar.scrolled {
  background: #000;                 /* solid black after scroll */
}
.navbar .logo img {
  width: 32px;
  height: 36px;
}
.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
  font-size: 15px;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.navbar a:hover {
  color: var(--secondary);
}

/* ===== HERO 16:9 ===== */
.hero-carousel-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* maintains 16:9 */
  overflow: hidden;
}
.hero-carousel {
  display: flex;
  height: 100%;
  transition: transform 0.7s ease;
}
.hero-slide {
  flex: 0 0 100%;
  height: 100%;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== SECTION ===== */
section {
  padding: 28px 16px;
}
section h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
}

/* ===== WARTA GEREJA ===== */
section h1{
  margin: 0 0 14px;
  font-size: 40px;
  font-weight: 700;
}

.warta-wrapper {
  position: relative;
  overflow: hidden;
}
.warta-container {
  display: flex;
  gap: 24px;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
}
.warta-card {
  flex: 0 0 300px; /* lebih besar, square */
  scroll-snap-align: start;
  /* border: 2px solid var(--primary); */
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.80);
}
.warta-card img {
  width: 100%;
  aspect-ratio: 1 / 1; /* square IG */
  object-fit: cover;
  display: block;
}
.warta-card .title {
  background: var(--secondary);
  color: #fff;
  font-size: 25px;
  text-align: center;
  padding: 8px 0;
}
/* nav buttons overlay, centred vertically */
.warta-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  background: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s ease, transform 0.2s ease;
  pointer-events: all;
}
.warta-btn.prev {
  left: 4px;
}
.warta-btn.next {
  right: 4px;
}
.warta-btn:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.warta-btn img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.warta-btn:hover img {
  filter: brightness(0) invert(1);
}

/* optional: hover hanya ketika benar-benar dekat */
.warta-btn {
  transition-delay: 0.05s;
}

/* GAYA UNTUK POP-UP MODAL */
.modal {
  display: none; /* Sembunyikan secara default */
  position: fixed;
  z-index: 200; /* Pastikan di atas semua elemen lain */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: #bbb;
  text-decoration: none;
}

/* ===== TEMA GEREJA ===== */
/* Container untuk Kartu */
.tema-card-container {
    width: 100%;
    max-width: 800px; /* Sesuaikan lebar kartu */
    height: 500px; /* Atur tinggi kartu */
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
    margin: 0 auto;
}

/* Class untuk memutar kartu */
.tema-card-container.flipped {
    transform: rotateY(180deg);
}

/* Sisi Depan dan Belakang Kartu */
.tema-card-front,
.tema-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.50);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Sisi Belakang Kartu */
.tema-card-back {
    transform: rotateY(180deg);
}

/* Gaya untuk Konten Sisi Depan */
.tema-card-front .title-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.tema-card-front h2 {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
}

.tema-card-front .detail-link {
    font-size: 16px;
    color: #ea8512;
    cursor: pointer;
}

.tema-card-front img,
.tema-card-back img {
    width: 250px;
    height: 250px;
}

.tema-card-front .year {
    font-size: 24px;
    font-weight: 700;
    margin-top: 20px;
}

/* Gaya untuk Konten Sisi Belakang */
.tema-card-back .back-link {
    font-size: 16px;
    color: #ea8512;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
}

.tema-card-back p {
    font-size: 20px;
    line-height: 1.6;
    margin-top: 20px;
}

/* RENUNGAN */
.renungan-preview {
  padding: 60px 20px;
  background-color: #ffff;
  display: flex;
  justify-content: center;
}

.renungan-preview-container {
  display: flex;
  gap: 40px;
  align-items: center;
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  width: 100%;
}

.renungan-image {
  width: 300px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.renungan-text {
  flex: 1;
  text-align: left;
}

.renungan-text h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.renungan-text p {
  font-size: 18px;
  margin-bottom: 20px;
}

.btn-renungan {
  display: inline-block;
  background-color: #ea8512;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-renungan:hover {
  background-color: #cc6c0f;
}

.daftar-renungan {
  padding: 60px 20px;
  text-align: center;
}

.daftar-renungan h1 {
  font-size: 36px;
  margin-bottom: 40px;
}

.renungan-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.renungan-item {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 320px;
  text-align: left;
}

.renungan-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.renungan-info {
  padding: 20px;
}

.renungan-info h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.renungan-info p {
  margin: 0 0 16px;
  color: #555;
}

.back-container {
  text-align: center;
  margin: 40px 0;
}

.btn-back {
  display: inline-block;
  padding: 12px 24px;
  background-color: #000;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-back:hover {
  background-color: #333;
}



/* ===== VISI & MISI =====
.visi-misi {
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 25px;
}
.visi-misi h3 {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 700;
}
.visi-misi p {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
} */

/* JADWAL IBADAH */
.jadwal-ibadah {
  padding: 40px 16px;
  background: #ffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.judul-section {
  background-color: #ea8512;
  color: #fff;
  padding: 10px 40px; /* Kurangi padding horizontal */
  font-size: 50px;
  font-weight: 700;
  text-align: center;
  border-radius: 12px;
  margin-bottom: -12px;
  letter-spacing: -0.7px;
  width: 100%; /* Tambahkan width 100% */
  max-width: 720px; /* Match dengan max-width tabel */
}

.tabel-jadwal {
  background-color: #000;
  color: #fff;
  width: 100%;
  max-width: 720px;
  padding: 24px 20px;
  border-radius: 0px;
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 20px;
  margin: 0 auto;
}

.kolom-judul {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.6;
  text-transform: uppercase;
  gap: 32px;
  padding-top: 6px;
}

.kolom-isi {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Grup slot per kategori dibungkus */
.slot-group {
  display: flex;
  flex-direction: column;
  border-left: 2px solid #ea8512;
  padding-left: 12px;
  margin-bottom: 24px;
  gap: 12px;
}

.slot {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  justify-content: flex-start;
}

.slot .label {
  background-color: #ea8512;
  color: #fff;
  padding: 3px 10px;
  font-weight: 600;
  border-radius: 12px;
  text-align: center;
  white-space: nowrap;
  min-width: 110px;
}

.slot .hari {
  flex: 1;
  text-align: left;
  font-weight: 400;
  white-space: nowrap;
}

.slot .jam {
  min-width: 72px;
  text-align: right;
  font-weight: 400;
  white-space: nowrap;
}

.kolom-judul {
  display: flex;
  flex-direction: column;
  justify-content: center; /* dari flex-start jadi center */
  gap: 32px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  padding-top: 4px; /* bisa dihapus kalau pakai center */
}

/* SOROTAN */
.sorotan-section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  padding: 60px 40px;
}

.sorotan-title {
  font-size: 32px;
  font-weight: 700;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
  padding: 10px 0;
  writing-mode: vertical-lr;
  transform: rotate(180deg); /* supaya vertikal dari bawah ke atas */
  display: flex;
  align-items: center; /* Posisikan di tengah carousel */
  height: 215px; /* Berikan tinggi yang sama dengan carousel item */
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 60px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.carousel-item {
  min-width: 400px;
  position: relative;
  margin-right: 12px;
  flex-shrink: 0; /* Tambahkan ini agar item tidak menyusut */
}

.carousel-item img {
  width: 100%;
  height: 400px; /* Berikan tinggi tetap */
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.carousel-item .label {
  position: absolute;
  bottom: 10px;
  left: 0;
  background-color: #ea8512;
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 4px 12px;
}

/* Perbaikan tombol carousel - pastikan z-index dan pointer-events benar */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: white;
  border: 1px solid #ccc;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.carousel-btn.prev {
  left: 10px; /* Geser sedikit ke kanan */
}

.carousel-btn.next {
  right: 10px; /* Geser sedikit ke kiri */
}

.carousel-btn:hover {
  background: BLACK;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.lokasi-gereja {
  background-color: #ffff;
  padding: 40px 24px;
  text-align: center;
}

.lokasi-gereja h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.map-container iframe {
  width: 100%;
  max-width: 1000px;
  height: 400px;
  border: none;
  border-radius: 10px;
}



/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 16px;
  font-size: 13px;
  display: grid;
  gap: 24px;
}
/* footer .logo {
  width: 200px; /* atau lebih sesuai keinginan } */
footer .cols {
  display: inline-flexbox;
  flex-direction: column;
  gap: 10px;
}
footer a:hover {
  color: var(--secondary);
}
footer .social {
  display: flex;
  gap: 18px;
  font-size: 24px;
}

footer.footer-grid {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  background: #000;
  color: #fff;
  padding: 24px 24px;
  flex-wrap: wrap;
  gap: 36px;
  font-size: 20px;
  column-gap: 100px;
}

.footer-left {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.footer-logo {
  width: 300px;
  height: 300px;
}

.footer-center p {
  margin: 0 0 12px;
  line-height: 1.4;
}

.footer-right p {
  margin: 0 0 8px;
  font-weight: 600;
}

.footer-social {
  display: flex;
  gap: 16px;
  font-size: 20px;
}

.footer-social a {
  color: #fff;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--secondary); /* pakai warna oranye kalau ada */
}

.footer-social img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.footer-social a:hover img {
  filter: brightness(50) saturate(100%) sepia(1) hue-rotate(-30deg) saturate(600%) brightness(100);
  transform: scale(1.1);
}

/* di beranda.css, tambahkan style untuk tombol hamburger */
/* di beranda.css, tambahkan style untuk tombol hamburger */
/* Tombol hamburger */
.menu-toggle {
  display: none; /* Default: sembunyikan */
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  z-index: 102;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Tampilkan hanya di mobile */
  }

  /* Navbar mobile */
  .navbar {
    padding: 14px 28px;
    background: #000; /* Solid black saat mobile */
  }

  /* Menu mobile fullscreen */
  .navbar ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
  }

  .navbar ul.show {
    transform: translateY(0);
  }
}

/* ===============================
   GLOBAL RESPONSIVE FIX
   =============================== */
@media (max-width: 768px) {
  /* NAVBAR */
  .navbar {
    padding: 10px 16px;
    gap: 12px;
  }
  .navbar .logo img {
    width: 28px;
    height: 32px;
  }

  /* HERO */
  .hero-carousel-wrapper {
    aspect-ratio: auto; /* biar tingginya menyesuaikan layar */
    height: 220px;
  }
  .hero-slide img {
    object-fit: cover;
  }

  /* WARTA */
  .warta-card {
    flex: 0 0 80%; /* biar isi layar */
  }
  .warta-card .title {
    font-size: 18px;
  }

  /* TEMA */
  .tema-card-container {
    max-width: 95%;
    height: auto;
  }
  .tema-card-front img,
  .tema-card-back img {
    width: 150px;
    height: 150px;
  }

  /* RENUNGAN */
  .renungan-preview-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .renungan-image {
    width: 100%;
    max-width: 300px;
  }

  /* JADWAL IBADAH */
  .tabel-jadwal {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .kolom-judul {
    font-size: 18px;
    gap: 16px;
  }
  .slot {
    font-size: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  /* SOROTAN */
  .carousel-item {
    min-width: 80%;
    height: auto;
  }
  .carousel-item img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  /* Tema Card */
  .tema-card-container {
    max-width: 90%;
    height: 360px;   /* jangan auto, kasih tinggi tetap */
  }
  .tema-card-front,
  .tema-card-back {
    padding: 20px;
  }
  .tema-card-front h2 {
    font-size: 28px;
  }
  .tema-card-front img,
  .tema-card-back img {
    width: 150px;
    height: 150px;
  }
  .tema-card-front .year {
    font-size: 18px;
    margin-top: 12px;
  }
  .tema-card-back p {
    font-size: 16px;
    line-height: 1.4;
  }
}
