:root {
  --gradient-green-tosca: linear-gradient(to right, #27ae60, #1abc9c);
}

.berita-section {
  background: #fafafa;
  padding-bottom: 3rem;
}

.berita-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  cursor: pointer;
}

.berita-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.berita-img-wrapper {
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.berita-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.berita-card:hover .berita-img-wrapper img {
  transform: scale(1.05);
}

.berita-content {
  padding: 1rem 1.25rem;
}

.berita-judul {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.berita-tanggal {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

a.btn-outline-success {
  font-weight: 600;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a.btn-outline-success:hover {
  background-color: #16a085;
  color: white;
  border-color: #16a085;
}


/* Breadcrumb container styling */
.breadcrumb-container {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* Breadcrumb list styling */
.custom-breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 0.95rem;
}

/* Link item style */
.custom-breadcrumb .breadcrumb-item a {
  color: #1abc9c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.custom-breadcrumb .breadcrumb-item a:hover {
  color: #138f75;
  text-decoration: underline;
}

/* Active item style */
.custom-breadcrumb .breadcrumb-item.active {
  color: #333;
  font-weight: 600;
}

/* Hover & focus pada seluruh select */
select.form-select:hover,
select.form-select:focus {
  background-color: #1abc9c;    /* tosca terang */
  border-color:    #159d8e;     /* tosca gelap */
  color:           #ffffff;     /* teks putih */
  outline:         none;
  box-shadow:      0 0 8px rgba(26, 188, 156, 0.6);
}

/* Styling opsi dropdown */
select.form-select option {
  background-color: #ffffff; /* latar opsi putih */
  color:            #333333; /* teks gelap */
}

/* Hover pada opsi (catatan: di beberapa browser Windows tidak selalu didukung) */
select.form-select option:hover {
  background-color: #1abc9c; /* tosca terang */
  color:            #ffffff; /* teks putih */
}

/* Opsi terpilih */
select.form-select option:checked {
  background-color: #16a085; /* tosca gelap */
  color:            #ffffff;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: linear-gradient(135deg, #27ae60, #1abc9c);
  color: #fff;
}
/* Container utama Choices */
.choices__inner {
  width: 300px;      /* atur lebar form field */
  max-width: 100%;   /* responsif */
}

/* Lebarkan dropdown list */
.choices__list--dropdown {
  width: 300px !important;  /* samakan lebar dengan form field */
}

.kategori-link {
  color: #16a085;
  transition: color 0.3s ease, font-weight 0.3s ease;
}
.kategori-link:hover {
  color: #159d8e;
}
.kategori-link.fw-bold {
  color: #117a65;
}

/* CSS untuk .btn-tosca-gradient */
.btn-tosca-gradient {
  display: inline-block;
  background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn-tosca-gradient,
.btn-tosca-gradient:link,
.btn-tosca-gradient:visited,
.btn-tosca-gradient:hover,
.btn-tosca-gradient:focus,
.btn-tosca-gradient:active {
  color: #fff !important;
  text-decoration: none;
}

.btn-tosca-gradient:hover,
.btn-tosca-gradient:focus {
  background: linear-gradient(135deg, #138f75 0%, #159d8e 100%);
  box-shadow: 0 6px 20px rgba(22, 160, 133, 0.4);
  color: #fff;
  outline: none;
}

.btn-tosca-gradient:active {
  background: linear-gradient(135deg, #117a65 0%, #12876f 100%);
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.2);
}


/* Custom pagination */
.pagination-custom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-custom li {
  list-style: none;
}

.pagination-custom a,
.pagination-custom span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  text-decoration: none;
  border: none;
  font-size: 1rem;
  transition: background 0.3s ease;
}

/* Prev/Next buttons */
.pagination-custom a {
  background: #f1fdfb;
  color: #333;
}
.pagination-custom a:hover {
  background: #e0f2f1;
}

/* Active page */
.pagination-custom span {
  background: #27ae60;
  color: #fff;
  font-weight: 600;
}

/* Disabled state */
.pagination-custom .disabled span {
  opacity: 0.5;
}
.pagination-custom .disabled span i {
  color: #333;
}

/* Animasi umum untuk elemen yang masuk ke viewport */
.animate-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--delay, 0ms);
}

.animate-slide-left.in-view {
  opacity: 1;
  transform: translateX(0);
}
