/* CSS Tambahan Khusus Halaman Ini agar Filter  */
.filter-btn-group .btn {
  border: 1px solid #55423d;
  color: #55423d;
  margin-bottom: 5px;
  border-radius: 25px;
  font-size: 0.85rem;
}

.filter-btn-group .btn:hover {
  background-color: #efebe9;
}

.filter-btn-group .btn.active {
  background-color: #55423d;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.text-brown {
  color: #55423d !important;
}

.bg-brown {
  background-color: #55423d !important;
}

/* Search Box Styling (FIXED) */
.search-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

/* Wrapper baru untuk mengunci tinggi area input */
.search-input-group {
  position: relative;
  flex-grow: 1;
  height: 45px; /* KUNCI TINGGI AGAR ICON STABIL */
}

.search-input-group input {
  width: 100%;
  height: 100%; /* Ikuti tinggi wrapper (45px) */
  padding-left: 45px; /* Ruang untuk icon */
  border-radius: 25px;
  border: 1px solid #55423d;
  font-size: 1rem;
}

.search-input-group input:focus {
  border-color: #55423d;
  box-shadow: 0 0 0 0.25rem rgba(85, 66, 61, 0.25);
}

.search-input-group .fa-search {
  position: absolute;
  left: 18px; /* Jarak dari kiri */
  top: 50%;   /* Titik tengah vertikal */
  transform: translateY(-50%); /* Geser icon agar benar-benar di tengah */
  color: #55423d;
  pointer-events: none;
  font-size: 16px;
  z-index: 5; /* Pastikan icon di atas input */
  line-height: 1; /* Mencegah font inherit line-height yang aneh */
}

/* Responsif untuk HP */
@media (max-width: 576px) {
  .search-input-group .fa-search {
    font-size: 14px;
    left: 15px;
  }
  
  .search-input-group input {
    padding-left: 38px; /* Sesuaikan padding di HP */
    font-size: 0.9rem;
  }
}


/* CSS Promo  */
/* Overlay Background */
.promo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Box Promo */
.promo-box {
  background: #f5f4f1;
  width: 90%;
  max-width: 380px;
  padding: 20px;
  text-align: center;
  border-radius: 25px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.5s ease;
}

/* Judul */
.promo-title {
  margin-bottom: 10px;
  color: #55423d;
}

/* Deskripsi */
.promo-desc {
  font-size: 15px;
}

/* Gambar Promo */
.promo-img {
  width: 100%;
  border-radius: 10px;
  margin: 12px 0;
}

/* Tombol */
.promo-btn {
  background: #55423d;
  border: none;
  padding: 4px 20px;
  color: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

/* Animasi Card */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card-anim {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Styling Lazy Loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

img.loaded {
  opacity: 1;
}

/* --- 1. PAGINATION STYLING --- */
.pagination .page-link {
  color: #55423d;
  border: 1px solid #55423d;
  margin: 0 4px;
  border-radius: 25px;
  background-color: #f5f4f1;
  transition: all 0.3s ease;
}

/* Hover Pagination jadi Coklat */
.pagination .page-link:hover {
  background-color: #55423d !important;
  color: white !important;
  border-color: #55423d;
}

.pagination .page-item.active .page-link {
  background-color: #55423d;
  border-color: #55423d;
  color: #f5f4f1;
}

.pagination .page-item.disabled .page-link {
  color: #ccc;
  border-color: #dee2e6;
  background-color: #f8f9fa;
}

.btn-outline-brown {
  color: #55423d;
  border: 1px solid #55423d;
  background-color: transparent;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.3s ease-in-out;
}

.btn-outline-brown:hover {
  background-color: #55423d;
  color: white;
  box-shadow: 0 4px 8px rgba(93, 64, 55, 0.3);
  transform: translateY(-1px);
}
