/* ================= CSS VARIABLES ================= */
:root {
  --bg-dark: #020617;
  --bg-dark-2: #0f172a;
  --bg-light: #f8fafc;
  --bg-light-2: #e2e8f0;

  --primary: #38bdf8;
  --primary-soft: #7dd3fc;
  --accent: #22d3ee;

  --text-dark: #e5e7eb;
  --text-light: #0f172a;
  --text-muted: #9ca3af;

  --radius: 18px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 20px 50px rgba(56, 189, 248, 0.25);
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  background: radial-gradient(circle at top, #1e3a8a, var(--bg-dark));
  color: var(--text-dark);
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 48px;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

/* ================= NAV ================= */
nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  width: 100%;
}

/* ================= THEME TOGGLE ================= */
#themeToggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-dark);
  border-radius: 50%;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#themeToggle:hover {
  background: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* ================= MAIN ================= */
main {
  max-width: 1000px;
  margin: 70px auto;
  padding: 0 24px;
}

/* ================= TITLE ================= */
h1 {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 50px;
  letter-spacing: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= SECTION / CARD ================= */
section {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================= SUB TITLE ================= */
h2 {
  font-size: 1.5rem;
  color: var(--primary-soft);
  margin-bottom: 14px;
  position: relative;
}

h2::after {
  content: "";
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  position: absolute;
  left: 0;
  bottom: -6px;
}

/* ================= TEXT ================= */
.deskripsi {
  line-height: 1.8;
  color: #d1d5db;
  text-align: justify;
}

.smp {
  color: var(--primary);
  font-weight: 600;
}

/* ================= LIST ================= */
ul {
  list-style: none;
}

li {
  margin-bottom: 12px;
  padding-left: 18px;
  position: relative;
}

li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ================= SCHOOL ================= */
.sekolah {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(90deg, #facc15, #fde047);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= AUDIO ================= */
audio {
  display: block;
  margin: 40px auto;
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6));
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ================= LIGHT MODE ================= */
body.light {
  background: linear-gradient(135deg, var(--bg-light), var(--bg-light-2));
  color: var(--text-light);
}

body.light .header {
  background: rgba(255, 255, 255, 0.85);
}

body.light nav a {
  color: var(--text-light);
}

body.light section {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-light);
}

body.light .deskripsi {
  color: #334155;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  h1 {
    font-size: 2.4rem;
  }

  .header {
    flex-direction: column;
    gap: 14px;
    padding: 16px 24px;
  }

  nav {
    gap: 16px;
  }

  section {
    padding: 26px 24px;
  }
}
/* ================= FORCE LOADER ================= */
#loader {
  position: fixed;
  inset: 0;
  background: #020617;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 6px solid rgba(255,255,255,0.2);
  border-top: 6px solid #38bdf8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

nav a.active {
  color: #38bdf8;
  border-bottom: 2px solid #38bdf8;
  padding-bottom: 4px;
}
/* ===== GOOGLE MAPS ===== */
.map-container {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,.3);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
