/* =========================================================
   SMKS BUNGA PERSADA CIANJUR — Design System
   Palet: biru navy gradasi + aksen orange tua
   ========================================================= */

:root {
  --navy-900: #16324F;   /* biru gelap — akhir gradasi navbar/hero, bg dropdown */
  --navy-800: #1C3E60;
  --navy-700: #2C5282;   /* biru terang — awal gradasi navbar/hero */
  --navy-600: #3D6BA0;
  --orange-600: #C2410C; /* orange tua — utama: tombol, teks aksen, badge */
  --orange-500: #E86A2E; /* orange terang — teks di atas latar gelap */
  --orange-100: #FBE3D3; /* tint orange — background pill/label lembut */
  --orange-800: #8C2F0C; /* orange paling tua — hover dropdown */
  --cream: #F7F6F1;
  --white: #FFFFFF;
  --ink: #1B1F27;
  --ink-soft: #4A5063;
  --gray-200: #E6E4DC;
  --gray-100: #F1F0EA;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 32, 56, 0.08);
  --shadow-md: 0 12px 32px rgba(15, 32, 56, 0.14);

  --container: 1200px;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%23C2410C' stroke-width='1' opacity='0.09'%3E%3Cpath d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 100px;
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-500);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--orange-500);
}

section { padding: 64px 0; }
section.tight { padding: 40px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-arrow {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}
.btn-gold { background: var(--orange-500); color: var(--navy-900); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid var(--navy-800); color: var(--navy-800); }
.btn.btn-hero-outline:hover {
  background: var(--navy-800) !important;
  border-color: var(--navy-800) !important;
  color: var(--white) !important;
}
.btn-outline:hover { background: var(--orange-500); border-color: var(--orange-500); color: var(--white); }
/* =========================================================
   TOPBAR — kontak di atas navbar
   ========================================================= */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between; 
  gap: 12px 44px;   /* jarak ANTAR item (alamat <-> email) diperlebar dari 28px */
  padding: 10px 24px;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 10px;        /* jarak ikon ke teks diperlebar dari 7px */
}
.topbar-item svg {
  color: var(--orange-500);
  flex-shrink: 0;
}
.topbar-item a:hover {
  color: var(--orange-500);
}

@media (max-width: 640px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
    padding: 8px 16px;
  }
}
/* =========================================================
   NAVBAR
   ========================================================= */
   
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(120deg, var(--navy-700) 0%, var(--navy-900) 100%);
  box-shadow: var(--shadow-sm);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand img { width: 70px; height: 70px; border-radius: 50%; }
.brand-text { font-family: var(--font-display); font-weight: 700; line-height: 1.15; font-size: 1.15rem; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 1.15rem; color: var(--orange-500); letter-spacing: 0.04em; }

.nav-toggle {
  display: none;
  color: var(--white);
  font-size: 1.6rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a,
.nav-menu > li > button.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-menu > li > a:hover,
.nav-menu > li > button.nav-link:hover,
.nav-menu > li.open > button.nav-link {
  background: var(--navy-700);
  color: var(--orange-500);
}
.nav-menu > li > a.active { color: var(--orange-500); }
.caret { font-size: 0.65rem; transition: transform 0.15s ease; }
.nav-menu > li.open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  max-height: 60vh;
  overflow-y: auto;
}
.nav-menu > li.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}
.dropdown a:hover { background: var(--orange-500); color: var(--white); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: var(--white);
  padding: 88px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 100px;
  color: var(--white);
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
}
.page-hero h1 { color: var(--white); margin-top: 10px; }
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(44,82,130,0.7) 0%, rgba(22,50,79,0.93) 100%);
  z-index: 1;
}
.hero::after {
  display: none;
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194,65,12,0.28), transparent 70%);
  z-index: 1;
}
.hero-inner {
  max-width: 720px;
  margin-left: 15%;
  margin-right: auto;
  position: relative;
  z-index: 2;
}
.hero h1 { color: var(--white); margin: 14px 0 20px; }
.hero h1 .text-accent {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
  paint-order: stroke fill;
}
.hero h1 .text-intro {
  -webkit-text-stroke: 0.8px rgba(230, 106, 46, 0.65);
  paint-order: stroke fill;
}
.hero p.lead { font-size: 1.1rem; color: rgba(255,255,255,0.82); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-eyebrow { color: var(--orange-500); }
.hero-eyebrow::before { background: var(--orange-500); }
.text-accent {
  color: var(--orange-500);
}

/* =========================================================
   VISI CARD
   ========================================================= */
.visi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-top: -60px;
  position: relative;
  z-index: 2;
  border-top: 4px solid var(--orange-500);
}
.visi-card h2 { margin-bottom: 12px; }
.visi-card p { color: var(--ink-soft); font-size: 1.05rem; max-width: 800px; }

/* =========================================================
   SAMBUTAN / PROFILE SPLIT SECTION
   ========================================================= */
.split {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}
.split-media { flex: 1 1 320px; }
.split-media img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split-body { flex: 1 1 420px; }
.split-body h2 { margin: 10px 0 16px; }
.split-body p { color: var(--ink-soft); margin-bottom: 14px; }
.signature { margin-top: 20px; }
.signature strong { display: block; font-family: var(--font-display); color: var(--navy-900); }
.signature span { font-size: 0.85rem; color: var(--ink-soft); }

/* =========================================================
   SECTION HEADER
   ========================================================= */
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); margin-top: 10px; text-align: justify; text-justify: inter-word; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* =========================================================
   CARD GRID (Ekskul & Program Keahlian)
   Auto-fit: kolom otomatis menyesuaikan lebar layar,
   TIDAK perlu media query manual per breakpoint.
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.grid-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 32, 56, 0.10), 0 10px 28px rgba(15, 32, 56, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.grid-card .badge-wrap {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 10px 18px;
  border-radius: 20px;         /* rounded-rectangle, bukan pil bulat penuh */
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
  width: 88%;                  /* dibatasi, boleh turun ke 2 baris tanpa jadi bulat */
  max-width: 220px;
  text-align: center;
  white-space: normal;         /* izinkan wrap, tapi tetap rapi */
  line-height: 1.25;
  z-index: 2;
}
.grid-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(190, 111, 8, 0.22);
}

.grid-card .media {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
}
.grid-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-card:hover .media img {
  transform: scale(1.08);
}
.grid-card .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(44,82,130,0.35) 0%, rgba(22,50,79,0.6) 100%);
  z-index: 1;
}
.grid-card .media .fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-500);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
}
.grid-card .kode-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange-500);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}
.grid-card .badge {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 10px 18px;
  border-radius: 20px;      /* rounded-rectangle, bukan pil penuh — aman untuk teks panjang */
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  width: max-content;
  max-width: 85%;           /* dibatasi lebar, biar tidak mepet ke tepi kartu */
  text-align: center;
  line-height: 1.3;
  white-space: normal;      /* izinkan wrap 2 baris kalau perlu, TANPA bikin bentuk aneh */
}
.grid-card .badge svg { width: 14px; height: 14px; }
.grid-card .body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.grid-card .body .kategori {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--orange-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.grid-card .body p { color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.mitra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  margin-top: 16px;
}
.mitra-grid li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.mitra-grid li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  margin-top: 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .mitra-grid {
    grid-template-columns: 1fr;
  }
}
  
  /* =========================================================
   SAMBUTAN — LAYOUT V2 (foto + caption overlay + stat card)
   ========================================================= */
.sambutan2-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
  padding: 40px 0 32px;
}
.page-kicker {
  font-size: 1.5rem;
  color: var(--white);
  position: relative;
  padding-bottom: 14px;
}
.page-kicker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--orange-500);
}

.sambutan2-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 56px;
}
.sambutan2-hero + section {
  padding: 0;
}

.sambutan2-body h2 {
  margin-bottom: 20px;
}
.sambutan2-body p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.sambutan2-body .hl {
  color: var(--orange-500);
}

.sambutan2-signature {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.sambutan2-signature strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy-900);
  margin-bottom: 4px;
}
.sambutan2-signature span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Foto dengan aksen sudut orange + caption overlay */
.sambutan2-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: visible;
}
.sambutan2-media::before {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 60px;
  height: 60px;
  border-top: 3px solid var(--orange-500);
  border-right: 3px solid var(--orange-500);
  border-radius: 0 var(--radius-md) 0 0;
  z-index: 0;
}
.sambutan2-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.sambutan2-caption {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: linear-gradient(160deg, rgba(22,50,79,0.55) 0%, rgba(22,50,79,0.92) 100%);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.sambutan2-caption .kode-tag {
  position: static;
  display: inline-block;
  margin-bottom: 8px;
}
.sambutan2-caption strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

/* Kartu statistik kecil */
.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--orange-500);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy-900);
}
.stat-card span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .sambutan2-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sambutan2-aside {
    max-width: 360px;
  }
  .sambutan2-signature.under-photo {
  margin-top: 16px;
  padding-top: 16px;
  text-align: center;
}
}

/* =========================================================
   DETAIL PAGE (Ekskul / Program Keahlian)
   ========================================================= */
.detail-hero {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.detail-media {
  flex: 1 1 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  position: relative;
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-500); font-family: var(--font-display); font-weight: 700; font-size: 3rem;
}
.detail-body { flex: 1 1 420px; }
.detail-body .kategori-pill {
  display: inline-block;
  background: var(--orange-100);
  color: var(--orange-500);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-body h1 { margin-bottom: 16px; }
.detail-body p.ringkas { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 20px; text-align: justify;
  text-justify: inter-word;}

.info-list { margin-top: 24px; display: grid; gap: 12px; }
.info-list .item { display: flex; gap: 12px; align-items: flex-start; }
.info-list .item strong { color: var(--navy-900); font-family: var(--font-display); font-size: 0.85rem; min-width: 90px; }
.info-list .item span { color: var(--ink-soft); font-size: 0.92rem; }

.detail-desc { margin-top: 48px; max-width: 780px; }
.detail-desc p { color: var(--ink-soft); margin-bottom: 16px; text-align: justify;text-justify: inter-word; }

.kompetensi-list { margin-top: 16px; display: grid; gap: 10px; }
.kompetensi-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.kompetensi-list li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  margin-top: 8px;
  flex-shrink: 0;
}
.kompetensi-list li strong { color: var(--navy-900); }
/* Layout 2 kolom khusus untuk daftar "Kegiatan dan Program" */
.kegiatan-list li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 4px 20px;
  align-items: baseline;
}
.kegiatan-list li::before { display: none; }
.kegiatan-list li .judul {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--orange-500);
}
.kegiatan-list li .judul::after {
  content: ":";
}
.kegiatan-list li .deskripsi {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
@media (max-width: 640px) {
  .kegiatan-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 24px;
}
.back-link:hover { color: var(--orange-500); }

/* =========================================================
   GALERI / INSTAGRAM SECTION
   ========================================================= */
.galeri-section { background: var(--navy-900); color: var(--white); }
.galeri-section .section-head h2 { color: var(--white); }
.galeri-section .section-head p { color: rgba(255,255,255,0.7); }
.instagram-embed-wrap {
  background: var(--navy-800);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 200px;
}
.ig-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.ig-placeholder-grid .ig-item {
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy-600), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 1.6rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-list li { margin-bottom: 10px; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.contact-list a:hover { color: var(--orange-500); }
.contact-list .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--orange-500);
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul li { margin-bottom: 8px; font-size: 0.88rem; }
.footer-grid ul li a:hover { color: var(--orange-500); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 100px; height: 100px; border-radius: 50%; }
.footer-brand strong { color: var(--white); font-family: var(--font-display); font-size: 1.20rem; }
.footer-bottom {
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
/* =========================================================
   TECH PATTERN — dot grid di section gelap
   ========================================================= */
.hero::before,
.page-hero::before,
.galeri-section::before,
.sambutan2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
  pointer-events: none;
}

.galeri-section,
.sambutan2-hero {
  position: relative;
  overflow: hidden;
}
.galeri-section .container,
.sambutan2-hero .container {
  position: relative;
  z-index: 2;
}

/* =========================================================
   TABEL KURIKULUM
   ========================================================= */
.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
table.kur-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.86rem;
}
.kur-table th,
.kur-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
}
.kur-table thead th {
  background: var(--orange-500);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.kur-table .grup-row td {
  background: var(--orange-100);
  font-weight: 700;
  color: var(--navy-900);
  font-family: var(--font-display);
}
.kur-table .total-row td {
  background: var(--gray-100);
  font-weight: 700;
  color: var(--navy-900);
}
/* =========================================================
   SEJARAH — quote pembuka, fact strip, timeline
   ========================================================= */
.sejarah-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy-900);
  border-left: 3px solid var(--orange-500);
  padding-left: 22px;
  margin-bottom: 24px;
  line-height: 1.45;
}
.sejarah-lead {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 820px;
  margin-bottom: 32px;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.fact-chip {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--orange-500);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.fact-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-500);
  margin-bottom: 6px;
}
.fact-value {
  display: block;
  font-size: 0.88rem;
  color: var(--navy-900);
  font-weight: 500;
  line-height: 1.4;
}

/* Timeline vertikal */
.timeline {
  position: relative;
  max-width: 820px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--gray-200);
}
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 40px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-marker {
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--orange-500);
  z-index: 1;
}
.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.timeline-content p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.timeline-content strong {
  color: var(--navy-900);
}

@media (max-width: 640px) {
  .sejarah-quote {
    font-size: 1.15rem;
  }
}
/* =========================================================
   MOBILE NAV (hamburger di layar <= 1100px)
   ========================================================= */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a, .nav-menu > li > button.nav-link { width: 100%; justify-content: space-between; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    box-shadow: none;
    background: var(--navy-800);
    transition: max-height 0.2s ease, padding 0.2s ease;
  }
  .nav-menu > li.open .dropdown { max-height: 600px; padding: 8px; margin-top: 4px; }
  .dropdown a { color: rgba(255,255,255,0.85); }
  .dropdown a:hover { background: var(--orange-500); color: var(--white); }
}

@media (max-width: 860px) {
  .visi-card { margin-top: -40px; padding: 28px; }
  .detail-hero { flex-direction: column; }
  .detail-media,
  .detail-body {
   width: 100%;
   flex: none;
}
}


@media (max-width: 640px) {
  .hero-inner { margin-left: 4%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 1024px) {
  .sambutan2-grid { grid-template-columns: 1fr 300px; gap: 36px; }
}

@media (max-width: 860px) {
  .sambutan2-grid { grid-template-columns: 1fr; gap: 28px; }
  .sambutan2-aside { max-width: 320px; margin: 0 auto; }
  .page-kicker { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .sambutan2-hero { padding: 28px 0 22px; }
  .sambutan2-grid { padding-top: 8px; }
  .sambutan2-body h2 { font-size: 1.5rem; }
  .sambutan2-media::before { width: 40px; height: 40px; top: -8px; right: -8px; }
}

@media (max-width: 400px) {
  .brand img { width: 46px; height: 46px; }
  .brand-text { font-size: 0.92rem; }
}
/* =========================================================
   ANIMASI — transisi halaman & scroll reveal
   ========================================================= */

/* Fade-in halus setiap kali halaman dibuka */
body {
  animation: pageFadeIn 0.45s ease;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Elemen mulai tersembunyi + sedikit turun, lalu muncul saat di-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Hormati pengguna yang mematikan animasi di sistemnya (aksesibilitas) */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@view-transition {
  navigation: auto;
}
  
/* =========================================================
   Halaman Kontak (form Email / WhatsApp)
   ========================================================= */
.kontak-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}
.kontak-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.kontak-info {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.kontak-info h3 { margin-bottom: 16px; }
.kontak-list { display: grid; gap: 14px; }
.kontak-list a,
.kontak-list .kontak-address {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.kontak-list a:hover { color: var(--orange-600); }
.kontak-list .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange-600);
}

.form-group { margin-bottom: 20px; border: none; }
.form-group > label,
.form-group > legend {
  display: block;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 8px;
  font-size: 0.95rem;
  padding: 0;
}
.form-group small { font-weight: 400; color: var(--ink-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.15);
}

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { cursor: pointer; position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block;
  text-align: center;
  padding: 12px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-800);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.choice:hover span { border-color: var(--navy-600); }
.choice input:checked + span {
  background: var(--orange-100);
  border-color: var(--orange-600);
  color: var(--orange-800);
}
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.25); }

.form-alert {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.form-alert ul { padding-left: 18px; list-style: disc; }
.form-alert-ok { background: #E8F5EC; border: 1px solid #B7E0C2; color: #1E5B32; }
.form-alert-error { background: #FDECEA; border: 1px solid #F5B5AE; color: #8A1F11; }

/* Honeypot anti-spam: disembunyikan dari pengunjung */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .kontak-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kontak-card { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   PERBAIKAN RESPONSIF & STABILITAS
   ========================================================= */
img { max-width: 100%; }
.nav-menu > li > a,
.nav-menu > li > button.nav-link { white-space: nowrap; }
.footer-grid > *,
.kontak-grid > *,
.kontak-card,
.kontak-info,
.form-group,
.form-row > *,
.choice-grid > * { min-width: 0; }
.contact-list span,
.kontak-list span,
.footer-grid p { overflow-wrap: anywhere; }
.kontak-card input,
.kontak-card select,
.kontak-card textarea { max-width: 100%; }
@media (max-width: 1100px) {
  .navbar { padding: 12px 20px; }
  .brand img { width: 56px; height: 56px; }
  .brand-text { font-size: 1.05rem; }
}
@media (max-width: 400px) {
  .brand img { width: 44px; height: 44px; }
  .brand-text { font-size: 0.9rem; }
}

/* ===== Halaman SPMB ===== */
.spmb-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 12px;
  max-width: 960px;
  margin: 0 auto;
}
.spmb-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  background: #f1f4f9;
}
.spmb-notice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  padding: 48px 20px;
  color: var(--navy-800);
}
.spmb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 28px auto 0;
  max-width: 960px;
}
.spmb-actions .btn { max-width: 100%; white-space: normal; text-align: center; }
.spmb-hint { text-align: center; margin: 14px auto 0; font-size: 0.9rem; color: #5b6475; }

/* =========================================================
   TAMBAHAN: ikon layar penuh di pojok kanan atas slide SPMB
   ========================================================= */
.spmb-card,
#spmbSlides { position: relative; }

.spmb-fs {
  position: absolute;
  top: 22px;                 /* 12px padding kartu + 10px ke dalam slide */
  right: 22px;
  width: 56px;               /* area ketuk, tanpa background */
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;               /* putih + bayangan gelap, terbaca di latar apa pun */
  cursor: pointer;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.75)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.spmb-fs svg {
  display: block;
  width: 28px;
  height: 28px;
  stroke-width: 2.8;         /* garis lebih tebal agar jelas */
}
.spmb-fs:hover { transform: scale(1.15); }
.spmb-fs:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 2px; border-radius: 8px; }

@media (max-width: 600px) {
  .spmb-card { padding: 9px; }
  .spmb-fs { top: 16px; right: 16px; }   /* 8px padding kartu + 8px ke dalam slide */
  .spmb-fs svg { width: 26px; height: 26px; }
}