/* =====================
   RESET DASAR & TEMA
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --green-primary: #0288D1;   /* 🔵 biru utama */
  --green-hover: #0269A1;     /* 🔵 biru gelap / hover */
  --green-light: #B3E5FC;     /* 🔵 biru muda highlight */
  --white: #ffffff;
  --gray: #f5f5f5;
}


/* =====================
   TOP CONTACT
===================== */
.top-contact {
  background-color: var(--green-primary);
  color: var(--white);
  text-align: center;
  padding: 8px 0;
  font-size: 0.9rem;
}

/* =====================
   NAVBAR
===================== */
nav {
  background-color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 50px;
  flex-wrap: wrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.logo span {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

/* =====================
   MENU UTAMA
===================== */
.navbar {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar li {
  position: relative;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  display: block;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.navbar a:hover {
  background-color: var(--green-hover);
}

/* =====================
   DROPDOWN MENU
===================== */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  background-color: #fff;
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 1000;
}

.dropdown-menu li a {
  color: var(--green-primary);
  padding: 10px 15px;
  font-size: 15px;
}

.dropdown-menu li a:hover {
  background-color: #e8f6ef;
}

/* Saat dropdown aktif (dibuka lewat JS) */
.dropdown.active .dropdown-menu {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

/* Animasi lembut */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================
   HEADER / HERO
===================== */
.hero {
  background: linear-gradient(
        rgba(2, 136, 209, 0.7), 
        rgba(2, 136, 209, 0.7)
    ),
              url('https://scontent.ftkg1-1.fna.fbcdn.net/v/t1.6435-9/104706079_112467023846606_4293515594901272453_n.jpg?_nc_cat=105&ccb=1-7&_nc_sid=cc71e4&_nc_eui2=AeEoaPi6Cw4Kff8-D_dU1axT-tzIXRi51ir63MhdGLnWKir8cmT9un_iHW-kUqTfNKRr7_IHYKrSvTb-GX7srPme&_nc_ohc=XrAHwv-J8HUQ7kNvwFVXIlZ&_nc_oc=AdkSdc2h4XNxb-3nnC7w7OSEvfEg_eNWbhfM-Jy-NbsyiFVstrrDWM0N3o5m-7mLlJQ&_nc_zt=23&_nc_ht=scontent.ftkg1-1.fna&_nc_gid=k5Vey3aIMIA-pQM1oA3aEw&oh=00_Affb2X5ypGezprl-SJNtmSGhTFU9yNsrgGeN0JqnyFPsmA&oe=6926B13C') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
}


/* ======== SLIDER ======== */
.image-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 400px;
  overflow: hidden;
  margin: 0 auto 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.image-slider .slides {
  display: flex;
  transition: transform 1s ease;
  width: 100%;
}

.image-slider img {
  flex-shrink: 0; /* agar tiap gambar tetap lebar 100% */
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Tombol navigasi */
.image-slider .prev,
.image-slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  transition: background 0.3s;
  z-index: 5;
}

.image-slider .prev:hover,
.image-slider .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.image-slider .prev {
  left: 15px;
}

.image-slider .next {
  right: 15px;
}

/* Responsif */
@media (max-width: 768px) {
  .image-slider {
    height: 250px;
  }

  .image-slider img {
    height: 250px;
  }
}


/* =====================
   MAIN CONTENT
===================== */
.content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 5%;
  background-color: var(--gray);
}

.left-content, .right-content {
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.left-content {
  flex: 2;
}

.right-content {
  flex: 1;
}

.left-content h2, .right-content h2 {
  color: var(--green-primary);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--green-light);
  padding-bottom: 5px;
}

/* Jarak antar artikel berita */
.left-content article {
  background: var(--white);
  padding: 15px 20px;
  margin-bottom: 25px; /* 👉 jarak antar berita */
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efek hover agar interaktif */
.left-content article:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Judul dan paragraf dalam berita */
.left-content article h3 {
  color: var(--green-primary);
  margin-bottom: 8px;
}

.left-content article p {
  line-height: 1.6;
  color: #444;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .content {
    flex-direction: column; /* ubah menjadi susunan vertikal di HP */
    padding: 20px 5%;
  }
  .left-content, .right-content {
    width: 100%; /* biar lebar penuh di layar HP */
  }
}

@media (max-width: 768px) {
  nav {
    padding: 10px 20px;
  }

  .navbar {
    flex-direction: column;
    width: 100%;
    background-color: var(--green-primary);
    display: none;
  }

  .navbar.active {
    display: flex;
  }

  .navbar li {
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    position: relative;
    top: 0;
    box-shadow: none;
    border-radius: 0;
  }
}

.menu-toggle {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    flex-direction: column;
    width: 100%;
    background-color: var(--green-primary);
    display: none;
  }

  .navbar.active {
    display: flex;
  }
}


/* =====================
   FOOTER
===================== */
footer {
  background-color: var(--green-primary);
  color: var(--white);
  padding: 30px 5% 10px;
  text-align: center;
}

footer iframe {
  border-radius: 8px;
  margin-top: 10px;
  width: 100%;
  height: 250px;
}

.footer-bottom {
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.8;
}


  /* ======== BERITA ======== */
/* ==== BERITA RINGKAS ==== */
.berita-list {
  display: flex;
  flex-direction: column;
  gap: 16px; /* jarak antar berita */
}

.berita-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.berita-item h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #0f3c12;
}

.berita-item p {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 22px;
}

/* ==== TOMBOL SELENGKAPNYA ==== */
.btn-selengkapnya {
  display: inline-block;
  margin-top: 6px;
  color: #0288D1;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: 0.3s;
}

.btn-selengkapnya:hover {
  color: #0269A1;
  text-decoration: underline;
}

.btn-small {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 14px;
  background-color: #0288D1; /* hijau tua */
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-small:hover {
  background-color: #0269A1; /* hijau lebih gelap */
}


/* ==== PENGUMUMAN ==== */
.pengumuman-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.pengumuman-list li {
  margin-bottom: 0.5rem;
}

.pengumuman-list a {
  text-decoration: none;
  color: #0269A1;
  font-weight: 500;
}

.pengumuman-list a:hover {
  text-decoration: underline;
}
