:root {
  --primary: #3a4ee5;
  --primary-light: #eef0fd;
  --primary-dark: #2a3bc0;
  --primary-muted: rgba(58,78,229,0.08);
  --text-main: #1a1d2e;
  --text-muted: #6b7280;
  --border: #e5e7f0;
  --radius: 14px;
  --bg: #f7f8fc;
}

/* ===== HERO ===== */
.info-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #6c7ff0 100%);
  padding: 52px 0 40px;
  position: relative;
  overflow: hidden;
  color: white;
}
.info-hero::before {
  content: ''; position: absolute;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -100px; right: -80px; pointer-events: none;
}
.info-hero::after {
  content: ''; position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -50px; left: 6%; pointer-events: none;
}
.info-hero .badge-pill {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.22);
  color: white; border-radius: 50px;
  padding: 5px 15px; font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  backdrop-filter: blur(8px); margin-bottom: 14px;
}
.info-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px;
}
.info-hero p { opacity: .85; font-size: .95rem; margin-bottom: 0; }

/* ===== FILTER BAR ===== */
.info-filter-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 99;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.info-filter-inner {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 0; overflow-x: auto; scrollbar-width: none;
}
.info-filter-inner::-webkit-scrollbar { display: none; }

.info-filter-btn {
  border: 1.5px solid var(--border); background: white;
  color: var(--text-muted); border-radius: 50px;
  padding: 7px 18px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all .18s ease;
  display: inline-flex; align-items: center; gap: 7px;
}
.info-filter-btn:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-light);
}
.info-filter-btn.active {
  background: var(--primary); border-color: var(--primary); color: white;
}
.info-filter-btn .cnt {
  border-radius: 50px; padding: 1px 8px; font-size: 0.71rem; font-weight: 700;
  background: rgba(255,255,255,0.25);
}
.info-filter-btn:not(.active) .cnt {
  background: var(--primary-muted); color: var(--primary);
}

/* ===== MAIN ===== */
.info-main { background: var(--bg); padding: 32px 0 64px; min-height: 55vh; }

/* ===== CARD LIST ===== */
.info-list { display: flex; flex-direction: column; gap: 14px; }

.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  animation: fadeUp .3s ease both;
}
.info-card:nth-child(1) { animation-delay: .03s; }
.info-card:nth-child(2) { animation-delay: .07s; }
.info-card:nth-child(3) { animation-delay: .11s; }
.info-card:nth-child(4) { animation-delay: .15s; }
.info-card:nth-child(n+5) { animation-delay: .19s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.info-card:hover {
  box-shadow: 0 6px 28px rgba(58,78,229,0.10);
  transform: translateY(-1px);
}
.info-card.pinned { border-left: 3px solid var(--primary); }

/* --- Header (clickable) --- */
.info-card-header {
  padding: 20px 22px;
  display: flex; align-items: flex-start; gap: 14px;
  cursor: pointer; user-select: none;
}

.info-type-line {
  width: 3px; border-radius: 4px; flex-shrink: 0;
  align-self: stretch; min-height: 44px;
}
.info-type-line.transaksi { background: var(--primary); }
.info-type-line.update    { background: #8b5cf6; }
.info-type-line.umum      { background: #10b981; }

.info-card-meta { flex: 1; min-width: 0; }

.info-card-top {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 6px;
}

.info-tag {
  font-size: 0.69rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  border-radius: 50px; padding: 2px 10px;
  display: inline-flex; align-items: center; gap: 4px;
}
.info-tag.transaksi { background: var(--primary-muted); color: var(--primary); }
.info-tag.update    { background: #f5f3ff; color: #6d28d9; }
.info-tag.umum      { background: #f0fdf4; color: #065f46; }

.info-new-badge {
  background: #fef2f2; color: #b91c1c;
  font-size: 0.67rem; font-weight: 700;
  border-radius: 50px; padding: 2px 9px;
  text-transform: uppercase; letter-spacing: .06em;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.55} }

.info-pin-badge {
  font-size: 0.69rem; color: var(--primary);
  font-weight: 700; display: flex; align-items: center; gap: 3px;
}

.info-card-date {
  font-size: 0.77rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px; margin-left: auto;
  flex-shrink: 0;
}

.info-card-title {
  font-size: 1rem; font-weight: 700;
  color: var(--text-main); margin-bottom: 5px;
  line-height: 1.45; letter-spacing: -0.01em;
}

.info-card-preview {
  font-size: 0.86rem; color: var(--text-muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.info-card.expanded .info-card-preview { display: none; }

.info-chevron {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--border); background: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--text-muted); font-size: .8rem;
  transition: all .25s; margin-top: 2px;
}
.info-card:hover .info-chevron {
  border-color: var(--primary); color: var(--primary); background: var(--primary-light);
}
.info-card.expanded .info-chevron {
  background: var(--primary); border-color: var(--primary);
  color: white; transform: rotate(180deg);
}

/* --- Body (accordion) --- */
.info-card-body {
  max-height: 0; overflow: hidden;
  transition: max-height .38s ease, padding .25s ease;
  padding: 0 22px 0 39px;
  border-top: 0px solid var(--border);
}
.info-card.expanded .info-card-body {
  max-height: 1000px;
  padding: 20px 22px 22px 39px;
  border-top: 1px solid var(--border);
}

.info-card-body p {
  font-size: 0.9rem; color: #374151;
  line-height: 1.8; margin-bottom: 10px;
}
.info-card-body p:last-of-type { margin-bottom: 0; }

.info-card-body ul {
  padding-left: 18px; margin: 8px 0 10px;
  display: flex; flex-direction: column; gap: 5px;
}
.info-card-body ul li { font-size: .88rem; color: #374151; line-height: 1.65; }

.info-box {
  border-radius: 0 8px 8px 0;
  padding: 12px 16px; font-size: .875rem;
  display: flex; gap: 10px; align-items: flex-start; margin: 14px 0;
}
.info-box.blue  { background: var(--primary-muted); border-left: 3px solid var(--primary); color: var(--primary-dark); }
.info-box.blue  i { color: var(--primary); }
.info-box.amber { background: #fff7ed; border-left: 3px solid #f59e0b; color: #92400e; }
.info-box.amber i { color: #f59e0b; }
.info-box.purple{ background: #f5f3ff; border-left: 3px solid #8b5cf6; color: #4c1d95; }
.info-box.purple i { color: #8b5cf6; }
.info-box i { margin-top: 2px; flex-shrink: 0; }

.info-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding-top: 14px; border-top: 1px solid var(--border); margin-top: 14px;
}
.info-card-footer a {
  font-size: .82rem; font-weight: 600;
  color: var(--primary); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.info-card-footer a:hover { color: var(--primary-dark); }
.info-card-footer small { font-size: .77rem; color: var(--text-muted); }

.info-stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.info-stat {
  background: var(--bg); border-radius: 9px;
  padding: 12px 6px; text-align: center;
}
.info-stat .num { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 3px; }
.info-stat .lbl { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

.info-recent-list { display: flex; flex-direction: column; gap: 2px; }
.info-recent-item {
  display: flex; gap: 10px; padding: 9px 7px;
  border-radius: 9px; cursor: pointer; text-decoration: none;
  transition: background .15s;
}
.info-recent-item:hover { background: var(--primary-muted); }

.info-recent-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.info-recent-dot.transaksi { background: var(--primary); }
.info-recent-dot.update    { background: #8b5cf6; }
.info-recent-dot.umum      { background: #10b981; }

.info-recent-title {
  font-size: .83rem; font-weight: 600; color: var(--text-main);
  line-height: 1.4; margin-bottom: 2px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.info-recent-date { font-size: .74rem; color: var(--text-muted); }

/* ===== EMPTY STATE ===== */
.info-empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
  display: none;
}
.info-empty i { font-size: 2.4rem; opacity: .2; margin-bottom: 10px; display: block; }
.info-empty p { font-size: .9rem; margin: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .info-hero  { padding: 36px 0 30px; }
  .info-card-header { padding: 15px 16px; }
  .info-card.expanded .info-card-body { padding: 16px; }
  .info-card-title { font-size: .94rem; }
  .info-card-date { display: none; }
}
@media (max-width: 480px) {
  .info-chevron { display: none; }
  .info-filter-btn .cnt { display: none; }
}