/* ============================================================
   kegiatan.css - News Listing Page
   ============================================================ */

.page-hero {
  padding: 140px 0 64px;
  background: linear-gradient(135deg, #071525 0%, #0d2137 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(200, 160, 64, .12) 0%, transparent 60%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255, 255, 255, .68);
  font-size: 1rem;
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .52);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, .52);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb i {
  font-size: .6rem;
}

.page-hero-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.page-hero-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), #ffd166);
  color: var(--navy-dark);
  box-shadow: 0 18px 34px rgba(240, 180, 41, 0.26);
  font-size: 1.35rem;
}

.filter-bar {
  background: transparent;
  padding: 28px 0 18px;
  border-bottom: 1px solid rgba(13, 33, 55, .08);
}

.filter-shell {
  background:
    radial-gradient(circle at top left, rgba(140, 199, 240, 0.14), transparent 28%),
    linear-gradient(160deg, rgba(255,255,255,0.98) 0%, rgba(226,239,249,0.98) 100%);
  border: 1px solid rgba(13, 33, 55, .08);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(12, 30, 53, .08);
}

.filter-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.filter-copy {
  max-width: 700px;
}

.filter-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(200, 160, 64, .12);
  color: #9f7b1d;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.filter-copy h2 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  color: var(--navy);
  margin-bottom: 8px;
}

.filter-copy p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.filter-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.filter-pill {
  position: relative;
  overflow: hidden;
  min-width: 126px;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(28, 107, 178, .34);
  background: linear-gradient(135deg, #1c6bb2 0%, #327fc4 100%);
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .28s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease, color .28s ease;
  box-shadow: 0 10px 20px rgba(28, 107, 178, .24);
}
.filter-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.32) 45%, transparent 100%);
  transform: translateX(-130%);
  transition: transform .5s ease;
}

.filter-pill:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--gold);
  color: var(--dark);
  border-color: rgba(240, 180, 41, .5);
  box-shadow: 0 14px 26px rgba(216, 157, 16, .3);
}
.filter-pill:hover::after {
  transform: translateX(130%);
}

.filter-pill.active:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: rgba(240, 180, 41, .5);
  box-shadow: 0 14px 26px rgba(216, 157, 16, .3);
}

.filter-pill.active {
  border-color: rgba(13, 49, 84, .22);
  background: linear-gradient(135deg, #165792 0%, #1c6bb2 100%);
  color: var(--white);
  box-shadow: 0 14px 26px rgba(18, 73, 121, .24);
}

.filter-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-btn {
  position: relative;
  overflow: hidden;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  border: 1.5px solid rgba(28, 107, 178, .34);
  color: var(--white);
  background: linear-gradient(135deg, #1c6bb2 0%, #327fc4 100%);
  cursor: pointer;
  transition: transform .28s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease, color .28s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(28, 107, 178, .24);
}
.filter-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.3) 45%, transparent 100%);
  transform: translateX(-130%);
  transition: transform .5s ease;
}

.filter-btn span {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  color: inherit;
  font-size: .73rem;
}

.filter-btn:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--gold);
  color: var(--dark);
  border-color: rgba(240, 180, 41, .5);
  box-shadow: 0 14px 26px rgba(216, 157, 16, .3);
}
.filter-btn:hover::after {
  transform: translateX(130%);
}

.filter-btn.active:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: rgba(240, 180, 41, .5);
  box-shadow: 0 14px 26px rgba(216, 157, 16, .3);
}
.filter-btn.active {
  border-color: rgba(13, 49, 84, .22);
  background: linear-gradient(135deg, #165792 0%, #1c6bb2 100%);
  color: var(--white);
  box-shadow: 0 14px 24px rgba(18, 73, 121, .24);
}

.filter-btn:hover span {
  background: rgba(255, 255, 255, .36);
}

.filter-btn.active span {
  background: rgba(255, 255, 255, .24);
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) auto auto;
  gap: 14px;
  align-items: center;
}

.modern-search,
.filter-select-wrap {
  position: relative;
}

.modern-search i,
.filter-select-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #71849a;
  font-size: .92rem;
  z-index: 2;
}

.modern-search input,
.filter-select-wrap select {
  width: 100%;
  height: 54px;
  border: 1.5px solid rgba(13, 33, 55, .1);
  border-radius: 18px;
  background: #fbfcff;
  padding: 0 18px 0 46px;
  font-size: .92rem;
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  outline: none;
  transition: var(--transition);
}

.modern-search input:focus,
.filter-select-wrap select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 160, 64, .12);
  background: #fff;
}

.filter-select-wrap select {
  appearance: none;
  cursor: pointer;
}

.filter-submit,
.filter-reset {
  position: relative;
  overflow: hidden;
  height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  font-size: .9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .28s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease, color .28s ease;
}
.filter-submit::after,
.filter-reset::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.3) 45%, transparent 100%);
  transform: translateX(-130%);
  transition: transform .5s ease;
}

.filter-submit {
  border: 1px solid rgba(28, 107, 178, .34);
  background: linear-gradient(135deg, #1c6bb2 0%, #327fc4 100%);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(28, 107, 178, .24);
}

.filter-submit:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--gold);
  color: var(--dark);
  border-color: rgba(240, 180, 41, .5);
  box-shadow: 0 16px 26px rgba(216, 157, 16, .28);
}
.filter-submit:hover::after {
  transform: translateX(130%);
}

.filter-reset {
  border: 1px solid rgba(28, 107, 178, .34);
  background: linear-gradient(135deg, #1c6bb2 0%, #327fc4 100%);
  color: var(--white);
  box-shadow: 0 14px 24px rgba(28, 107, 178, .24);
}

.filter-reset:hover {
  transform: translateY(-3px) scale(1.02);
  color: var(--dark);
  background: var(--gold);
  border-color: rgba(240, 180, 41, .5);
  box-shadow: 0 16px 26px rgba(216, 157, 16, .28);
}
.filter-reset:hover::after {
  transform: translateX(130%);
}

.news-content {
  padding: 56px 0 60px;
  background:
    radial-gradient(circle at top left, rgba(240, 180, 41, 0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(140, 199, 240, 0.20), transparent 28%),
    linear-gradient(180deg, #eef6fc 0%, #dceaf6 100%);
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.results-summary {
  color: var(--muted);
  line-height: 1.7;
}

.results-summary strong,
.results-summary b {
  color: var(--navy);
}

.results-mode {
  color: #667b91;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
}

.news-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-list-grid > .news-card:first-child {
  grid-column: auto !important;
  display: block !important;
}

.news-list-grid > .news-card:first-child .news-card-img {
  height: 220px !important;
  min-height: 0 !important;
}

.news-list-grid > .news-card:first-child .news-card-body h3 a {
  font-size: 1.08rem !important;
}

.news-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: transform .34s cubic-bezier(.2,.8,.2,1), box-shadow .34s cubic-bezier(.2,.8,.2,1), border-color .28s ease;
}

.news-card-trending-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a3d, #ffcb57);
  color: #1c1300;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 14px 26px rgba(255, 138, 61, 0.22);
  z-index: 3;
}

.news-card.is-trending {
  border-color: rgba(255, 157, 67, 0.22);
}

.news-card.is-trending::after {
  border-color: rgba(255, 157, 67, 0.22);
}

.news-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(28, 107, 178, 0.22);
  opacity: 0;
  transform: scale(.98);
  transition: opacity .28s ease, transform .28s ease, border-color .28s ease;
  pointer-events: none;
}

.news-card:hover {
  transform: translateY(-8px) translateZ(22px) rotateX(1.8deg);
  border-color: rgba(28, 107, 178, 0.28);
  box-shadow: 0 28px 48px rgba(10, 37, 64, 0.22);
}

.news-card:hover::after {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(28, 107, 178, 0.42);
}

.news-card.is-trending:hover::after {
  border-color: rgba(255, 157, 67, 0.38);
}

.news-card-img {
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  position: relative;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.07);
}

.news-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .2);
  font-size: 2.5rem;
}

.news-card-body {
  padding: 22px;
  transition: transform .3s ease;
}

.news-card:hover .news-card-body {
  transform: translateY(-2px);
}

.news-card-cat {
  margin-bottom: 12px;
}

.news-card h3 a {
  font-size: 1.08rem;
  color: var(--navy);
  display: block;
  margin-bottom: 12px;
  line-height: 1.5;
}

.news-card h3 a:hover {
  color: var(--gold);
}

.news-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .77rem;
  color: var(--muted);
}

.news-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  color: #1c6bb2;
  font-weight: 700;
  white-space: nowrap;
  transition: color .24s ease, transform .24s ease;
}

.read-more::after {
  content: '\f061';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .72rem;
  transition: transform .24s ease;
}

.read-more:hover {
  color: var(--gold);
  text-decoration: none;
  transform: translateX(2px);
}

.read-more:hover::after {
  transform: translateX(2px);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 56px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  position: relative;
  overflow: hidden;
  min-width: 52px;
  height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(28, 107, 178, .34);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .96rem;
  font-weight: 800;
  color: var(--white);
  transition: transform .28s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease, color .28s ease;
  background: linear-gradient(135deg, #1c6bb2 0%, #327fc4 100%);
  box-shadow: 0 12px 24px rgba(28, 107, 178, .24);
}
.pagination a::after,
.pagination span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.3) 45%, transparent 100%);
  transform: translateX(-130%);
  transition: transform .5s ease;
}

.pagination a:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: rgba(240, 180, 41, .5);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 28px rgba(216, 157, 16, .3);
}

.pagination a:hover::after {
  transform: translateX(130%);
}

.pagination .current {
  border-color: rgba(13, 49, 84, .22);
  background: linear-gradient(135deg, #165792 0%, #1c6bb2 100%);
  color: var(--white);
  box-shadow: 0 16px 26px rgba(18, 73, 121, .24);
  animation: filterPop .34s ease;
}

.pagination .current::after {
  transform: translateX(0);
}

.pagination a i {
  font-size: .9rem;
}

@keyframes filterPop {
  0% { transform: scale(.92); }
  100% { transform: scale(1); }
}

.empty-box {
  grid-column: 1 / -1;
  padding: 42px;
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--muted);
}

.empty-box i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.section-empty-card {
  position: relative;
  overflow: hidden;
  max-width: 760px;
  margin: 24px auto 0;
  padding: 44px 36px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(240, 180, 41, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(15, 76, 129, 0.16), transparent 28%),
    linear-gradient(160deg, #f8fbff 0%, #e6f0f8 100%);
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: 0 24px 46px rgba(10, 37, 64, 0.12);
}

.section-empty-card::before,
.section-empty-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.section-empty-card::before {
  top: 20px;
  right: 22px;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.56), rgba(255,255,255,0));
  opacity: .8;
}

.section-empty-card::after {
  left: 28px;
  bottom: 24px;
  width: 140px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 76, 129, .12), transparent 72%);
  filter: blur(10px);
}

.section-empty-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15, 76, 129, 0.08);
  color: #8b6516;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-empty-icon {
  position: relative;
  z-index: 1;
  width: 108px;
  height: 108px;
  margin: 4px auto 22px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.88), rgba(255,255,255,.18)),
    linear-gradient(145deg, rgba(140, 199, 240, .24), rgba(240, 180, 41, .22));
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 20px 34px rgba(15, 76, 129, 0.12);
}

.section-empty-icon i {
  margin: 0;
  font-size: 2.65rem;
  color: var(--secondary);
}

.section-empty-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  color: var(--dark);
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.section-empty-card p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  color: #4f6478;
  line-height: 1.9;
}

.berita-empty-state {
  background:
    radial-gradient(circle at top right, rgba(140, 199, 240, 0.22), transparent 26%),
    radial-gradient(circle at bottom left, rgba(240, 180, 41, 0.14), transparent 24%),
    linear-gradient(160deg, #f7fbff 0%, #e4eff8 100%);
}

@media (max-width: 1100px) {
  .filter-top,
  .results-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-form {
    grid-template-columns: 1fr 1fr;
  }

  .filter-submit,
  .filter-reset {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .news-list-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-list-grid > .news-card:first-child {
    grid-column: auto !important;
  }

  .section-empty-card {
    padding: 38px 26px;
    border-radius: 28px;
  }

  .section-empty-icon {
    width: 96px;
    height: 96px;
    border-radius: 26px;
  }
}

@media (max-width: 768px) {
  .filter-shell {
    padding: 20px;
    border-radius: 22px;
  }

  .filter-sort,
  .filter-tag-row {
    width: 100%;
  }

  .filter-pill {
    flex: 1;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .page-hero-title {
    gap: 12px;
  }

  .page-hero-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .news-list-grid {
    grid-template-columns: 1fr;
  }

  .news-card-img,
  .news-list-grid > .news-card:first-child .news-card-img {
    height: 200px !important;
  }

  .news-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-empty-card {
    padding: 32px 20px;
    border-radius: 24px;
  }

  .section-empty-badge {
    margin-bottom: 14px;
    font-size: .72rem;
  }

  .section-empty-icon {
    width: 84px;
    height: 84px;
    margin-bottom: 18px;
    border-radius: 22px;
  }

  .section-empty-icon i {
    font-size: 2.15rem;
  }

  .section-empty-card h3 {
    font-size: 1.35rem;
  }

  .section-empty-card p {
    font-size: .92rem;
  }
}
