@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");

.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* TRANSISI FADE KELUAR */
.fade-out {
  opacity: 1;
  animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}


/* Fade in untuk elemen umum */
.fade-element {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s ease forwards;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Versi delay bertingkat */
.fade-delay-1 { animation-delay: 0.1s; }
.fade-delay-2 { animation-delay: 0.2s; }
.fade-delay-3 { animation-delay: 0.3s; }
.fade-delay-4 { animation-delay: 0.4s; }
.fade-delay-5 { animation-delay: 0.5s; }

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.show {
  opacity: 1;
  transform: translateY(0);
}

.box {
  opacity: 0;
  transform: translateY(30px);
  transition: all 3s  ease-out;
  will-change: opacity, transform;
}

.box.reveal {
  opacity: 1;
  transform: translateY(0);
}

section {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 40px;
  padding-bottom: 40px;
   opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: all 0.2s linear;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
    background-color: white;
  font-family: "Poppins", sans-serif;
  
}

*::selection {
  background: #2b3dda;
  color: #fff;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}
/* Lebar scrollbar */
html::-webkit-scrollbar {
  width: 10px;
}

/* Track (jalurnya) */
html::-webkit-scrollbar-track {
  background: linear-gradient(to bottom, #f0f9ff, #e0f2fe);
  border-radius: 10px;
}

/* Thumb (pegangan scroll) */
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00B7FF, #0077FF);
  border-radius: 10px;
  border: 2px solid #f0f9ff; /* agar ada jarak */
  transition: background 0.3s ease;
}

/* Hover effect */
html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00a6ff, #005ecb);
}


/* pre loader start */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background: #e6eff1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.loader-container.fade-out {
  top: -120%;
}
/* pre loader end */

/* navbar starts */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0%;
  padding: 1.7rem 10%;
  height: 70px;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.3);

}
section {
  min-height: 100vh;
  padding: 2rem 9%;
}
.heading {
  font-size: 3.5rem;
  color: rgb(32, 32, 32);
  font-weight: 800;
  text-align: center;
}
.heading span {
  color: cyan(115, 3, 167);
}

header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  
}
header .navbar li {
  margin-left: 2.5rem;
}
header nav a {
  position: relative;
  text-decoration: none;
  padding-bottom: 4px;
}

/* Hover underline */
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #00B7FF;
  transition: width 0.3s ease-in-out;
}

nav a:hover::after {
  width: 100%;
}

/* Active link underline (selalu penuh) */
nav a.active::after {
  width: 100%;
}


/* ========== SEARCH BAR ========== */
/* DEFAULT - SEMUA UKURAN */
.search-bar{
  margin-top: 30px;
  margin-bottom: 30px;
}

@media (max-width: 180px) {
  .search-bar {
    display: block;
  }
}
.atas{
    position: relative;
  overflow: visible;
  z-index: 0;
}

/* WRAPPER BERITA */
.berita-wrapper {
  padding: 60px 20px;
  background-color: #f7f7f7;
}

.berita-wrapper .heading {
  font-size: 5rem;
  text-align: center;
  margin-bottom: 40px;
  color: #00B7FF;
}

/* KONTEN UTAMA + SIDEBAR */
.berita-konten {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

/* GRID UTAMA 3 KOLOM */
.berita-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  flex: 1 1 70%;
}

/* CARD BERITA */
.card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}


.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 1.1rem;
  margin: 10px 0;
  color: #333;
}

.kategori, .tanggal {
  font-size: 0.85rem;
  color: gray;
}

.baca {
  display: inline-block;
  margin-top: 10px;
  color: #00B7FF;
  font-weight: bold;
  cursor: pointer;
}

/* SIDEBAR */
.berita-unggulan {
  flex: 1 1 25%;
  order: -1;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.berita-unggulan h2 {
  margin-bottom: 20px;
  font-size: 3rem;
  color: #00B7FF;
  text-align: center;
}

.unggulan-card {
  margin-bottom: 15px;
}

.unggulan-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
}

.unggulan-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.unggulan-card p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #333;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .berita-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .berita-unggulan {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .berita-container {
    grid-template-columns: 1fr;
  }

  .berita-konten {
    flex-direction: column;
  }
}



/* footer section starts */
.footer {
  min-height: auto;
  padding-top: 0;
  background: linear-gradient(to bottom, #ffffff, #00b7ff);
  border-radius: 10px; /* opsional biar lembut */
}

.footer .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer .box-container .boxfooter {
  flex: 1 1 25rem;
  margin: 2.5rem;
}

.footer .box-container .boxfooter h3 {
  font-size: 2.5rem;
  color: black;
  padding-bottom: 1rem;
  font-weight: normal;
}

.footer .box-container .boxfooter p {
  font-size: 1.5rem;
  color: black;
  padding: 0.7rem 0;
  text-transform: none;
}

.footer .box-container .boxfooter p i {
  padding-right: 1rem;
  color: black;
}

.footer .box-container .boxfooter a {
  font-size: 1.5rem;
  color: #fff;
  padding: 0.3rem 0;
  display: block;
}
.share a {
  display: inline-block;
  margin: 0 0.5rem;
  transition: transform 0.3s ease;
}

.share img.social-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.share a:hover {
  transform: scale(1.1);
}

.footer .box-container .boxfooter a:hover {
  color: black;
}

.footer .box-container .boxfooter .share {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}

.footer .box-container .boxfooter .share a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  width: 4rem;
  text-align: center;
  border-radius: 50%;
  font-size: 1.7rem;
  transition: 0.3s ease;
  background: white;
  color: #00B7FF;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Hover khusus brand */
.share a.whatsapp:hover {
  background-color: #25D366;
  color: white;
}

.share a.facebook:hover {
  background-color: #1877f2;
  color: white;
}

.footer .box-container .boxfooter .share a.shopee:hover {
  background-color: #ee4d2d;
  color: white;
}

.footer .box-container .boxfooter .share a.tokopedia:hover {
  background-color: #03ac0e;
  color: white;
}


.footer .credit {
  padding: 1rem 0 0 0;
  text-align: center;
  font-size: 1.5rem;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: black;
  border-top: 0.1rem solid #fff3;
}
.footer .credit a {
  color: black;
}
.footer .fa {
  color: #e90606;
  margin: 0 0.3rem;
  font-size: 1.5rem;
  animation: pound 0.35s infinite alternate;
}
.footer .mark{
  color: black;
  text-align: right;
}

@keyframes pound {
  to {
    transform: scale(1.1);
  }
}

@media (max-width: 450px) {
  .footer .box-container .box {
    margin: 1.5rem;
  }

  .footer .box-container .box p {
    padding: 0.7rem;
  }

  .footer .box-container .box .share {
    justify-content: center;
  }

  .footer .box-container .box .share a {
    height: 3.5rem;
    width: 3.5rem;
  }
}

/* footer section ends */