/* SMK Plus Pagelaran — tampilan modern */
:root {
  --sp-900: #120b3d;
  --sp-800: #1c1257;
  --sp-700: #2d1b8f;
  --sp-600: #4a2fd0;
  --sp-500: #6c55f0;
  --sp-100: #ece9ff;
  --sp-amber: #ffb627;
  --sp-amber-soft: #ffe7b0;
  --sp-soft: #f6f5fc;
  --sp-ink: #17142f;
  --sp-muted: #5f5b7a;
  --sp-line: #e7e5f2;
  --sp-radius: 18px;
  --sp-shadow: 0 10px 30px rgba(18, 11, 61, .08);
  --sp-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Reset dasar (CSS tema tidak dimuat di halaman ini) */
body.sp { margin: 0; background: #fff; color: var(--sp-ink); font: 400 16px/1.65 var(--sp-font); -webkit-font-smoothing: antialiased; }
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp img { max-width: 100%; display: block; }
.sp a { color: inherit; text-decoration: none; }
.sp h1, .sp h2, .sp h3, .sp h4 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.sp p { margin: 0; }
.sp button { font: inherit; cursor: pointer; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html.sp-lock { overflow: hidden; }

.sp-ico { width: 1.1em; height: 1.1em; flex: none; }
.sp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sp-muted { color: var(--sp-muted); margin-top: 12px !important; }

/* ---------- Tombol & elemen umum ---------- */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 14px; border: 0; font-weight: 700; font-size: 15px; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.sp-btn:hover { transform: translateY(-2px); }
.sp-btn .sp-ico { width: 18px; height: 18px; }
.sp-btn-amber { background: var(--sp-amber); color: var(--sp-900) !important; box-shadow: 0 8px 22px rgba(255, 182, 39, .35); }
.sp-btn-amber:hover { background: #ffc24d; }
.sp-btn-indigo { background: var(--sp-700); color: #fff !important; box-shadow: 0 8px 20px rgba(45, 27, 143, .25); }
.sp-btn-indigo:hover { background: var(--sp-600); }
.sp-btn-ghost { background: rgba(255, 255, 255, .1); color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .35); }
.sp-btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.sp-btn-wa { background: #25d366; color: #fff !important; }
.sp-link { display: inline-flex; align-items: center; gap: 6px; color: var(--sp-600); font-weight: 700; font-size: 15px; white-space: nowrap; }
.sp-link .sp-ico { transition: transform .2s; }
.sp-link:hover .sp-ico, a:hover > .sp-link .sp-ico { transform: translateX(4px); }
.sp-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--sp-600); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sp-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--sp-amber); transform: rotate(45deg); }
.sp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: var(--sp-amber-soft); font-size: 13px; font-weight: 700; }
.sp-tag { padding: 3px 10px; border-radius: 999px; background: var(--sp-100); color: var(--sp-700); font-weight: 700; font-size: 12px; }

.sp-section { padding: 96px 0; }
.sp-section-tight { padding: 56px 0; }
.sp-bg-soft { background: var(--sp-soft); }
.sp-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.sp-head h2, .sp-about-text h2, .sp-contact h2, .sp-ppdb h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--sp-900); }
.sp-head p { margin-top: 12px; color: var(--sp-muted); }
.sp-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; max-width: none; text-align: left; }
.sp-head-light h2 { color: #fff; }
.sp-head-light .sp-eyebrow { color: var(--sp-amber-soft); }

/* Latar indigo dengan pola titik-garis bernuansa teknologi */
.sp-pattern {
  background-color: var(--sp-800);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .09) 1px, transparent 0),
    linear-gradient(135deg, var(--sp-900) 0%, var(--sp-800) 55%, var(--sp-700) 100%);
  background-size: 22px 22px, 100% 100%;
}
.sp-dark { color: #fff; }

/* ---------- Header ---------- */
.sp-header { position: sticky; top: 0; z-index: 1000; }
.sp-topbar { background: var(--sp-900); color: rgba(255, 255, 255, .75); font-size: 13px; }
.sp-topbar .sp-wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.sp-topbar span, .sp-topbar a { display: inline-flex; align-items: center; gap: 6px; }
.sp-topbar-right { gap: 20px !important; }
.sp-topbar a:hover { color: var(--sp-amber-soft); }
.sp-navbar { background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--sp-line); transition: box-shadow .25s; }
.sp-header.is-scrolled .sp-navbar { box-shadow: 0 6px 24px rgba(18, 11, 61, .08); }
.sp-navbar .sp-wrap { display: flex; align-items: center; gap: 20px; height: 76px; }
.sp-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.sp-brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; }
.sp-brand span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sp-brand strong { font-size: 17px; font-weight: 800; color: var(--sp-900); }
.sp-brand small { font-size: 12px; color: var(--sp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-brand-light strong { color: #fff; }
.sp-brand-light small { color: rgba(255, 255, 255, .7); }
.sp-menu { display: flex; align-items: center; gap: 2px; }
.sp-menu > a, .sp-dd > button { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; font-size: 15px; font-weight: 600; color: #36325a; transition: background .2s, color .2s; }
.sp-menu > a:hover, .sp-dd > button:hover, .sp-menu .is-current, .sp-dd.is-open > button { background: var(--sp-100); color: var(--sp-700); }
.sp-dd { position: relative; }
.sp-dd > button .sp-ico { width: 16px; height: 16px; transition: transform .2s; }
.sp-dd-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px rgba(18, 11, 61, .16); border: 1px solid var(--sp-line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.sp-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.sp-dd:hover .sp-dd-panel, .sp-dd:focus-within .sp-dd-panel, .sp-dd.is-open .sp-dd-panel { opacity: 1; visibility: visible; transform: none; }
.sp-dd:hover > button .sp-ico, .sp-dd.is-open > button .sp-ico { transform: rotate(180deg); }
.sp-dd-panel a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #36325a; }
.sp-dd-panel a:hover, .sp-dd-panel a.is-current { background: var(--sp-100); color: var(--sp-700); }
.sp-nav-cta { padding: 11px 20px; }
.sp-wa-mini, .sp-back { display: none; }

/* ---------- Hero ---------- */
.sp-hero { position: relative; overflow: hidden; color: #fff; }
.sp-hero-glow { position: absolute; width: 640px; height: 640px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(108, 85, 240, .55), transparent 65%); pointer-events: none; }
.sp-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 112px; }
.sp-hero h1 { margin-top: 20px; font-size: clamp(36px, 5vw, 60px); line-height: 1.08; }
.sp-hero h1 em { font-style: normal; color: var(--sp-amber); }
.sp-lead { margin-top: 20px; max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .82); }
.sp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sp-hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.sp-hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.sp-hero-points .sp-ico { width: 20px; height: 20px; color: var(--sp-amber); }
.sp-hero-media { position: relative; display: grid; place-items: end center; min-height: 420px; }
.sp-hero-blob { position: absolute; inset: 8% 4% 0; border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%; background: linear-gradient(160deg, var(--sp-500), var(--sp-700)); box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .06); }
.sp-hero-media img { position: relative; z-index: 1; width: 100%; max-width: 600px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .3)); }
.sp-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: #fff; color: var(--sp-ink); box-shadow: 0 16px 34px rgba(0, 0, 0, .22); animation: sp-bob 5s ease-in-out infinite; }
.sp-float > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sp-100); color: var(--sp-700); }
.sp-float .sp-ico { width: 22px; height: 22px; }
.sp-float strong { display: block; font-size: 15px; line-height: 1.2; }
.sp-float small { font-size: 12px; color: var(--sp-muted); }
.sp-float-a { left: -4%; top: 14%; }
.sp-float-b { right: -2%; bottom: 14%; animation-delay: -2.5s; }
.sp-float-b > span { background: #fff3d6; color: #b17400; }
@keyframes sp-bob { 50% { transform: translateY(-10px); } }

/* ---------- Statistik ---------- */
.sp-stats { position: relative; z-index: 5; margin-top: -52px; }
.sp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--sp-radius); box-shadow: 0 18px 40px rgba(18, 11, 61, .1); overflow: hidden; }
.sp-stats-grid div { padding: 26px 16px; text-align: center; border-right: 1px solid var(--sp-line); }
.sp-stats-grid div:last-child { border-right: 0; }
.sp-stats-grid strong { display: block; font-size: 36px; font-weight: 800; color: var(--sp-700); line-height: 1.1; }
.sp-stats-grid span { font-size: 14px; color: var(--sp-muted); font-weight: 600; }

/* ---------- Sorotan (geser horizontal) ---------- */
.sp-sorotan { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--sp-100) transparent; }
.sp-sorot { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--sp-radius); overflow: hidden; scroll-snap-align: start; background: var(--sp-100); }
.sp-sorot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sp-sorot:hover img { transform: scale(1.05); }
.sp-sorot figcaption { position: absolute; inset: auto 0 0; padding: 48px 20px 18px; background: linear-gradient(transparent, rgba(18, 11, 61, .92)); color: #fff; }
.sp-sorot strong { display: block; font-size: 18px; }
.sp-sorot span { font-size: 14px; color: rgba(255, 255, 255, .8); }

/* ---------- Jurusan ---------- */
.sp-jurusan { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.sp-jur { display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--sp-shadow); transition: transform .25s, box-shadow .25s; }
.sp-jur:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(18, 11, 61, .14); }
.sp-jur-img { position: relative; aspect-ratio: 16 / 8; background-size: cover; background-position: center; }
.sp-jur-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(18, 11, 61, .45)); }
.sp-jur-code { position: absolute; left: 20px; bottom: -20px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: var(--sp-700); color: #fff; font-weight: 800; box-shadow: 0 10px 22px rgba(45, 27, 143, .35); }
.sp-jur-code .sp-ico { width: 20px; height: 20px; color: var(--sp-amber); }
.sp-jur-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 38px 26px 26px; }
.sp-jur-body h3 { font-size: 22px; color: var(--sp-900); }
.sp-jur-body p { color: var(--sp-muted); font-size: 15px; }
.sp-skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; padding: 0; list-style: none; }
.sp-skills li { padding: 6px 12px; border-radius: 10px; background: var(--sp-soft); border: 1px solid var(--sp-line); font-size: 13px; font-weight: 600; color: #3e3a63; }
.sp-jur .sp-link { margin-top: auto; }

/* ---------- Keunggulan ---------- */
.sp-about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.sp-about-text > p { margin: 16px 0 28px; color: var(--sp-muted); }
.sp-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sp-feature { padding: 24px; border-radius: var(--sp-radius); background: #fff; border: 1px solid var(--sp-line); transition: border-color .25s, box-shadow .25s, transform .25s; }
.sp-feature:hover { border-color: transparent; box-shadow: var(--sp-shadow); transform: translateY(-4px); }
.sp-feature-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: var(--sp-100); color: var(--sp-700); }
.sp-feature-ico .sp-ico { width: 24px; height: 24px; }
.sp-feature h3 { font-size: 17px; margin-bottom: 6px; color: var(--sp-900); }
.sp-feature p { font-size: 14px; color: var(--sp-muted); }

/* ---------- Mitra (logo berjalan) ---------- */
.sp-mitra { padding: 64px 0 0; }

/* ---------- Sambutan kepala sekolah ---------- */
.sp-welcome { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.sp-welcome-photo { position: relative; margin: 0; }
.sp-welcome-photo::before { content: ""; position: absolute; inset: 24px -18px -18px 24px; border-radius: 28px; background: var(--sp-100); z-index: -1; }
.sp-welcome-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 24px; box-shadow: var(--sp-shadow); }
.sp-welcome-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(28, 18, 87, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; line-height: 1.35; }
.sp-welcome-photo figcaption strong { display: block; font-size: 15px; }
.sp-welcome-photo figcaption span { font-size: 13px; color: var(--sp-amber-soft); }
.sp-welcome-text h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--sp-900); }
.sp-welcome-body { position: relative; margin-top: 20px; padding-left: 24px; border-left: 3px solid var(--sp-amber); color: #3e3a5c; }
.sp-welcome-body p + p { margin-top: 12px; }
.sp-salam { font-weight: 700; color: var(--sp-700); }
.sp-welcome-sign { margin-top: 24px; padding-left: 27px; line-height: 1.4; }
.sp-welcome-sign strong { display: block; font-size: 17px; color: var(--sp-900); }
.sp-welcome-sign span { font-size: 14px; color: var(--sp-muted); }

/* ---------- Profil singkat ---------- */
.sp-about-text > p strong { color: var(--sp-800); }
.sp-profile-facts { display: grid; gap: 12px; margin: -8px 0 28px; padding: 0; list-style: none; }
.sp-profile-facts li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; color: var(--sp-ink); }
.sp-profile-facts .sp-ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff; color: var(--sp-700); box-shadow: var(--sp-shadow); }
.sp-profile-facts span { line-height: 1.3; }
.sp-profile-facts small { display: block; font-size: 12px; font-weight: 600; color: var(--sp-muted); }

/* ---------- Media sosial ---------- */
.sp-social { display: flex; gap: 10px; margin-top: 22px; }
.sp-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s, color .2s; }
.sp-social a:hover { background: var(--sp-amber); color: var(--sp-900); }
.sp-social .sp-ico { width: 20px; height: 20px; }
.sp-mitra-title { margin-bottom: 20px !important; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-muted); }
.sp-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.sp-marquee-track { display: flex; gap: 20px; width: max-content; animation: sp-marquee 32s linear infinite; }
.sp-marquee:hover .sp-marquee-track { animation-play-state: paused; }
.sp-logo { display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--sp-line); }
.sp-logo img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; }
.sp-logo span { font-weight: 700; font-size: 15px; color: #36325a; white-space: nowrap; }
@keyframes sp-marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- PPDB ---------- */
.sp-ppdb { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding: 56px; border-radius: 28px; color: #fff; background: radial-gradient(circle at 92% 8%, rgba(255, 182, 39, .32), transparent 42%), linear-gradient(135deg, var(--sp-600), var(--sp-900)); overflow: hidden; }
.sp-ppdb h2 { margin-top: 16px; color: #fff; }
.sp-ppdb p { margin-top: 14px; color: rgba(255, 255, 255, .82); }
.sp-waves { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sp-waves li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.sp-waves li.is-open { background: #fff; color: var(--sp-ink); border-color: #fff; }
.sp-wave-no { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .14); font-weight: 800; font-size: 18px; }
.sp-waves li.is-open .sp-wave-no { background: var(--sp-amber); color: var(--sp-900); }
.sp-waves strong { display: block; font-size: 16px; }
.sp-waves span { font-size: 14px; opacity: .85; }
.sp-waves em { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--sp-600); margin-top: 2px; }

/* ---------- Berita ---------- */
.sp-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sp-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--sp-radius); overflow: hidden; box-shadow: var(--sp-shadow); transition: transform .25s, box-shadow .25s; }
.sp-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(18, 11, 61, .14); }
.sp-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sp-100); }
.sp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sp-card:hover .sp-card-img img { transform: scale(1.06); }
.sp-card-body { padding: 20px 22px 24px; }
.sp-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--sp-muted); }
.sp-card h3 { font-size: 17px; line-height: 1.4; color: var(--sp-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-card p { margin-top: 8px; font-size: 14px; color: var(--sp-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Video ---------- */
.sp-videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sp-video { position: relative; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.sp-video.is-main { grid-column: span 2; grid-row: span 2; }
.sp-video img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s, transform .5s; }
.sp-video:hover img { opacity: 1; transform: scale(1.04); }
.sp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sp-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--sp-amber); color: var(--sp-900); box-shadow: 0 0 0 10px rgba(255, 182, 39, .25); }
.sp-play .sp-ico { width: 26px; height: 26px; margin-left: 4px; }
.sp-video:not(.is-main) .sp-play { width: 42px; height: 42px; margin: -21px 0 0 -21px; box-shadow: 0 0 0 6px rgba(255, 182, 39, .25); }
.sp-video:not(.is-main) .sp-play .sp-ico { width: 17px; height: 17px; }

/* ---------- Testimoni ---------- */
.sp-quote { position: relative; max-width: 860px; margin: 0 auto 88px; padding: 40px 44px; border-radius: 24px; background: var(--sp-soft); border: 1px solid var(--sp-line); }
.sp-quote-ico { position: absolute; top: -22px; left: 40px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sp-amber); color: var(--sp-900); }
.sp-quote-ico .sp-ico { width: 24px; height: 24px; }
.sp-quote blockquote { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.6; color: var(--sp-900); }
.sp-quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.sp-quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.sp-quote figcaption span { font-size: 14px; color: var(--sp-muted); }
.sp-quote figcaption strong { display: block; font-size: 16px; color: var(--sp-ink); }

/* ---------- Galeri ---------- */
.sp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.sp-gal { display: block; border-radius: 14px; overflow: hidden; background: var(--sp-100); }
.sp-gallery .sp-gal:nth-child(6n + 1) { grid-row: span 2; }
.sp-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sp-gal:hover img { transform: scale(1.07); }
.sp-lightbox { position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; padding: 24px; background: rgba(10, 6, 30, .92); }
.sp-lightbox[hidden] { display: none; }
.sp-lightbox img { max-height: 88vh; border-radius: 12px; }
.sp-lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; }
.sp-lightbox button .sp-ico { width: 22px; height: 22px; }

/* ---------- Kontak ---------- */
.sp-contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: stretch; }
.sp-contact-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.sp-contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.sp-contact-list li > span { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--sp-100); color: var(--sp-700); }
.sp-contact-list .sp-ico { width: 22px; height: 22px; }
.sp-contact-list strong { display: block; font-size: 13px; color: var(--sp-muted); font-weight: 600; }
.sp-contact-list div { font-weight: 600; }
.sp-contact-list a:hover { color: var(--sp-600); }
.sp-map { min-height: 380px; border-radius: 24px; overflow: hidden; box-shadow: var(--sp-shadow); background: var(--sp-100); }
.sp-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.sp-footer { color: rgba(255, 255, 255, .75); padding-top: 72px; }
.sp-footer-grid { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.sp-footer h4 { margin-bottom: 16px; color: #fff; font-size: 16px; }
.sp-footer-grid > div > a:not(.sp-brand) { display: block; margin-bottom: 10px; font-size: 15px; }
.sp-footer-grid a:hover { color: var(--sp-amber-soft); }
.sp-footer p { font-size: 15px; margin-bottom: 8px; }
.sp-footer-about { margin-top: 18px !important; max-width: 340px; }
.sp-copy { padding: 20px 24px; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; font-size: 14px; }

.sp-wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 999; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff !important; box-shadow: 0 10px 24px rgba(37, 211, 102, .4); transition: transform .2s; }
.sp-wa-float:hover { transform: scale(1.08); }
.sp-wa-float .sp-ico { width: 30px; height: 30px; }

/* ---------- Menu bawah & lembar menu (hanya HP & tablet) ---------- */
.sp-bottomnav, .sp-sheet { display: none; }

/* Animasi muncul saat discroll */
.sp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.sp-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sp-reveal { opacity: 1; transform: none; }
  .sp-float, .sp-marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   TABLET (≤ 1024px): menu atas disembunyikan, pakai menu bawah
   ========================================================= */
@media (max-width: 1024px) {
  .sp-menu, .sp-nav-cta, .sp-wa-float { display: none; }
  .sp-wa-mini { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #25d366; color: #fff !important; }
  .sp-wa-mini .sp-ico { width: 24px; height: 24px; }
  .sp-back { display: grid; place-items: center; flex: none; width: 42px; height: 42px; margin-right: -6px; border-radius: 12px; background: var(--sp-soft); color: var(--sp-800); }
  .sp-back .sp-ico { width: 22px; height: 22px; }

  .sp-section { padding: 72px 0; }
  .sp-hero-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 56px; padding-bottom: 96px; }
  .sp-hero-media { min-height: 340px; }
  .sp-float-a { left: 0; }
  .sp-sorotan { grid-auto-columns: calc((100% - 24px) / 2.2); }
  .sp-jurusan { gap: 20px; }
  .sp-about { grid-template-columns: 1fr; gap: 36px; }
  .sp-news { grid-template-columns: repeat(2, 1fr); }
  .sp-news .sp-card:nth-child(n + 5) { display: none; }
  .sp-ppdb { grid-template-columns: 1fr 1fr; padding: 40px; gap: 32px; }
  .sp-gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
  .sp-footer-grid { grid-template-columns: 1fr 1fr; }

  /* Menu bawah ala aplikasi */
  .sp-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    height: calc(66px + env(safe-area-inset-bottom));
    padding: 0 6px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--sp-line);
    box-shadow: 0 -6px 24px rgba(18, 11, 61, .1);
  }
  .sp-bottomnav .sp-bn-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    height: 66px; padding: 0; border: 0; background: none; color: #77739a !important;
    font: 600 11px/1 var(--sp-font); white-space: nowrap; position: relative;
    -webkit-tap-highlight-color: transparent;
  }
  .sp-bn-item .sp-ico { width: 23px; height: 23px; transition: transform .2s; }
  .sp-bn-item.is-active { color: var(--sp-700) !important; }
  .sp-bn-item.is-active::before { content: ""; position: absolute; top: 7px; width: 48px; height: 30px; border-radius: 16px; background: var(--sp-100); z-index: -1; }
  .sp-bn-item:active .sp-ico { transform: scale(.88); }
  .sp-bn-item.is-cta { justify-content: flex-start; }
  .sp-bn-item.is-cta .sp-ico {
    width: 56px; height: 56px; padding: 15px; margin-top: -24px; border-radius: 18px;
    color: var(--sp-900); background: var(--sp-amber); stroke-width: 2.6;
    box-shadow: 0 10px 20px rgba(255, 182, 39, .45), 0 0 0 5px #fff;
  }
  .sp-bn-item.is-cta span { color: var(--sp-800); margin-top: 3px; }
  body.sp { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }

  /* Lembar menu lengkap */
  .sp-sheet { position: fixed; inset: 0; z-index: 10000; display: block; }
  .sp-sheet[hidden] { display: none; }
  .sp-sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 6, 30, .5); opacity: 0; transition: opacity .25s; }
  .sp-sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto;
    padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #fff;
    transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  }
  .sp-sheet.is-open .sp-sheet-backdrop { opacity: 1; }
  .sp-sheet.is-open .sp-sheet-panel { transform: none; }
  .sp-sheet-handle { width: 44px; height: 5px; margin: 0 auto 10px; border-radius: 9px; background: var(--sp-line); }
  .sp-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
  .sp-sheet-head strong { font-size: 19px; color: var(--sp-900); }
  .sp-sheet-head button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--sp-soft); color: var(--sp-800); }
  .sp-sheet-head .sp-ico { width: 20px; height: 20px; }
  .sp-sheet-list { display: flex; flex-direction: column; }
  .sp-sheet-group { margin: 16px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-muted); }
  .sp-sheet-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--sp-line); font-size: 16px; font-weight: 600; color: var(--sp-ink); }
  .sp-sheet-list a .sp-ico { width: 18px; height: 18px; color: #aaa6c4; }
  .sp-sheet-list a.is-current { color: var(--sp-600); }
  .sp-sheet-wa { width: 100%; margin-top: 20px; }
  .sp-sheet-social { justify-content: center; margin-top: 14px; }
  .sp-sheet-social a { background: var(--sp-soft); color: var(--sp-700); }

  .sp-welcome { grid-template-columns: 300px 1fr; gap: 44px; }
}

/* =========================================================
   HP (≤ 720px)
   ========================================================= */
@media (max-width: 720px) {
  html { scroll-padding-top: 70px; }
  body.sp { font-size: 15px; }
  .sp-wrap { padding: 0 16px; }
  .sp-topbar { display: none; }
  .sp-navbar .sp-wrap { height: 64px; gap: 10px; }
  .sp-brand { gap: 10px; }
  .sp-brand img { width: 40px; height: 40px; }
  .sp-brand strong { font-size: 15px; }
  .sp-brand small { font-size: 11px; }
  .sp-wa-mini { width: 40px; height: 40px; }
  .sp-back { width: 38px; height: 38px; }

  .sp-section { padding: 56px 0; }
  .sp-section-tight { padding: 40px 0; }
  .sp-head { margin-bottom: 28px; }
  .sp-head-row { flex-direction: column; align-items: flex-start; gap: 4px; }

  .sp-hero-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 36px; padding-bottom: 88px; }
  .sp-hero h1 { margin-top: 16px; }
  .sp-lead { font-size: 15px; margin-top: 14px; }
  .sp-hero-actions { margin-top: 24px; }
  .sp-hero-actions .sp-btn { flex: 1; padding: 13px 14px; }
  .sp-hero-points { margin-top: 22px; gap: 8px 16px; font-size: 13px; }
  .sp-hero-media { min-height: 0; margin-top: 16px; }
  .sp-hero-media img { max-width: 420px; }
  .sp-float { padding: 8px 12px 8px 8px; border-radius: 14px; gap: 8px; }
  .sp-float > span { width: 34px; height: 34px; border-radius: 10px; }
  .sp-float .sp-ico { width: 18px; height: 18px; }
  .sp-float strong { font-size: 13px; }
  .sp-float small { font-size: 11px; }
  .sp-float-a { top: 6%; }
  .sp-float-b { bottom: 4%; }

  .sp-stats { margin-top: -44px; }
  .sp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-stats-grid div { padding: 16px 8px; }
  .sp-stats-grid div:nth-child(2) { border-right: 0; }
  .sp-stats-grid div:nth-child(-n + 2) { border-bottom: 1px solid var(--sp-line); }
  .sp-stats-grid strong { font-size: 28px; }
  .sp-stats-grid span { font-size: 13px; }

  /* Kartu geser horizontal seperti aplikasi */
  .sp-sorotan, .sp-news, .sp-jurusan {
    display: flex; gap: 14px; margin: 0 -16px; padding: 4px 16px 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .sp-sorotan::-webkit-scrollbar, .sp-news::-webkit-scrollbar, .sp-jurusan::-webkit-scrollbar { display: none; }
  .sp-sorot { flex: 0 0 82%; }
  .sp-card, .sp-jur { flex: 0 0 84%; scroll-snap-align: start; }
  .sp-news .sp-card:nth-child(n + 5) { display: flex; }
  .sp-card:hover, .sp-jur:hover { transform: none; }
  .sp-jur-body { padding: 34px 20px 22px; }
  .sp-jur-body h3 { font-size: 19px; }

  .sp-features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sp-feature { padding: 16px; }
  .sp-feature-ico { width: 40px; height: 40px; margin-bottom: 10px; border-radius: 12px; }
  .sp-feature-ico .sp-ico { width: 20px; height: 20px; }
  .sp-feature h3 { font-size: 14px; }
  .sp-feature p { font-size: 12.5px; line-height: 1.5; }
  .sp-about-text .sp-btn { width: 100%; }

  .sp-mitra { padding-top: 44px; }

  .sp-welcome { grid-template-columns: 1fr; gap: 36px; }
  .sp-welcome-photo { width: 78%; max-width: 320px; margin: 0 auto; }
  .sp-welcome-photo::before { inset: 16px -12px -12px 16px; }
  .sp-welcome-photo figcaption { display: none; }
  .sp-welcome-body { padding-left: 16px; font-size: 15px; }
  .sp-welcome-sign { padding-left: 19px; }
  .sp-logo img { width: 44px; height: 44px; }
  .sp-logo span { font-size: 14px; }

  .sp-ppdb { grid-template-columns: 1fr; padding: 28px 20px; border-radius: 22px; gap: 28px; }
  .sp-ppdb .sp-hero-actions { flex-direction: column; }

  .sp-videos { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sp-video.is-main { grid-column: 1 / -1; grid-row: auto; }
  .sp-video:not(.is-main) { border-radius: 10px; }
  .sp-video:not(.is-main) .sp-play { width: 32px; height: 32px; margin: -16px 0 0 -16px; }

  .sp-quote { padding: 32px 22px 24px; margin-bottom: 64px; }
  .sp-quote-ico { left: 22px; }
  .sp-quote blockquote { font-size: 16px; }

  .sp-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 8px; }
  .sp-gallery .sp-gal:nth-child(n + 9) { display: none; }

  .sp-contact { grid-template-columns: 1fr; gap: 28px; }
  .sp-map, .sp-map iframe { min-height: 280px; }

  .sp-footer { padding-top: 48px; }
  .sp-footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
}
