/* =====================================================================
   v75 — kartu glassmorphism (tanpa animasi), hero lebih lembut, footer,
   teks mode malam, dan optimasi responsif/ringan untuk HP.
   Dimuat paling akhir.
   ===================================================================== */

/* ---------- 1) "Komitmen Kami" & "Sekolah dalam Angka": satu tema (band navy + kartu kaca) ---------- */
.features, .stats-glass {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 64px 0;
  background: linear-gradient(160deg, var(--navy-steel-fixed, #1e4d8f) 0%, var(--navy) 100%);
  color: #fff;
}
.sambutan-section + .features { padding-top: 64px; }
.features .sg-orb, .stats-glass .sg-orb { display: block; }
.features .section-heading h2, .stats-glass .section-heading h2 { color: #fff; }
.features .section-heading p, .stats-glass .section-heading p { color: rgba(255,255,255,.82); }
.features .section-heading .tag, .stats-glass .section-heading .tag { color: var(--gold-soft, #ffd466); }
.features .section-heading, .stats-glass .section-heading { margin-bottom: 32px; }

.features .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-top: 0; }
.sg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }

.feature-card, .sg-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px; height: 100%;
  padding: 30px 20px;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 14px 30px -18px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  color: #fff; text-decoration: none; overflow: hidden;
}
.feature-card::before, .sg-card::before { display: none; }
.feature-card:hover, .sg-card:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.28); }
.feature-card .icon, .sg-icon {
  width: 44px; height: 44px; margin: 0 0 4px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--orange, #ff6b00); color: #fff; font-size: 18px;
  animation: none;
}
.feature-card:hover .icon, .sg-card:hover .sg-icon { background: var(--orange, #ff6b00); color: #fff; transform: none; }
.feature-card p { margin: 0; color: rgba(255,255,255,.92); font-size: 14.5px; font-weight: 500; line-height: 1.7; }
.sg-num { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 2rem; color: #fff; }
.sg-label { font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.9); }
.sg-hint { font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 600; color: #fff; opacity: 1; transform: none; }

/* ---------- 2) Menu dropdown: panel & panah ---------- */
nav.primary-menu .dropdown > a,
nav.primary-menu .dropdown > .nav-links-trigger { cursor: pointer; }
nav.primary-menu .dropdown-content {
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
nav.primary-menu .dropdown.dropdown-open > a,
nav.primary-menu .dropdown.dropdown-open > .nav-links-trigger { background: rgba(255,255,255,.14); }

/* ---------- 3) Hero: tampilan awal dipertahankan; garis statistik diberi jarak ---------- */
.hero-stats > div::before { width: calc(100% - 22px); }
.hero.hero-static::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/hero-video-poster.jpg") center / cover;
  opacity: .16; mix-blend-mode: luminosity;
}

/* ---------- 3b) Menu lebih kecil ---------- */
@media (min-width: 769px) {
  nav.primary-menu ul > li > a,
  nav.primary-menu ul > li > .nav-links-trigger { font-size: clamp(12px, .9vw, 14px); }
  nav.primary-menu .dropdown-content a,
  nav.primary-menu .dropdown-content .elearning-link-btn { font-size: 14px; padding: 10px 16px; }
}
/* Header tetap solid (tidak transparan/blur) baik diam maupun saat discroll,
   supaya logo & teks "SMK N 1 AMPELGADING" selalu terbaca jelas. */
header { transition: box-shadow .3s ease; }

/* ---------- 4) Footer: tanpa tombol cari melayang, hak cipta rata tengah ---------- */
.search-fab { display: none !important; }
.footer-bottom { display: flex; justify-content: center; text-align: center; }
.footer-bottom .footer-copyright { width: 100%; margin: 0 auto; text-align: center; }

/* ---------- 5) Mode malam: judul "Berita Terkini" & "Tim Pengembang" otomatis putih ---------- */
:root[data-theme="dark"] .news-section .section-heading .tag,
:root[data-theme="dark"] .news-section .section-heading h2,
:root[data-theme="dark"] .news-section .section-heading p,
:root[data-theme="dark"] [data-page="berita"] .eyebrow,
:root[data-theme="dark"] .dev-team-section h2,
:root[data-theme="dark"] .dev-team-heading h2,
:root[data-theme="dark"] .dev-team-thanks,
:root[data-theme="dark"] .dev-team-thanks strong { color: #fff !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .news-section .section-heading .tag,
  :root:not([data-theme="light"]) .news-section .section-heading h2,
  :root:not([data-theme="light"]) .news-section .section-heading p,
  :root:not([data-theme="light"]) [data-page="berita"] .eyebrow,
  :root:not([data-theme="light"]) .dev-team-section h2,
  :root:not([data-theme="light"]) .dev-team-heading h2,
  :root:not([data-theme="light"]) .dev-team-thanks,
  :root:not([data-theme="light"]) .dev-team-thanks strong { color: #fff !important; }
}

/* ---------- 6) Responsif & ringan ---------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
img, video, iframe { max-width: 100%; }

@media (max-width: 900px) {
  .features .grid { grid-template-columns: 1fr; gap: 14px; }
  .sg-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 768px) {
  .sg-card { padding: 20px 16px; }
  .sg-num { font-size: 1.6rem; }
  .feature-card { padding: 22px 18px; }
  .features, .stats-glass { padding: 48px 0; }
  .feature-card, .sg-card { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

  /* matikan efek berat yang tidak perlu di HP */
  .live-bg *, .hero-glow { animation: none !important; }
  .hero-glow { display: none; }
  .hero-grid { animation: none !important; will-change: auto; }
  .hero { min-height: 0; }
  header, .main-nav { -webkit-backdrop-filter: none; backdrop-filter: none; }

  /* bagian bawah layar dirender saat mendekati viewport saja */
  .profile-section, .news-section, .dev-team-section, .location-section {
    content-visibility: auto; contain-intrinsic-size: auto 560px;
  }
}
@media (max-width: 360px) {
  .sg-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce), (update: slow) {
  .hero-grid, .hero-glow { animation: none !important; }
}
