/* ==========================================================================
   LINK BERKAH – Halaman Berita / Pengumuman / Event
   ========================================================================== */

.inf-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-bottom: 18px; padding: 22px 20px;
  color: #fff; border-radius: var(--radius-card);
  background: linear-gradient(125deg, #047857 0%, #059669 45%, #0d9488 100%);
  box-shadow: 0 18px 32px -20px rgba(4, 120, 87, .85);
}
.inf-hero::before, .inf-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.inf-hero::before { width: 220px; height: 220px; right: -70px; top: -100px; background: radial-gradient(circle, rgba(255, 255, 255, .24), transparent 68%); }
.inf-hero::after { width: 190px; height: 190px; right: 12%; bottom: -150px; border: 26px solid rgba(245, 179, 1, .2); }
.inf-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; padding: 5px 12px;
  border-radius: 999px; background: rgba(255, 255, 255, .16);
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.inf-eyebrow i { color: #fcd34d; }
.inf-hero h1 {
  margin: 0; font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.55rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
}
.inf-hero p { margin: 8px 0 0; font-size: .86rem; line-height: 1.5; color: #d1fae5; }

.inf-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 0 0 18px; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card);
}
.inf-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 10px; border-radius: 12px;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: .82rem; font-weight: 600; color: #64748b; text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.inf-tab:hover { background: var(--em-50); color: var(--em-700); }
.inf-tab.is-on { background: linear-gradient(120deg, var(--em-500), var(--teal-600)); color: #fff; box-shadow: 0 10px 18px -12px rgba(5, 150, 105, .9); }
.inf-tab i { font-size: .78rem; }

.inf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.inf-card {
  display: flex; flex-direction: column; overflow: hidden; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); color: inherit; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.inf-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -22px rgba(5, 150, 105, .5); }
.inf-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.inf-figure { aspect-ratio: 16 / 10; overflow: hidden; background: var(--em-50); }
.inf-grid-portrait { grid-template-columns: repeat(2, 1fr); }
.inf-card.is-portrait .inf-figure { aspect-ratio: 3 / 4; }
.inf-card.is-portrait .inf-body { padding: 10px 12px 12px; }
.inf-card.is-portrait .inf-body h2 { font-size: .82rem; -webkit-line-clamp: 2; }
.inf-card.is-portrait .inf-meta { border-top: 0; padding-top: 6px; }
.inf-figure img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.inf-card:hover .inf-figure img { transform: scale(1.045); }
.inf-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.inf-body h2 {
  margin: 0 0 6px; font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: .92rem; font-weight: 700; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.inf-card:hover .inf-body h2 { color: var(--em-700); }
.inf-body p {
  flex: 1; margin: 0 0 10px; font-size: .78rem; line-height: 1.55; color: #64748b;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.inf-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 10px; border-top: 1px solid var(--line);
  font-size: .72rem; font-weight: 600; color: var(--muted);
}
.inf-meta time { display: inline-flex; align-items: center; gap: 6px; }
.inf-more { display: inline-flex; align-items: center; gap: 4px; color: var(--em-600); }
.inf-card:hover .inf-more { color: var(--em-700); }

.inf-empty { padding: 36px 20px; text-align: center; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.inf-empty i { font-size: 2.4rem; color: var(--em-500); margin-bottom: 10px; }
.inf-empty p { margin: 0; font-weight: 600; color: var(--muted); }

.inf-list { display: flex; flex-direction: column; gap: 12px; }
.inf-row {
  display: flex; gap: 14px; align-items: stretch;
  padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-card); color: inherit; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.inf-row:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -22px rgba(5, 150, 105, .5); }
.inf-row-fig {
  flex: none; width: 96px; height: 96px; overflow: hidden; border-radius: 14px; background: var(--em-50);
}
.inf-row-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.inf-row-body { display: flex; flex-direction: column; min-width: 0; flex: 1; padding: 2px 4px 0 0; }
.inf-row-body h2 {
  margin: 0 0 6px; font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem; font-weight: 800; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.inf-row:hover .inf-row-body h2 { color: var(--em-700); }
.inf-row-body p {
  flex: 1; margin: 0 0 8px; font-size: .82rem; line-height: 1.55; color: #64748b;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.inf-row .inf-meta { padding-top: 8px; margin-top: auto; }

.inf-pager { display: flex; justify-content: center; margin-top: 22px; }
.inf-pager .flex { gap: 8px; flex-wrap: wrap; }
.inf-pager a, .inf-pager span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
  border-radius: 12px; font-size: .82rem; font-weight: 600; text-decoration: none;
}
.inf-pager a { background: #fff; color: var(--em-700); border: 1px solid var(--em-200); }
.inf-pager a:hover { background: var(--em-600); color: #fff; border-color: var(--em-600); }
.inf-pager span { color: #94a3b8; }

@media (min-width: 640px) {
  .inf-body { padding: 16px 18px 18px; }
  .inf-body h2 { font-size: 1.05rem; }
  .inf-body p { font-size: .85rem; }
  .inf-grid { gap: 16px; }
  .inf-row { gap: 18px; padding: 14px; }
  .inf-row-fig { width: 140px; height: 110px; }
  .inf-row-body h2 { font-size: 1.08rem; }
  .inf-row-body p { font-size: .88rem; -webkit-line-clamp: 3; }
}

@media (min-width: 1024px) {
  .inf-hero { padding: 36px 40px; margin-bottom: 24px; }
  .inf-hero h1 { font-size: 2.1rem; }
  .inf-hero p { font-size: .95rem; white-space: nowrap; }
  .inf-tabs { display: flex; gap: 10px; padding: 8px; margin-bottom: 26px; border-radius: 18px; }
  .inf-tab { min-width: 160px; min-height: 46px; font-size: .9rem; }
  .inf-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .inf-grid-portrait { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .inf-body h2 { font-size: 1.08rem; }
  .inf-card.is-portrait .inf-body h2 { font-size: .88rem; }
  .inf-list { gap: 14px; }
  .inf-row { padding: 16px; }
  .inf-row-fig { width: 180px; height: 128px; border-radius: 16px; }
  .inf-row-body h2 { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .inf-card, .inf-figure img, .inf-tab { transition: none; }
}
