.image-container {
  position: relative;
  overflow: hidden;
}

.image-container img {
  transition: opacity 0.3s ease-in-out;
}

.image-container:hover img {
  opacity: 0.5; /* Membuat gambar redup */
}

.image-container .hover-button {
  position: absolute;
  top: 40px;
  left: -100%; /* Mulai dari luar container */
  transform: translateY(-50%);
  transition: left 0.5s ease-in-out;
  z-index: 10;
}

.image-container:hover .hover-button {
  left: 10%; /* Bergerak ke dalam gambar */
}

.card-icon {
  font-size: 15px;
}

.card-isi {
  font-size: 15px; /* Ukuran font */
  text-align: justify; /* Membuat teks rata kanan dan kiri */
}

.card-bawah {
  font-size: 15px; /* Ukuran font */ /* Membuat teks rata kanan dan kiri */
}

.judul {
  text-decoration: none; /* Menghilangkan underline default */
  color: #6c757d; /* Warna teks default */
}

.judul h5 {
  margin: 0;
  padding: 0;
  font-size: 18px;
  transition: color 0.3s ease, text-decoration 0.3s ease; /* Transisi smooth */
}

.judul:hover h5 {
  color: #198754; /* Warna text-success-emphasis */
  text-decoration: none; /* Pastikan tidak ada underline */
}

.judul-populer {
  text-decoration: none; /* Menghilangkan underline default */
  color: #6c757d; /* Warna teks default */
  transition: color 0.5s ease; /* Efek transisi warna */
}

.judul-populer:hover {
  color: #198754; /* Warna saat hover */
}

.cari {
  display: flex;
  align-items: center; /* Vertikal center */
  justify-content: center; /* Horizontal center */
  height: 50px;
  width: 100%; /* Lebar penuh pembungkus */
  background-color: #d9d9d9;
  padding: 10px;
  border-radius: 10px; /* Membuat sudut div menjadi bulat */
}

.cari img {
  margin-right: 10px; /* Menambahkan jarak antara gambar dan teks */
}

.garis {
  text-align: center; /* Menyusun teks di tengah */
  margin-top: -15px; /* Mengurangi margin atas menjadi -3px */
}

.row {
  display: flex;
}

.image-container {
  flex: 1; /* Agar elemen ini mengisi ruang yang tersedia */
  display: flex;
  align-items: stretch; /* Membuat gambar dan kontainer isi memiliki tinggi yang sama */
}

.image-container img {
  object-fit: cover; /* Membuat gambar mengisi seluruh area kontainer */
  width: 100%;
  height: 100%; /* Memastikan gambar mengisi tinggi kontainer */
}

.isi-card {
  flex: 1; /* Agar elemen ini mengisi ruang yang tersedia */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Mengatur konten agar terdistribusi dengan baik */
}

.img-zoom {
  width: 70px; /* Menentukan lebar gambar */
  height: 70px; /* Menentukan tinggi gambar */
  object-fit: cover; /* Memotong dan meng-zoom gambar */
}

.populer {
  font-size: 15px;
}

.img-thumbnail {
  width: 350px;
  object-fit: contain; /* Gambar tetap terlihat seluruhnya, tetapi mungkin ada ruang kosong */
}

.ikuti {
  transition: transform 0.5s; /* Animation */
}

.ikuti:hover {
  transform: scale(1.1); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

.bg-birut {
  background-color: #00467f !important; /* Warna Oranye */
}

.bg-birum {
  background-color: #bfe2ff !important; /* Warna Oranye */
}
.bg-birus {
  background-color: #0064b5 !important; /* Warna Oranye */
}

.pagination-floating .page-link {
  border: none;
  padding: 15px 22px;
  margin: 0 5px;
  border-radius: 10px;
  background: white;
  color: #495057;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-style: solid;
}

.pagination-floating .page-item.active .page-link {
  background: #007bff;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.pagination-floating .page-link:hover {
  background: #007bff;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.marquee-container {
  width: 100%;
  background-color: #f8f9fa;
  padding: 10px 0;
}

.marquee-content {
  display: flex;
  animation: marquee 20s linear infinite;
}

.marquee-item {
  flex: 0 0 auto;
  padding: 0 20px;
  font-size: 1.2rem;
  color: #495057;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Optional: Pause animation on hover */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-item {
  display: flex; /* Mengatur elemen anak agar sejajar secara horizontal */
  align-items: center; /* Agar gambar dan teks sejajar secara vertikal */
}

.marquee-item img {
  width: 50px; /* Sesuaikan ukuran gambar */
  height: auto;
  margin-right: 10px; /* Tambahkan jarak antara gambar dan teks */
}

footer {
  background-color: #343a40;
  color: #fff;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  color: #ccc;
  text-decoration: underline;
}

.footer-copyright {
  background-color: rgba(0, 0, 0, 0.2);
}

.text-justify-custom {
  text-align: justify;
}

@keyframes pulse {
  0% {
      box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }

  70% {
      box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
  }

  100% {
      box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

.btn-pulse {
  animation: pulse 1.5s infinite;
}

#btn-back-to-top {
  position: fixed;
  bottom: 12px;
  right: 12px;
  display: none;
}

.isi-berita {
  text-align: justify;
  line-height: 1.5;
  margin-bottom: 10px;
}
.isi-berita p {
  margin-bottom: 15px;
}

.rating {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 10px 10px 20px #d1d1d1,
             -10px -10px 20px #ffffff;
  max-width: 400px;
  margin: 2rem auto;
}

.star-rating {
  direction: rtl;
  display: inline-block;
  padding: 20px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  color: #bbb;
  cursor: pointer;
  font-size: 30px;
  padding: 5px;
  transition: all 0.3s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #f7b731;
}

.rating-title {
  color: #2d3436;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.rating-feedback {
  margin-top: 1.5rem;
  color: #636e72;
}

.submit-rating {
  background: linear-gradient(145deg, #f7b731, #f0932b);
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.submit-rating:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(247, 183, 49, 0.4);
}

.rating-emoji {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-content {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: none;
  padding: 1.5rem 1.5rem 0.5rem;
  background: linear-gradient(to right, #ff6b6b, #ff8787);
  border-radius: 1rem 1rem 0 0;
  color: white;
}

.modal-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 2rem 1.5rem;
  font-size: 1.1rem;
  color: #495057;
}

.modal-footer {
  border-top: none;
  padding: 1rem 1.5rem 1.5rem;
}

.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-secondary {
  background-color: #e9ecef;
  border: none;
  color: #495057;
}

.btn-secondary:hover {
  background-color: #dee2e6;
}

.btn-danger {
  background: linear-gradient(to right, #ff6b6b, #ff8787);
  border: none;
}

.btn-danger:hover {
  background: linear-gradient(to right, #fa5252, #ff6b6b);
  transform: translateY(-1px);
}

.warning-icon {
  font-size: 3rem;
  color: #ff6b6b;
  margin-bottom: 1rem;
}

.modal.fade .modal-dialog {
  transform: scale(0.95);
  transition: transform 0.2s ease-out;
}

.modal.show .modal-dialog {
  transform: scale(1);
}

.berita-terbaik .card-img-top {
  height: 200px; /* Sesuaikan dengan tinggi yang diinginkan */
  object-fit: cover; /* Memotong gambar agar tetap proporsional */
}

.p-info {
  /* agar flex baris di desktop */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}


