/* gaya untuk banner*/
.banner-andhim {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.banner-andhim img {
  width: 100%;
  max-height: 300px; /* batasi tinggi maksimal */
  object-fit: cover; /* potong pinggir gambar agar tetap rapi */
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}



/*dibawah ini kelas  untuk mengatur gaya menu di navigasi*/
nav {
    display: flex;
    justify-content: space-between; /* Membagi ruang di antara item secara merata */
    align-items: center; /* Menyelaraskan item secara vertikal di tengah */
    padding: 0 10px; /* Menambahkan padding di kiri dan kanan nav */
}

.menu {
    list-style-type: none;
    padding: 0;
    margin: 10px;
    display: flex;
    width: 100%; /* Membuat ul menempati lebar penuh */
    justify-content: space-between; /* Membuat item tersebar di antara kiri, tengah, dan kanan */
}

.menu li {
    margin: 0 15px; /* Memberikan jarak di antara setiap item */
    padding: 10px 15px;
    border: 2px solid black;
    background-color: green;
}

.menu li a {
    color: white;
    text-decoration: none;
}




/* dibawah ini kelas untuk mengatur icon medsos di footer*/ 
.icon-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px; /* Sesuaikan dengan kebutuhan */
  margin: 0 auto;
  padding: 10px;
}

.icon-container img {
  width: 50px; /* Sesuaikan ukuran ikon */
  height: 50px;
}

/* style Untuk membungkus form dan menyusun layout di halaman artikel  */
.filter-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 20px;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Styling untuk kotak kombo */
.select-box {
    padding: 10px;
    width: 200px;
    border: 2px solid #5c6bc0;
    border-radius: 5px;
    font-size: 16px;
    background-color: #ffffff;
    color: #333;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.select-box:focus {
    border-color: #3949ab;
    outline: none;
    box-shadow: 0 0 8px rgba(57, 73, 171, 0.5);
}

/* Styling untuk tombol Cari dengan efek berkedip */
.blink-button {
    padding: 10px 20px;
    background-color: #ff6f00;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    animation: blink-animation 1s step-end infinite;
}

.blink-button:hover {
    background-color: #ff8f00;
}

@keyframes blink-animation {
    50% {
        opacity: 0;
    }
}


/* Kontak */
.icon-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.icon-container img {
  width: 32px;
  height: 32px;
}

/*dibawah ini kelas untuk membuat garis tebal untuk heading pembatas */ 
.garisheading {
    background-color: black;
    color: white;
    text-align: center;
    padding: 5px; /* Padding standar */
    font-size: 18px;
    margin: 10px 0;
    font-weight: bold;
    line-height: 1.2;
}

@media (max-width: 600px) {
    .garisheading {
        font-size: 10px; 
        padding: 8px; /* Menyesuaikan padding agar lebih pas */
        line-height: 1.3; /* Sesuaikan line-height jika perlu */
    }
}



/* gaya untuk filter dan pencarian */
.filter-container {
  background-color: #f8f8f8;
  padding: 16px;
  border-radius: 8px;
  max-width: 600px;
  margin: 20px auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.filter-container label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #333;
}

.filter-select,
.filter-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: #fff;
  color: #000;
}

.filter-select:focus,
.filter-input:focus {
  border-color: #0078d4;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.3);
}

/* gaya untuk daftar postingan di beranda*/
.post-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 16px;
  flex-wrap: wrap; /* untuk jaga-jaga kalau ruang sempit */
}

.thumbnail {
  width: 200px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.post-content {
  flex: 1;
}

.post-content h4 {
  margin-top: 0;
  margin-bottom: 8px;
}

.read-more {
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

/* RESPONSIF: Untuk layar kecil, seperti ponsel */
@media (max-width: 600px) {
  .post-item {
    flex-direction: column;
    align-items: stretch;
  }

  .thumbnail {
    width: 100%;
    height: auto;
    margin-bottom: 12px;
  }

  .post-content {
    width: 100%;
  }
}



/* gaya untuk tombol bagikan ke medsos*/
.share-btn {
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.popup-share {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 20px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  padding: 15px;
  z-index: 1000;
}

.popup-share a,
.popup-share button {
  display: block;
  margin: 8px 0;
  background: none;
  border: none;
  color: #007BFF;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
}

.popup-share a:hover,
.popup-share button:hover {
  text-decoration: underline;
}

/* gaya untuk gambar postingan */
.gambar-postingan {
  text-align: center;
  margin: 1.5em 0;
}

.gambar-postingan img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Batasi ukuran gambar di layar lebar */
@media (min-width: 768px) {
  .gambar-postingan img {
    max-width: 50%;
  }
}

/* gaya untuk video */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Rasio 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* gaya tombol aksesibilitas */
/* mode-gelap.css */

/* Gaya umum saat mode gelap aktif */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode a {
  color: #90caf9;
}

body.dark-mode header,
body.dark-mode nav,
body.dark-mode footer {
  background-color: #1e1e1e;
}

body.dark-mode button {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}

/* Aksesibilitas Popup */
.aksesibilitas-popup {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

/* Saat mode gelap, popup juga ikut berubah */
body.dark-mode .aksesibilitas-popup {
  background-color: #1f1f1f;
  border-color: #444;
}

.aksesibilitas-popup button {
  display: block;
  margin: 8px 0;
  padding: 10px;
  font-size: 1rem;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
}

body.dark-mode .aksesibilitas-popup button {
  background-color: #2a2a2a;
  border-color: #666;
  color: #eee;
}

/*  pengaturan mode besar kecil huruf */
:root {
  --ukuran-teks: 100%;
}

body {
  font-size: var(--ukuran-teks);
}

/* stelan kontras tinggi */
/* kontras.css */
body.kontras-tinggi {
  background-color: black;
  color: yellow;
}

body.kontras-tinggi a {
  color: cyan;
  text-decoration: underline;
}

body.kontras-tinggi button {
  background-color: yellow;
  color: black;
  border: 2px solid white;
}

body.kontras-tinggi header,
body.kontras-tinggi footer,
body.kontras-tinggi .konten {
  background-color: black;
  color: yellow;
}

/* Pastikan elemen penting menyesuaikan */
body.kontras-tinggi .site-header,
body.kontras-tinggi .popup-share {
  background-color: black;
  border-color: yellow;
}

body.kontras-tinggi .popup-share a,
body.kontras-tinggi .popup-share button {
  color: yellow;
}

/* komentar.css */

#komentar-section {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
}

.judul-komentar {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

#komentar-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#komentar-form input,
#komentar-form textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#komentar-form textarea {
  resize: vertical;
  min-height: 80px;
}

#komentar-form button {
  align-self: flex-end;
  background-color: #007acc;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#komentar-form button:hover {
  background-color: #005f99;
}

#daftar-komentar {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
}

#daftar-komentar li {
  background-color: #fff;
  border-left: 4px solid #007acc;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  word-break: break-word;
}
