/* === GLOBAL === */
body.fade-in {
  opacity: 1;
}

.section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.section.show {
  opacity: 1;
  transform: translateY(0);
}

hr {
  border: none;
  height: 2px;
  background-color: rgb(0, 0, 0);
  margin: 20px 0;
}

.card {
  margin-bottom: 20px;
}

.card h5 {
  font-size: 1.1rem;
}

/* === ANIMATIONS === */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}
.delay-3 {
  transition-delay: 0.6s;
}
.delay-4 {
  transition-delay: 0.8s;
}
.delay-5 {
  transition-delay: 1s;
}

/* === BERANDA SECTION === */
.beranda {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url("/assets/img/backgroundss.jpg") no-repeat center/cover;
  background-attachment: fixed;
  color: white;
  padding: 10px;
  z-index: 0;
}

.container-ber h1,
.btn-wrapper {
  text-align: left;
  padding-left: 5%;
  padding-right: 10%;
}

.container-ber p {
  font-size: 3vw;
}

.btn-wrapper {
  margin-top: 20px;
}

.container-ber a {
  color: rgb(21, 255, 0);
  border-radius: 25px;
}

.custom-outline-btn {
  border: 2px solid rgb(21, 255, 0);
  color: rgb(21, 255, 0);
  background-color: transparent;
  border-radius: 25px;
  transition: 0.3s ease;
}

.custom-outline-btn:hover {
  background-color: rgba(0, 0, 0, 0.389);
  color: rgb(106, 255, 0);
}

/* === TENTANG SECTION === */
.tentang {
  padding: 40px 10px;
}

.content-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.img-cont {
  flex: 1 1 40%;
  max-width: 200px;
}

.img-cont img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.text-container {
  flex: 1 1 55%;
  padding-left: 80px;
  padding-right: 50px;
}

/* === BERITA GRID === */
.berita-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.berita-card {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 15px;
  max-width: 300px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.berita-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
}

.berita-text {
  width: 100%;
}

.berita-text h5 {
  font-size: 18px;
  color: #222;
  margin-bottom: 10px;
}

.berita-text p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.berita-text button {
  align-self: center;
}

/* === DAMPAK SECTION === */
.bg-wrapper {
  position: relative;
  overflow: hidden;
}

.bg-dampak {
  position: absolute;
  top: 250px;
  left: 0;
  width: 100%;
  height: calc(100% - 100px); 
  background-color: rgba(21, 41, 6, 0.9);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  z-index: -1;
  box-shadow: 0px -8px 15px rgba(0, 0, 0, 0.375);
}

.donasi{
  margin-top: 100px ;
  margin-bottom: 100px;
}

.dampak h2 {
  text-align: center;
  padding-top: 50px;
}

/* === KOTAK KONTAK SECTION === */
.kontak {
  color: #000;
  padding: 30px 50px;
  position: relative;
  z-index: 0;
}

.kontak .container {
  position: relative;
  z-index: 1;
  padding-top: 50px;
}

.kontak h2 {
  color: black;
}

.kontak a {
  color: rgb(87, 87, 87);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.kontak a i {
  margin-right: 15px;
  font-size: 1.5rem;
}

.kontak a:hover {
  color: #0e2e09;
  cursor: pointer;
}

.box {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  z-index: 0;
  box-shadow: 0px -8px 15px rgba(0, 0, 0, 0.375);
  color: black;
}

.credit {
  padding-top: 25px;
  font-size: 1rem;
}

/* === CAROUSEL === */
.carousel-container {
  display: flex;
  overflow: hidden;
  width: 100%;
  position: relative;
  color: white;
  margin-top: 40px;
  padding: 20px 0;
  justify-content: center;
  box-sizing: border-box;
}

.carousel {
  display: flex;
  transition: transform 0.9s ease-in-out;
  width: 100%;
}

.car {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.car img {
  width: 40%;
  height: auto;
  margin-bottom: 1rem;
}

.car p {
  font-size: 1rem;
}

/* Arrows */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background-color: white;
  border: none;
  font-size: 18px;
  color: black;
  cursor: pointer;
  z-index: 10;
  border-radius: 100px;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev:hover,
.next:hover {
  background-color: rgba(203, 203, 203, 0.944);
}

.prev {
  left: 50px;
}

.next {
  right: 50px;
}

/* === RECENT POSTS WIDGET === */
.recent-posts-widget .post-item {
  display: flex;
  margin-bottom: 15px;
}

.recent-posts-widget .post-item:last-child {
  margin-bottom: 0;
}

.recent-posts-widget .post-item img {
  width: 80px;
  margin-right: 15px;
}

.recent-posts-widget .post-item h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
}

.recent-posts-widget .post-item h4 a {
  color: var(--default-color);
  transition: 0.3s;
}

.recent-posts-widget .post-item h4 a:hover {
  color: var(--accent-color);
}

.recent-posts-widget .post-item time {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.donasi{
  z-index: 2;
}


.modal {
  z-index: 1055;
}

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

  .header {
    font-size: 20px;
  }

  .button {
    font-size: 16px;
  }

  .car img {
    width: 120px;
  }

  .car p {
    font-size: 0.9rem;
  }

  .prev,
  .next {
    padding: 4px 10px;
    font-size: 16px;
  }

  .carousel-container {
    padding-top: 15px;
    border-radius: 30px 30px 0 0;
  }

  .text-container {
    padding-left: 10px;
  }

  .berita-card {
    max-width: 800px;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .berita-img {
    width: 200px;
    height: 150px;
    margin-bottom: 0;
    margin-right: 15px;
    flex-shrink: 0;
  }

  .berita-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .berita-text button {
    align-self: flex-start;
  }

}

@media (min-width: 576px) {
  .beranda {
    padding: 50px;
  }

  .tentang {
    padding: 60px;
  }
}

@media (min-width: 768px) {
  .car {
    flex: 0 0 50%;
    max-width: 50%;
  }
}


@media (min-width: 992px) {
  .d-none.d-lg-flex {
    display: flex;
  }

  .navbar-toggler {
    display: none;
  }
  
}

@media (min-width: 1200px) {
  .car {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .prev,
  .next {
    display: none;
  }
}
