@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");
h1 {
  font-family: 'Anton', sans-serif;
  font-weight: normal;
}
/* body, html {
  height: 100%;
  margin: 0;
  background-color: white;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: 150px;
} */

.wave-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto; /* ubah dari fixed height ke auto */
  z-index: 0;
  pointer-events: none; /* supaya tidak mengganggu klik */
}

.wave-svg svg {
  display: block;
  width: 100%;
  height: auto;
}

.content-wrapper {
  position: relative;
  z-index: 10;
  padding-top: 3rem;
  padding-bottom: 3rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  transition: transform 1s ease;
}



/* Parallax Effect for Batik background */
.batik-side {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50rem;
  background-image: url('/asset/img/gggg.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
  /* opacity: 0.4; */
  z-index: 0;
  transition: transform 2s ease-in-out;
}

/* Parallax animation on scroll */
.parallax {
  will-change: transform;
}

/* Logo styles */
.logo-frame {
  width: 140px;
  height: 140px;
  /* background-color:rgb(32, 32, 32); */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  position: relative;
  z-index: 1;
}

.logo-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.logo-caption {
  font-size: 0.9rem;
  text-align: center;
  max-width: 200px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

#content-bagian-dari {
  background-color: #1f2023;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
  .batik-side {
    background-image: none;
  }
}

/* Animation for the "Tentang Kami" section */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-wrapper h1, .content-wrapper p {
  animation: slideIn 1s ease-out;
}

/* Animate the Batik background during scroll */
.batik-side.scrolled {
  transform: translateY(-100px);
}

/* SECTION ARTIKEL DAN BERITA */
/* Gunakan background dari gambar yang kamu unggah */
/* body:not(.artikel-berita) section.artikel-berita {
  background:  linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 31, 77, 0.9)),
    url('/asset/img/tglrejo.jpg') center center / cover no-repeat;
  padding: 80px 0;
} */

/* Versi dengan background (untuk halaman utama) */
section.artikel-berita.with-bg {
  background: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 31, 77, 0.9)),
    url('/asset/img/tglrejo.jpg') center center / cover no-repeat;
  padding: 80px 0;
  color: white;
}

/* Versi tanpa background (untuk halaman detail) */
section.artikel-berita.without-bg {
  background: #f8f9fa;
  padding: 60px 0;
}
.section-title.without-bg {
  font-weight: 800;
  font-size: 2.5rem;
  color:  rgba(0, 31, 77, 0.9);
  text-align: center;
  margin-bottom: 50px;
}

.section-title.with-bg {
  font-weight: 800;
  font-size: 2.5rem;
  color: #fff;
  text-align: center;
  margin-bottom: 50px;
}

.berita-card {
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.berita-thumbnail {
  height: 250px;
  background-color: #f8f8f8;
}

.berita-footer {
  background-color: #001f4d;
  color: white;
  text-align: center;
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.berita-footer h5 {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 10px;
}

.berita-footer p {
  font-size: 0.9rem;
  margin: 0;
}

/* Add animation to content-wrapper to move upwards */
.animate-content-wrapper {
  transform: translateY(-50px);
}
.berita-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.berita-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #eee;
  background-size: cover;
  background-position: center;
}

.berita-footer {
  padding: 1rem;
  min-height: 120px; /* Atur agar tinggi konsisten meski teks kosong */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.berita-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-decoration: none ;
}


.berita-date {
  font-size: 0.875rem;
  color: #777;
}

.berita-card a {
  text-decoration: none;
  color: inherit; /* Agar tetap pakai warna teks dari parent */
}

.berita-card a:hover {
  text-decoration: underline;
}

/* Control positioning */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 100% 100%;
  filter: invert(1);
}

.carousel-control-prev {
  left: -10%;
}

.carousel-control-next {
  right: -10%;
}

/* SECTION ARTIKEL / BERITA RESPONSIVE */

@media (max-width: 767.98px) {
  .berita-thumbnail {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .wave-svg {
    height: 80px; /* lebih kecil di HP */
  }
}

@media (max-width: 767.98px) {
  #artikelCarousel {
    display: block !important;
  }

  #artikelCarousel .carousel-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  #artikelCarousel .carousel-item {
    display: contents !important; /* tampilkan semua isi */
    position: static !important;
    opacity: 1 !important;
    transition: none !important;
    transform: none !important;
  }

  #artikelCarousel .carousel-item > .row {
    width: 100%;
    margin: 0;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
}
/* Matikan efek carousel di mobile (≤768px) */
@media (max-width: 768px) {
  #artikelCarousel .carousel-inner {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  #artikelCarousel .carousel-item {
    display: contents !important;
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Sembunyikan tombol panah di mobile */
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
}

