/* ============================================================
   PT Nalar Manhaj Nusantara — Komponen tambahan
   (pagination berita, filter kategori, galeri, alert form)
   Gaya mengikuti identitas asli: navy & oranye.
   ============================================================ */

/* ============ PAGINATION ============ */
.pagination-wrap { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.page-info { font-size: 13px; color: var(--text-light); }
.page-info i { color: var(--orange); margin-right: 6px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pagination .page-num {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--gray-border);
  background: var(--white);
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 600;
  transition: all 0.25s ease;
  border-radius: 4px;
}
.pagination .page-num:hover { border-color: var(--orange); color: var(--orange); }
.pagination .page-num.current { background: var(--orange); border-color: var(--orange); color: var(--white); }
.pagination .page-ellipsis { color: var(--text-light); padding: 0 2px; }
.pagination .page-nav {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.25s ease;
}
.pagination a.page-nav:hover { background: var(--orange); }
.pagination .page-nav.disabled { background: var(--gray-bg); color: var(--text-light); cursor: not-allowed; }

/* ============ FILTER KATEGORI ============ */
.cat-filter {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin-bottom: 38px;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
  border-radius: 22px;
  transition: all 0.25s ease;
}
.cat-chip i { color: var(--orange); }
.cat-chip:hover { border-color: var(--orange); color: var(--orange); }
.cat-chip.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cat-chip.current i { color: var(--orange-light); }

/* ============ GALERI ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-border);
  background: var(--white);
  margin: 0;
  transition: all 0.3s ease;
}
.gallery-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }
.gallery-item img { width: 100%; height: 190px; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  font-size: 12.5px;
  color: var(--navy);
  font-weight: 600;
  padding: 10px 14px;
  font-family: 'Poppins', sans-serif;
}

/* ============ ALERT FORMULIR KONTAK ============ */
.form-alert {
  margin-top: 16px;
  padding: 14px 18px;
  font-size: 13.5px;
  border-left: 4px solid var(--orange);
  background: rgba(242, 163, 36, 0.08);
  color: var(--navy);
  border-radius: 4px;
}
.form-alert.error { border-left-color: #d9534f; background: rgba(217, 83, 79, 0.08); color: #8f2b28; }
.form-alert i { margin-right: 8px; color: var(--orange); }
.form-alert.error i { color: #d9534f; }

/* ============ LIST DALAM ARTIKEL (dari CMS) ============ */
.article ul:not(.dot-list) { margin: 0 0 16px 4px; display: grid; gap: 8px; }
.article ul:not(.dot-list) li { position: relative; padding-left: 22px; font-size: 14px; }
.article ul:not(.dot-list) li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute; left: 0; top: 1px;
  color: var(--orange);
  font-size: 13px;
}
.article h2 { font-size: 18px; font-weight: 700; margin: 26px 0 12px; }
.article h3 { font-size: 16px; font-weight: 700; margin: 22px 0 10px; }
.article h4 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.article img { border-radius: 4px; }
.article table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 13.5px; }
.article table th, .article table td { border: 1px solid var(--gray-border); padding: 10px 12px; text-align: left; }
.article table th { background: var(--gray-bg); color: var(--navy); }


@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .pagination { justify-content: center; }
}
