* {
  margin: 0;
  padding: 0;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #003366;
  padding: 20px 30px;
  position: relative;
  z-index: 1000;
}

.navbar .logo {
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.navbar ul {
  font-family: "roboto";
  list-style: none;
  display: flex;
  transition: max-height 0.4s ease;
}

.navbar ul li {
  margin-left: 25px;
}

.btn-join {
  background-color: #007bff;
  color: white;
  font-size: 20pxpx;
  padding: 4px 9px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

.btn-join:hover {
  background-color: #0056b3;
  color: white;
}

.navbar ul li a {
  padding: 10px 10px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
}

.navbar ul li a:hover {
  background-color: #008cdd;
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 25px;
  justify-content: space-between;
}

.menu-toggle span {
  background: white;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  transition: 0.4s;
}

/* Hamburger to X animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
  -webkit-transform: rotate(45deg) translate(5px, 6px);
  -moz-transform: rotate(45deg) translate(5px, 6px);
  -ms-transform: rotate(45deg) translate(5px, 6px);
  -o-transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(9px, -10px);
  -webkit-transform: rotate(-45deg) translate(9px, -10px);
  -moz-transform: rotate(-45deg) translate(9px, -10px);
  -ms-transform: rotate(-45deg) translate(9px, -10px);
  -o-transform: rotate(-45deg) translate(9px, -10px);
}

/* Responsive styling */
@media (max-width: 807px) {
  .menu-toggle {
    display: flex;
  }

  .btn-join {
    top: 46px;
  }

  .navbar ul {
    position: absolute;
    top: 65px;
    right: 0;
    background-color: #003366;
    width: 100%;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    max-height: 0;
  }

  .navbar ul.show {
    max-height: 350px;
  }

  .navbar ul li {
    margin: 15px;
  }
}





/* Navbar end */

/* Headline */
.headline {
  background-color: #fff3f3;
  padding: 20px;
  margin: 20px;
  border-left: 5px solid #d8232a;
}
.headline h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* Scroll News */
.scroll-news {
  margin: 20px;
  padding: 10px;
  background-color: #f9f9f9;
}

.scroll-news h2 {
  font-size: 24px;
  color: #0d47a1;
  border-left: 4px solid #0d47a1;
  padding-left: 10px;
  margin-bottom: 20px;
}

/* Wrapper scrollable */
.news-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

/* Artikel List */
.article-list {
  padding: 50px;
}

.article-list h2 {
  font-size: 24px;
  color: #0d47a1;
  border-left: 4px solid #0d47a1;
  padding-left: 10px;
  margin-bottom: 20px;
}

.article {
  display: flex;
  gap: 15px;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 0 6px rgba(109, 18, 18, 0.05);
}
.article img {
  width: 110px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}
.article-content h3 {
  margin-bottom: 8px;
}
.article-content p {
  font-size: 0.95rem;
  color: #555;
}

.news-item a {
  color: #333;
  text-decoration: none;
}

.article-content a {
  text-decoration: none;
  color: #333;
}

/* berita */
.berita {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

.berita h2 {
  text-align: center;
  margin-bottom: 20px;
}

.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.berita-item {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 6px rgba(0, 0, 0, 0.1);
}

.berita-item h3 {
  margin-top: 0;
}

.berita-item p {
  margin: 5px 0;
}

.berita-item a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.container {
  display: flex;
  gap: 20px;
  padding: 20px;
}

/* conten kiri kanan */
.konten-kiri,
.konten-kanan {
  flex: 1; /* masing-masing ambil 50% lebar */
  background-color: #f2f2f2;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* berita content index*/
.berita-section {
  padding: 40px 20px;
  font-family: "Open Sans", sans-serif;
  background-color: #ffffff;
}

.berita-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.berita-terkini,
.berita-terpopuler {
  flex: 2;
  min-width: 500px;
}

.berita-terkini h2,
.berita-terpopuler h2 {
  font-size: 24px;
  color: #0d47a1;
  border-left: 4px solid #0d47a1;
  padding-left: 10px;
  margin-bottom: 20px;
}

.berita-item {
  display: flex;
  margin-bottom: 20px;
  gap: 15px;
}

.berita-item img {
  width: 180px;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
}

.berita-text h3 {
  font-size: 16px;
  margin: 0;
  color: #111;
}

.kategori {
  color: #d32f2f;
  font-weight: bold;
  font-size: 14px;
}

.tanggal {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

.populer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: number;
}

.populer-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  font-size: 14px;
  color: #222;
}
.popular-list li a {
  text-decoration: none;
  color: #000;
}

.populer-list li::before {
  counter-increment: number;
  content: counter(number);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: #0d47a1;
  font-size: 18px;
}
/* end */

/* content articel img */
.berita-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.berita-img {
  width: 150px;
  height: auto;
  border-radius: 6px;
}

.berita-text {
  flex: 1;
}

/* 📱 Responsive - pindahkan teks ke bawah gambar jika layar kecil */
@media (max-width: 768px) {
  .berita-wrapper {
    flex-direction: column;
    align-items: center; /* opsional: agar gambar dan teks rata tengah */
    text-align: center;
  }

  .berita-img {
    width: 80%;
    max-width: 300px;
  }

  .berita-text {
    text-align: left;
  }
}

/* Footer */
.footer {
  background-color: #222831;
  color: #fff;
  padding: 40px 20px;
  font-family: "Open Sans", sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 250px;
  margin: 10px 20px;
}

.footer h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #f0a500
}

.footer p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
  margin-top: 20px;
  color: #ccc;
}

/* end footer */
.main-content {
  flex: 3;
}

/*  */

.red {
  color: #e00;
}

.blue {
  color: #007bff;
}

.orange {
  color: #f57c00;
}

.sidebar h2 {
  color: #003366;
}

span {
  color: #003366;
}

.news-item {
  display: fixed;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 0 9px 1px rgba(0, 0, 0, 0.05);
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.news-item img {
  width: 250px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.news-info {
  flex: 1;
}

.category {
  font-weight: bold;
  margin-right: 10px;
}

.time {
  font-size: 0.9em;
  color: #666;
}

.news-title {
  margin: 5px 0;
  font-size: 1.05em;
  color: #000;
}

.news-summary {
  font-size: 0.95em;
  color: #444;
}

.periode {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.periode button {
  margin: 3px;
  padding: 4px 8px;
  font-size: 0.85rem;
  background: #eee;
  border: none;
  cursor: pointer;
}

.periode .active {
  background: #e00;
  color: #fff;
  font-weight: bold;
}

.popular-list {
  list-style: none;
  padding-left: 0;
}

.popular-list li {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  position: relative;
  padding-left: 25px;
}

.popular-list li span {
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #e00;
}

/* ARTICLE KHUSUS */
.topik-khusus {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
  font-family: "Open Sans", sans-serif;
}

.topik-khusus h2 {
  font-size: 24px;
  color: #0d47a1;
  border-left: 4px solid #0d47a1;
  padding-left: 10px;
  margin-bottom: 30px;
}

.topik-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.topik-item {
  flex: 1;
  min-width: 250px;
  max-width: 260px;
}

.topik-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.topik-item .kategori {
  font-size: 14px;
  color: #d32f2f;
  margin: 5px 0;
}

.topik-item .judul {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* ARTICLE KHUSUS END */


/* PAGINATOR */
    .pagination {
      display: flex;
      justify-content: center;
      margin-top: 30px;
      gap: 10px;
    }

    .pagination a {
      padding: 8px 14px;
      border: 2px solid #0070c0;
      border-radius: 50%;
      color: #0070c0;
      text-decoration: none;
      font-weight: bold;
    }

    .pagination a.active {
      background-color: #0070c0;
      color: white;
    }

    .pagination a:hover {
      background-color: #e0e0e0;
    }
    /* PAGINATOR END */


    