@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

body {
  /* font-family: "Arial", sans-serif; */
  font-family: "Poppins", sans-serif;
}

.logo-text {
  font-family: "Quicksand", sans-serif;
  font-weight: 700; /* Bisa disesuaikan: 300, 400, 500, 700 */
}

/* Warna tombol search */
.btn-brown {
  background-color: #8c4c27;
  color: white;
  border: none;
  transition: 0.3s;
}

.btn-brown:hover {
  background-color: #c78c50;
}

/* Ikon media sosial */
.social-icon {
  font-size: 20px;
  color: #8c4c27;
  margin-left: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Efek hover ikon media sosial */
.social-icon:hover {
  color: #c78c50;
  transform: scale(1.2);
}

/* Hilangkan search box dan media sosial di layar mobile */
@media (max-width: 767px) {
  .headline-news .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .headline-news .col-md-3 {
    display: flex;
    flex-wrap: wrap;
    /* flex-direction: row;
    justify-content: space-between; */
    gap: 8px;
  }

  .headline-news .col-md-3 .headline-item {
    width: calc(50% - 4px); /* Membagi dua dengan jarak */
    flex: 0 0 calc(50% - 4px);
  }

  .headline-news .col-md-3 .headline-item img {
    height: auto; /* Menjaga rasio gambar */
  }

  /* Menambahkan jarak antar berita di Berita Terpilih */
  .carousel-item .row > div {
    margin-bottom: 20px;
  }
}

@media (min-width: 768px) {
  /* Artikel 2 & 3 dalam satu kolom vertikal pada desktop */
  .headline-news .col-md-3 {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Menambah jarak antar artikel */
  }

  .headline-news .col-md-3 .headline-item {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  .headline-news .headline-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

.text-brown {
  color: #593214;
}

.bg-brown {
  background-color: #593214;
}

.headline-news .row {
  display: flex;
  flex-wrap: wrap;
}

/* Navbar dengan gradasi warna lebih modern */
.navbar {
  background: linear-gradient(135deg, #4e2a14, #a96e3c);
  border-bottom: 3px solid #e0a96d;
  padding: 10px 15px;
}

.navbar-nav .nav-item {
  margin: 0 10px; /* Menambah jarak antar menu utama */
}

/* Warna teks navbar */
.navbar-nav .nav-link {
  color: #fdf6ec !important;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  padding: 8px 12px;
}

/* Efek hover pada menu utama */
.navbar-nav .nav-link:hover {
  background-color: #e0a96d;
  color: #3d1d0f !important;
  border-radius: 6px;
  padding: 8px 14px;
  transition: all 0.3s ease-in-out;
}

/* Dropdown lebih modern dan lebih cerah */
.navbar-nav .dropdown-menu {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: #fdf3e3; /* Warna cerah */
  border-radius: 8px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
}

/* Tampilkan dropdown saat hover */
.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Warna dan efek pada item dropdown */
.navbar-nav .dropdown-menu .dropdown-item {
  color: #5a2d12 !important; /* Warna teks lebih kontras */
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  padding: 10px 15px;
}

/* Efek hover pada item dropdown */
.navbar-nav .dropdown-menu .dropdown-item:hover {
  background-color: #e0a96d;
  color: #3d1d0f !important;
  border-radius: 6px;
}

/* Efek bayangan navbar agar lebih elegan */
.navbar.sticky-top {
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
}

.container-custom {
  max-width: 980px; /* Sesuaikan dengan kebutuhan */
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.headline-news {
  width: 100%;
  max-width: 1300px; /* Pastikan ukuran sama */
  margin: 0 auto;
}

/* Mengatur jarak antar thumbnail */
.headline-news .row {
  gap: 2px; /* Mengurangi jarak antar gambar */
}

.headline-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.headline-item img {
  /* border-radius: 10px; */
  width: 100%;
  height: auto;
}

.headline-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px;
  border-radius: 5px;
  text-align: center;
}

.headline-news .col-md-6,
.headline-news .col-md-3 {
  padding: 0 3px; /* Mengurangi jarak padding antar kolom */
}

/* Efek hover pada judul headline */
.headline-title:hover + img,
.headline-item:hover img {
  transform: scale(1.05); /* Zoom in efek */
  transition: transform 0.3s ease-in-out;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Tambahkan bayangan */
  border-radius: 10px;
}

section {
  padding: 10px 0; /* Jarak atas dan bawah */
  margin-bottom: 40px; /* Jarak antar section */
}

/* Gaya untuk judul section */
.section-title {
  font-size: 18px;
  font-weight: bold;
  color: #6b3e26;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.section-title-lg {
  font-size: 1.75rem; /* Lebih besar dari Popular Post */
  font-weight: bold;
  color: #6b3e26; /* Sesuaikan dengan warna tema coklat */
  border-left: 4px solid #6b3e26;
  padding-left: 12px;
  margin-bottom: 20px; /* Jarak bawah dari daftar artikel */
}

/* Garis bawah judul */
.section-title::after {
  content: "";
  width: 50px;
  height: 4px;
  background-color: #d4a373;
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

.carousel-inner img {
  width: 100px; /* Pastikan lebar sama */
  height: 100px; /* Pastikan tinggi sama */
  object-fit: cover; /* Memastikan gambar tetap proporsional */
}

.berita-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

a.berita-title {
  color: #6b3e26 !important;
  text-decoration: none !important;
}

/* Style untuk judul berita */
.berita-title {
  font-weight: bold;
  font-size: 14px;
  color: #6b3e26 !important;
  text-decoration: none !important;
  display: inline-block;
  transition: color 0.3s ease, transform 0.2s ease;
}

/* Efek hover untuk judul berita */
.berita-title:hover {
  color: #c78c50; /* Warna emas-coklat */
  text-decoration: underline;
  transform: translateY(-2px); /* Efek floating */
}

/* Efek shadow lembut saat hover */
.berita-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #c78c50, transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* Saat hover, underline muncul dengan efek animasi */
.berita-title:hover::after {
  transform: scaleX(1);
}

.berita-meta {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
}

.popular-post {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-item {
  display: flex;
  align-items: center;
  position: relative;
  background: #f8f8f8;
  padding: 10px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.post-rank {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #c78c50;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
}

.post-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 10px;
}

.post-content {
  flex: 1;
}

.post-title {
  font-size: 14px;
  font-weight: bold;
  color: #6b3e26;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.post-title:hover {
  color: #c78c50;
  /* text-decoration: underline; */
}

.post-meta {
  font-size: 12px;
  color: #777;
  margin-top: 5px;
}

.post-meta i {
  margin-right: 5px;
  color: #c78c50;
}

.post-meta span {
  margin-right: 10px;
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
}

/* Style Tab */
.custom-tabs {
  border-bottom: 2px solid #c78c50;
  display: flex;
  gap: 10px;
  padding-bottom: 5px;
}

.custom-tabs .nav-link {
  color: #6b3e26;
  font-size: 14px;
  font-weight: 600;
  background: #f8f8f8;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.custom-tabs .nav-link:hover {
  background: #c78c50;
  color: white;
}

.custom-tabs .nav-link.active {
  background: #6b3e26;
  color: white;
  font-weight: bold;
  border: none;
}

/* Styling berita */
.news-item {
  text-align: center;
}

.news-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.news-item img:hover {
  transform: scale(1.05);
}

.news-title {
  font-size: 14px;
  font-weight: 600;
  margin-top: 5px;
}

.news-title a {
  text-decoration: none;
  color: #6b3e26;
  transition: color 0.3s;
}

.news-title a:hover {
  color: #c78c50;
}

.list-berita-lainnya .berita-item {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.list-berita-lainnya .berita-item:last-child {
  border-bottom: none;
}

.list-berita-lainnya a {
  text-decoration: none;
  color: #212529;
  font-weight: 500;
  transition: color 0.2s;
}

.list-berita-lainnya a:hover {
  color: #007bff;
}

.btn-xs {
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.5;
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: #e6ab0a;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  border: none;
}
