/* ===== BERITA & DETAIL CSS ===== */
:root {
  --navy: #0a1628;
  --navy-mid: #0f2240;
  --navy-light: #1a3a5c;
  --gold: #c8a84b;
  --gold-light: #e8c96a;
  --gold-pale: #f5e6b3;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Plus Jakarta Sans', sans-serif; color: var(--text-primary); background: var(--gray-50); line-height: 1.6; overflow-x: hidden; }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 5%; height: 72px; display: flex; align-items: center; justify-content: space-between; background: rgba(10,22,40,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(200,168,75,0.18); transition: all 0.3s ease; }
.navbar.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.3); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.nav-logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-title { font-size: 15px; font-weight: 800; color: var(--white); letter-spacing: 0.3px; }
.nav-logo-sub { font-size: 11px; font-weight: 500; color: var(--gold-light); letter-spacing: 0.5px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { display: block; padding: 8px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); background: rgba(200,168,75,0.12); font-weight: 600; }
.nav-cta { padding: 9px 20px !important; background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important; color: var(--navy) !important; font-weight: 700 !important; border-radius: var(--radius-sm) !important; box-shadow: 0 4px 12px rgba(200,168,75,0.3) !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,168,75,0.45) !important; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; background: none; border: none; white-space: nowrap; }
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: var(--gold-light); background: rgba(200,168,75,0.1); }
.nav-dropdown-arrow { width: 14px; height: 14px; transition: transform 0.25s ease; flex-shrink: 0; }
.nav-dropdown.open .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px; background: rgba(10,22,40,0.98); backdrop-filter: blur(20px); border: 1px solid rgba(200,168,75,0.2); border-radius: var(--radius-md); padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,0.4); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; z-index: 100; }
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: rgba(255,255,255,0.75) !important; text-decoration: none; font-size: 13.5px; font-weight: 500; transition: all 0.18s ease; background: none !important; }
.nav-dropdown-menu a:hover { color: var(--gold-light) !important; background: rgba(200,168,75,0.1) !important; }
.dd-icon { width: 30px; height: 30px; border-radius: 7px; background: rgba(200,168,75,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.nav-dropdown-menu a:hover .dd-icon { background: rgba(200,168,75,0.22); }
.nav-dropdown-divider { height: 1px; background: rgba(200,168,75,0.12); margin: 4px 6px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s ease; }

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: rgba(10,22,40,0.98); padding: 20px; border-top: 1px solid rgba(200,168,75,0.15); gap: 4px; }
  .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: rgba(200,168,75,0.05); border-radius: var(--radius-sm); padding: 4px 0 4px 12px; display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; flex-direction: column; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
}

/* ===== MAIN CONTENT & HERO ===== */
main { padding-top: 72px; min-height: 80vh; }

.berita-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  padding: 64px 5% 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(200,168,75,0.2);
}
.berita-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(200,168,75,0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(14,165,233,0.1) 0%, transparent 45%);
  pointer-events: none;
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb-sep { color: rgba(200,168,75,0.5); font-size: 11px; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(200,168,75,0.15); border: 1px solid rgba(200,168,75,0.35); padding: 6px 16px; border-radius: 100px; font-size: 12.5px; font-weight: 700; color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }

.berita-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 14px; }
.berita-hero h1 span { background: linear-gradient(135deg, var(--gold-light), #fff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { color: rgba(255,255,255,0.75); font-size: clamp(14px, 1.6vw, 16.5px); max-width: 720px; line-height: 1.7; }

/* ===== FILTER & SEARCH BAR ===== */
.filter-section {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 5%;
  position: sticky;
  top: 72px;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .filter-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.filter-tab:hover { background: var(--gray-200); color: var(--gray-800); }
.filter-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(10,22,40,0.2);
}
.search-box {
  position: relative;
  min-width: 280px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  font-size: 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  background: var(--gray-50);
  color: var(--gray-800);
  outline: none;
  transition: all 0.2s ease;
}
.search-input:focus {
  background: var(--white);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,168,75,0.2);
}

/* ===== BERITA GRID ===== */
.berita-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 5% 80px;
}
.berita-count {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
  font-weight: 500;
}
.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* Card item */
.berita-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.berita-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10,22,40,0.08);
  border-color: rgba(200,168,75,0.4);
}
.berita-card-header {
  height: 140px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}
.berita-card-header.has-image {
  padding: 0;
  height: 200px;
}
.berita-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.berita-card:hover .berita-card-cover {
  transform: scale(1.05);
}
.berita-card-header.has-image .berita-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.berita-card-header.has-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.2) 0%, rgba(10,22,40,0.6) 100%);
  z-index: 1;
}
.berita-card-header::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; width: 140px;
  background: radial-gradient(circle at 100% 50%, rgba(200,168,75,0.2), transparent 70%);
  pointer-events: none;
}
.berita-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 1px solid rgba(255,255,255,0.15);
}
.berita-badge {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Badges */
.badge-prestasi { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-kegiatan { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-pengumuman { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-ppdb { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }
.badge-akademik { background: #fce7f3; color: #9d174d; border: 1px solid #fbcfe8; }
.badge-default { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }

.berita-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.berita-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.berita-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.berita-card-title a {
  color: inherit;
  text-decoration: none;
}
.berita-card:hover .berita-card-title {
  color: var(--gold);
}
.berita-excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.berita-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.2s;
  margin-top: auto;
}
.berita-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.berita-card:hover .berita-link {
  color: var(--gold);
}
.berita-card:hover .berita-link svg {
  transform: translateX(4px);
}

/* Empty state */
.berita-empty {
  text-align: center;
  padding: 64px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--gray-300);
  margin: 32px 0;
}
.empty-icon { font-size: 48px; margin-bottom: 14px; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.empty-desc { color: var(--gray-500); font-size: 14px; margin-bottom: 20px; }
.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-reset:hover { background: var(--navy-light); }

/* ===== DETAIL PAGE STYLES ===== */
.detail-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 5% 80px;
}
.detail-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: 0 12px 40px rgba(10,22,40,0.06);
  overflow: hidden;
  margin-bottom: 48px;
}
.detail-header {
  padding: 40px 48px 24px;
  border-bottom: 1px solid var(--gray-100);
}
@media (max-width: 768px) {
  .detail-header { padding: 28px 20px 20px; }
}
.detail-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.detail-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 20px;
}
.detail-meta-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-500);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.meta-item svg { width: 15px; height: 15px; color: var(--gold); }

/* Detail Featured Image */
.detail-featured-image {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  position: relative;
  background: var(--navy);
  border-bottom: 1px solid var(--gray-200);
}
.detail-featured-image img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Detail banner graphic */
.detail-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 36px 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--white);
  border-bottom: 1px solid rgba(200,168,75,0.2);
}
@media (max-width: 768px) {
  .detail-banner { padding: 24px 20px; flex-direction: column; text-align: center; }
}
.banner-badge-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(200,168,75,0.18);
  border: 1px solid rgba(200,168,75,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}
.banner-text-title { font-size: 16px; font-weight: 700; color: var(--gold-light); margin-bottom: 4px; }
.banner-text-sub { font-size: 13.5px; color: rgba(255,255,255,0.7); }

/* Detail body */
.detail-body {
  padding: 40px 48px;
}
@media (max-width: 768px) {
  .detail-body { padding: 24px 20px; }
}
.detail-lead {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--navy-light);
  font-weight: 500;
  background: #f8fafc;
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 32px;
}
.detail-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray-700);
}
.detail-content p {
  margin-bottom: 22px;
}
.detail-content p:last-child {
  margin-bottom: 0;
}
.detail-content ul,
.detail-content ol {
  margin: 18px 0 24px 28px;
  padding-left: 8px;
  line-height: 1.8;
  color: var(--gray-800);
}
.detail-content ul {
  list-style-type: disc;
}
.detail-content ol {
  list-style-type: decimal;
}
.detail-content li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.detail-content strong {
  color: var(--navy);
  font-weight: 700;
}
.detail-content em {
  font-style: italic;
  color: var(--gray-700);
}

/* Detail actions & share */
.detail-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 48px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .detail-footer-actions { padding: 20px; flex-direction: column; align-items: stretch; }
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.btn-back:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}
.share-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
}
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.btn-share-wa {
  background: #25d366;
  color: var(--white);
}
.btn-share-wa:hover {
  background: #1ebc59;
}
.btn-copy {
  background: var(--white);
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-copy:hover {
  background: var(--gray-100);
}

/* Related articles */
.related-section {
  margin-top: 48px;
}
.related-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== FOOTER ===== */
.footer { background: var(--navy); border-top: 1px solid rgba(200,168,75,0.15); padding: 48px 5% 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-brand { margin-bottom: 32px; }
.footer-desc { margin-top: 14px; color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.7; max-width: 420px; }
.footer-bottom { border-top: 1px solid rgba(200,168,75,0.1); padding-top: 20px; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 13px; }
