/* =========================================================
   SPMB SMP Negeri 1 Pagar Alam — Main Stylesheet
   ========================================================= */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0D1B3E;
  --lightblue:   #38b6ff;
  --fadeblue:    #dfe7ff;
  --navy-deep:   #0e225a;
  --header:      #3378ac;
  --header-deep: #093529;
  --gold:        #C8960C;
  --gold-light:  #F5D87A;
  --cream:       #FBF7EF;
  --green:       #1A6B5A;
  --text:        #1C1C1C;
  --muted:       #6B6B6B;
  --border:      #E8E4D9;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--cream); }


/* ── NAVBAR ── */
nav {
  background: var(--header);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 36px; height: 36px; background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 18px; height: 18px; }
.nav-brand { font-size: 15px; font-weight: 600; color: #fff; }
.nav-brand span { color: #fff; }

.nav-links {display: flex; gap: 28px; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a {
  color: rgba(255,255,255,.7); text-decoration: none;
  font-size: 13.5px; font-weight: 500; transition: color .2s;
  
}
.nav-links a:hover { color: var(--gold-light); }

.nav-btn {
  background: var(--lightblue); color: var(--lightblue); border: none;
  padding: 9px 22px; border-radius: 7px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: opacity .2s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.nav-btn:hover { opacity: .85; }

.nav-hamburger { display: none; background: none; border: none; cursor: pointer; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }


/* ── HERO ── */
.hero-wrap {
  background:
    linear-gradient(160deg, rgba(9,53,41,.93) 0%, rgba(13,27,62,.85) 55%, rgba(9,53,41,.96) 100%),
    url('https://smpn1pagaralam.sch.id/assets/upload/image/WhatsApp-Image-2025-11-08-at-09.45.46.jpeg') center/cover no-repeat;
  min-height: calc(100vh - 62px); /* full viewport minus navbar */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,150,12,.10) 0%, transparent 60%);
  pointer-events: none;
}
/* subtle animated grain texture overlay */
.hero-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .35;
}

.hero {
  max-width: 1340px; margin: 0 auto; padding: 60px 5%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  position: relative; z-index: 1; width: 100%;
}

/* scroll-down indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  animation: fadeUp .8s .8s ease both;
}
.hero-scroll span {
  font-size: 10px;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(200,150,12,.15); border: 1px solid rgba(200,150,12,.45);
  color: var(--lightblue); padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 500; margin-bottom: 24px;
  animation: fadeUp .6s ease both;
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

.hero h1 {
  font-family: 'Manrope', sans-serif; font-size: 46px; line-height: 1.12;
  color: #fff; margin-bottom: 20px;
  animation: fadeUp .6s .1s ease both;
}
.hero h1 em { color: var(--lightblue); font-style: normal; }

.hero-sub {
  color: rgba(255,255,255,.65); font-size: 18px; line-height: 1.75;
  margin-bottom: 36px; animation: fadeUp .6s .2s ease both;
}

.hero-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  animation: fadeUp .6s .3s ease both;
}
.hero-cta .btn-full {
  grid-column: 1 / -1; /* spans both columns */
  justify-content: center;
}
 

.btn-primary {
  background: var(--lightblue); color: var(--header-deep); border: none;
  padding: 14px 30px; border-radius: 9px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: opacity .2s, transform .15s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  padding: 14px 30px; border-radius: 9px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: border-color .2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
}
.btn-outline:hover { border-color: rgba(255,255,255,.75); }


/* ── HERO PANEL ── */
.hero-panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 28px;
  backdrop-filter: blur(8px);
  animation: fadeUp .6s .15s ease both;
}

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.stat-box {
  background: rgba(255,255,255,.07); border-radius: 10px;
  padding: 16px 12px; text-align: center;
}
.stat-num { font-family: 'Manrope', sans-serif; font-size: 30px; color: var(--lightblue); font-weight: 700; line-height: 1; }
.stat-label { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 4px; }

.cal-box { background: rgba(255,255,255,.07); border-radius: 10px; padding: 16px 18px; }
.cal-title {
  font-size: 10px; color: rgba(255,255,255,.45);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.cal-items { display: flex; flex-direction: column; gap: 12px; }
.cal-item { display: flex; align-items: center; gap: 10px; }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cal-info { flex: 1; }
.cal-info strong { font-size: 13px; color: #fff; font-weight: 500; display: block; }
.cal-info span { font-size: 11px; color: rgba(255,255,255,.4); }
.cal-badge { font-size: 10px; padding: 3px 10px; border-radius: 12px; font-weight: 600; white-space: nowrap; }
.badge-open   { background: rgba(26,107,90,.4);  color: #6EDAC0; }
.badge-soon   { background: rgba(200,150,12,.2); color: var(--gold-light); }
.badge-closed { background: rgba(255,255,255,.1); color: rgba(255,255,255,.4); }


/* ── SHARED SECTION LABELS ── */
.section-eyebrow {
  font-size: 11px; font-weight: 600; color: var(--green);
  text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 10px;
}
.section-title { font-family: 'Manrope', sans-serif; font-size: 36px; color: var(--navy); margin-bottom: 10px; }
.section-sub { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 630px; }


/* ── JALUR SECTION ── */
.jalur-section { padding: 80px 10%; max-width: ; margin: 0 auto; background: var(--fadeblue); }
.jalur-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 40px; }

.jalur-card {
  background: #fff; border-radius: 14px; padding: 26px 22px;
  border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
}
.jalur-card:hover { box-shadow: 0 8px 32px rgba(13,27,62,.09); transform: translateY(-4px); }

.jalur-icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.jalur-icon svg { width: 22px; height: 22px; }
.jalur-name  { font-weight: 600; font-size: 15px; color: var(--navy); margin-bottom: 7px; }
.jalur-desc  { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }

.jalur-dates {
  font-size: 12.5px; color: var(--navy); font-weight: 500;
  background: #F5F7FF; border-radius: 7px; padding: 9px 13px;
}
.jalur-dates .date-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.jalur-dates .date-row:last-child { margin-bottom: 0; }
.jalur-dates .label { color: var(--muted); font-weight: 400; }


/* ── ALUR SECTION ── */
.alur-wrap  { background: var(--navy); padding: 72px 5%; }
.alur-inner { max-width: 1140px; margin: 0 auto; }
.alur-wrap .section-eyebrow { color: var(--gold-light); }
.alur-wrap .section-title   { color: #fff; }

.alur-steps {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 0;
  margin-top: 48px; position: relative;
}
.alur-steps::before {
  content: ''; position: absolute; top: 22px; left: 10%; right: 10%;
  height: 1px; background: rgba(255,255,255,.13);
}
.alur-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px; }

.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(200,150,12,.15); border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--gold-light);
  margin-bottom: 16px; position: relative; z-index: 1;
  transition: background .2s, transform .2s;
}
.alur-step:hover .step-num { background: rgba(200,150,12,.35); transform: scale(1.08); }
.step-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 5px; }
.step-desc  { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.55; }


/* ── PENGUMUMAN SECTION ── */
.pengumuman-wrap  { background: var(--cream); padding: 72px 5%; }
.pengumuman-inner { max-width: 1340px; margin: 0 auto; }
.pengumuman-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
 .btn-full {
  grid-column: 1 / -1; /* spans both columns */
  justify-content: center;
  
}
.pengumuman-hasil {
  background: #b7e7fd; border-radius: 14px; padding: 10px 16px;
  border: 1px solid var(--border); display: flex; align-items: center; gap: 16px;
  transition: box-shadow .25s, transform .25s; text-decoration: none;
}

.pengumuman-card {
  background: #fff; border-radius: 14px; padding: 24px 22px;
  border: 1px solid var(--border); display: flex; align-items: center; gap: 16px;
  transition: box-shadow .25s, transform .25s; text-decoration: none;
}
.pengumuman-card:hover { box-shadow: 0 8px 32px rgba(13,27,62,.09); transform: translateY(-3px); }

.pengumuman-icon {
  width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.pengumuman-icon svg { width: 22px; height: 22px; }
.pengumuman-info  { flex: 1; }
.pengumuman-title { font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.pengumuman-meta  { font-size: 12px; color: var(--muted); }
.pengumuman-arrow { color: var(--muted); }
.pengumuman-arrow svg { width: 16px; height: 16px; }

.btn-lihat-seleksi {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff;
  padding: 13px 28px; border-radius: 9px; font-size: 14px; font-weight: 600;
  text-decoration: none; font-family: 'DM Sans', sans-serif;
  transition: opacity .2s, transform .15s;
}
.btn-lihat-seleksi:hover { opacity: .85; transform: translateY(-1px); }


/* ── FAQ SECTION ── */
.faq-wrap  { background: #fff; padding: 72px 5%; }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-list  { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }

.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%; padding: 18px 22px; text-align: left; cursor: pointer;
  background: none; border: none; font-family: 'DM Sans', sans-serif;
  font-size: 14.5px; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background .2s;
}
.faq-q:hover { background: #FAFAF8; }
.faq-q svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .3s; color: var(--muted); }
.faq-q.open svg { transform: rotate(45deg); }
.faq-a {
  padding: 0 22px; max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: 14px; color: var(--muted); line-height: 1.7;
}
.faq-a.open { max-height: 200px; padding: 0 22px 18px; }


/* ── KONTAK SECTION ── */
.kontak-wrap  { background: var(--navy); padding: 68px 5%; }
.kontak-inner { max-width: 1140px; margin: 0 auto; }
.kontak-inner .section-eyebrow { color: rgba(255,255,255,.6); }
.kontak-inner .section-title   { color: #fff; margin-bottom: 36px; }
.kontak-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }

.kontak-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px; padding: 22px; display: flex; align-items: flex-start; gap: 14px;
}
.kontak-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,.12); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.kontak-icon svg { width: 20px; height: 20px; }
.kontak-label { font-size: 11px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.kontak-val   { font-size: 14px; color: #fff; font-weight: 500; line-height: 1.5; }


/* ── DOKUMEN SK SECTION ── */
.dokumen-wrap  { padding: 52px 5%; background: var(--cream); border-top: 1px solid var(--border); }
.dokumen-inner { max-width: 1140px; margin: 0 auto; }
.dokumen-title { font-family: 'Manrope', sans-serif; font-size: 26px; color: var(--navy); margin-bottom: 6px; }
.dokumen-grid  { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

.dok-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 9px;
  padding: 11px 18px; font-size: 13px; font-weight: 500; color: var(--navy);
  text-decoration: none; transition: box-shadow .2s, transform .15s;
}
.dok-btn:hover { box-shadow: 0 4px 16px rgba(13,27,62,.08); transform: translateY(-2px); }
.dok-btn svg { width: 15px; height: 15px; color: var(--gold); }


/* ── FOOTER ── */
footer { background: var(--navy-deep); padding: 36px 5%; }
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer-left p     { font-size: 13.5px; color: rgba(255,255,255,.7); }
.footer-left small { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-links      { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a    { color: rgba(255,255,255,.4); font-size: 12.5px; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.75); }
.footer-divider    { border: none; border-top: 1px solid rgba(255,255,255,.06); margin: 20px 0 0; }
.footer-copy       { max-width: 1140px; margin: 14px auto 0; font-size: 12px; color: rgba(255,255,255,.25); }


/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero                { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-panel          { border-radius: 16px; }
  .hero h1             { font-size: 36px; }
  .jalur-grid          { grid-template-columns: repeat(2,1fr); }
  .alur-steps          { grid-template-columns: repeat(3,1fr); gap: 24px; }
  .alur-steps::before  { display: none; }
  .nav-links, .nav-btn { display: none; }
  .nav-hamburger       { display: block; }
  .pengumuman-grid     { grid-template-columns: 1fr; }
  .kontak-grid         { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .jalur-grid   { grid-template-columns: 1fr; }
  .alur-steps   { grid-template-columns: repeat(2,1fr); }
  .hero h1      { font-size: 30px; }
  .section-title { font-size: 28px; }
}