/* ============================================================
   STYLE-RED.CSS — Tema Merah-Biru-Putih (sinkron dengan style.css)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Tema Merah-Biru-Putih — primary merah, accent biru */
  --primary: #DC2626;
  --primary-light: #F87171;
  --primary-dark: #991B1B;
  --primary-soft: rgba(220, 38, 38, 0.08);
  --accent: #2563EB;
  --accent-2: #1D4ED8;
  --accent-3: #1E3A8A;
  --accent-4: #B91C1C;
  --accent-5: #3B82F6;
  --navy-dark: #0f172a;
  --navy-soft: #B91C1C;
  --hero-mesh: linear-gradient(120deg, #fee2e2 0%, #ffffff 34%, #ffffff 66%, #dbeafe 100%);
  --headline-mesh: linear-gradient(92deg, #B91C1C 0%, #DC2626 26%, #64748b 50%, #1D4ED8 74%, #1E3A8A 100%);

  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.75);

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;

  --border-color: #e2e8f0;
  --border-glow: rgba(220, 38, 38, 0.22);

  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.1), 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 40px -12px rgba(220, 38, 38, 0.18), 0 8px 16px -6px rgba(37, 99, 235, 0.08);
  --shadow-glow: 0 0 0 1px color-mix(in srgb, var(--primary) 14%, transparent), 0 12px 32px -8px color-mix(in srgb, var(--primary) 16%, transparent);
  --radius-sm: 8px;
  --bg-elevated: #ffffff;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;

  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Custom scrollbar for a more premium feel */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary-light), var(--primary)); border-radius: 100px; border: 2px solid var(--bg-main); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
html { scrollbar-color: var(--primary-light) var(--bg-main); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ambient Mesh Glows */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: blobPulse 12s infinite alternate ease-in-out;
}
.blob-1 {
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.5) 0%, rgba(37, 99, 235, 0) 70%);
}
.blob-2 {
  bottom: 10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(37, 99, 235, 0) 70%);
}
.blob-3 {
  top: 45%;
  left: 40%;
  width: 380px;
  height: 380px;
  opacity: 0.18;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.5) 0%, rgba(148, 163, 184, 0) 70%);
  animation-duration: 16s;
}

@keyframes blobPulse {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(-20px, 30px); }
}

/* Fine dotted mesh + subtle noise for extra depth */
.ambient-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 90%);
}

/* Floating decorative particles */
.particle-field { position: absolute; inset: 0; overflow: hidden; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  opacity: 0.35;
  animation: floatParticle 10s ease-in-out infinite;
}
.particle:nth-child(1) { width: 10px; height: 10px; top: 18%; left: 12%; animation-delay: 0s; }
.particle:nth-child(2) { width: 7px; height: 7px; top: 30%; left: 82%; animation-delay: 1.2s; background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); }
.particle:nth-child(3) { width: 14px; height: 14px; top: 65%; left: 90%; animation-delay: 2.4s; }
.particle:nth-child(4) { width: 8px; height: 8px; top: 78%; left: 6%; animation-delay: 3.6s; background: linear-gradient(135deg, var(--accent-3), var(--primary)); }
.particle:nth-child(5) { width: 6px; height: 6px; top: 8%; left: 55%; animation-delay: 1.8s; }
.particle:nth-child(6) { width: 11px; height: 11px; top: 50%; left: 25%; animation-delay: 4.2s; background: linear-gradient(135deg, var(--accent-2), var(--primary-light)); }

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14px, -22px) scale(1.15); }
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2));
  z-index: 1100;
  transition: width 0.1s linear;
}

/* Back to top floating button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 30px rgba(220, 38, 38, 0.4); }

/* Scroll-reveal utility (activated by effects.js) */
.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--transition), transform 0.7s var(--transition); }
.reveal-on-scroll.in-view { opacity: 1; transform: translateY(0); }

/* Section icon badge, added next to section titles for visual richness */
.section-header { gap: 16px; }
.section-header-inner { display: flex; align-items: center; gap: 14px; }
.section-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(37, 99, 235, 0.12));
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-sm);
}

/* Subtle animated top accent + fade-in for cards, applied automatically on render */
.card, .student-card, .kesan-card {
  animation: cardIn 0.55s var(--transition) both;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover::before { opacity: 1; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar Modern Glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 25px -4px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}
.navbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--accent-2), transparent);
  opacity: 0.6;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-dark);
}
.brand-logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo-wrapper::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--accent-2), var(--primary));
  opacity: 0.35;
  animation: spinSlow 8s linear infinite;
  z-index: 0;
}
.brand img { position: relative; z-index: 1; }
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: transform 0.4s var(--transition);
  filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.15));
}
.brand:hover img { 
  transform: scale(1.1) rotate(-4deg); 
}
.brand b { 
  font-size: 18px; 
  font-weight: 800; 
  letter-spacing: -0.02em; 
  display: block; 
  line-height: 1.2;
}
.brand small { 
  font-size: 10px; 
  color: var(--primary); 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: 0.08em;
  display: block;
}

.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; flex-wrap: nowrap; justify-content: flex-end; margin: 0; padding: 0; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.25s ease, background 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--primary-soft); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  transition: width 0.3s var(--transition);
}
.nav-links a.active::after, .nav-links a:hover::after { width: calc(100% - 16px); }
.nav-links a.active { background: var(--primary-soft); color: var(--primary); }

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  z-index: 1001;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.25s var(--transition), opacity 0.25s var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  /* Tanpa backdrop-filter agar tidak bikin blur aneh di mobile */
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
body.nav-open .nav-backdrop {
  display: block;
  opacity: 1;
  visibility: visible;
}
body.nav-open { overflow: hidden; }

/* Main Section Transitions */
.main-content { padding-top: 88px; min-height: 85vh; padding-bottom: 70px; }
/* Page switch: cepat & stabil (tanpa transform agar tidak lag) */
.page-view {
  display: none;
}
.page-view.active {
  display: block;
  animation: pageFadeIn 0.28s ease both;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .page-view.active { animation: none; }
}

/* Modern Hero Section */
.hero {
  background: var(--hero-mesh);
  color: var(--text-dark);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  margin-bottom: 48px;
  box-shadow: 0 24px 48px -20px rgba(220, 38, 38, 0.25);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
/* Foto kampus sebagai siluet lembut di balik hero — dipasang sebagai layer
   semi-transparan di atas gradasi biru-merah asli (--hero-mesh), sehingga
   siluet gedung terlihat halus tanpa mengubah konsep warna aslinya. */
.hero-photo-silhouette {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: url('../assets/kampus-hero-silhouette.jpg');
  background-size: cover;
  background-position: center 60%;
  opacity: 0.24;
  pointer-events: none;
}
.hero-overlay-grid {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.7;
  pointer-events: none;
}
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.hero-decor span {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.12);
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-decor span:nth-child(1) { width: 56px; height: 56px; top: 12%; right: 14%; animation-delay: 0s; }
.hero-decor span:nth-child(2) { width: 40px; height: 40px; top: 62%; right: 26%; font-size: 15px; animation-delay: 1.4s; }
.hero-decor span:nth-child(3) { width: 34px; height: 34px; top: 30%; right: 4%; font-size: 13px; animation-delay: 2.8s; }
.hero-ring {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  animation: spinSlow 40s linear infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(220, 38, 38, 0.18);
  backdrop-filter: blur(12px);
  color: var(--primary-dark);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.03em;
  max-width: 820px;
  background: var(--headline-mesh);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead {
  font-size: 16.5px;
  color: var(--text-body);
  max-width: 700px;
  margin-top: 18px;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}
.hero-chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 7px 14px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s var(--transition), background 0.25s ease;
}
.hero-chip:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.85); }
.hero-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 15px;
  margin: 0 0 10px;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 20px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.hero-stat-item b {
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
  text-align: center;
  width: 100%;
}
.hero-stat-item span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 8px;
  display: block;
  text-align: center;
  width: 100%;
}

/* Decorative divider below hero */
.section-divider {
  text-align: center;
  margin: 0 0 36px;
  letter-spacing: 10px;
  font-size: 12px;
  color: var(--primary-light);
  opacity: 0.6;
}

/* Headers & Titles */
.section-header {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  position: relative;
}
.section-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Card Components & Dynamic Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-glow);
}
/* Ikon dekoratif kecil per tipe kartu — DIPASANG DI DALAM .card-media, bukan di .card,
   supaya tidak pernah menimpa teks judul/tanggal saat kartu tanpa foto sampul (fix "logo ngebug" di Agenda). */
.card { position: relative; }
#homeKegiatanGrid .card .card-media::after, #kegiatanGrid .card .card-media::after {
  content: "🎪";
  position: absolute;
  top: 14px; left: 14px;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  z-index: 2;
}
#agendaGrid .card .card-media::after {
  content: "🗓️";
  position: absolute;
  top: 14px; left: 14px;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  z-index: 2;
}

/* Media cover + badge jumlah foto (kegiatan/agenda) */
.card-media { position: relative; width: 100%; height: 190px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.4s var(--transition); }
.card-media:hover img { transform: scale(1.05); }
/* Placeholder rapi saat kartu belum punya foto sampul, supaya tinggi kartu tetap konsisten & tidak kosong melompong */
.card-media.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--accent-3) 100%);
}
.card-media.no-photo .no-photo-icon {
  font-size: 34px;
  opacity: 0.85;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}
/* Gambar yang gagal dimuat (link rusak) disembunyikan otomatis lewat class dari JS agar tidak muncul ikon patah bawaan browser */
.card-media img.img-broken, .mini-gallery img.img-broken, .student-card img.img-broken { display: none; }
.photo-count-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}

/* Strip mini galeri (foto tambahan) di dalam kartu */
.mini-gallery { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; margin-top: 4px; scrollbar-width: thin; }
.mini-gallery img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  cursor: zoom-in;
  border: 1px solid var(--border-color);
  transition: transform 0.25s var(--transition);
}
.mini-gallery img:hover { transform: scale(1.08); }

/* Status pill untuk agenda (akan datang / selesai) */
.status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-mendatang { background: rgba(16, 185, 129, 0.14); color: #047857; }
.status-lewat { background: rgba(100, 116, 139, 0.12); color: var(--text-muted); }

/* ============================================================
   AGENDA CARD — layout rapi untuk status mendatang / selesai
   ============================================================ */
.agenda-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.agenda-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.agenda-date {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}
.agenda-title {
  margin: 0;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}
.agenda-lokasi {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.agenda-desc {
  margin: 0;
  color: var(--text-body);
  line-height: 1.7;
  font-size: 14.5px;
}
.agenda-card.is-upcoming {
  border-color: rgba(16, 185, 129, 0.28);
}
.agenda-card.is-upcoming::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #059669);
  z-index: 2;
}
.status-mendatang {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #047857 !important;
}
.status-lewat {
  background: rgba(100, 116, 139, 0.12) !important;
  color: var(--text-muted) !important;
}
[data-theme="dark"] .status-mendatang {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #6ee7b7 !important;
}
[data-theme="dark"] .agenda-card.is-upcoming {
  border-color: rgba(16, 185, 129, 0.35);
}


.list-count-note { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 20px; }

/* Lightbox untuk memperbesar foto */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 24, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  padding: 24px;
}
.lightbox-overlay.show { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: min(90vw, 900px); max-height: 85vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* Modal detail mahasiswa (muncul saat kartu nama/prodi diklik di direktori) */
.student-detail-overlay .student-detail-card {
  background: var(--bg-card, #fff);
  border-radius: 20px;
  padding: 36px 28px 30px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.student-detail-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.student-detail-card h3 { margin: 0 0 4px; font-size: 20px; }
.student-detail-prodi { margin: 0 0 20px; color: var(--text-muted, #64748b); font-weight: 600; }
.student-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 10px 0;
  border-top: 1px solid var(--border-color, #e2e8f0);
  font-size: 14px;
}
.student-detail-row span { color: var(--text-muted, #64748b); }
.student-detail-row b { font-weight: 600; text-align: right; }
.student-detail-overlay .lightbox-close { top: 14px; right: 14px; color: #fff; }
.student-detail-overlay { background: rgba(8, 12, 24, 0.55); }

/* Student Directory Styling */
.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.student-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.student-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.student-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-glow);
}
.student-card:hover::before { opacity: 1; }

.student-card img, .student-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--bg-main);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  transition: transform 0.3s var(--transition);
  position: relative;
  z-index: 1;
}
.student-card { position: relative; }
.student-card::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--accent-2), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.student-card:hover::after { opacity: 0.5; }
.student-card:hover img, .student-card:hover .student-avatar {
  transform: scale(1.05);
}
.student-card h3 { font-size: 16.5px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.student-card p { font-size: 13px; color: var(--primary); font-weight: 700; }

/* ============================================================
   TEMA & ANIMASI KARTU MAHASISWA PER PROGRAM STUDI
   Setiap prodi punya aksen warna + animasi dekoratif berbeda.
   ============================================================ */
.student-card .prodi-theme-orb {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: -30px;
  right: -30px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}
.student-card.prodi-theme-it {
  --prodi-accent: #3B82F6;
  --prodi-accent-2: #06B6D4;
  border-color: rgba(59, 130, 246, 0.25);
}
.student-card.prodi-theme-it::before {
  background: linear-gradient(90deg, #3B82F6, #06B6D4) !important;
}
.student-card.prodi-theme-it .prodi-theme-orb {
  background: radial-gradient(circle, #3B82F6, transparent 70%);
}
.student-card.prodi-theme-it p { color: #2563EB; }

.student-card.prodi-theme-dkv {
  --prodi-accent: #EC4899;
  --prodi-accent-2: #A855F7;
  border-color: rgba(236, 72, 153, 0.28);
}
.student-card.prodi-theme-dkv::before {
  background: linear-gradient(90deg, #EC4899, #A855F7) !important;
}
.student-card.prodi-theme-dkv .prodi-theme-orb {
  background: radial-gradient(circle, #EC4899, transparent 70%);
}
.student-card.prodi-theme-dkv p { color: #DB2777; }

.student-card.prodi-theme-bisnis {
  --prodi-accent: #F59E0B;
  --prodi-accent-2: #F97316;
  border-color: rgba(245, 158, 11, 0.3);
}
.student-card.prodi-theme-bisnis::before {
  background: linear-gradient(90deg, #F59E0B, #F97316) !important;
}
.student-card.prodi-theme-bisnis .prodi-theme-orb {
  background: radial-gradient(circle, #F59E0B, transparent 70%);
}
.student-card.prodi-theme-bisnis p { color: #D97706; }

.student-card.prodi-theme-akuntansi {
  --prodi-accent: #10B981;
  --prodi-accent-2: #059669;
  border-color: rgba(16, 185, 129, 0.28);
}
.student-card.prodi-theme-akuntansi::before {
  background: linear-gradient(90deg, #10B981, #059669) !important;
}
.student-card.prodi-theme-akuntansi .prodi-theme-orb {
  background: radial-gradient(circle, #10B981, transparent 70%);
}
.student-card.prodi-theme-akuntansi p { color: #059669; }

.student-card.prodi-theme-sipil {
  --prodi-accent: #78716C;
  --prodi-accent-2: #57534E;
  border-color: rgba(120, 113, 108, 0.3);
}
.student-card.prodi-theme-sipil::before {
  background: linear-gradient(90deg, #78716C, #57534E) !important;
}
.student-card.prodi-theme-sipil .prodi-theme-orb {
  background: radial-gradient(circle, #A8A29E, transparent 70%);
}
.student-card.prodi-theme-sipil p { color: #57534E; }

.student-card.prodi-theme-default {
  --prodi-accent: var(--primary);
  --prodi-accent-2: var(--accent);
}

/* Animasi masuk + idle per prodi */
@keyframes studentCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.student-card {
  animation: studentCardIn 0.55s var(--transition) both;
}

@keyframes orbFloatCode {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8px, 10px) scale(1.12); }
}
@keyframes orbFloatCreative {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(25deg) scale(1.15); }
}
@keyframes orbFloatGrowth {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.08); }
}
@keyframes orbFloatPrecise {
  0%, 100% { transform: scale(1); opacity: 0.18; }
  50% { transform: scale(1.2); opacity: 0.28; }
}
@keyframes orbFloatStructure {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-10px); }
}

.student-card.anim-code .prodi-theme-orb { animation: orbFloatCode 4s ease-in-out infinite; }
.student-card.anim-creative .prodi-theme-orb { animation: orbFloatCreative 5s ease-in-out infinite; }
.student-card.anim-growth .prodi-theme-orb { animation: orbFloatGrowth 3.5s ease-in-out infinite; }
.student-card.anim-precise .prodi-theme-orb { animation: orbFloatPrecise 2.8s ease-in-out infinite; }
.student-card.anim-structure .prodi-theme-orb { animation: orbFloatStructure 4.2s ease-in-out infinite; }
.student-card.anim-default .prodi-theme-orb { animation: orbFloatGrowth 4s ease-in-out infinite; }

/* Hover ring mengikuti warna prodi */
.student-card.prodi-theme-it:hover::after {
  background: conic-gradient(from 0deg, #3B82F6, #06B6D4, #3B82F6);
  opacity: 0.55;
}
.student-card.prodi-theme-dkv:hover::after {
  background: conic-gradient(from 0deg, #EC4899, #A855F7, #EC4899);
  opacity: 0.55;
}
.student-card.prodi-theme-bisnis:hover::after {
  background: conic-gradient(from 0deg, #F59E0B, #F97316, #F59E0B);
  opacity: 0.55;
}
.student-card.prodi-theme-akuntansi:hover::after {
  background: conic-gradient(from 0deg, #10B981, #059669, #10B981);
  opacity: 0.55;
}
.student-card.prodi-theme-sipil:hover::after {
  background: conic-gradient(from 0deg, #78716C, #A8A29E, #78716C);
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .student-card, .student-card .prodi-theme-orb { animation: none !important; }
}


/* CTA login/daftar mahasiswa di header Direktori Mahasiswa */
.mahasiswa-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-mahasiswa-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
}
.btn-outline-cta {
  background: var(--bg-card);
  color: var(--primary);
  border-color: var(--border-color);
}
.btn-outline-cta:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-solid-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(220, 38, 38, 0.35);
}
.btn-solid-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(220, 38, 38, 0.45);
}
@media (max-width: 620px) {
  .mahasiswa-cta-row { width: 100%; }
  .btn-mahasiswa-cta { flex: 1; justify-content: center; }
}

/* ============================================================
   DIREKTORI MAHASISWA — Layout sidebar (search + filter prodi)
   ============================================================ */
.mahasiswa-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: flex-start;
}
.mahasiswa-sidebar {
  position: sticky;
  top: 96px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 120px);
}
.mahasiswa-search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.mahasiswa-search-icon {
  position: absolute;
  left: 13px;
  font-size: 14px;
  opacity: 0.55;
  pointer-events: none;
}
.mahasiswa-search-input {
  width: 100%;
  padding: 10px 34px 10px 34px;
  border-radius: 100px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-dark);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
}
.mahasiswa-search-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.mahasiswa-search-input::-webkit-search-cancel-button { display: none; }
.mahasiswa-search-clear {
  position: absolute;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.mahasiswa-search-clear:hover { background: var(--primary); color: #fff; }

.prodi-sidebar-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0 4px;
}

/* Filter Prodi — tampil sebagai daftar vertikal ala sidebar */
.prodi-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  padding-right: 4px;
}
.prodi-sidebar-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.prodi-sidebar-list button .prodi-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-main);
  border-radius: 100px;
  padding: 2px 8px;
  min-width: 22px;
  text-align: center;
  transition: all 0.2s ease;
}
.prodi-sidebar-list button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.prodi-sidebar-list button.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}
.prodi-sidebar-list button.active .prodi-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.prodi-sidebar-list::-webkit-scrollbar { width: 6px; }
.prodi-sidebar-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 100px; }

.mahasiswa-main { min-width: 0; }

@media (max-width: 860px) {
  .mahasiswa-layout { grid-template-columns: 1fr; }
  .mahasiswa-sidebar {
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .mahasiswa-search-box { flex: 1 1 100%; }
  .prodi-sidebar-label { display: none; }
  .prodi-sidebar-list {
    flex-direction: row;
    flex-wrap: wrap;
    overflow: visible;
    flex: 1 1 100%;
  }
  .prodi-sidebar-list button { width: auto; border-radius: 100px; }
}

/* Gallery Grid Styling */
.card-hero-about {
  padding: 36px;
  margin-bottom: 36px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-left: 5px solid var(--primary);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--transition);
}
.gallery-grid div {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.gallery-grid div:hover img {
  transform: scale(1.06);
}

/* Form Kesan Pesan Interactive */
.form-kesan-container {
  max-width: 680px;
  margin: 0 auto 48px;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: relative;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  background: #f8fafc;
  transition: all 0.25s ease;
}
.form-control:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Kategori Program Studi (dropdown terstruktur, lihat js/prodi-data.js) */
.prodi-picker { display: flex; flex-direction: column; gap: 10px; }
.prodi-picker select.form-control { cursor: pointer; }
.prodi-picker input.prodi-lainnya-input { border-style: dashed; }

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  box-shadow: 0 8px 20px -4px rgba(220, 38, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.btn-submit::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-submit:hover::before { left: 130%; }
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(220, 38, 38, 0.45);
}
.status-msg {
  margin-top: 20px;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
  display: none;
}

/* Grid Kesan Pesan Display */
.kesan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.kesan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--transition);
  position: relative;
  overflow: hidden;
}
.kesan-card::before {
  content: "❝";
  position: absolute;
  top: 6px;
  right: 18px;
  font-size: 56px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.08;
  line-height: 1;
  font-family: Georgia, serif;
}
.kesan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.kesan-quote {
  font-size: 14.5px;
  color: var(--text-body);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
}
.kesan-user-info b {
  display: block;
  font-size: 14.5px;
  color: var(--text-dark);
  font-weight: 700;
}
.kesan-user-info span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Contact Cards Custom Styling */
.contact-card {
  padding: 36px;
}
.contact-info-list p {
  margin-bottom: 16px;
  font-size: 15px;
  display: flex;
  gap: 10px;
}
.contact-info-list b {
  min-width: 90px;
  color: var(--text-dark);
}
.map-card {
  overflow: hidden;
  min-height: 280px;
  border-radius: var(--radius-lg);
}

/* Music Player Widget Floating */
.music-player-widget {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 990;
}
.music-btn {
  background: var(--navy-dark);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--transition);
}
.music-btn:hover {
  transform: translateY(-3px) scale(1.02);
  background: #1e293b;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
}
.music-player-widget::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  z-index: -1;
}
.music-player-widget:has(.music-btn:hover)::before { opacity: 0.5; }

/* Footer Section */
footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 70px 0 35px;
  margin-top: 80px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.footer-decor {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.25), transparent 70%);
  pointer-events: none;
}
.footer-brand-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo { width: 34px; height: 34px; object-fit: contain; }
.footer-badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.footer-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 100px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand b {
  font-size: 20px;
  color: #ffffff;
  display: block;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 14px;
  color: #94a3b8;
  max-width: 380px;
  line-height: 1.7;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #ffffff; }
.footer-col a.admin-link {
  color: var(--primary-light);
  font-weight: 600;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  text-align: center;
  font-size: 13.5px;
  color: #64748b;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .blob-1, .blob-2 { width: 340px; height: 340px; filter: blur(70px); }
  .blob-3 { width: 220px; height: 220px; }
  .hero-decor span:nth-child(3) { display: none; }
  .hero-chip-row { gap: 8px; }
  .hero-chip { font-size: 11.5px; padding: 6px 12px; }
  .footer-decor { width: 200px; height: 200px; top: -60px; right: -40px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 88px 22px 32px;
    box-shadow: -8px 0 30px rgba(15, 23, 42, 0.15);
    transition: right 0.35s var(--transition);
    z-index: 1003;
    overflow-y: auto;
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .nav-links a::after { display: none; }
  .nav-links .theme-toggle-btn {
    margin: 10px 0 0;
    width: 100%;
    justify-content: center;
  }
  .nav-links.open { right: 0; }
  .hero { padding: 40px 28px; }
  .hero h1 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-kesan-container { padding: 28px 20px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { height: 68px; }
  .brand b { font-size: 15px; }
  .brand small { font-size: 9px; }
  .main-content { padding-top: 96px; }
  .hero { padding: 28px 20px; border-radius: var(--radius-lg); }
  .hero h1 { font-size: 24px; }
  .hero p.lead { font-size: 14.5px; }
  .hero-badge { font-size: 11.5px; padding: 6px 14px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; padding-top: 24px; }
  .hero-stat-item b { font-size: 26px; }
  .section-title { font-size: 21px; }
  .card-grid, .student-grid, .gallery-grid, .kesan-grid { grid-template-columns: 1fr; gap: 18px; }
  .form-kesan-container { padding: 22px 16px; }
  .contact-card { padding: 24px; }
  .music-player-widget { left: 16px; bottom: 16px; }
  .music-btn { padding: 10px 16px; font-size: 12.5px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .blob-1, .blob-2 { width: 220px; height: 220px; filter: blur(50px); opacity: 0.25; }
  .blob-3 { display: none; }
  .particle { transform: scale(0.7); }
  .particle:nth-child(3), .particle:nth-child(6) { display: none; }
  .hero-decor span:nth-child(2) { display: none; }
  .hero-ring { width: 160px; height: 160px; top: -50px; right: -50px; }
  .section-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
  .back-to-top { width: 40px; height: 40px; font-size: 16px; right: 16px; bottom: 16px; }
  .card::before { height: 2px; }
  .hero-chip-row { display: none; }
  #homeKegiatanGrid .card .card-media::after, #kegiatanGrid .card .card-media::after, #agendaGrid .card .card-media::after { width: 24px; height: 24px; font-size: 11px; top: 10px; left: 10px; }
  .footer-decor { display: none; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 21px; }
  .hero p.lead { font-size: 13.5px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-stat-item b { font-size: 22px; }
  .section-title { font-size: 18.5px; }
  .section-icon { width: 34px; height: 34px; font-size: 14px; }
  .back-to-top { bottom: 72px; }
}
/* ============================================================
   SIAKAD & LINK RESMI — kartu tautan keluar ke situs resmi STEKOM
   ============================================================ */
.official-links-notice {
  background: var(--primary-soft);
  border: 1.5px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 28px;
}

.official-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.official-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s var(--transition);
  position: relative;
  overflow: hidden;
}
.official-link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.official-link-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-glow);
}
.official-link-card:hover::before { opacity: 1; }

.official-link-icon {
  font-size: 34px;
  margin-bottom: 6px;
  display: inline-block;
}
.official-link-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.official-link-card p {
  font-size: 13.8px;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}
.official-link-cta {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.official-link-card:hover .official-link-cta { color: var(--accent); }

@media (max-width: 640px) {
  .official-link-card { padding: 24px 20px; }
}

/* ============================================================
   SITE LOADER — splash screen saat halaman pertama kali dibuka
   ============================================================ */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-mesh);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.site-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.site-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.site-loader-badge {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  animation: siteLoaderSpin 0.9s linear infinite;
}
.site-loader-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
  padding: 8px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  animation: siteLoaderPulse 1.6s ease-in-out infinite;
}
.site-loader-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.site-loader-bar {
  width: 140px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-color);
  overflow: hidden;
}
.site-loader-bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: siteLoaderBar 1.1s ease-in-out infinite;
}
@keyframes siteLoaderSpin { to { transform: rotate(360deg); } }
@keyframes siteLoaderPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes siteLoaderBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}


/* Mobile sidebar nav — z-index & drawer polish
   - Matikan backdrop-filter agar drawer tidak blur
   - site-header harus di ATAS backdrop saat menu terbuka,
     supaya link di sidebar bisa diklik (bukan tertutup overlay) */
@media (max-width: 1100px) {
  .navbar {
    z-index: 1;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .site-header .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.nav-open .site-header {
    z-index: 1002 !important;
  }
  body.nav-open .navbar,
  body.nav-open .site-header .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--bg-card) !important;
  }
  .nav-toggle {
    z-index: 1004 !important;
    position: relative;
    pointer-events: auto !important;
  }
  .nav-links {
    z-index: 1003 !important;
    background: var(--bg-card) !important;
    list-style: none;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto !important;
  }
  .nav-links a,
  .nav-links button {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
  }
  .nav-backdrop {
    z-index: 1001 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto;
  }
  body.nav-open .nav-backdrop {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  .nav-links li {
    width: 100%;
    list-style: none;
  }
  .nav-links .theme-toggle-btn {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }
}

/* Mahasiswa sidebar mobile — horizontal chips yang lebih rapi */
@media (max-width: 860px) {
  .mahasiswa-sidebar {
    position: static !important;
    max-height: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 16px !important;
  }
  .mahasiswa-search-box { flex: 1 1 100%; width: 100%; }
  .prodi-sidebar-label {
    display: block !important;
    margin-bottom: 2px;
  }
  .prodi-sidebar-list {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .prodi-sidebar-list button {
    width: auto !important;
    flex: 0 0 auto;
    border-radius: 100px !important;
    white-space: nowrap;
    padding: 8px 14px !important;
  }
}


/* ============================================================
   HERO VIDEO BACKGROUND — video kampus STEKOM
   ============================================================ */
.hero.hero-with-video {
  position: relative;
  overflow: hidden;
  background: #0b1220;
  min-height: 520px;
  color: #f8fafc;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}
.hero-video-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 15, 35, 0.82) 0%, rgba(15, 30, 70, 0.55) 42%, rgba(120, 20, 30, 0.35) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
  pointer-events: none;
}
.hero.hero-with-video .hero-overlay-grid,
.hero.hero-with-video .hero-ring,
.hero.hero-with-video .hero-decor {
  z-index: 1;
}
.hero.hero-with-video .hero-content {
  position: relative;
  z-index: 2;
}
.hero.hero-with-video .hero-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #e0e7ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.hero.hero-with-video h1 {
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.hero.hero-with-video p.lead {
  color: rgba(241, 245, 249, 0.92);
}
.hero.hero-with-video .hero-chip {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
}
.hero.hero-with-video .hero-chip:hover {
  background: rgba(255, 255, 255, 0.2);
}
.hero.hero-with-video .hero-stats {
  border-top-color: rgba(255, 255, 255, 0.15);
}
.hero.hero-with-video .hero-stat-item {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.hero.hero-with-video .hero-stat-item b { color: #ffffff; }
.hero.hero-with-video .hero-stat-item span { color: rgba(226, 232, 240, 0.85); }
.hero.hero-with-video .hero-stat-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   TENTANG STEKOM + VISI MISI (beranda profesional)
   ============================================================ */
.about-stekom {
  margin: 8px 0 48px;
}
.about-stekom-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.about-stekom-intro {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.about-lead {
  font-size: 15.2px;
  line-height: 1.8;
  color: var(--text-body);
  margin: 0 0 22px;
}
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-highlight-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--primary-soft);
  border: 1px solid var(--border-glow);
}
.about-hi-icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
}
.about-highlight-item b {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.about-highlight-item p {
  margin: 0;
  font-size: 13.2px;
  color: var(--text-muted);
  line-height: 1.55;
}
.visi-misi-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.vm-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.vm-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.vm-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 12px;
}
.vm-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--text-dark);
}
.vm-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-body);
}
.vm-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-body);
  font-size: 14.2px;
  line-height: 1.75;
}
.vm-list li { margin-bottom: 6px; }
.vm-list li:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .about-stekom-grid { grid-template-columns: 1fr; }
  .hero.hero-with-video { min-height: 440px; }
}
@media (max-width: 480px) {
  .hero.hero-with-video { min-height: 400px; }
  .about-stekom-intro, .vm-card { padding: 22px 18px; }
}

/* ========== KENANGAN TIMELINE ========== */
.kenangan-timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 0 24px;
}
.kenangan-timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary, #2563eb), transparent);
  border-radius: 4px;
}
.kenangan-item {
  position: relative;
  padding-left: 52px;
  margin-bottom: 28px;
}
.kenangan-dot {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary, #2563eb);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}
.kenangan-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.kenangan-tanggal {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.kenangan-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.kenangan-card p {
  margin: 0;
  color: var(--text-body, #475569);
  font-size: 14px;
  line-height: 1.6;
}
.kenangan-foto {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
}
.kenangan-foto img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.kenangan-compact .kenangan-item:nth-child(n+5) { display: none; }

/* ========== HALL OF FAME — Clean Portfolio Style (mirip referensi) ========== */
.hof-showcase {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 12px;
}

.hof-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px 32px;
  align-items: center;
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 28px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
}

/* Soft decorative dots like the reference */
.hof-feature::before,
.hof-feature::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hof-feature::before {
  width: 12px;
  height: 12px;
  border: 2px solid #fdba74;
  opacity: 0.45;
  top: 16px;
  left: 36%;
}
.hof-feature::after {
  width: 8px;
  height: 8px;
  border: 1.5px solid #93c5fd;
  opacity: 0.4;
  bottom: 18px;
  left: 22%;
}

.hof-feature > * {
  position: relative;
  z-index: 1;
}

/* Photo on left variant */
.hof-feature.photo-left {
  direction: rtl;
}
.hof-feature.photo-left > * {
  direction: ltr;
}

.hof-feature-info {
  max-width: 420px;
}

.hof-hello {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.hof-name {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ea580c; /* orange accent seperti referensi */
  line-height: 1.3;
}

.hof-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hof-prodi {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #3b82f6;
}

.hof-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
  max-width: 95%;
}

/* ===== Photo area — NO gold frame ===== */
.hof-feature-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hof-ring {
  position: relative;
  width: min(200px, 100%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Big orange/red ring behind the photo (konsep referensi) */
.hof-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ea580c;
  z-index: 0;
}

/* Soft glow */
.hof-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.16) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hof-photo-circle {
  position: relative;
  z-index: 2;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #f8fafc;
  /* NO gold border */
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.hof-cutout {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hof-cutout-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  color: #ea580c;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
}

/* Empty state */
.hof-empty {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  color: #64748b;
}
.hof-empty-icon {
  font-size: 32px;
  margin-bottom: 10px;
  opacity: 0.7;
}
.hof-empty p {
  margin: 0;
  font-size: 15px;
}

/* Responsive */
@media (max-width: 900px) {
  .hof-feature {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 18px;
    text-align: center;
  }
  .hof-feature.photo-left {
    direction: ltr;
  }
  .hof-feature-info {
    max-width: 100%;
    order: 2;
  }
  .hof-feature-photo {
    order: 1;
  }
  .hof-desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hof-ring {
    width: min(160px, 48vw);
  }
  .hof-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 520px) {
  .hof-showcase {
    gap: 18px;
  }
  .hof-feature {
    padding: 16px 14px;
    border-radius: 16px;
  }
  .hof-ring {
    width: min(140px, 42vw);
  }
  .hof-title {
    font-size: 1.2rem;
  }
  .hof-name {
    font-size: 0.98rem;
  }
  .hof-desc {
    font-size: 13.5px;
  }
  .hof-tap-hint {
    margin-top: 10px;
    font-size: 12px;
  }
}



/* ===== HoF clickable + longer entrance ===== */
.hof-feature {
  cursor: pointer;
}
.hof-feature:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 4px;
}
.hof-tap-hint {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #ea580c;
  opacity: 0.85;
}

/* Longer, smoother list entrance */
.hof-showcase .hof-feature {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease;
  transition-delay: var(--hof-delay, 0s);
  will-change: opacity, transform;
}
.hof-showcase.hof-animate-in .hof-feature,
.hof-showcase .hof-feature.hof-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.hof-feature.hof-done {
  will-change: auto;
}

.hof-anim-item {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.hof-feature.hof-visible .hof-anim-item,
.hof-showcase.hof-animate-in .hof-feature .hof-anim-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.hof-feature.hof-visible .hof-hello,
.hof-showcase.hof-animate-in .hof-feature .hof-hello { transition-delay: calc(var(--hof-delay, 0s) + 0.1s); }
.hof-feature.hof-visible .hof-name,
.hof-showcase.hof-animate-in .hof-feature .hof-name { transition-delay: calc(var(--hof-delay, 0s) + 0.2s); }
.hof-feature.hof-visible .hof-title,
.hof-showcase.hof-animate-in .hof-feature .hof-title { transition-delay: calc(var(--hof-delay, 0s) + 0.3s); }
.hof-feature.hof-visible .hof-prodi,
.hof-showcase.hof-animate-in .hof-feature .hof-prodi { transition-delay: calc(var(--hof-delay, 0s) + 0.4s); }
.hof-feature.hof-visible .hof-desc,
.hof-showcase.hof-animate-in .hof-feature .hof-desc { transition-delay: calc(var(--hof-delay, 0s) + 0.5s); }
.hof-feature.hof-visible .hof-tap-hint,
.hof-showcase.hof-animate-in .hof-feature .hof-tap-hint { transition-delay: calc(var(--hof-delay, 0s) + 0.58s); }

.hof-anim-photo {
  opacity: 0;
  transform: scale3d(0.86, 0.86, 1);
  transition:
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--hof-delay, 0s) + 0.2s);
  will-change: opacity, transform;
}
.hof-feature.hof-visible .hof-anim-photo,
.hof-showcase.hof-animate-in .hof-feature .hof-anim-photo {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}
.hof-feature.hof-done .hof-anim-photo {
  will-change: auto;
}

@keyframes hofRingIn {
  from { transform: scale(0.9); opacity: 0.55; }
  to   { transform: scale(1); opacity: 1; }
}
.hof-feature.hof-visible .hof-ring::before,
.hof-showcase.hof-animate-in .hof-feature .hof-ring::before {
  animation: hofRingIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--hof-delay, 0s) + 0.25s);
}

/* ===== DETAIL MODAL ===== */
.hof-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  visibility: hidden;
}
.hof-detail-overlay.hof-detail-show {
  pointer-events: auto;
  visibility: visible;
}
.hof-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hof-detail-overlay.hof-detail-show .hof-detail-backdrop {
  opacity: 1;
}
.hof-detail-overlay.hof-detail-hiding .hof-detail-backdrop {
  opacity: 0;
}

.hof-detail-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  padding: 36px 28px 32px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.94);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.hof-detail-overlay.hof-detail-show .hof-detail-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.hof-detail-overlay.hof-detail-hiding .hof-detail-panel {
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(0.96);
  transition-duration: 0.32s;
}

.hof-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 16px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s, transform 0.2s;
}
.hof-detail-close:hover {
  background: #e2e8f0;
  transform: scale(1.06);
}

.hof-detail-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hof-detail-photo-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.hof-detail-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(234, 88, 12, 0.35);
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.12s,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}
.hof-detail-overlay.hof-detail-show .hof-detail-ring {
  opacity: 1;
  transform: scale(1);
}
.hof-detail-photo {
  width: 86%;
  height: 86%;
  border-radius: 50%;
  overflow: hidden;
  background: #f8fafc;
}
.hof-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hof-detail-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 800;
  color: #ea580c;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
}

.hof-detail-body {
  position: relative;
  z-index: 1;
}
.hof-detail-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}
.hof-detail-nama {
  margin: 0 0 8px;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.28s, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.28s;
}
.hof-detail-role {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ea580c;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.36s, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.36s;
}
.hof-detail-prodi {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #3b82f6;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.42s, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.42s;
}
.hof-detail-divider {
  width: 48px;
  height: 3px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ea580c, #f59e0b);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.45s ease 0.48s, transform 0.45s ease 0.48s;
}
.hof-detail-alasan {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #64748b;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.54s, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.54s;
}

.hof-detail-overlay.hof-detail-show .hof-detail-label,
.hof-detail-overlay.hof-detail-show .hof-detail-nama,
.hof-detail-overlay.hof-detail-show .hof-detail-role,
.hof-detail-overlay.hof-detail-show .hof-detail-prodi,
.hof-detail-overlay.hof-detail-show .hof-detail-alasan {
  opacity: 1;
  transform: translateY(0);
}
.hof-detail-overlay.hof-detail-show .hof-detail-divider {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 520px) {
  .hof-detail-panel {
    padding: 28px 20px 26px;
    border-radius: 22px;
  }
  .hof-detail-ring {
    width: 150px;
    height: 150px;
  }
  .hof-detail-nama {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hof-detail-panel,
  .hof-detail-backdrop,
  .hof-detail-ring,
  .hof-detail-label,
  .hof-detail-nama,
  .hof-detail-role,
  .hof-detail-prodi,
  .hof-detail-divider,
  .hof-detail-alasan {
    transition: none !important;
    animation: none !important;
  }
  .hof-detail-overlay.hof-detail-show .hof-detail-panel {
    opacity: 1;
    transform: none;
  }
}



/* ===== HoF 3D + animasi (refined) ===== */

/* --- Shine sekali saat muncul --- */
.hof-ring {
  overflow: visible;
  position: relative;
}
.hof-ring::after {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.65) 48%,
    rgba(255, 255, 255, 0.2) 54%,
    transparent 70%
  );
  opacity: 0;
  transform: translateX(-140%) rotate(10deg);
  pointer-events: none;
  z-index: 4;
}
.hof-feature.hof-visible .hof-ring::after,
.hof-showcase.hof-animate-in .hof-feature .hof-ring::after {
  animation: hofShine 1.25s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--hof-delay, 0s) + 0.5s);
}
@keyframes hofShine {
  0%   { opacity: 0; transform: translateX(-140%) rotate(10deg); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(140%) rotate(10deg); }
}

/* --- Kartu base + depth --- */
.hof-feature {
  transform-style: preserve-3d;
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
}
.hof-feature.hof-visible {
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    transform 0.2s ease-out;
}

/* Glare overlay ikut kursor (dari --glare-x/y) */
.hof-feature.hof-tilt-ready::before {
  /* keep decorative dot but lower opacity while tilting handled separately */
}
.hof-feature .hof-photo-circle {
  position: relative;
}
.hof-feature .hof-photo-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at var(--glare-x, 40%) var(--glare-y, 30%),
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
}
.hof-feature.hof-tilting .hof-photo-circle::after {
  opacity: 1;
}

/* Tilt transform */
.hof-feature.hof-tilt-ready.hof-visible {
  transform:
    perspective(1000px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translate3d(0, 0, 0);
}
.hof-feature.hof-tilting {
  box-shadow:
    0 28px 60px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(234, 88, 12, 0.08);
}
.hof-feature.hof-tilting .hof-feature-photo {
  transform: translateZ(28px) scale(1.02);
  transition: transform 0.2s ease-out;
}
.hof-feature.hof-tilting .hof-feature-info {
  transform: translateZ(14px);
  transition: transform 0.2s ease-out;
}
.hof-feature .hof-feature-photo,
.hof-feature .hof-feature-info {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

/* Hover ring scale (tanpa konflik tilt) */
.hof-feature .hof-ring {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.hof-feature.hof-visible:hover .hof-ring {
  transform: scale3d(1.04, 1.04, 1);
}
.hof-feature.hof-tilting:hover .hof-ring {
  transform: scale3d(1.06, 1.06, 1);
}

/* --- Modal cinematic --- */
.hof-detail-panel {
  overflow: hidden;
}
.hof-detail-ring {
  position: relative;
}
.hof-detail-ring::after {
  content: "";
  position: absolute;
  inset: -5%;
  border-radius: 50%;
  background: linear-gradient(
    115deg,
    transparent 28%,
    rgba(255, 255, 255, 0.55) 48%,
    transparent 68%
  );
  opacity: 0;
  transform: translateX(-130%);
  pointer-events: none;
  z-index: 4;
}
.hof-detail-overlay.hof-detail-show .hof-detail-ring::after {
  animation: hofShine 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.hof-detail-overlay.hof-detail-show .hof-detail-panel {
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.hof-detail-overlay.hof-detail-show .hof-detail-ring {
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s,
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s !important;
}
.hof-detail-label {
  transition: opacity 0.65s ease 0.28s, transform 0.65s ease 0.28s !important;
}
.hof-detail-nama {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s !important;
}
.hof-detail-role {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.52s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.52s !important;
}
.hof-detail-prodi {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.62s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.62s !important;
}
.hof-detail-divider {
  transition: opacity 0.6s ease 0.7s, transform 0.6s ease 0.7s !important;
}
.hof-detail-alasan {
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.8s, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.8s !important;
}

/* List entrance slightly smoother */
.hof-showcase .hof-feature {
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.98);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
  transition-delay: var(--hof-delay, 0s);
}
.hof-showcase.hof-animate-in .hof-feature,
.hof-showcase .hof-feature.hof-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
/* Saat tilt aktif, jangan override transform entrance */
.hof-showcase .hof-feature.hof-tilt-ready.hof-visible {
  transform:
    perspective(1000px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
}

.hof-anim-photo {
  opacity: 0;
  transform: scale3d(0.84, 0.84, 1);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--hof-delay, 0s) + 0.22s);
}
.hof-feature.hof-visible .hof-anim-photo,
.hof-showcase.hof-animate-in .hof-feature .hof-anim-photo {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

@media (prefers-reduced-motion: reduce) {
  .hof-ring::after,
  .hof-detail-ring::after {
    animation: none !important;
    opacity: 0 !important;
  }
  .hof-feature.hof-tilt-ready.hof-visible,
  .hof-feature.hof-tilting {
    transform: none !important;
  }
  .hof-feature .hof-photo-circle::after {
    display: none;
  }
}
@media (hover: none) {
  .hof-feature.hof-tilt-ready.hof-visible {
    transform: none !important;
  }
}

/* ========== KESAN ANONIM ========== */
.kesan-anon .kesan-pesan {
  font-style: italic;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 12px;
  color: var(--text-dark, #0f172a);
}
.kesan-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted, #64748b);
  font-weight: 600;
}
.kesan-pin {
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.kesan-card.is-pinned {
  border-color: #fbbf24;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.15);
}
.student-detail-kartu-actions .btn-outline {
  font-size: 13px;
  padding: 8px 14px;
}


/* ========== NAVBAR COMPACT + DROPDOWN ========== */
.nav-inner {
  height: 64px;
  gap: 12px;
}
.brand {
  gap: 10px;
  min-width: 0;
  flex-shrink: 1;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand b {
  font-size: 15.5px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand small {
  font-size: 9.5px;
}
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  list-style: none;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
}
.nav-links > li {
  list-style: none;
  flex-shrink: 0;
}
.nav-links a.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding: 7px 9px;
  border-radius: 9px;
  transition: color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.nav-links a.nav-link:hover { background: var(--primary-soft); }
.nav-links a.nav-link:hover,
.nav-links a.nav-link.active { color: var(--primary); }
.nav-links a.nav-link::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  transition: width 0.25s ease;
}
.nav-links a.nav-link.active::after,
.nav-links a.nav-link:hover::after { width: calc(100% - 14px); }
.nav-links a.nav-link.active { background: var(--primary-soft); color: var(--primary); }

.nav-item-more {
  position: relative;
}
.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  padding: 7px 10px;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav-more-btn:hover,
.nav-more-btn[aria-expanded="true"] {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: transparent;
}
.nav-more-caret {
  font-size: 11px;
  transition: transform 0.2s ease;
}
.nav-more-btn[aria-expanded="true"] .nav-more-caret {
  transform: rotate(180deg);
}
.nav-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 1100;
}
.nav-more-menu.open {
  display: block;
}
.nav-more-menu li {
  list-style: none;
}
.nav-more-menu a.nav-link {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.nav-more-menu a.nav-link::after { display: none !important; }

.nav-item-theme {
  margin-left: 4px;
}
.nav-links .theme-toggle-btn {
  padding: 6px 10px;
  font-size: 12.5px;
  border-radius: 9px;
  gap: 4px;
}
.nav-links .theme-toggle-btn [data-theme-label] {
  /* keep label on wide screens */
}

.main-content { padding-top: 88px; }

/* Desktop medium: slightly tighter */
@media (max-width: 1280px) and (min-width: 1101px) {
  .nav-links a.nav-link { padding: 6px 7px; font-size: 12.5px; }
  .nav-more-btn { padding: 6px 8px; font-size: 12.5px; }
  .brand b { max-width: 130px; font-size: 14.5px; }
  .nav-links .theme-toggle-btn [data-theme-label] { display: none; }
}

/* Tablet & mobile drawer */
@media (max-width: 1100px) {
  .nav-inner { height: 60px; }
  .main-content { padding-top: 80px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 76px 18px 28px;
    box-shadow: -10px 0 36px rgba(15, 23, 42, 0.18);
    transition: right 0.32s ease;
    z-index: 1002;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { right: 0; }
  .nav-links > li { width: 100%; }
  .nav-links a.nav-link {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14.5px;
  }
  .nav-links a.nav-link::after { display: none; }

  /* Di mobile: "Lainnya" jadi grup terbuka, bukan dropdown mengambang */
  .nav-item-more {
    width: 100%;
    border-top: 1px solid var(--border-color, #e2e8f0);
    margin-top: 8px;
    padding-top: 10px;
  }
  .nav-more-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-muted);
    background: transparent;
  }
  .nav-more-menu {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 4px 8px;
    margin: 0;
  }
  .nav-more-menu.open {
    display: block;
  }
  .nav-more-menu a.nav-link {
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text-body, #475569);
  }
  .nav-item-theme {
    width: 100%;
    margin: 12px 0 0;
    border-top: 1px solid var(--border-color, #e2e8f0);
    padding-top: 12px;
  }
  .nav-links .theme-toggle-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
  }
  .nav-links .theme-toggle-btn [data-theme-label] { display: inline; }
}

@media (max-width: 480px) {
  .nav-inner { height: 56px; }
  .brand b { font-size: 14px; max-width: 120px; }
  .brand small { display: none; }
  .brand img { width: 32px; height: 32px; }
  .main-content { padding-top: 72px; }
  .nav-links {
    padding-top: 68px;
  }
}

/* Kartu mahasiswa di direktori — sentuhan lebih premium */
.student-card {
  position: relative;
  overflow: hidden;
}
.student-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.student-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  color: #1e40af;
  border: 2.5px solid rgba(37, 99, 235, 0.2);
}

/* Statistik prodi di beranda */
.public-prodi-stats {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  margin-bottom: 8px;
}
.public-prodi-stats-summary {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pps-total {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, white), color-mix(in srgb, var(--accent) 6%, white));
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 140px;
}
.pps-total b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.pps-total span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}
.public-prodi-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pps-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.6fr) 2.2fr auto;
  gap: 12px;
  align-items: center;
}
.pps-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark, #0f172a);
}
.pps-bar-wrap {
  height: 11px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.pps-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  min-width: 4px;
  transition: width 0.4s ease;
}
.pps-num {
  font-size: 13px;
  min-width: 28px;
  text-align: right;
}
@media (max-width: 640px) {
  .pps-row { grid-template-columns: 1fr; gap: 4px; }
  .pps-num { text-align: left; }
}

/* Kartu mahasiswa direktori — layout rapi */
.student-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border-radius: 16px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.student-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.student-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
}
.student-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted, #64748b);
  font-weight: 600;
}
.student-detail-card {
  max-width: 400px;
  width: 92vw;
  padding: 28px 24px 22px;
  border-radius: 20px;
}
.student-detail-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  color: #1e40af;
  border: 3px solid rgba(37, 99, 235, 0.25);
}
.student-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   KARTU MAHASISWA — layout final (vertikal, rapi, tanpa konflik)
   ============================================================ */
.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.student-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
  gap: 0 !important;
  padding: 22px 16px 18px !important;
  border-radius: 18px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: studentCardIn 0.5s ease both;
}
.student-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  border-color: var(--border-glow, rgba(37,99,235,0.35));
}
.student-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.student-card:hover::before { opacity: 1; }
.student-card::after { display: none !important; } /* hapus ring konfik */

.student-avatar-wrap {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  flex-shrink: 0;
}
.student-photo,
.student-avatar {
  width: 84px !important;
  height: 84px !important;
  border-radius: 50% !important;
  object-fit: cover;
  margin: 0 !important;
  border: 3px solid var(--bg-main, #f8fafc);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
}
.student-avatar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 30px !important;
  font-weight: 800;
  color: var(--primary, #1e40af);
}
.student-card-body {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}
.student-card-body h3,
.student-card h3 {
  margin: 0 0 6px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--text-dark, #0f172a);
  line-height: 1.3;
  word-break: break-word;
}
.student-card-body p,
.student-card p {
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--primary);
  line-height: 1.35;
  word-break: break-word;
}

/* Tema Hukum */
.student-card.prodi-theme-hukum {
  --prodi-accent: #7c3aed;
  --prodi-accent-2: #a78bfa;
  border-color: rgba(124, 58, 237, 0.28);
}
.student-card.prodi-theme-hukum::before {
  background: linear-gradient(90deg, #7c3aed, #a78bfa) !important;
}
.student-card.prodi-theme-hukum .prodi-theme-orb {
  background: radial-gradient(circle, #c4b5fd, transparent 70%);
}
.student-card.prodi-theme-hukum p,
.student-card.prodi-theme-hukum .student-card-body p {
  color: #6d28d9 !important;
}
.student-card.prodi-theme-hukum .student-avatar {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #5b21b6;
}

/* Detail modal */
.student-detail-overlay .student-detail-card {
  max-width: 400px;
  width: min(92vw, 400px);
  padding: 28px 22px 22px;
  border-radius: 20px;
  text-align: center;
}
.student-detail-avatar {
  width: 96px !important;
  height: 96px !important;
  margin: 0 auto 14px !important;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
  color: #1e40af;
  border: 3px solid rgba(37, 99, 235, 0.25);
}
.student-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.student-detail-kartu-actions {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.student-detail-kartu-actions .btn-outline {
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color, #e2e8f0);
  background: var(--bg-card, #fff);
  cursor: pointer;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
}
.student-detail-kartu-actions .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 480px) {
  .student-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .student-card {
    padding: 16px 10px 14px !important;
  }
  .student-avatar-wrap,
  .student-photo,
  .student-avatar {
    width: 68px !important;
    height: 68px !important;
  }
  .student-avatar { font-size: 24px !important; }
  .student-card-body h3,
  .student-card h3 { font-size: 13px !important; }
  .student-card-body p,
  .student-card p { font-size: 11px !important; }
}


/* ============================================================
   STUDENT CARDS — FINAL (desktop vertikal | mobile horizontal)
   ============================================================ */

.student-card {
  animation: studentCardIn 0.45s ease both !important;
}

.student-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
  width: 100% !important;
  isolation: isolate;
}

/* DESKTOP: vertikal */
.student-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 22px 16px 18px !important;
  box-sizing: border-box !important;
  border-radius: 18px !important;
  background: var(--bg-card, #fff) !important;
  border: 1px solid var(--border-color, #e2e8f0) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
  position: relative !important;
  overflow: hidden !important;
  float: none !important;
  clear: both !important;
  cursor: pointer;
}

.student-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
}

.student-card::after {
  content: none !important;
  display: none !important;
}

.student-avatar-wrap {
  position: relative !important;
  z-index: 1 !important;
  width: 80px !important;
  height: 80px !important;
  margin: 0 auto 12px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.student-photo,
.student-card .student-photo,
.student-avatar,
.student-card .student-avatar {
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  max-height: 80px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  margin: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  border: 3px solid var(--bg-main, #f8fafc) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1) !important;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe) !important;
  color: var(--primary, #1e40af) !important;
  position: relative !important;
  z-index: 1 !important;
  float: none !important;
}

.student-photo { display: block !important; }
.student-avatar { display: flex !important; }

.student-card-body {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  text-align: center !important;
}

.student-card-body h3,
.student-card h3 {
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: var(--text-dark, #0f172a) !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.student-card-body p,
.student-card p {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--primary, #2563eb) !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.student-card .prodi-theme-orb {
  pointer-events: none !important;
  z-index: 0 !important;
}

/* MOBILE: horizontal */
@media (max-width: 768px) {
  .student-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .student-card {
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 14px !important;
    padding: 14px !important;
  }

  .student-avatar-wrap {
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
  }

  .student-photo,
  .student-card .student-photo,
  .student-avatar,
  .student-card .student-avatar {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    font-size: 22px !important;
    border-width: 2px !important;
  }

  .student-card-body {
    text-align: left !important;
  }

  .student-card-body h3,
  .student-card h3 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }

  .student-card-body p,
  .student-card p {
    font-size: 11.5px !important;
  }

  .student-card .prodi-theme-orb {
    opacity: 0.12 !important;
    width: 80px !important;
    height: 80px !important;
  }
}

@media (max-width: 380px) {
  .student-card {
    padding: 12px !important;
    gap: 12px !important;
  }
  .student-avatar-wrap,
  .student-photo,
  .student-avatar {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
  }
}


/* ============================================================
   FIX: sembunyikan avatar inisial saat foto berhasil dimuat
   (display:!important sebelumnya menimpa atribut hidden)
   ============================================================ */
.student-avatar[hidden],
.student-avatar-wrap .student-avatar[hidden],
.student-card .student-avatar[hidden] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
}

.student-avatar-wrap {
  position: relative !important;
  overflow: visible !important;
}

/* Pastikan foto dan avatar tidak numpuk di posisi yang sama */
.student-avatar-wrap .student-photo {
  position: relative !important;
  z-index: 2 !important;
}
.student-avatar-wrap .student-avatar:not([hidden]) {
  position: relative !important;
  z-index: 1 !important;
}

/* ===== Fresh professional public UI (2026) ===== */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  letter-spacing: .01em;
}
.hero-cta:hover { transform: translateY(-2px); }
.hero-cta-primary {
  background: linear-gradient(135deg, #FFD400, #f59e0b);
  color: #1B2A75;
  box-shadow: 0 10px 24px -10px rgba(245, 158, 11, .55);
}
.hero-cta-ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}
.hero-cta-soft {
  background: rgba(27,42,117,.55);
  color: #e2e8f0;
  border: 1px solid rgba(148,163,184,.35);
}

.portal-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0 8px;
}
@media (max-width: 1000px) {
  .portal-highlights { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .portal-highlights { grid-template-columns: 1fr; }
}
.portal-hl-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 16px 16px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 12px 28px -18px rgba(15,23,42,.28);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.portal-hl-card:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 34px -18px rgba(37,99,235,.28);
}
.portal-hl-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(145deg, #eff6ff, #e0e7ff);
  flex-shrink: 0;
}
.portal-hl-card b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark, #0f172a);
  margin-bottom: 4px;
}
.portal-hl-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-body, #475569);
}

/* Kartu & grid lebih fresh */
.card-grid {
  gap: 18px;
}
.card {
  border-radius: 18px !important;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 14px 30px -20px rgba(15,23,42,.28);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  background: #fff;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: 0 22px 40px -20px rgba(37,99,235,.28);
}
.student-card {
  border-radius: 18px !important;
  transition: transform .22s ease, box-shadow .22s ease;
}
.student-card:hover {
  transform: translateY(-5px) scale(1.01);
}

/* Empty state profesional */
.empty-state {
  text-align: center;
  padding: 36px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px dashed #cbd5e1;
  color: #64748b;
}
.empty-state-icon {
  font-size: 34px;
  margin-bottom: 8px;
}
.empty-state b {
  display: block;
  color: #0f172a;
  font-size: 16px;
  margin-bottom: 6px;
}
.empty-state p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

/* Section header lebih lega */
.section-header {
  margin-bottom: 18px;
}
.section-title {
  letter-spacing: -.02em;
}
.section-sub {
  opacity: .92;
}

/* Public prodi stats lebih soft */
.public-prodi-stats {
  border-radius: 20px;
  padding: 18px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 16px 36px -24px rgba(15,23,42,.25);
  backdrop-filter: blur(8px);
}
.pps-row {
  transition: background .15s ease;
  border-radius: 10px;
  padding: 4px 6px;
}
.pps-row:hover { background: color-mix(in srgb, var(--primary) 7%, transparent); }

/* HOF cards lift */
.hof-grid {
  gap: 16px;
}
.hof-card, .hof-item, article.hof-card {
  transition: transform .22s ease, box-shadow .22s ease;
}
.hof-card:hover, .hof-item:hover {
  transform: translateY(-4px);
}

/* Navbar subtle polish — hanya di desktop (mobile matikan biar drawer tidak blur) */
@media (min-width: 1101px) {
  .navbar {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

.card-body-pad { padding: 20px 22px 22px; }
.card-date-label {
  color: var(--navy-soft, #1e3a8a);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .02em;
}
.card-title-sm {
  margin: 8px 0 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text-dark, #0f172a);
}
.card-desc {
  color: var(--text-body, #475569);
  line-height: 1.7;
  margin: 0;
  font-size: 14px;
}

/* ===== Site header (announce + navbar) — fixed sekali, tidak saling timpa ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.site-announce {
  background: linear-gradient(90deg, #1B2A75 0%, #1e3a8a 50%, #0f766e 100%);
  color: #fff;
  font-size: 13px;
  position: relative;
  z-index: 2;
}
.site-announce-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  min-height: 40px;
}
.site-announce-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,.25);
  flex-shrink: 0;
  animation: liveDot 1.6s ease infinite;
}
@keyframes liveDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: .75; }
}
.site-announce p {
  margin: 0;
  flex: 1;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.site-announce b { font-weight: 800; }
.site-announce-close {
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}
.site-announce-close:hover { background: rgba(255,255,255,.28); }
.site-announce.is-hidden {
  display: none !important;
}

/* Navbar di dalam header — tidak position:fixed sendiri lagi */
.site-header .navbar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 1;
  box-shadow: 0 8px 24px -16px rgba(15,23,42,.25);
}

/* Padding konten mengikuti tinggi header */
.main-content {
  padding-top: 120px;
}
body:has(.site-announce.is-hidden) .main-content {
  padding-top: 80px;
}

@media (max-width: 480px) {
  .site-announce-inner { padding: 8px 12px; min-height: 38px; }
  .site-announce { font-size: 12px; }
  .main-content { padding-top: 108px; }
  body:has(.site-announce.is-hidden) .main-content { padding-top: 72px; }
  .brand b {
    max-width: min(150px, 42vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }
}

.brand-logo-wrapper {
  box-shadow: 0 6px 14px -6px rgba(15,23,42,.35);
}

/* === Override padding setelah header digabung (akhir file biar menang cascade) === */
.main-content {
  padding-top: 120px !important;
}
body:has(.site-announce.is-hidden) .main-content {
  padding-top: 80px !important;
}
@media (max-width: 1100px) {
  .main-content { padding-top: 112px !important; }
  body:has(.site-announce.is-hidden) .main-content { padding-top: 72px !important; }
}
@media (max-width: 480px) {
  .main-content { padding-top: 104px !important; }
  body:has(.site-announce.is-hidden) .main-content { padding-top: 64px !important; }
}

/* Drawer mobile tetap dari atas viewport */
@media (max-width: 1100px) {
  .nav-links {
    top: 0 !important;
    padding-top: 76px !important;
  }
}
@media (max-width: 480px) {
  .nav-links {
    padding-top: 68px !important;
  }
}

/* ============================================================
   KEGIATAN — kartu bervariasi (aesthetic grid)
   ============================================================ */
.kegiatan-grid-varied {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.kegiatan-grid-varied .card-kegiatan {
  border: none;
  background: transparent;
  box-shadow: none;
}
.kegiatan-grid-varied .card-kegiatan:hover {
  transform: none;
  box-shadow: none;
}

.kg-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

/* Accent themes */
.card-kegiatan.accent-blue .kg-badge { background: rgba(37,99,235,.14); color: #1d4ed8; }
.card-kegiatan.accent-violet .kg-badge { background: rgba(124,58,237,.14); color: #6d28d9; }
.card-kegiatan.accent-teal .kg-badge { background: rgba(13,148,136,.14); color: #0f766e; }
.card-kegiatan.accent-amber .kg-badge { background: rgba(217,119,6,.14); color: #b45309; }
.card-kegiatan.accent-rose .kg-badge { background: rgba(225,29,72,.12); color: #be123c; }

.card-kegiatan.accent-blue { --kg-ring: rgba(37,99,235,.35); --kg-glow: rgba(37,99,235,.18); }
.card-kegiatan.accent-violet { --kg-ring: rgba(124,58,237,.35); --kg-glow: rgba(124,58,237,.18); }
.card-kegiatan.accent-teal { --kg-ring: rgba(13,148,136,.35); --kg-glow: rgba(13,148,136,.18); }
.card-kegiatan.accent-amber { --kg-ring: rgba(217,119,6,.35); --kg-glow: rgba(217,119,6,.18); }
.card-kegiatan.accent-rose { --kg-ring: rgba(225,29,72,.3); --kg-glow: rgba(225,29,72,.15); }

/* --- Classic --- */
.card-kegiatan.kg-classic {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px -22px rgba(15,23,42,.3);
  transition: transform .28s ease, box-shadow .28s ease;
}
.card-kegiatan.kg-classic:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px var(--kg-glow, rgba(37,99,235,.25));
}
.card-kegiatan.kg-classic .card-media { height: 200px; border-radius: 0; }
.card-kegiatan.kg-classic .card-body-pad { padding: 18px 20px 22px; }

/* --- Overlay (featured) --- */
.card-kegiatan.kg-overlay {
  border-radius: 22px;
  overflow: hidden;
  min-height: 340px;
  box-shadow: 0 20px 44px -18px rgba(15,23,42,.35);
  transition: transform .3s ease;
}
.card-kegiatan.kg-overlay:hover { transform: translateY(-6px) scale(1.01); }
.kg-overlay-wrap { position: relative; min-height: 340px; }
.kg-overlay-wrap .card-media {
  position: absolute; inset: 0; height: 100%;
}
.kg-overlay-wrap .card-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.kg-overlay-wrap .card-media.no-photo {
  background: linear-gradient(145deg, #1e3a8a, #312e81 50%, #0f172a);
}
.kg-overlay-body {
  position: relative;
  z-index: 2;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 22px 26px;
  background: linear-gradient(180deg, transparent 20%, rgba(15,23,42,.55) 55%, rgba(15,23,42,.88) 100%);
  color: #fff;
}
.kg-overlay-body .card-date-label { color: rgba(255,255,255,.75); }
.kg-overlay-body .card-title-sm { color: #fff; font-size: 1.25rem; margin: 6px 0 8px; }
.kg-overlay-body .card-desc {
  color: rgba(255,255,255,.82);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kg-overlay-body .kg-badge {
  background: rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(6px);
  align-self: flex-start;
}
.card-kegiatan.kg-overlay .mini-gallery {
  padding: 12px 14px 14px;
  background: var(--bg-card, #fff);
  margin: 0;
}

/* --- Split --- */
.card-kegiatan.kg-split {
  background: var(--bg-card, #fff);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 14px 32px -20px rgba(15,23,42,.28);
  transition: transform .28s ease, box-shadow .28s ease;
}
.card-kegiatan.kg-split:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px -18px var(--kg-glow);
}
.kg-split-inner { display: flex; flex-direction: column; }
@media (min-width: 640px) {
  .kegiatan-grid-varied .card-kegiatan.kg-split {
    grid-column: span 1;
  }
  .kg-split-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 220px;
  }
  .card-kegiatan.kg-split .card-media {
    height: 100%;
    min-height: 220px;
  }
}
.card-kegiatan.kg-split .card-media { height: 180px; }
.card-kegiatan.kg-split .card-body-pad {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Polaroid --- */
.card-kegiatan.kg-polaroid {
  padding: 10px 10px 0;
  background: transparent;
}
.kg-polaroid-frame {
  background: #fff;
  border-radius: 6px 6px 12px 12px;
  padding: 12px 12px 18px;
  box-shadow:
    0 4px 0 rgba(15,23,42,.04),
    0 18px 40px -16px rgba(15,23,42,.28);
  transform: rotate(-1.2deg);
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(226,232,240,.9);
}
.card-kegiatan.kg-polaroid:nth-child(even) .kg-polaroid-frame { transform: rotate(1.4deg); }
.card-kegiatan.kg-polaroid:hover .kg-polaroid-frame {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 28px 50px -18px var(--kg-glow);
}
.card-kegiatan.kg-polaroid .card-media {
  height: 210px;
  border-radius: 4px;
  overflow: hidden;
}
.card-kegiatan.kg-polaroid .card-body-pad { padding: 14px 6px 4px; text-align: center; }
.card-kegiatan.kg-polaroid .card-title-sm { font-family: Georgia, "Times New Roman", serif; }

/* --- Banner --- */
.card-kegiatan.kg-banner {
  background: var(--bg-card, #fff);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 16px 40px -20px rgba(15,23,42,.3);
  display: flex;
  flex-direction: column;
  transition: transform .28s ease;
}
.card-kegiatan.kg-banner:hover { transform: translateY(-5px); }
.card-kegiatan.kg-banner .card-media { height: 160px; }
.kg-banner-body { padding: 18px 20px 22px; }
.kg-banner-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.card-kegiatan.kg-banner {
  border-top: 4px solid var(--kg-ring, #3b82f6);
}

/* Featured span on large screens — every 5th starts as wider feel via overlay */
@media (min-width: 900px) {
  .kegiatan-grid-varied .card-kegiatan.kg-overlay:nth-child(5n+2) {
    grid-column: span 2;
  }
  .kegiatan-grid-varied .card-kegiatan.kg-banner:nth-child(5n+1) {
    grid-column: span 2;
  }
}

/* ============================================================
   KENANGAN — scrapbook / memory wall
   ============================================================ */
.kenangan-memory-wall.kenangan-timeline {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 0 40px;
}
.kenangan-memory-wall.kenangan-timeline::before {
  background: linear-gradient(180deg,
    #f59e0b 0%,
    #3b82f6 35%,
    #8b5cf6 70%,
    transparent 100%);
  width: 4px;
  left: 17px;
}

.kenangan-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 36px;
}
.kenangan-dot {
  position: absolute;
  left: 9px;
  top: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(59,130,246,.2);
  z-index: 2;
}

/* Polaroid memory */
.kn-polaroid-card {
  position: relative;
  background: #fffef9;
  border: 1px solid #e7e5e4;
  border-radius: 4px;
  padding: 14px 14px 18px;
  box-shadow: 0 12px 28px -12px rgba(15,23,42,.22);
  transform: rotate(var(--kn-rot, -1deg));
  transition: transform .3s ease, box-shadow .3s ease;
  max-width: 420px;
}
.kenangan-item:hover .kn-polaroid-card {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 20px 40px -14px rgba(15,23,42,.28);
}
.kn-polaroid-card .kenangan-foto {
  margin: 0 0 12px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.kn-polaroid-card .kenangan-foto img {
  max-height: 260px;
  width: 100%;
  object-fit: cover;
}
.kn-polaroid-caption { text-align: center; }
.kn-polaroid-caption h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  margin: 4px 0 8px;
}
.kn-no-photo {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: linear-gradient(135deg, #fef3c7, #e0e7ff);
  border-radius: 4px;
  margin-bottom: 12px;
}

/* Washi tape */
.kn-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 88px;
  height: 22px;
  border-radius: 2px;
  opacity: 0.85;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.tape-amber .kn-tape { background: repeating-linear-gradient(-45deg, #fbbf24, #fbbf24 6px, #f59e0b 6px, #f59e0b 12px); }
.tape-rose .kn-tape { background: repeating-linear-gradient(-45deg, #fda4af, #fda4af 6px, #fb7185 6px, #fb7185 12px); }
.tape-sky .kn-tape { background: repeating-linear-gradient(-45deg, #7dd3fc, #7dd3fc 6px, #38bdf8 6px, #38bdf8 12px); }
.tape-mint .kn-tape { background: repeating-linear-gradient(-45deg, #6ee7b7, #6ee7b7 6px, #34d399 6px, #34d399 12px); }
.tape-violet .kn-tape { background: repeating-linear-gradient(-45deg, #c4b5fd, #c4b5fd 6px, #a78bfa 6px, #a78bfa 12px); }

/* Journal / diary */
.kn-journal-card {
  position: relative;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 20px 22px 22px 28px;
  box-shadow: 0 10px 28px -14px rgba(180,83,9,.2);
  overflow: hidden;
}
.kn-journal-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    transparent,
    transparent 27px,
    rgba(251,191,36,.18) 27px,
    rgba(251,191,36,.18) 28px
  );
  pointer-events: none;
  opacity: 0.7;
}
.kn-journal-card > *:not(.kn-journal-lines) { position: relative; z-index: 1; }
.kn-journal-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #92400e;
}
.kn-journal-card .kenangan-tanggal { color: #b45309; }
.kn-journal-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
}

/* Wide cinematic */
.kn-wide-card {
  display: grid;
  gap: 0;
  background: #0f172a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px -16px rgba(15,23,42,.4);
  color: #fff;
  border: none;
}
.kn-wide-media .kenangan-foto { margin: 0; border-radius: 0; }
.kn-wide-media .kenangan-foto img {
  max-height: 220px;
  width: 100%;
  object-fit: cover;
  display: block;
}
.kn-wide-body { padding: 18px 20px 22px; }
.kn-wide-body h3 { color: #fff; margin: 8px 0; font-size: 1.2rem; }
.kn-wide-body p { color: rgba(255,255,255,.78); margin: 0; }
.kn-year-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(251,191,36,.2);
  color: #fbbf24;
}

/* Ticket stub */
.kn-ticket-card {
  display: flex;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px dashed #cbd5e1;
  box-shadow: 0 12px 28px -16px rgba(15,23,42,.2);
  padding: 0 !important;
}
.kn-ticket-stub {
  flex-shrink: 0;
  width: 72px;
  background: linear-gradient(180deg, #1e40af, #312e81);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  position: relative;
}
.kn-ticket-stub::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-body, #f8fafc);
  box-shadow: 0 -28px 0 var(--bg-body, #f8fafc), 0 28px 0 var(--bg-body, #f8fafc);
}
.kn-ticket-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.85;
}
.kn-ticket-num {
  font-size: 13px;
  font-weight: 800;
  font-family: ui-monospace, monospace;
  color: #fbbf24;
}
.kn-ticket-body {
  flex: 1;
  padding: 16px 18px 18px;
  min-width: 0;
}
.kn-ticket-body .kenangan-foto { margin-top: 10px; }

/* Stacked frames */
.kn-stack-card {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 12px 8px 8px !important;
  max-width: 400px;
}
.kn-stack-back,
.kn-stack-mid {
  position: absolute;
  inset: 8px 4px auto 4px;
  height: 70%;
  border-radius: 10px;
  background: #e2e8f0;
  z-index: 0;
}
.kn-stack-back {
  transform: rotate(-4deg);
  background: #cbd5e1;
  top: 4px;
}
.kn-stack-mid {
  transform: rotate(3deg);
  background: #e2e8f0;
  top: 10px;
}
.kn-stack-front {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 32px -14px rgba(15,23,42,.25);
  transform: rotate(var(--kn-rot, 0.5deg));
  transition: transform .3s ease;
}
.kenangan-item:hover .kn-stack-front {
  transform: rotate(0deg) translateY(-3px);
}
.kn-stack-front .kenangan-foto { margin: 0 0 10px; border-radius: 8px; }
.kn-stack-caption h3 { font-size: 1.05rem; margin: 4px 0 6px; }

/* Compact home preview */
.kenangan-compact .kenangan-item:nth-child(n+5) { display: none; }
.kenangan-compact.kenangan-memory-wall { padding-bottom: 8px; }

/* Mobile timeline */
@media (max-width: 640px) {
  .kenangan-item { padding-left: 48px; margin-bottom: 28px; }
  .kn-ticket-card { flex-direction: column; }
  .kn-ticket-stub {
    width: 100%;
    flex-direction: row;
    padding: 10px 16px;
    gap: 12px;
  }
  .kn-ticket-stub::after { display: none; }
  .kn-ticket-label {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .kegiatan-grid-varied {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .kegiatan-grid-varied .card-kegiatan.kg-overlay:nth-child(5n+2),
  .kegiatan-grid-varied .card-kegiatan.kg-banner:nth-child(5n+1) {
    grid-column: span 1;
  }
}

/* Dark mode tweaks */
[data-theme="dark"] .card-kegiatan.kg-classic,
[data-theme="dark"] .card-kegiatan.kg-split,
[data-theme="dark"] .card-kegiatan.kg-banner,
[data-theme="dark"] .kg-polaroid-frame {
  background: var(--bg-card, #1e293b);
  border-color: var(--border-color, #334155);
}
[data-theme="dark"] .kn-polaroid-card,
[data-theme="dark"] .kn-stack-front {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
[data-theme="dark"] .kn-journal-card {
  background: #292524;
  border-color: #57534e;
}
[data-theme="dark"] .kn-journal-card h3 { color: #fbbf24; }
[data-theme="dark"] .kn-ticket-card {
  background: #1e293b;
  border-color: #475569;
}
[data-theme="dark"] .kn-ticket-stub::after {
  background: var(--bg-body, #0f172a);
  box-shadow: 0 -28px 0 var(--bg-body, #0f172a), 0 28px 0 var(--bg-body, #0f172a);
}
[data-theme="dark"] .kn-no-photo {
  background: linear-gradient(135deg, #422006, #1e3a5f);
}

/* ============================================================
   ENHANCED UI / ANIMATIONS / INTERACTIVITY (2026 polish)
   ============================================================ */

/* Cursor glow (desktop) */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, rgba(220,38,38,0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: multiply;
  will-change: transform;
}
[data-theme="dark"] .cursor-glow {
  background: radial-gradient(circle, rgba(96,165,250,0.22) 0%, rgba(248,113,113,0.1) 40%, transparent 70%);
  mix-blend-mode: screen;
}

/* Loader exit animation */
.site-loader.loader-exit {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}

/* Enhanced reveal (hanya elemen yang belum in-view) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1),
              transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Hero badge pulse */
.hero-badge.badge-pulse {
  animation: badgePulse 2.8s ease-in-out infinite;
  position: relative;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.35); }
  50%      { box-shadow: 0 0 0 10px rgba(59,130,246,0); }
}

/* Hero chips entrance */
.hero-chip.chip-pop-in {
  animation: chipPop 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes chipPop {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Title underline grow */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title .title-underline {
  display: block;
  height: 3px;
  width: 0;
  margin-top: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent, #dc2626));
  transition: width 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-on-scroll.in-view .section-title .title-underline,
.page-view.active .section-title .title-underline {
  width: 64px;
}

/* Portal highlight cards — glass + lift */
.portal-hl-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 8px 28px -8px rgba(30,58,138,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.portal-hl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(30,58,138,0.18);
  border-color: rgba(59,130,246,0.3);
}
[data-theme="dark"] .portal-hl-card {
  background: rgba(30,41,59,0.75);
  border-color: rgba(71,85,105,0.5);
}

/* Hero CTA primary glow */
.hero-cta-primary {
  position: relative;
  overflow: hidden;
}
.hero-cta-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.hero-cta-primary:hover::after {
  transform: translateX(120%);
}

/* Stats items interactive */
.hero-stat-item {
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), background 0.3s ease;
  border-radius: 14px;
  padding: 10px 8px;
  cursor: default;
}
.hero-stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.55);
}
[data-theme="dark"] .hero-stat-item:hover {
  background: rgba(30,41,59,0.6);
}
.hero-stat-item b {
  transition: color 0.3s ease, transform 0.3s ease;
}
.hero-stat-item:hover b {
  color: var(--primary-light);
  transform: scale(1.06);
}

/* Visi-Misi cards polish */
.vm-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -12px rgba(30,58,138,0.16);
}

/* Card grid items — subtle scale on hover */
.card-grid > *,
.hof-grid > * {
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
}
.card-grid > *:hover,
.hof-grid > *:hover {
  transform: translateY(-6px);
}
.public-prodi-stats-grid > * {
  transform: none !important;
}

/* Info tooltip */
.info-tooltip {
  position: fixed;
  transform: translate(-50%, -110%) scale(0.92);
  background: #0f172a;
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  max-width: 260px;
  white-space: normal;
  text-align: center;
}
.info-tooltip.show {
  opacity: 1;
  transform: translate(-50%, -120%) scale(1);
}
.info-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0f172a;
}

/* Particle interactive translate */
.particle {
  transition: translate 0.4s ease-out;
}

/* Keyboard focus rings */
.kbd-nav a:focus-visible,
.kbd-nav button:focus-visible,
.kbd-nav input:focus-visible {
  outline: 2.5px solid var(--primary-light);
  outline-offset: 3px;
}

/* Ambient blobs more lively */
.glow-blob {
  filter: blur(60px);
  opacity: 0.55;
}
.blob-1 { animation: blobPulse 14s infinite alternate ease-in-out, blobDrift1 22s infinite alternate ease-in-out; }
.blob-2 { animation: blobPulse 11s infinite alternate-reverse ease-in-out, blobDrift2 18s infinite alternate ease-in-out; }
.blob-3 { animation: blobPulse 16s infinite alternate ease-in-out, blobDrift3 25s infinite alternate-reverse ease-in-out; }

@keyframes blobDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -30px) scale(1.08); }
}
@keyframes blobDrift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, 25px) scale(0.95); }
}
@keyframes blobDrift3 {
  from { transform: translate(0, 0); }
  to   { transform: translate(30px, 40px); }
}

/* Hero video — tanpa zoom kontinu agar hemat GPU */
.hero-video {
  transform: scale(1.02);
}

/* Scroll progress thicker + gradient */
.scroll-progress {
  height: 3.5px;
  background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 40%, #dc2626 100%);
  box-shadow: 0 0 12px rgba(59,130,246,0.45);
}

/* Back to top enhanced */
.back-to-top {
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease, box-shadow 0.3s ease;
}
.back-to-top.show {
  animation: bounceIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes bounceIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Navbar glass on scroll polish */
.site-header.scrolled .navbar {
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

/* Prodi stats bars animated fill (if present) */
.public-prodi-stats-grid .card,
.pps-bar-fill {
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}

/* Kenangan timeline item entrance */
.kenangan-item {
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.kenangan-timeline .kenangan-item.in-view {
  opacity: 1;
  transform: none;
}

/* Music player widget polish */
.music-player-widget .music-btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.music-player-widget .music-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(30,58,138,0.25);
}

/* Footer entrance */
footer {
  position: relative;
  overflow: hidden;
}
.footer-decor {
  animation: footerShimmer 8s linear infinite;
}
@keyframes footerShimmer {
  0% { opacity: 0.4; }
  50% { opacity: 0.7; }
  100% { opacity: 0.4; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .cursor-glow,
  .hero-video,
  .glow-blob,
  .particle,
  .hero-badge.badge-pulse,
  .hero-chip.chip-pop-in {
    animation: none !important;
  }
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Quick Facts interactive strip ---------- */
.quick-facts {
  margin: 36px 0 12px;
  padding: 24px 28px;
  border-radius: var(--radius-lg, 20px);
  background: linear-gradient(135deg, rgba(30,58,138,0.06) 0%, rgba(220,38,38,0.05) 100%);
  border: 1px solid rgba(30,58,138,0.1);
  position: relative;
  overflow: hidden;
}
.quick-facts::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 70%);
  pointer-events: none;
}
.quick-facts-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.quick-facts-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.8);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(30,58,138,0.1);
}
.quick-facts-header b {
  font-size: 1.15rem;
  color: var(--primary-dark, #1e3a8a);
  display: block;
}
.quick-facts-header p {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--text-muted, #64748b);
}
.quick-facts-track {
  position: relative;
  min-height: 72px;
}
.quick-fact-card {
  display: none;
  align-items: flex-start;
  gap: 14px;
  animation: factFade 0.45s cubic-bezier(0.16,1,0.3,1) both;
}
.quick-fact-card.active {
  display: flex;
}
@keyframes factFade {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.qf-num {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  opacity: 0.35;
  line-height: 1.2;
  min-width: 36px;
}
.quick-fact-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text, #1e293b);
}
.quick-facts-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}
.qf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(30,58,138,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}
.qf-dot.active {
  width: 22px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), #dc2626);
}
.qf-dot:hover:not(.active) {
  background: rgba(30,58,138,0.4);
}

[data-theme="dark"] .quick-facts {
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(220,38,38,0.06) 100%);
  border-color: rgba(71,85,105,0.4);
}
[data-theme="dark"] .quick-facts-icon {
  background: rgba(30,41,59,0.9);
}
[data-theme="dark"] .quick-facts-header b { color: #93c5fd; }
[data-theme="dark"] .quick-fact-card p { color: #e2e8f0; }
[data-theme="dark"] .qf-dot { background: rgba(148,163,184,0.25); }

@media (max-width: 640px) {
  .quick-facts { padding: 18px 16px; }
  .quick-facts-header { gap: 10px; }
  .quick-facts-icon { width: 40px; height: 40px; font-size: 22px; }
}

/* ============================================================
   STEKOM 2026 — Fresh Professional Enhancements
   ============================================================ */

/* Refined cards — more depth, cleaner edges */
.card, .student-card, .kesan-card, .portal-hl-card, .official-link-card, .vm-card {
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 0.35s var(--transition), box-shadow 0.35s var(--transition), border-color 0.3s ease !important;
}
.card:hover, .student-card:hover, .portal-hl-card:hover, .official-link-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: color-mix(in srgb, var(--primary) 30%, transparent) !important;
}

/* Section headers — cleaner hierarchy */
.section-title {
  letter-spacing: -0.03em;
  font-weight: 800 !important;
}
.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 560px;
}

/* Hero polish */
.hero {
  border-radius: var(--radius-xl) !important;
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 0 1px color-mix(in srgb, var(--primary) 8%, transparent);
}
.hero-badge {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-stat-item {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 14px !important;
}
.hero-cta-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--primary) 45%, transparent) !important;
}
.hero-cta-primary:hover {
  box-shadow: 0 12px 28px -6px color-mix(in srgb, var(--primary) 55%, transparent) !important;
}

/* Navbar glass */
.navbar {
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.nav-link.active {
  color: var(--primary) !important;
  font-weight: 700;
}

/* Informative info panels */
.info-panel {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 6%, white) 0%, color-mix(in srgb, var(--accent) 5%, white) 100%);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
}
.info-panel h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-panel p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

/* Feature grid for empty-friendly pages */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0 32px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.2);
}
.feature-card .fc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, white), color-mix(in srgb, var(--accent) 8%, white));
}
.feature-card b {
  display: block;
  font-size: 0.98rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Campus facilities strip */
.fasilitas-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.fasilitas-item {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fasilitas-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.fasilitas-item span {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.fasilitas-item b {
  font-size: 0.82rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* Prodi showcase */
.prodi-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}
.prodi-group-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.prodi-group-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}
.prodi-group-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.prodi-group-card li {
  font-size: 0.88rem;
  color: var(--text-body);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}
.prodi-group-card li:last-child { border-bottom: none; }
.prodi-group-card li::before {
  content: "▸";
  color: var(--accent);
  font-size: 0.75rem;
}

/* Page intro banner */
.page-intro {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 5%, white) 0%, color-mix(in srgb, var(--accent) 4%, white) 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.page-intro-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.page-intro h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
}
.page-intro p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Better empty states */
.empty-state {
  text-align: center;
  padding: 48px 28px !important;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 2px dashed #cbd5e1 !important;
  border-radius: var(--radius-xl) !important;
}
.empty-state-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  opacity: 0.85;
}
.empty-state b {
  display: block;
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Footer refresh */
footer {
  background: linear-gradient(180deg, #0b1220 0%, #122456 100%) !important;
  color: #cbd5e1;
  margin-top: 64px;
}
footer a { color: #93c5fd !important; }
footer a:hover { color: #fff !important; }
.footer-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Official links polish */
.official-link-card {
  border-radius: var(--radius-lg) !important;
  padding: 24px !important;
}
.official-link-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, white), color-mix(in srgb, var(--accent) 10%, white));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.official-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

/* Contact cards */
.contact-card {
  border-radius: var(--radius-lg) !important;
}
.contact-info-list p {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.contact-info-list p:last-child { border-bottom: none; }

/* Auth pages consistency */
.auth-shell {
  min-height: 100vh;
  background: var(--hero-mesh);
}

/* Scroll progress bar accent */
.scroll-progress {
  background: linear-gradient(90deg, var(--primary), var(--accent)) !important;
}

/* Soft divider */
.section-divider {
  opacity: 0.35;
  letter-spacing: 0.4em;
  color: var(--primary-light);
}

/* Quick facts polish */
.quick-fact-card {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .page-intro { flex-direction: column; align-items: center; text-align: center; }
  .info-panel { padding: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
}
