/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  --google-font-color-materialiconstwotone: none;
  background-color: #625d5d;
  color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

html {
  color: #2f1c6a;
  font-family: Muli, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
}






.articles-box {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* Default: 6 kolom */
  grid-gap: 15px;
  padding: 15px;
  background: #373131;
  border: 1px solid #2d2b2b;
  border-radius: 8px;
}

/* Responsive untuk layar sedang */
@media (max-width: 992px) {
  .articles-box {
    grid-template-columns: repeat(4, 1fr); /* 4 kolom untuk layar sedang */
  }
}

/* Responsive untuk layar kecil */
@media (max-width: 600px) {
  .articles-box {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom untuk layar kecil */
  }
}

/* Responsive untuk layar sangat kecil */
@media (max-width: 400px) {
  .articles-box {
    grid-template-columns: repeat(2, 1fr); /* Tetap 2 kolom untuk layar sangat kecil */
  }
}

.article {
  background: #242020;
  border: 1px solid #342d2d;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-height: auto; /* Tinggi box menyesuaikan konten */
}

.article:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.article h2 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: bold;
}

.article h3 {
  font-size: 8px;
  margin-bottom: 5px;
  color: #ffffff;
}

.article a {
  font-size: 12px;
  margin-bottom: 8px;
  color: #ffffff;
  text-decoration: none;
}

.article a:hover {
  text-decoration: underline;
}

.article .image img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.article p {
  font-size: 10px;
  line-height: 1.4;
  color: #ffffff;
}








/* Style untuk hasil pencarian */
.search-results {
  display: none; /* Sembunyikan hasil pencarian awalnya */
  padding: 20px;
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  position: absolute;
  top: 60px;
  left: 20px;
  right: 20px;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-item {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.search-item h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
}

.search-item p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.search-item:hover {
  background-color: #f1f1f1;
}








/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header style */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin: 0px;
    background-color: #ffffff;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1); /* Menambahkan bayangan lebih kuat */
}

/* Logo style */
.logo img {
    height: 30px;
}

/* Navigation style */
nav ul {
    display: flex;
    list-style: none;
    text-align: center; 
    font-family: Helvetica, Helvetica, Arial, sans-serif; 
    font-size: 30px; 
    font-weight: 700; 
    color: #2f1c6a;
}

/* Individual list item */
nav ul li {
    margin: 0 5px;
    position: relative;
}

/* Link style */
nav ul li a {
    text-decoration: none;
    color: #000000;
    font-size: 18px;
    padding: 5px 0;
    display: block;
    text-align: center;
}

/* Add the underline (3-line effect) */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

/* Hover effect */
nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}






/* Layout container untuk sidebar dan konten */
.container {
  display: flex;
}

/* Sidebar */
.sidebar {
  width: 20%; /* Menggunakan persentase agar sidebar bisa menyesuaikan ukuran konten */
  background-color: #253f4c;
  padding-top: 20px;
  color: #fff;
  position: relative;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
}

.sidebar ul li {
  padding: 70px;
  text-align: left;
}

.sidebar ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.sidebar ul li a:hover {
  background-color: #1a2d38;
}







/* Konten */
.content {
    margin: 0 auto;
    max-width: 1100px; /* Batas lebar maksimal */
    padding: 0 10px;   /* Padding untuk layar kecil */
    flex-grow: 1; /* Membuat konten utama berkembang untuk mengisi ruang yang tersisa */
    padding: 20px;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.content h1 {
    margin-bottom: 20px;
    font-size: 20px;
}

.ads-banner iframe {
    max-width: 100%;  /* Menyesuaikan lebar iframe dengan kontainer */
    border: none;     /* Menghilangkan border */
}

.daftar-artikel-1 {
  padding: 50px !important;
  background: #fafbff;
  border: none;
  border-radius: 20px;
  margin-top: 20px;
  padding-bottom: 50px;
  padding-top: 50px;
  width: 100%;
}

.daftar-artikel-1 nav {
  color: #2f1c6a !important;
  display: block;
  font-weight: 800 !important;
  line-height: 24px !important;
  position: relative;
}

.daftar-artikel-1 nav ul {
  margin-left: 0 !important;
}

.daftar-artikel-1 a {
  margin-top: 10px;
  text-decoration: none;
  color: #2f1c6a !important;
}

.daftar-artikel-1 a:hover {
  color: #2f1c6a !important;
  text-decoration: underline;
}

.daftar-artikel-1 a:active {
  text-decoration: underline;
}

.daftar-artikel-1 a:focus {
  text-decoration: underline;
}


.daftar-artikel-1-1 a {
  margin-top: 10px;
  text-decoration: none;
  color: #2f1c6a !important;
}

.daftar-artikel-1-1 a:hover {
  color: #2f1c6a !important;
  text-decoration: underline;
}

.daftar-artikel-1-1 a:active {
  text-decoration: underline;
}

.daftar-artikel-1-1 a:focus {
  text-decoration: underline;
}

img {
      max-width: 100%;
      height: auto;
      display: block;
      margin-bottom: 10px;
      margin-top: 10px;
      box-sizing: border-box;
      
}

@media (min-width: 768px) {
    .content {
        min-height: calc(100vh - 100px); /* Mengurangi tinggi footer dari tinggi viewport */
        padding-bottom: 20px; /* Tambahan jarak di bawah konten */
    }
    
    

    footer {
        margin-top: 0px; /* Memberikan jarak tambahan di atas footer */
    }
}


footer {
    position: relative; /* Tetap di posisi bawah layar */
    bottom: 0; /* Tetap menempel di bagian bawah */
    left: 0;
    width: 100%; /* Pastikan footer memenuhi lebar layar */
    background-color: #ffffff; /* Warna latar belakang footer */
    box-shadow: 0 -1px 20px rgba(0, 0, 0, 0.1); /* Tambahkan bayangan */
    padding: 10px 20px; /* Ruang dalam untuk konten */
    text-align: center; /* Teks berada di tengah secara horizontal */
    z-index: 10; /* Pastikan footer berada di atas elemen lain */
    display: flex;
    justify-content: center; /* Teks di tengah secara horizontal */
    align-items: center; /* Teks di tengah secara vertikal */
}

nav p {
    display: flex;
    justify-content: center; /* Pastikan teks p juga berada di tengah */
    gap: 20px; /* Jarak antar menu lebih lebar seperti menu header */
    list-style: none;
    font-size: 10px; /* Ukuran font lebih besar untuk keterbacaan */
}

nav p a {
    color: #333; /* Warna teks lebih gelap agar konsisten dengan header */
    font-size: 10px; /* Ukuran font lebih besar untuk keterbacaan */
    text-decoration: none;
}

nav p a:hover {
    color: #000000; /* Mengubah warna menjadi hitam saat hover */
}






.slider { 
  width: 100%; 
  max-width: 100%; 
  overflow: hidden; 
  position: relative; 
}

.slides { 
  display: flex; 
  transition: none; /* Tidak menggunakan transition di sini */
  animation: slide 15s linear infinite;
}

.slide { 
  flex: 0 0 calc(100% / 6); /* Setiap slide mengambil 1/6 dari lebar slider */ 
  box-sizing: border-box; 
}

.slide img { 
  width: 100%; 
  height: auto; 
  display: block; 
}

@keyframes slide { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-100%); } 
}















/* Styling Pop-up */
#saweria-popup {
    position: fixed; /* Tetap di tempat meski halaman di-scroll */
    bottom: 20px;
    right: 20px;
    background: #f7931e;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s;
    cursor: pointer;
}

#saweria-popup img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#saweria-popup:hover {
    background: #ffaf50;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}






