@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;
}

/* Layout Utama */
.berita-layout {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  gap: 20px;
}

/* Sidebar Kiri dan Kanan */
.sidebar {
  width: 20%;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  height: fit-content;
}

.sidebar h2 {
  font-size: 2rem;
  color: #00B7FF;
  margin-bottom: 15px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin: 10px 0;
}

.sidebar ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.sidebar ul li a:hover {
  color: #00B7FF;
}

/* Konten Utama */
.konten-berita {
  flex: 1;
}

/* Banner */
#banner {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;               /* Agar fleksibel */
  max-width: 1080px;         /* Maksimal lebar */
  margin: 0 auto;            /* Tengah secara horizontal */
}

#banner img {
  width: 100%;               /* Gambar isi penuh banner */
  height: 350px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}



/* Isi Konten */
.isi-konten {
  margin-top: 20px;
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-size: large;
  line-height: 1.8; /* jarak antar baris */
  text-align: justify; /* rata kiri-kanan */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.isi-konten h1,
.isi-konten h2 {
  font-size: 3rem;
  color: #2b3dda;
  margin-bottom: 15px;
}

.isi-konten h3{
  font-size: 1.5rem;
  color: #2b3dda;
  margin-bottom: 15px;
}

.isi-konten p {
  margin-bottom: 16px; /* jarak antar paragraf */
}

/* Unggulan Card */
.unggulan-card {
  margin-bottom: 20px;
}

.unggulan-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}
.unggulan-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

/* === RESPONSIF UNTUK LAYAR KECIL === */
@media (max-width: 768px) {
  .isi-konten {
    padding: 15px;
    font-size: medium;
  }

  .isi-konten h1,
  .isi-konten h2 {
    font-size: 2rem;
  }

  .isi-konten h3 {
    font-size: 1.2rem;
  }

  .unggulan-card img {
    height: auto; /* biar gambar menyesuaikan rasio aslinya */
  }
}

/* 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 */