/* Halaman dalam — SMK Plus Pagelaran */
.sp-wrap-narrow { max-width: 840px; }
.sp-inner { min-height: 40vh; }

/* ---------- Banner judul ---------- */
.sp-pagehero { padding: 60px 0 68px; color: #fff; }
.sp-pagehero .sp-eyebrow { color: var(--sp-amber-soft); }
.sp-pagehero h1 { max-width: 780px; font-size: clamp(30px, 4.4vw, 48px); }
.sp-pagehero p { max-width: 640px; margin-top: 14px; font-size: 17px; color: rgba(255, 255, 255, .8); }
.sp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.sp-crumbs a:hover { color: var(--sp-amber-soft); }
.sp-crumbs > :last-child { color: #fff; }

/* ---------- Daftar berita ---------- */
.sp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.sp-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sp-filter::-webkit-scrollbar { display: none; }
.sp-filter a { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--sp-line); font-size: 14px; font-weight: 600; color: #3e3a63; transition: background .2s, color .2s, border-color .2s; }
.sp-filter a:hover, .sp-filter a.is-active { background: var(--sp-700); border-color: var(--sp-700); color: #fff; }
.sp-search { display: flex; flex: none; width: 300px; max-width: 100%; border: 1.5px solid var(--sp-line); border-radius: 14px; overflow: hidden; background: #fff; }
.sp-search input { flex: 1; min-width: 0; padding: 11px 16px; border: 0; font: inherit; font-size: 15px; outline: none; background: none; }
.sp-search button { width: 48px; border: 0; background: var(--sp-700); color: #fff; }
.sp-search button .sp-ico { width: 20px; height: 20px; margin: auto; }
.sp-grid-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sp-grid-news.is-prestasi .sp-card { border-top: 4px solid var(--sp-amber); }
.sp-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.sp-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--sp-line); font-weight: 700; color: var(--sp-800); }
.sp-pagination .page-numbers.current { background: var(--sp-700); border-color: var(--sp-700); color: #fff; }
.sp-pagination a.page-numbers:hover { border-color: var(--sp-600); }

.sp-empty { max-width: 520px; margin: 0 auto; text-align: center; padding: 40px 0; }
.sp-empty > .sp-ico { width: 56px; height: 56px; color: var(--sp-600); margin: 0 auto 12px; }
.sp-empty h2 { font-size: 26px; color: var(--sp-900); margin-bottom: 8px; }
.sp-empty p { color: var(--sp-muted); margin-bottom: 24px; }
.sp-empty .sp-search { margin: 0 auto 20px; width: 400px; }
.sp-404 { display: block; font-size: clamp(90px, 16vw, 150px); font-weight: 800; line-height: 1; color: var(--sp-100); -webkit-text-stroke: 2px var(--sp-600); }

/* ---------- Artikel ---------- */
.sp-article-head { padding: 52px 0 120px; color: #fff; }
.sp-article-head h1 { font-size: clamp(26px, 4vw, 42px); line-height: 1.22; margin-top: 14px; }
.sp-tag-light { background: var(--sp-amber); color: var(--sp-900); }
.sp-article-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.sp-article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sp-article-cover { margin: -84px 0 32px; border-radius: 22px; overflow: hidden; box-shadow: var(--sp-shadow); position: relative; z-index: 2; background: var(--sp-100); }
.sp-article-cover img { width: 100%; max-height: 540px; object-fit: cover; }
.sp-article .sp-prose { padding: 8px 0; }
.sp-article-head + .sp-wrap > .sp-prose:first-child { margin-top: -84px; position: relative; z-index: 2; padding: 36px 32px 8px; background: #fff; border-radius: 22px 22px 0 0; }

.sp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 40px 0 72px; padding-top: 24px; border-top: 1px solid var(--sp-line); }
.sp-share > span { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-weight: 700; color: var(--sp-muted); }
.sp-share a, .sp-share button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 12px; font-size: 14px; font-weight: 700; color: #fff; }
.sp-share .is-wa { background: #25d366; }
.sp-share .is-fb { background: #1877f2; }
.sp-share .is-copy { background: var(--sp-100); color: var(--sp-700); }

/* ---------- Isi tulisan ---------- */
.sp-prose { font-size: 17px; line-height: 1.8; color: #2b2846; overflow-wrap: break-word; }
.sp-prose > * + * { margin-top: 1.1em; }
.sp-prose p { margin: 0; }
.sp-prose p + p, .sp-prose div + p { margin-top: 1.1em; }
.sp-prose h2, .sp-prose h3, .sp-prose h4, .sp-prose .widget-title { margin-top: 1.6em; color: var(--sp-900); }
.sp-prose h2 { font-size: 26px; }
.sp-prose h3, .sp-prose .widget-title { font-size: 21px; }
.sp-prose h4 { font-size: 18px; }
.sp-prose a { color: var(--sp-600); text-decoration: underline; text-underline-offset: 3px; }
.sp-prose img { height: auto; border-radius: 14px; margin: 0 auto; }
.sp-prose img.alignnone { display: inline-block; vertical-align: top; margin: 6px 4px; }
.sp-prose p:has(> img:only-child) img, .sp-prose figure img { width: 100%; max-width: 100%; display: block; margin: 0; }
.sp-prose figure { margin-left: 0; margin-right: 0; max-width: 100%; }
.sp-prose .wp-caption { width: auto !important; }
.sp-prose figcaption, .sp-prose .wp-caption-text { font-size: 14px; color: var(--sp-muted); text-align: center; margin-top: 8px; }
.sp-prose blockquote { margin: 1.5em 0; padding: 20px 24px; border-left: 4px solid var(--sp-amber); border-radius: 0 14px 14px 0; background: var(--sp-soft); font-weight: 600; color: var(--sp-900); }
.sp-prose blockquote p { margin: 0; }
.sp-prose ul, .sp-prose ol { padding-left: 1.4em; }
.sp-prose li + li { margin-top: .4em; }
.sp-prose li > p { margin: 0; }
.sp-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.sp-prose th, .sp-prose td { padding: 10px 12px; border: 1px solid var(--sp-line); text-align: left; vertical-align: top; }
.sp-prose thead td, .sp-prose th { background: var(--sp-soft); }
.sp-prose iframe { max-width: 100%; border-radius: 14px; }
.sp-prose .gallery, .sp-prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.sp-prose .gallery br { display: none; }
.sp-prose-page { max-width: 860px; margin: 0 auto; }
.sp-prose-page > .so-panel + .so-panel { margin-top: 1.4em; }

/* ---------- Ajakan daftar ---------- */
.sp-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 48px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 95% 0%, rgba(255, 182, 39, .32), transparent 50%), linear-gradient(135deg, var(--sp-600), var(--sp-900)); }
.sp-cta h2 { margin-top: 14px; font-size: clamp(22px, 2.6vw, 30px); }
.sp-cta p { margin-top: 8px; color: rgba(255, 255, 255, .8); }
.sp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Profil ---------- */
.sp-about-media { position: relative; }
.sp-about-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 24px; box-shadow: var(--sp-shadow); }
.sp-about-media::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px dashed var(--sp-500); border-radius: 28px; z-index: -1; }
.sp-about-badge { position: absolute; right: -18px; bottom: 32px; display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--sp-700); color: #fff; border-radius: 16px; box-shadow: var(--sp-shadow); }
.sp-about-badge strong { font-size: 34px; color: var(--sp-amber); line-height: 1; }
.sp-about-badge span { font-size: 13px; line-height: 1.35; }
.sp-prose-profil { margin-top: 16px; font-size: 16px; color: var(--sp-muted); }
.sp-ident { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sp-ident div { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 20px 22px; border-radius: 18px; background: #fff; box-shadow: var(--sp-shadow); }
.sp-ident span { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sp-100); color: var(--sp-700); }
.sp-ident span .sp-ico { width: 24px; height: 24px; }
.sp-ident small { font-size: 13px; color: var(--sp-muted); font-weight: 600; }
.sp-ident strong { font-size: 16px; color: var(--sp-900); line-height: 1.3; }
.sp-facilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sp-facility { margin: 0; }
.sp-facility .sp-gal { aspect-ratio: 4 / 3; border-radius: 16px; }
.sp-facility figcaption { padding: 14px 4px 0; }
.sp-facility strong { display: block; font-size: 16px; color: var(--sp-900); }
.sp-facility span { font-size: 14px; color: var(--sp-muted); }

/* ---------- Jurusan ---------- */
.sp-jhero { color: #fff; overflow: hidden; }
.sp-jhero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 52px; padding-bottom: 60px; }
.sp-jhero h1 { margin-top: 18px; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; }
.sp-jhero p { margin-top: 14px; font-size: 18px; color: rgba(255, 255, 255, .82); max-width: 520px; }
.sp-jhero-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: 0 24px 50px rgba(0, 0, 0, .3); transform: rotate(2deg); }
.sp-jlayout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.sp-jlayout .sp-prose-page { max-width: none; margin: 0; }
.sp-jside { position: sticky; top: 100px; display: grid; gap: 18px; }
.sp-jbox { padding: 24px; border-radius: 20px; background: var(--sp-soft); border: 1px solid var(--sp-line); }
.sp-jbox h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 17px; color: var(--sp-900); }
.sp-jbox h3 .sp-ico { width: 22px; height: 22px; color: var(--sp-600); }
.sp-jbox .sp-skills li { background: #fff; }
.sp-checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sp-checklist li { position: relative; padding-left: 28px; font-size: 15px; font-weight: 500; }
.sp-checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--sp-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d1b8f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.sp-jother { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--sp-800); color: #fff; transition: transform .2s; }
.sp-jother:hover { transform: translateY(-3px); }
.sp-jother > span { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: var(--sp-amber); }
.sp-jother > span .sp-ico { width: 22px; height: 22px; }
.sp-jother div { flex: 1; line-height: 1.3; }
.sp-jother small { font-size: 12px; color: rgba(255, 255, 255, .7); }
.sp-jother strong { display: block; font-size: 15px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .sp-grid-news { grid-template-columns: repeat(2, 1fr); }
  .sp-toolbar { flex-direction: column; align-items: stretch; }
  .sp-search { width: 100%; }
  .sp-cta { flex-direction: column; align-items: flex-start; padding: 36px; }
  .sp-ident { grid-template-columns: repeat(2, 1fr); }
  .sp-facilities { grid-template-columns: repeat(2, 1fr); }
  .sp-about-media img { aspect-ratio: 16 / 10; }
  .sp-jhero-grid { gap: 32px; }
  .sp-jlayout { grid-template-columns: 1fr; gap: 32px; }
  .sp-jside { position: static; grid-template-columns: 1fr 1fr; }
  .sp-jother { grid-column: 1 / -1; }
}

/* ---------- HP ---------- */
@media (max-width: 720px) {
  .sp-pagehero { padding: 32px 0 40px; }
  .sp-pagehero p { font-size: 15px; }
  .sp-crumbs { margin-bottom: 14px; font-size: 13px; }

  .sp-grid-news { grid-template-columns: 1fr; gap: 16px; }
  /* Kartu berita versi daftar ringkas (gambar kiri, teks kanan) */
  .sp-grid-news .sp-card { flex-direction: row; border-radius: 16px; }
  .sp-grid-news .sp-card-img { position: relative; flex: 0 0 38%; aspect-ratio: auto; min-height: 112px; }
  .sp-grid-news .sp-card-img img { position: absolute; inset: 0; }
  .sp-grid-news .sp-card-body { padding: 12px 14px; }
  .sp-grid-news .sp-card-meta { margin-bottom: 6px; font-size: 12px; gap: 8px; }
  .sp-grid-news .sp-card h3 { font-size: 15px; -webkit-line-clamp: 3; }
  .sp-grid-news .sp-card p { display: none; }
  .sp-toolbar { margin-bottom: 20px; gap: 12px; }
  .sp-filter { margin: 0 -16px; padding: 0 16px; }
  .sp-empty .sp-search { width: 100%; }

  .sp-article-head { padding: 28px 0 96px; }
  .sp-article-meta { gap: 14px; font-size: 13px; }
  .sp-article-cover { margin: -72px 0 24px; border-radius: 16px; }
  .sp-article-head + .sp-wrap > .sp-prose:first-child { margin-top: -72px; padding: 24px 18px 4px; }
  .sp-prose { font-size: 16px; line-height: 1.75; }
  .sp-prose h2 { font-size: 22px; }
  .sp-prose h3, .sp-prose .widget-title { font-size: 19px; }
  .sp-prose img.alignnone { display: block; width: 100%; margin: 8px 0; }
  .sp-share { margin-bottom: 48px; }
  .sp-share > span { width: 100%; }
  .sp-share a, .sp-share button { flex: 1; justify-content: center; padding: 10px; }

  .sp-cta { padding: 28px 22px; border-radius: 20px; }
  .sp-cta-actions { width: 100%; flex-direction: column; }

  .sp-about-media { margin: 0 12px; }
  .sp-about-media img { aspect-ratio: 4 / 3.4; }
  .sp-about-badge { right: -8px; bottom: -18px; padding: 12px 16px; }
  .sp-ident { grid-template-columns: 1fr; gap: 10px; }
  .sp-ident div { padding: 14px 16px; }
  .sp-ident span { width: 42px; height: 42px; }
  .sp-facilities { gap: 14px; }
  .sp-facility strong { font-size: 14px; }
  .sp-facility span { font-size: 12.5px; }

  .sp-jhero-grid { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 40px; }
  .sp-jhero p { font-size: 15px; }
  .sp-jhero .sp-hero-actions .sp-btn { width: 100%; }
  .sp-jhero-img { order: -1; }
  .sp-jhero-img img { transform: none; aspect-ratio: 16 / 9; border-radius: 18px; }
  .sp-jside { grid-template-columns: 1fr; }
}
