/* =========================================================
   E-Library / Landing Page - Poltek AMI Medan
   Deep blue metallic · modern · ringan · hover dinamis
   ---------------------------------------------------------
   Segmen (urut): base · tombol · badge/alert · header ·
   hero slider · hero overlay+scrim transparan+badge 1960 ·
   section/card · info-card emblem · kontak ber-ikon · grids ·
   jurusan · content-card · PIXEL MOSAIC · people · org-panel ·
   map · PARTNER 1.8x + glow permanen · footer + ikon kredit ·
   FLOATING (self-contained) · modal · auth · admin ·
   responsive · hover-glow PC · reduced-motion
   ========================================================= */

:root {
  --navy-900: #050b18;
  --navy-800: #07142b;
  --navy-700: #0b1f3f;
  --metal-600: #163054;
  --metal-500: #1e3a5f;
  --accent: #38bdf8;
  --accent-2: #2563eb;
  --gold: #fbbf24;
  --text: #e8f1ff;
  --muted: #9fb3d1;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --card: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --header-h: 70px;

  --pulse-color: #6cc4ff;
  --pulse-scale: 1.9;
  --pulse-border: 2px;
  --pulse-opacity: 0.9;
  --pulse-inset: -4px;
  --glow-soft: 0 0 12px rgba(108,196,255,.45);
  --glow-ring: 0 0 10px var(--pulse-color);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.16), transparent 28%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800) 45%, #030812);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.28);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.34);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}
.btn.danger:hover { background: rgba(239, 68, 68, 0.28); }

/* ---------- Badge & Alert ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-size: 13px;
}
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.28); color:#bbf7d0; }
.alert-error   { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.28); color:#fecaca; }
.alert-warning { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.28); color:#fde68a; }

/* =========================================================
   HEADER · transparan total di puncak, glass solid saat scroll
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  background: rgba(5, 11, 24, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#nav-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.site-header.scrolled #nav-particles { opacity: 0.8; }

.navbar {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  height: var(--header-h);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 100%;
}
.brand-logo {
  height: 42px !important;
  width: auto !important;
  max-width: 120px !important;
  min-width: 0;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 8px 16px rgba(56, 189, 248, 0.3));
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.15;
}
.brand-text strong {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}
.brand-text small {
  color: rgba(232, 241, 255, 0.82);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.25s ease;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-links a,
.dropbtn {
  color: var(--text);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-links a:hover,
.dropbtn:hover,
.nav-links a.active {
  background: rgba(56, 189, 248, 0.16);
  color: #dff6ff;
}
.btn-nav-admin {
  background: linear-gradient(135deg, rgba(251,191,36,.22), rgba(56,189,248,.22));
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.dropdown { position: relative; }
.dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  background: rgba(7, 20, 43, 0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.22s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.open .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-content a { display: block; border-radius: 12px; }

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero-slider {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active { opacity: 1; }
.fallback-slide {
  background:
    radial-gradient(circle at 30% 30%, rgba(56,189,248,.28), transparent 28%),
    linear-gradient(135deg, #07142b, #102a4e 55%, #050b18);
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 8, 18, 0.10) 0%,
    rgba(3, 8, 18, 0.30) 30%,
    rgba(3, 8, 18, 0.66) 72%,
    rgba(3, 8, 18, 0.92) 100%
  );
}
.slide-content {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 70px) 0 90px;
  text-align: center;
}
.slide-content h1,
.slide-content h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.slide-content p {
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.hero-cta {
  position: absolute;
  z-index: 3;
  bottom: 118px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.visitor-badges {
  position: absolute;
  z-index: 3;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================================================
   HERO TITLE OVERLAY · nama kampus + badge "Since 1960"
   posisi TENGAH · scrim TRANSPARAN TOTAL (tanpa panel gelap)
   ========================================================= */
.hero-title-overlay {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + clamp(44px, 13vh, 150px));
  padding: 0 16px;
  text-align: center;
  pointer-events: none;
}
.hero-title-overlay .hero-scrim {
  position: absolute;
  left: -8%;
  right: -8%;
  top: -30px;
  bottom: -18px;
  z-index: 0;
  pointer-events: none;
  background: transparent;
  filter: none;
}
.hero-title-overlay h1 {
  position: relative;
  z-index: 1;
  margin: 0 auto 14px;
  max-width: 1000px;
  font-size: clamp(1.5rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #eaf4ff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(56, 189, 248, 0.45);
}
.since-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #dff1ff;
  background: rgba(7, 20, 43, 0.42);
  border: 1px solid rgba(108, 196, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 0 0 1px rgba(108, 196, 255, 0.12),
    0 0 14px rgba(108, 196, 255, 0.28);
  animation: sinceBreath 3.4s ease-in-out infinite;
}
.since-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pulse-color, #6cc4ff);
  box-shadow: 0 0 8px var(--pulse-color, #6cc4ff);
}
@keyframes sinceBreath {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(108, 196, 255, 0.10),
      0 0 10px rgba(108, 196, 255, 0.20);
    border-color: rgba(108, 196, 255, 0.38);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(108, 196, 255, 0.22),
      0 0 22px rgba(108, 196, 255, 0.46);
    border-color: rgba(108, 196, 255, 0.70);
  }
}

/* =========================================================
   SECTIONS & CARDS · padding dipadatkan
   ========================================================= */
.section { padding: 52px 0; scroll-margin-top: 84px; }
.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.section-head { text-align: center; margin-bottom: 22px; }
.section-head h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section-head p { margin: 0; color: var(--muted); }
.subheading { margin: 20px 0 12px; font-size: 1.25rem; text-align: center; }

.glass-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  text-align: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
  background: rgba(255, 255, 255, 0.09);
}
.about-grid,
.vision-grid,
.location-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.highlight {
  border-color: rgba(251, 191, 36, 0.28);
  background: linear-gradient(135deg, rgba(251,191,36,.10), rgba(56,189,248,.08));
}

/* =========================================================
   INFO-CARD · ghost emblem + aurora + accent bar + underline
   ========================================================= */
.info-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.info-card h3,
.info-card p { position: relative; z-index: 2; }
.info-card .card-emblem {
  position: absolute;
  z-index: 0;
  right: -16px;
  bottom: -16px;
  width: 172px;
  height: 172px;
  color: var(--emblem, var(--accent));
  opacity: .085;
  pointer-events: none;
  transition: opacity .35s ease, transform .55s ease;
}
.info-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  height: 3px;
  width: 38%;
  border-radius: 0 0 3px 0;
  background: linear-gradient(90deg, var(--emblem, var(--accent)), transparent);
  transition: width .4s ease;
}
.info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(var(--emblem-rgb, 56,189,248), .12), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(var(--emblem-rgb, 56,189,248), .07), transparent 55%);
  opacity: .9;
  transition: opacity .35s ease;
}
.info-card h3::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--emblem, var(--accent)), transparent);
}
.info-card:hover .card-emblem { opacity: .16; transform: rotate(-7deg) scale(1.06); }
.info-card:hover::before { width: 72%; }
.info-card:hover::after { opacity: 1; }
.card-tentang { --emblem: #38bdf8; --emblem-rgb: 56,189,248; }
.card-sejarah { --emblem: #fbbf24; --emblem-rgb: 251,191,36; }
.card-visi    { --emblem: #fbbf24; --emblem-rgb: 251,191,36; }
.card-misi    { --emblem: #38bdf8; --emblem-rgb: 56,189,248; }
.card-kontak  { --emblem: #38bdf8; --emblem-rgb: 56,189,248; }
.card-peta    { --emblem: #fbbf24; --emblem-rgb: 251,191,36; }

/* =========================================================
   LOKASI · daftar kontak ber-ikon
   ========================================================= */
.contact-list {
  list-style: none;
  position: relative;
  z-index: 2;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-item:hover {
  transform: translateX(4px);
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(108, 196, 255, 0.35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.ci-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #dff1ff;
  background: linear-gradient(135deg, rgba(56,189,248,.22), rgba(37,99,235,.18));
  border: 1px solid rgba(108, 196, 255, 0.30);
  box-shadow: inset 0 0 12px rgba(108, 196, 255, 0.18);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.contact-item:hover .ci-icon {
  box-shadow: 0 0 16px rgba(108, 196, 255, 0.45), inset 0 0 12px rgba(108, 196, 255, 0.25);
  transform: scale(1.06);
}
.ci-icon svg { width: 20px; height: 20px; }
.ci-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ci-text small {
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted);
}
.ci-text strong {
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
  word-break: break-word;
}
.ci-arrow {
  margin-left: auto;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: 0.25s ease;
  font-size: 14px;
}
.contact-item:hover .ci-arrow { opacity: 1; transform: translateX(0); color: var(--accent); }
.map-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.map-title svg { width: 18px; height: 18px; color: var(--accent); }

/* =========================================================
   GRIDS
   ========================================================= */
.major-grid,
.card-grid,
.people-grid,
.admin-grid,
.slide-list,
.partner-admin-list,
.image-grid,
.existing-images { display: grid; gap: 16px; }
.major-grid,
.card-grid,
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.people-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.staff-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

/* ---- JURUSAN ---- */
.major-card { padding: 0; overflow: hidden; text-align: center; }
.major-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #102a4e, #07142b);
}
.major-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.major-photo img.active { opacity: 1; }
.major-icon-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: rgba(255,255,255,.4);
}
.major-body { padding: 16px; }
.major-body h3 { margin: 0 0 8px; font-size: 1.1rem; }
.major-body p { margin: 0; color: var(--muted); line-height: 1.5; }

/* ---- CONTENT CARD ---- */
.content-card { padding: 0; overflow: hidden; cursor: pointer; }
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #102a4e, #07142b);
  overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.content-card:hover .card-thumb img { transform: scale(1.06); }
.thumb-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 3rem; color: rgba(255,255,255,.35);
}
.play-badge {
  position: absolute; right: 12px; bottom: 12px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(239,68,68,.92); color: #fff; font-weight: 900;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
}
.card-body { padding: 16px; }
.card-body h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.card-body p { margin: 0 0 12px; color: var(--muted); line-height: 1.5; }
.card-link { color: var(--accent); font-weight: 700; }

/* =========================================================
   PIXEL MOSAIC ROTATOR · thumbnail Fasilitas & Berita
   ========================================================= */
.px-rotator .px-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: none;
  transition: opacity .5s ease, transform .45s ease;
  z-index: 1;
}
.px-rotator .px-layer.active { opacity: 1; }
.px-rotator { transition: transform .45s ease; }
.content-card:hover .px-rotator { transform: scale(1.045); }
.content-card:hover .px-rotator .px-layer { transform: none; }
.px-tiles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.px-tile {
  position: absolute;
  opacity: 0;
  transform: scale(1.28);
  background-repeat: no-repeat;
  transition: opacity .36s ease, transform .36s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.px-tile.on { opacity: 1; transform: scale(1); }
.px-rotator .play-badge { z-index: 3; }

/* ---- PEOPLE ---- */
.person-card { text-align: center; cursor: pointer; }
.avatar-wrap {
  width: 120px; height: 120px;
  margin: 0 auto 12px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, rgba(56,189,248,.5), rgba(251,191,36,.45));
}
.avatar-wrap.small { width: 86px; height: 86px; }
.avatar {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #0b1f3f;
}
.avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.avatar img.active { opacity: 1; }
.avatar.initials {
  display: grid; place-items: center;
  font-size: 2rem; font-weight: 900; color: var(--accent);
}
.person-card h4 { margin: 0 0 6px; }
.position { color: var(--gold); font-weight: 700; margin: 0 0 8px; }
.bio { color: var(--muted); margin: 0; line-height: 1.5; }
.person-modal-title { text-align: center; margin-bottom: 14px; }
.person-modal-title h3 { margin: 0 0 4px; }
.person-modal-title .position { color: var(--gold); font-weight: 700; margin: 0; }

/* ---- ORG PANEL ---- */
.org-panel {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
  margin-bottom: 14px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.org-panel:hover { border-color: rgba(56, 189, 248, 0.25); }
.org-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  user-select: none;
}
.org-panel-head h3 { margin: 0; font-size: 1.2rem; }
.org-controls { display: flex; align-items: center; gap: 8px; }
.org-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.05rem; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: 0.22s ease;
}
.org-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}
.org-panel-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}
.org-panel-body:not(.collapsed) {
  max-height: 5000px;
  opacity: 1;
  padding: 18px 20px;
}
.org-panel.maximized {
  position: fixed;
  inset: 84px 18px 18px;
  z-index: 96;
  background: linear-gradient(180deg, rgba(7,20,43,.98), rgba(3,8,18,.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  overflow: auto;
}
.org-panel.maximized .org-panel-head {
  position: sticky; top: 0; z-index: 2;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 20, 43, 0.92);
}
.org-panel.maximized .org-panel-body:not(.collapsed) {
  max-height: none;
  overflow: visible;
}

/* ---- MAP ---- */
.map-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b1f3f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.map-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(6%) contrast(1.02) brightness(0.98);
}

/* =========================================================
   PARTNER LOGO · 1.8x · GLOW PERMANEN (tanpa hover)
   membesar LAGI + angkat z-index saat hover (PC, di bawah)
   ========================================================= */
.partner-logo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 4px 6px;
  background: transparent;
  border: none;
  border-radius: 0;
}
.partner-logo img {
  max-height: 83px;
  width: auto;
  filter:
    grayscale(10%) contrast(1.05)
    drop-shadow(0 0 3px rgba(108,196,255,0.42))
    drop-shadow(0 0 8px rgba(56,189,248,0.26));
  opacity: 0.95;
  transition: transform 0.28s ease, filter 0.28s ease, opacity 0.28s ease;
}

/* =========================================================
   FOOTER · tipis + jalur kosong utk ikon kredit
   ========================================================= */
.site-footer {
  position: relative;
  padding: 36px 0 34px;
  background: rgba(2, 6, 14, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}
.site-footer h4 { margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a:hover { color: var(--accent); }
.copyright {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.footer-credit-btn {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 5;
  width: 18px;
  height: 18px;
  padding: 0;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--muted);
  opacity: .40;
  cursor: pointer;
  border-radius: 50%;
  transition: opacity .25s ease, color .25s ease, filter .25s ease, transform .25s ease;
}
.footer-credit-btn svg { width: 15px; height: 15px; display: block; }
.footer-credit-btn:hover,
.footer-credit-btn:focus-visible {
  opacity: .92;
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(108,196,255,.55));
  transform: scale(1.12);
}
#credit-modal .credit-title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  font-size: 1.12rem;
  letter-spacing: .3px;
}
#credit-modal .credit-ver {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .6px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #dff1ff;
  background: rgba(56,189,248,.14);
  border: 1px solid rgba(108,196,255,.38);
}
#credit-modal .credit-line { margin: 0 0 8px; line-height: 1.7; color: #dbeafe; }
#credit-modal .credit-by strong { color: var(--gold); font-weight: 800; }
#credit-modal .credit-copy {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

/* =========================================================
   FLOATING BUTTON · SELF-CONTAINED
   (variable denyut didefinisikan DI DALAM .floating-actions,
    jadi tetap hidup walau :root terganggu/terpotong)
   ========================================================= */
.floating-actions {
  --pulse-color: #6cc4ff;
  --pulse-scale: 1.9;
  --pulse-border: 2px;
  --pulse-opacity: 0.9;
  --pulse-inset: -4px;
  --glow-soft: 0 0 12px rgba(108,196,255,.45);
  --glow-ring: 0 0 10px var(--pulse-color);
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(108, 196, 255, 0.22),
    var(--glow-soft);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}
.float-btn:hover {
  transform: scale(1.1);
  filter: brightness(1.12);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(108, 196, 255, 0.4),
    0 0 18px rgba(108, 196, 255, 0.6);
}
.float-btn.whatsapp { background: linear-gradient(135deg, #22c55e, #16a34a); }
.float-btn.phone    { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.float-btn.bug      { background: linear-gradient(135deg, #fbbf24, #f97316); }
.pulse { position: relative; }
.pulse::before {
  content: "";
  position: absolute;
  inset: var(--pulse-inset);
  border-radius: 50%;
  border: var(--pulse-border) solid var(--pulse-color);
  box-shadow: var(--glow-ring);
  opacity: 0;
  pointer-events: none;
  animation: pulseRing 10s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.float-btn.whatsapp::before { animation-delay: 0s; }
.float-btn.phone::before    { animation-delay: 3s; }
.float-btn.bug::before      { animation-delay: 6s; }
@keyframes pulseRing {
  0%    { transform: scale(0.65);               opacity: 0; }
  6%    {                                          opacity: var(--pulse-opacity); }
  28%   { transform: scale(var(--pulse-scale));  opacity: 0; }
  100%  { transform: scale(var(--pulse-scale));  opacity: 0; }
}
@media (max-width: 640px) {
  .floating-actions {
    --pulse-scale: 1.55;
    --pulse-border: 1.5px;
    --pulse-opacity: 0.82;
    --pulse-inset: -3px;
    --glow-soft: 0 0 9px rgba(108,196,255,.4);
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }
  .float-btn {
    width: 30px;
    height: 30px;
    font-size: 0.92rem;
    box-shadow:
      0 6px 16px rgba(0,0,0,.32),
      0 0 0 1px rgba(108,196,255,.2),
      var(--glow-soft);
  }
}

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  position: fixed; inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 6, 14, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-dialog {
  position: relative; z-index: 2;
  width: min(980px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(11,31,63,.98), rgba(5,11,24,.98));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: left;
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  transition: background 0.22s ease;
}
.modal-close:hover { background: rgba(239,68,68,.22); }
.modal-body h3 { margin-top: 0; }
.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  margin: 16px 0;
  background: #000;
}
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.modal-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.modal-text { line-height: 1.7; color: #dbeafe; text-align: left; }

/* =========================================================
   AUTH
   ========================================================= */
.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.auth-box {
  width: min(460px, 100%);
  background: rgba(7, 20, 43, 0.88);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}

/* =========================================================
   ADMIN PANEL
   ========================================================= */
.admin-body { background: #030812; }
.admin-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
  background: linear-gradient(180deg, #07142b, #030812);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  position: sticky; top: 0;
  height: 100vh;
  overflow: auto;
}
.admin-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.admin-brand .brand-logo { height: 40px !important; width: auto !important; max-width: 110px !important; }
.admin-brand small { display: block; color: var(--muted); }
.admin-nav { display: grid; gap: 8px; }
.admin-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text);
  border: 1px solid transparent;
  transition: 0.22s ease;
}
.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.22);
}
.admin-main { padding: 24px; overflow-x: hidden; }
.admin-header h1 { margin: 0 0 16px; font-size: 1.8rem; }
.card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
}
.admin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.stat-card h3 { margin: 0 0 8px; font-size: 0.95rem; color: var(--muted); }
.stat-card p { margin: 0; font-size: 1.6rem; font-weight: 900; color: var(--accent); }
.admin-form { display: grid; gap: 14px; }
.admin-form label { display: grid; gap: 7px; font-weight: 600; }
.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.admin-form input:focus,
.admin-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}
.admin-form input[type="file"] { color: var(--muted); }
.form-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.check { display: flex !important; align-items: center; gap: 8px; }
.photo-manager,
.image-manager {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.14);
}
.existing-images { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.image-check {
  display: block;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.22s ease, background 0.22s ease;
}
.image-check:hover { border-color: rgba(56,189,248,.35); background: rgba(255,255,255,.07); }
.image-check img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.image-check span { display: block; text-align: center; font-size: 12px; color: #fecaca; }
.slide-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slide-item { display: grid; gap: 12px; }
.slide-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); }
.partner-admin-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.partner-admin-item { display: grid; gap: 10px; text-align: center; }
.partner-admin-item img {
  width: 100%; height: 90px; object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px; border-radius: 12px; border: 1px solid var(--border);
}
.admin-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}
.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th, .table td { padding: 14px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: middle; }
.table th { color: var(--muted); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table tr:last-child td { border-bottom: none; }
.thumb-small {
  width: 58px; height: 42px; object-fit: cover;
  display: inline-block; vertical-align: middle; margin-right: 8px;
  border-radius: 10px; border: 1px solid var(--border);
}
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline { display: inline; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .major-grid, .card-grid, .news-grid,
  .admin-grid, .slide-list, .partner-admin-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .staff-grid, .existing-images { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .partner-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .form-row, .photo-manager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 78px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 14px; right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(5, 11, 24, 0.97);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .dropdown-content {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    display: none; box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    margin-top: 6px;
  }
  .dropdown.open .dropdown-content { display: block; }
  .brand-text strong, .brand-text small { max-width: 170px; }
  .about-grid, .vision-grid, .location-grid, .footer-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .hero-cta { bottom: 132px; }
  .org-panel.maximized { inset: 78px 12px 12px; }
  .partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .major-grid, .card-grid, .news-grid,
  .people-grid, .staff-grid,
  .admin-grid, .slide-list, .partner-admin-list,
  .form-row, .photo-manager, .modal-gallery, .existing-images { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .slide-content { padding: calc(var(--header-h) + 56px) 0 76px; }

  .hero-title-overlay { top: calc(var(--header-h) + 24px); padding: 0 14px; }
  .hero-title-overlay h1 { font-size: clamp(1.25rem, 6.2vw, 1.9rem); margin-bottom: 10px; }
  .since-badge { font-size: 0.72rem; padding: 6px 13px; letter-spacing: 1.2px; }

  .info-card .card-emblem { width: 132px; height: 132px; right: -12px; bottom: -12px; }

  .ci-icon { width: 36px; height: 36px; border-radius: 10px; }
  .ci-icon svg { width: 18px; height: 18px; }
  .contact-item { padding: 10px 12px; gap: 10px; }
  .ci-text strong { font-size: 13px; }

  .px-rotator { --px-cols: 4; --px-rows: 3; }

  .footer-credit-btn { left: 12px; bottom: 10px; }

  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .partner-logo { min-height: 76px; padding: 2px 4px; }
  .partner-logo img { max-height: 68px; }

  .brand-logo { height: 36px !important; max-width: 96px !important; }
  .brand-text strong { font-size: 13px; max-width: 150px; }
  .brand-text small { font-size: 10px; max-width: 150px; }
}

/* =========================================================
   HOVER GLOW "CAHAYA MENGELILINGI" · PC / MOUSE ONLY
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .glass-card:hover {
    box-shadow:
      0  -12px 34px -10px rgba(56, 189, 248, 0.45),
      12px   0  34px -10px rgba(251, 191, 36, 0.34),
      0    12px 34px -10px rgba(239, 68, 68, 0.32),
      -12px  0  34px -10px rgba(108, 196, 255, 0.42),
      0 0 26px rgba(108, 196, 255, 0.22),
      0 22px 55px rgba(0, 0, 0, 0.32);
    border-color: rgba(108, 196, 255, 0.45);
  }
  .org-panel:hover {
    box-shadow:
      0  -10px 30px -10px rgba(56, 189, 248, 0.40),
      10px   0  30px -10px rgba(251, 191, 36, 0.30),
      0    10px 30px -10px rgba(239, 68, 68, 0.28),
      -10px  0  30px -10px rgba(108, 196, 255, 0.38),
      0 0 22px rgba(108, 196, 255, 0.18);
    border-color: rgba(108, 196, 255, 0.40);
  }
  .partner-logo:hover { z-index: 6; }
  .partner-logo:hover img {
    filter:
      grayscale(0%) contrast(1.06)
      drop-shadow(0 0 5px  rgba(108, 196, 255, 0.62))
      drop-shadow(0 0 10px rgba(56, 189, 248, 0.42))
      drop-shadow(0 0 16px rgba(251, 191, 36, 0.30))
      drop-shadow(0 0 22px rgba(239, 68, 68, 0.22));
    opacity: 1;
    transform: scale(1.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}