/*
Theme Name: Sekolah Prima SMP v5.0
Theme URI: https://example.com/sekolah-prima-smp
Author: OpenAI
Author URI: https://openai.com
Description: Tema portal informasi dan layanan SMP negeri dengan desain modern, responsif, dan mudah disesuaikan.
Version: 5.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sekolah-prima-smp
Tags: education, school, news, custom-logo, custom-menu, featured-images, one-column, two-columns, translation-ready
*/

:root {
  --sp-navy: #103b73;
  --sp-blue: #1765b4;
  --sp-blue-light: #eaf3fc;
  --sp-sky: #63a9e8;
  --sp-yellow: #ffc629;
  --sp-yellow-deep: #efae00;
  --sp-ink: #172d49;
  --sp-muted: #66778c;
  --sp-line: #e4ebf2;
  --sp-soft: #f5f8fc;
  --sp-white: #fff;
  --sp-shadow: 0 16px 40px rgba(16, 59, 115, .10);
  --sp-radius: 20px;
  --sp-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--sp-ink); background: #fff; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--sp-container), calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { z-index: 9999; top: 10px; left: 10px; width: auto; height: auto; clip: auto; padding: 10px 16px; color: #fff; background: var(--sp-navy); }

/* Utility + buttons */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--sp-blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 27px; height: 3px; border-radius: 4px; background: var(--sp-yellow); }
.eyebrow-light { color: #ffe08a; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 800; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #142c4a; background: var(--sp-yellow); box-shadow: 0 9px 20px rgba(255,198,41,.25); }
.button-primary:hover { background: #ffd454; box-shadow: 0 12px 25px rgba(255,198,41,.34); }
.button-outline { color: #fff; border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.08); }
.button-outline:hover { background: rgba(255,255,255,.18); }
.button-blue { color: #fff; background: var(--sp-blue); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--sp-blue); font-size: 13px; font-weight: 800; }
.text-link span { font-size: 18px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

/* Top bar and header */
.topbar { color: rgba(255,255,255,.9); background: var(--sp-navy); font-size: 11px; }
.topbar-inner { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-contact, .topbar-links { display: flex; align-items: center; gap: 22px; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-item svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.topbar-links a { color: rgba(255,255,255,.85); transition: color .2s; }
.topbar-links a:hover { color: var(--sp-yellow); }
.site-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid rgba(16,59,115,.08); }
.header-inner { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 26px; }
.site-brand { display: flex; min-width: 220px; align-items: center; gap: 12px; }
.site-brand .custom-logo-link { display: block; flex: 0 0 auto; line-height: 0; }
.site-brand .custom-logo { width: auto; max-width: 58px; max-height: 58px; object-fit: contain; }
.brand-emblem { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; border-radius: 15px; color: var(--sp-blue); background: var(--sp-blue-light); }
.brand-emblem svg { width: 35px; height: 35px; }
.brand-copy strong { display: block; color: var(--sp-navy); font-size: 18px; font-weight: 900; line-height: 1.14; letter-spacing: -.035em; }
.brand-copy small { display: block; margin-top: 4px; color: #77879a; font-size: 10px; font-weight: 650; letter-spacing: .015em; }
.primary-navigation { margin-left: auto; }
.main-nav-list { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 25px); padding: 0; margin: 0; list-style: none; }
.main-nav-list li { position: relative; }
.main-nav-list a { display: block; padding: 13px 0; color: #34465d; font-size: 12px; font-weight: 750; white-space: nowrap; transition: color .2s; }
.main-nav-list a:hover, .main-nav-list .current-menu-item > a { color: var(--sp-blue); }
.main-nav-list .current-menu-item > a::after { position: absolute; right: 0; bottom: 5px; left: 0; height: 2px; border-radius: 2px; background: var(--sp-yellow); content: ""; }
.nav-cta { flex: 0 0 auto; }
.nav-cta .button { min-height: 42px; padding-inline: 18px; font-size: 12px; }
.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--sp-line); border-radius: 13px; color: var(--sp-navy); background: #fff; cursor: pointer; }
.menu-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Hero */
.hero { position: relative; min-height: 535px; overflow: hidden; color: #fff; background: #173f6b; }
.hero-bg { position: absolute; inset: 0; background-position: center 43%; background-size: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,31,62,.91) 0%, rgba(9,42,78,.78) 37%, rgba(9,42,78,.20) 74%, rgba(9,42,78,.08) 100%), linear-gradient(0deg, rgba(8,34,67,.36), transparent 55%); }
.hero-inner { position: relative; z-index: 1; display: flex; min-height: 535px; align-items: center; }
.hero-copy { max-width: 590px; padding: 68px 0 86px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: #ffe18a; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-kicker::before { width: 28px; height: 3px; border-radius: 5px; background: var(--sp-yellow); content: ""; }
.hero h1 { max-width: 600px; margin: 0; color: #fff; font-size: clamp(42px, 5.1vw, 64px); font-weight: 900; line-height: 1.05; letter-spacing: -.055em; }
.hero h1 em { color: var(--sp-yellow); font-style: normal; }
.hero-description { max-width: 495px; margin: 20px 0 27px; color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { display: flex; align-items: center; gap: 8px; margin-top: 30px; }
.hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.hero-dots span:first-child { width: 24px; border-radius: 99px; background: var(--sp-yellow); }
.hero-note { position: absolute; right: 0; bottom: 54px; display: flex; align-items: center; gap: 12px; padding: 13px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 15px; background: rgba(11,43,79,.55); backdrop-filter: blur(10px); }
.hero-note-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--sp-navy); background: var(--sp-yellow); font-size: 18px; }
.hero-note strong, .hero-note small { display: block; }
.hero-note strong { color: #fff; font-size: 12px; }
.hero-note small { margin-top: 2px; color: rgba(255,255,255,.7); font-size: 10px; }

/* Quick access */
.quick-access { position: relative; z-index: 3; margin-top: -39px; }
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; border: 1px solid #e6edf5; border-radius: 19px; background: #fff; box-shadow: 0 18px 45px rgba(16,59,115,.12); }
.quick-card { display: flex; min-height: 105px; align-items: center; gap: 13px; padding: 19px 20px; border-right: 1px solid var(--sp-line); transition: background .2s; }
.quick-card:last-child { border-right: 0; }
.quick-card:hover { background: #f8fbff; }
.quick-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 14px; color: var(--sp-blue); background: #edf5fd; }
.quick-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick-card strong { display: block; color: var(--sp-navy); font-size: 12px; line-height: 1.35; }
.quick-card small { display: block; margin-top: 4px; color: #8492a3; font-size: 10px; line-height: 1.45; }
.quick-arrow { margin-left: auto; color: #9bacbd; font-size: 18px; }

/* Sections */
.section { padding: 92px 0; }
.section-heading { margin-bottom: 35px; }
.section-heading h2 { margin: 12px 0 10px; color: var(--sp-navy); font-size: clamp(30px, 3.2vw, 42px); font-weight: 900; line-height: 1.14; letter-spacing: -.045em; }
.section-heading p { max-width: 640px; margin: 0; color: var(--sp-muted); font-size: 14px; line-height: 1.8; }
.section-heading.centered { text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading.centered p { margin-inline: auto; }

/* About */
.about-section { padding-top: 93px; }
.about-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 75px; }
.about-photo-wrap { position: relative; padding: 0 24px 25px 0; }
.about-photo { height: 425px; overflow: hidden; border-radius: 22px 22px 80px 22px; background: #d9e8f5; box-shadow: var(--sp-shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-corner { position: absolute; z-index: -1; top: -18px; left: -18px; width: 120px; height: 120px; border-top: 5px solid var(--sp-yellow); border-left: 5px solid var(--sp-yellow); border-radius: 15px 0 0; }
.photo-note { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 15px 18px; border: 1px solid var(--sp-line); border-radius: 15px; background: #fff; box-shadow: var(--sp-shadow); }
.photo-note-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: var(--sp-navy); background: var(--sp-yellow); font-size: 18px; }
.photo-note strong, .photo-note small { display: block; }
.photo-note strong { color: var(--sp-navy); font-size: 12px; }
.photo-note small { margin-top: 2px; color: #8492a3; font-size: 10px; }
.about-copy h2 { margin: 12px 0 15px; color: var(--sp-navy); font-size: clamp(31px, 3.5vw, 45px); font-weight: 900; line-height: 1.12; letter-spacing: -.05em; }
.about-copy > p { margin: 0; color: var(--sp-muted); font-size: 14px; line-height: 1.9; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 25px 0 26px; }
.principal-quote { position: relative; margin-top: 26px; padding: 17px 20px 16px 48px; border-left: 3px solid var(--sp-yellow); border-radius: 0 13px 13px 0; background: #f5f8fc; }
.principal-quote-mark { position: absolute; top: 7px; left: 15px; color: var(--sp-yellow-deep); font-family: Georgia, serif; font-size: 38px; line-height: 1; }
.principal-quote p { margin: 0 0 9px; color: #586b82; font-size: 11px; line-height: 1.7; font-style: italic; }
.principal-quote strong, .principal-quote small { display: block; }
.principal-quote strong { color: var(--sp-navy); font-size: 11px; }
.principal-quote small { color: #8a97a6; font-size: 9px; }
.about-point { display: flex; align-items: flex-start; gap: 10px; }
.checkmark { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; color: #fff; background: #2a9b76; font-size: 12px; font-weight: 900; }
.about-point strong, .about-point small { display: block; }
.about-point strong { color: var(--sp-navy); font-size: 12px; }
.about-point small { margin-top: 3px; color: #8290a1; font-size: 10px; line-height: 1.5; }

/* Programs */
.programs-section { background: var(--sp-soft); }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.program-card { overflow: hidden; border: 1px solid #e6edf4; border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(16,59,115,.05); transition: transform .25s ease, box-shadow .25s ease; }
.program-card:hover { transform: translateY(-5px); box-shadow: var(--sp-shadow); }
.program-image { height: 180px; overflow: hidden; background: #dbe9f6; }
.program-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.program-card:hover .program-image img { transform: scale(1.06); }
.program-content { padding: 19px 18px 21px; }
.program-tag { display: inline-block; margin-bottom: 8px; color: var(--sp-blue); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.program-content h3 { margin: 0 0 7px; color: var(--sp-navy); font-size: 16px; line-height: 1.3; }
.program-content p { margin: 0; color: var(--sp-muted); font-size: 11px; line-height: 1.65; }
.program-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--sp-line); color: #78899c; font-size: 10px; font-weight: 750; }
.program-foot span:last-child { color: var(--sp-blue); font-size: 17px; }

/* Values / school life */
.values-strip { padding: 65px 0; background: #fff; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-item { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--sp-line); border-radius: 16px; background: #fff; }
.value-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 14px; color: var(--sp-blue); background: var(--sp-blue-light); font-size: 22px; }
.value-item strong { display: block; color: var(--sp-navy); font-size: 13px; }
.value-item small { display: block; margin-top: 3px; color: var(--sp-muted); font-size: 10px; }
.school-life { position: relative; overflow: hidden; color: #fff; background: var(--sp-navy); }
.school-life::after { position: absolute; top: -160px; right: -100px; width: 480px; height: 480px; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; box-shadow: 0 0 0 40px rgba(255,255,255,.025), 0 0 0 80px rgba(255,255,255,.018); content: ""; }
.school-life-inner { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; padding: 78px 0; }
.school-life h2 { margin: 13px 0 12px; color: #fff; font-size: clamp(29px, 3.4vw, 42px); line-height: 1.13; letter-spacing: -.045em; }
.school-life p { max-width: 430px; margin: 0 0 22px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.85; }
.life-gallery { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 155px 155px; gap: 13px; }
.life-image { position: relative; overflow: hidden; border-radius: 17px; background-position: center; background-size: cover; }
.life-image::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,28,54,.6), transparent 70%); content: ""; }
.life-image span { position: absolute; z-index: 1; bottom: 14px; left: 16px; color: #fff; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.life-image.tall { grid-row: span 2; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { overflow: hidden; border: 1px solid var(--sp-line); border-radius: 17px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--sp-shadow); }
.news-image { display: block; height: 205px; overflow: hidden; background: linear-gradient(135deg, #dceafa, #a8c8e7); }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-image img { transform: scale(1.05); }
.news-card-content { padding: 19px 20px 21px; }
.news-meta { display: flex; align-items: center; gap: 8px; color: #8997a6; font-size: 10px; }
.news-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--sp-yellow-deep); }
.news-card h3 { margin: 10px 0 7px; color: var(--sp-navy); font-size: 16px; line-height: 1.4; }
.news-card h3 a:hover { color: var(--sp-blue); }
.news-card p { margin: 0; color: var(--sp-muted); font-size: 11px; line-height: 1.7; }
.news-read { display: inline-flex; align-items: center; gap: 7px; margin-top: 15px; color: var(--sp-blue); font-size: 11px; font-weight: 850; }
.news-read span { font-size: 16px; }
.news-empty { grid-column: 1/-1; padding: 30px; border: 1px dashed #c8d7e5; border-radius: 14px; color: var(--sp-muted); background: #f9fbfd; text-align: center; }

/* Admission banner and footer */
.admissions { position: relative; overflow: hidden; color: #fff; background: linear-gradient(110deg, #0e3970, #1768b7); }
.admissions::after { position: absolute; top: -120px; right: -35px; width: 350px; height: 350px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 40px rgba(255,255,255,.035), 0 0 0 80px rgba(255,255,255,.025); content: ""; }
.admissions-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 62px 0; }
.admissions h2 { max-width: 670px; margin: 12px 0 8px; color: #fff; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.04em; }
.admissions p { max-width: 650px; margin: 0; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.75; }
.admissions .button { flex: 0 0 auto; }
.site-footer { color: rgba(255,255,255,.78); background: #0b2b52; }
.footer-main { display: grid; grid-template-columns: 1.5fr .8fr .9fr 1fr; gap: 40px; padding: 58px 0 46px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-emblem { color: var(--sp-navy); background: var(--sp-yellow); }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy small { color: rgba(255,255,255,.62); }
.footer-about p { max-width: 320px; margin: 0; color: rgba(255,255,255,.63); font-size: 11px; line-height: 1.8; }
.footer-col h3 { margin: 3px 0 17px; color: #fff; font-size: 13px; }
.footer-col ul { padding: 0; margin: 0; list-style: none; }
.footer-col li { margin: 9px 0; }
.footer-col a { color: rgba(255,255,255,.65); font-size: 11px; transition: color .2s; }
.footer-col a:hover { color: var(--sp-yellow); }
.footer-contact p { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 10px; color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.6; }
.footer-contact p span { color: var(--sp-yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: 10px; }

/* Blog and page templates */
.page-hero { padding: 62px 0; color: #fff; background: linear-gradient(110deg, #0e3970, #1b69b2); }
.page-hero h1 { margin: 9px 0 0; color: #fff; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.content-layout { display: block; padding: 65px 0 90px; }
.content-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 45px; }
.entry-content { color: #465b72; font-size: 15px; line-height: 1.85; }
.entry-content h2, .entry-content h3 { color: var(--sp-navy); line-height: 1.25; }
.entry-content a { color: var(--sp-blue); text-decoration: underline; }
.entry-title { color: var(--sp-navy); font-size: clamp(28px, 3vw, 40px); line-height: 1.2; }
.post-meta { color: #8996a5; font-size: 11px; }
.post-card-list { display: grid; gap: 25px; }
.post-card { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding-bottom: 25px; border-bottom: 1px solid var(--sp-line); }
.post-card img { width: 100%; height: 165px; object-fit: cover; border-radius: 14px; }
.post-card h2 { margin: 5px 0 8px; color: var(--sp-navy); font-size: 21px; line-height: 1.3; }
.widget { padding: 20px; margin-bottom: 18px; border: 1px solid var(--sp-line); border-radius: 15px; }
.widget-title { margin: 0 0 14px; color: var(--sp-navy); font-size: 15px; }
.widget ul { padding-left: 18px; color: var(--sp-muted); font-size: 12px; }

/* Responsive */
@media (max-width: 1100px) {
  :root { --sp-container: 100%; }
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 16px; }
  .site-brand { min-width: 185px; }
  .brand-copy strong { font-size: 16px; }
  .main-nav-list { gap: 14px; }
  .main-nav-list a { font-size: 11px; }
  .quick-card { padding: 16px 13px; gap: 10px; }
  .quick-icon { width: 41px; height: 41px; flex-basis: 41px; }
  .quick-card small { font-size: 9px; }
  .about-grid { gap: 48px; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .topbar-inner { justify-content: center; }
  .topbar-contact { gap: 15px; }
  .topbar-links { display: none; }
  .header-inner { min-height: 76px; }
  .site-brand { min-width: 0; }
  .menu-toggle { display: grid; margin-left: auto; }
  .primary-navigation { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 10px 20px 18px; border-top: 1px solid var(--sp-line); background: #fff; box-shadow: 0 18px 25px rgba(16,59,115,.1); }
  .primary-navigation.is-open { display: block; }
  .main-nav-list { display: grid; gap: 0; }
  .main-nav-list li { border-bottom: 1px solid #eef2f6; }
  .main-nav-list a { padding: 12px 4px; font-size: 13px; }
  .main-nav-list .current-menu-item > a::after { display: none; }
  .nav-cta { display: none; }
  .hero, .hero-inner { min-height: 520px; }
  .hero-copy { max-width: 540px; padding: 72px 0 95px; }
  .hero-note { right: 0; bottom: 26px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-card { min-height: 88px; border-bottom: 1px solid var(--sp-line); }
  .quick-card:nth-child(3) { border-right: 0; }
  .quick-card:nth-child(4), .quick-card:nth-child(5) { border-bottom: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-photo-wrap { max-width: 620px; }
  .about-photo { height: 390px; }
  .values-grid { grid-template-columns: 1fr; }
  .school-life-inner { grid-template-columns: 1fr; gap: 35px; padding: 65px 0; }
  .life-gallery { max-width: 620px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1.4fr 1fr; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 34px); }
  .topbar { font-size: 10px; }
  .topbar-inner { min-height: 32px; }
  .topbar-contact { width: 100%; justify-content: space-between; gap: 8px; }
  .topbar-item { gap: 5px; }
  .topbar-item:last-child { display: none; }
  .header-inner { min-height: 70px; }
  .brand-emblem { width: 43px; height: 43px; flex-basis: 43px; border-radius: 12px; }
  .brand-emblem svg { width: 30px; height: 30px; }
  .site-brand .custom-logo { max-width: 45px; max-height: 45px; }
  .brand-copy strong { max-width: 195px; font-size: 15px; }
  .brand-copy small { font-size: 9px; }
  .menu-toggle { width: 42px; height: 42px; }
  .hero, .hero-inner { min-height: 600px; }
  .hero-bg { background-position: 60% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,31,62,.88), rgba(7,31,62,.47)), linear-gradient(0deg, rgba(7,31,62,.42), transparent 55%); }
  .hero-copy { max-width: 100%; padding: 62px 0 105px; }
  .hero-kicker { font-size: 10px; margin-bottom: 14px; }
  .hero h1 { max-width: 390px; font-size: clamp(36px, 10vw, 46px); }
  .hero-description { max-width: 355px; margin: 15px 0 22px; font-size: 13px; line-height: 1.65; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .hero-actions .button { min-height: 44px; padding: 0 13px; font-size: 11px; }
  .hero-note { right: 0; bottom: 18px; left: 0; width: max-content; max-width: 100%; padding: 10px 13px; }
  .hero-note-icon { width: 33px; height: 33px; }
  .hero-note strong { font-size: 11px; }
  .hero-note small { font-size: 9px; }
  .quick-access { margin-top: -23px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 15px; }
  .quick-card { min-height: 82px; padding: 12px 11px; border-right: 1px solid var(--sp-line) !important; border-bottom: 1px solid var(--sp-line) !important; gap: 9px; }
  .quick-card:nth-child(2n) { border-right: 0 !important; }
  .quick-card:last-child { grid-column: 1 / -1; border-bottom: 0 !important; }
  .quick-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
  .quick-icon svg { width: 20px; height: 20px; }
  .quick-card strong { font-size: 11px; }
  .quick-card small { font-size: 9px; }
  .quick-arrow { font-size: 15px; }
  .section { padding: 65px 0; }
  .about-section { padding-top: 70px; }
  .about-photo-wrap { padding: 0 13px 19px 0; }
  .about-photo { height: 285px; border-radius: 17px 17px 52px 17px; }
  .photo-note { right: 0; bottom: 0; gap: 9px; padding: 11px 12px; }
  .photo-note-mark { width: 34px; height: 34px; }
  .photo-note strong { font-size: 10px; }
  .photo-note small { font-size: 9px; }
  .about-copy h2 { font-size: 32px; }
  .about-copy > p { font-size: 12px; line-height: 1.8; }
  .about-points { grid-template-columns: 1fr; gap: 13px; margin: 20px 0; }
  .section-heading { margin-bottom: 25px; }
  .section-heading h2 { font-size: 30px; }
  .section-heading p { font-size: 12px; }
  .program-grid { grid-template-columns: 1fr; gap: 15px; }
  .program-card { display: grid; grid-template-columns: 36% 1fr; min-height: 140px; }
  .program-image { height: 100%; min-height: 140px; }
  .program-content { display: flex; flex-direction: column; justify-content: center; padding: 14px; }
  .program-content h3 { font-size: 14px; }
  .program-content p { font-size: 10px; }
  .program-foot { margin-top: 10px; padding-top: 8px; font-size: 9px; }
  .values-strip { padding: 48px 0; }
  .value-item { padding: 15px; }
  .school-life-inner { padding: 55px 0; }
  .school-life p { font-size: 12px; }
  .life-gallery { grid-template-rows: 120px 120px; gap: 9px; }
  .life-image span { bottom: 10px; left: 11px; font-size: 8px; }
  .news-grid { grid-template-columns: 1fr; gap: 15px; }
  .news-image { height: 190px; }
  .admissions-inner { display: block; padding: 49px 0; }
  .admissions h2 { font-size: 31px; }
  .admissions p { font-size: 12px; }
  .admissions .button { margin-top: 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding: 45px 0 34px; }
  .footer-about { grid-column: 1/-1; }
  .footer-contact { grid-column: 1/-1; }
  .footer-bottom { display: block; text-align: center; line-height: 1.8; }
  .content-layout, .content-layout.has-sidebar { display: block; padding: 45px 0 65px; }
  .post-card { grid-template-columns: 1fr; gap: 13px; }
  .post-card img { height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Typography & content-density refinement — v3.1 */
:root {
  --sp-container: 1240px;
  --sp-radius: 18px;
}
body {
  font-size: 17px;
  line-height: 1.7;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.container { width: min(var(--sp-container), calc(100% - 64px)); }
.topbar { font-size: 13px; }
.topbar-inner { min-height: 42px; gap: 24px; }
.topbar-contact, .topbar-links { gap: 24px; }
.header-inner { min-height: 92px; gap: 28px; }
.site-brand { min-width: 250px; gap: 14px; }
.brand-emblem { width: 56px; height: 56px; flex-basis: 56px; }
.brand-copy strong { font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.brand-copy small { margin-top: 5px; font-size: 12px; }
.main-nav-list { gap: clamp(18px, 2vw, 27px); }
.main-nav-list a { font-size: 14px; font-weight: 700; }
.nav-cta .button { min-height: 48px; padding-inline: 22px; font-size: 14px; }
.button { min-height: 52px; padding-inline: 24px; font-size: 15px; }
.text-link { font-size: 15px; }
.eyebrow { font-size: 13px; letter-spacing: .09em; }

.hero, .hero-inner { min-height: 570px; }
.hero-copy { max-width: 570px; padding: 82px 0 90px; }
.hero-kicker { margin-bottom: 20px; font-size: 14px; }
.hero h1 { max-width: 560px; font-size: clamp(46px, 4.5vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.hero-description { max-width: 510px; margin: 22px 0 30px; font-size: 18px; line-height: 1.7; }
.hero-actions { gap: 14px; }

.quick-access { margin-top: -34px; }
.quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 18px; }
.quick-card { min-height: 112px; gap: 15px; padding: 20px 22px; }
.quick-card:nth-child(4) { border-right: 0; }
.quick-icon { width: 50px; height: 50px; flex-basis: 50px; border-radius: 15px; }
.quick-icon svg { width: 25px; height: 25px; }
.quick-card strong { font-size: 16px; line-height: 1.35; }
.quick-card small { margin-top: 4px; color: #718198; font-size: 13px; line-height: 1.45; }
.quick-arrow { font-size: 22px; }

.section { padding: 88px 0; }
.about-section { padding-top: 94px; }
.about-grid { gap: 86px; }
.about-photo-wrap { padding: 0; }
.about-photo { height: 450px; border-radius: 18px; }
.about-copy h2 { max-width: 620px; margin: 14px 0 18px; font-size: clamp(36px, 3.5vw, 44px); line-height: 1.13; letter-spacing: -.04em; }
.about-copy > p { max-width: 620px; margin: 0; color: #53667d; font-size: 17px; line-height: 1.8; }
.about-points { grid-template-columns: 1fr; gap: 13px; margin: 25px 0 24px; }
.about-point { align-items: center; gap: 12px; }
.about-point strong { font-size: 16px; }
.about-point small { font-size: 14px; }
.checkmark { width: 25px; height: 25px; flex-basis: 25px; font-size: 14px; }

.section-heading { max-width: 780px; margin: 0 auto 42px; }
.section-heading h2 { margin: 13px 0 13px; font-size: clamp(34px, 3.3vw, 43px); line-height: 1.15; letter-spacing: -.035em; }
.section-heading p { max-width: 680px; font-size: 17px; line-height: 1.75; }
.program-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.program-card { border-radius: 17px; }
.program-image { height: 220px; }
.program-content { padding: 23px 23px 24px; }
.program-tag { margin-bottom: 10px; font-size: 12px; letter-spacing: .08em; }
.program-content h3 { margin-bottom: 9px; font-size: 21px; line-height: 1.3; }
.program-content p { min-height: 0; font-size: 15px; line-height: 1.7; }
.program-foot { margin-top: 18px; padding-top: 14px; font-size: 13px; }
.program-foot span:last-child { font-size: 20px; }

.school-life-inner { grid-template-columns: .88fr 1.12fr; gap: 75px; padding: 82px 0; }
.school-life h2 { max-width: 480px; margin: 15px 0 16px; font-size: clamp(36px, 3.4vw, 44px); line-height: 1.15; }
.school-life p { max-width: 470px; margin-bottom: 28px; font-size: 17px; line-height: 1.75; }
.life-gallery { grid-template-rows: 185px 185px; gap: 15px; }
.life-image { border-radius: 16px; }
.life-image span { bottom: 15px; left: 17px; font-size: 12px; letter-spacing: .06em; }

.news-section .section-heading { max-width: none; margin-left: 0; }
.news-grid { gap: 25px; }
.news-image { height: 220px; }
.news-card { border-radius: 16px; }
.news-card-content { padding: 23px 23px 25px; }
.news-meta { font-size: 13px; }
.news-card h3 { margin: 12px 0 9px; font-size: 20px; line-height: 1.4; }
.news-card p { font-size: 15px; line-height: 1.7; }
.news-read { margin-top: 17px; font-size: 14px; }
.news-empty { font-size: 16px; }
.news-empty p { font-size: 15px; }

.admissions-inner { padding: 70px 0; gap: 45px; }
.admissions h2 { max-width: 700px; margin: 14px 0 12px; font-size: clamp(34px, 3.2vw, 42px); line-height: 1.15; }
.admissions p { max-width: 670px; font-size: 17px; line-height: 1.7; }
.footer-main { gap: 42px; padding: 62px 0 48px; }
.footer-about p { font-size: 15px; line-height: 1.75; }
.footer-col h3 { margin-bottom: 19px; font-size: 16px; }
.footer-col li { margin: 11px 0; }
.footer-col a, .footer-contact p { font-size: 14px; line-height: 1.65; }
.footer-bottom { font-size: 12px; }

@media (max-width: 1100px) {
  .container { width: calc(100% - 48px); }
  .site-brand { min-width: 225px; }
  .brand-copy strong { font-size: 18px; }
  .main-nav-list { gap: 16px; }
  .main-nav-list a { font-size: 13px; }
  .quick-card { padding-inline: 16px; }
  .quick-card strong { font-size: 15px; }
  .quick-card small { font-size: 12px; }
  .about-grid { gap: 52px; }
}
@media (max-width: 820px) {
  .container { width: calc(100% - 40px); }
  .topbar { font-size: 12px; }
  .topbar-inner { min-height: 38px; }
  .header-inner { min-height: 80px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { font-size: 11px; }
  .primary-navigation { padding: 12px 22px 20px; }
  .main-nav-list a { padding: 15px 4px; font-size: 16px; }
  .hero, .hero-inner { min-height: 540px; }
  .hero-copy { max-width: 570px; padding: 68px 0 78px; }
  .hero h1 { font-size: clamp(42px, 6.5vw, 52px); }
  .hero-description { font-size: 17px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-card { min-height: 100px; }
  .quick-card:nth-child(2) { border-right: 0; }
  .quick-card:nth-child(3) { border-right: 1px solid var(--sp-line); border-bottom: 0; }
  .quick-card:nth-child(4) { border-bottom: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .about-photo-wrap { max-width: none; }
  .about-photo { height: 360px; }
  .about-copy h2 { max-width: 680px; font-size: 38px; }
  .about-copy > p { font-size: 16px; }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .program-image { height: 180px; }
  .program-content { padding: 18px; }
  .program-content h3 { font-size: 19px; }
  .program-content p { font-size: 14px; }
  .school-life-inner { grid-template-columns: 1fr; gap: 38px; padding: 66px 0; }
  .school-life h2 { max-width: 620px; font-size: 38px; }
  .school-life p { font-size: 16px; }
  .life-gallery { max-width: none; grid-template-rows: 160px 160px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1.2fr 1fr; gap: 34px 26px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .topbar { font-size: 12px; }
  .topbar-inner { min-height: 36px; }
  .topbar-contact { justify-content: flex-start; }
  .topbar-item:first-child, .topbar-item:last-child { display: none; }
  .header-inner { min-height: 74px; }
  .brand-emblem { width: 44px; height: 44px; flex-basis: 44px; }
  .site-brand .custom-logo { max-width: 46px; max-height: 46px; }
  .brand-copy strong { max-width: 225px; font-size: 17px; }
  .brand-copy small { font-size: 10px; }
  .menu-toggle { width: 44px; height: 44px; }
  .hero, .hero-inner { min-height: 560px; }
  .hero-bg { background-position: 63% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,31,62,.88), rgba(7,31,62,.48)), linear-gradient(0deg, rgba(7,31,62,.38), transparent 55%); }
  .hero-copy { padding: 63px 0 72px; }
  .hero-kicker { margin-bottom: 16px; font-size: 12px; }
  .hero h1 { max-width: 390px; font-size: clamp(38px, 10.2vw, 44px); line-height: 1.1; }
  .hero-description { max-width: 360px; margin: 18px 0 24px; font-size: 16px; line-height: 1.65; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .hero-actions .button { min-height: 48px; padding-inline: 17px; font-size: 14px; }
  .quick-access { margin-top: -22px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 15px; }
  .quick-card { min-height: 92px; padding: 13px 12px; gap: 10px; border-bottom: 1px solid var(--sp-line) !important; }
  .quick-card:nth-child(2n) { border-right: 0 !important; }
  .quick-card:nth-child(3), .quick-card:nth-child(4) { border-bottom: 0 !important; }
  .quick-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; }
  .quick-icon svg { width: 21px; height: 21px; }
  .quick-card strong { font-size: 14px; }
  .quick-card small { font-size: 12px; line-height: 1.4; }
  .quick-arrow { display: none; }
  .section { padding: 62px 0; }
  .about-section { padding-top: 66px; }
  .about-photo { height: 260px; border-radius: 15px; }
  .about-copy h2 { margin: 12px 0 14px; font-size: 34px; line-height: 1.15; }
  .about-copy > p { font-size: 16px; line-height: 1.75; }
  .about-points { gap: 11px; margin: 20px 0; }
  .about-point strong { font-size: 15px; }
  .text-link { font-size: 14px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2 { margin: 11px 0; font-size: 32px; line-height: 1.16; }
  .section-heading p { font-size: 15px; line-height: 1.7; }
  .program-grid { grid-template-columns: 1fr; gap: 14px; }
  .program-card { display: grid; grid-template-columns: 34% 1fr; min-height: 158px; }
  .program-image { height: 100%; min-height: 158px; }
  .program-content { display: flex; flex-direction: column; justify-content: center; padding: 14px 15px; }
  .program-tag { margin-bottom: 6px; font-size: 10px; }
  .program-content h3 { margin-bottom: 6px; font-size: 17px; line-height: 1.25; }
  .program-content p { font-size: 13px; line-height: 1.5; }
  .program-foot { margin-top: 10px; padding-top: 8px; font-size: 12px; }
  .program-foot span:last-child { font-size: 17px; }
  .school-life-inner { gap: 28px; padding: 58px 0; }
  .school-life h2 { margin: 12px 0; font-size: 34px; }
  .school-life p { margin-bottom: 22px; font-size: 16px; line-height: 1.7; }
  .life-gallery { grid-template-rows: 125px 125px; gap: 9px; }
  .life-image span { bottom: 10px; left: 12px; font-size: 10px; }
  .news-section .section-heading { margin-bottom: 25px; }
  .news-section .section-heading h2 { font-size: 32px; }
  .news-section .section-heading p { font-size: 15px; }
  .news-grid { grid-template-columns: 1fr; gap: 17px; }
  .news-image { height: 190px; }
  .news-card-content { padding: 18px 18px 20px; }
  .news-meta { font-size: 12px; }
  .news-card h3 { margin: 10px 0 8px; font-size: 19px; }
  .news-card p { font-size: 14px; }
  .news-read { font-size: 13px; }
  .admissions-inner { display: block; padding: 52px 0; }
  .admissions h2 { margin: 12px 0; font-size: 32px; }
  .admissions p { font-size: 15px; }
  .admissions .button { margin-top: 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding: 44px 0 34px; }
  .footer-about, .footer-contact { grid-column: 1 / -1; }
  .footer-about p { font-size: 14px; }
  .footer-col h3 { font-size: 15px; }
  .footer-col a, .footer-contact p { font-size: 13px; }
  .footer-bottom { display: block; text-align: center; line-height: 1.8; font-size: 11px; }
  .content-layout, .content-layout.has-sidebar { display: block; padding: 44px 0 62px; }
  .post-card { grid-template-columns: 1fr; gap: 13px; }
  .post-card img { height: 190px; }
}

/* Further decluttering: remove decorative micro-copy and calm heading weights. */
.hero h1, .about-copy h2, .section-heading h2, .school-life h2, .admissions h2 { font-weight: 800; }
.hero h1 { letter-spacing: -.035em; }
.about-copy h2, .section-heading h2, .school-life h2, .admissions h2 { letter-spacing: -.025em; }
.quick-card { justify-content: flex-start; }
.quick-card > span:nth-child(2) { display: block; }
.program-content { padding: 24px; }
.program-content h3 { margin: 0 0 9px; font-size: 22px; font-weight: 750; }
.program-content p { margin: 0; font-size: 16px; line-height: 1.7; }
.life-image span { display: none; }
.news-card h3 { font-weight: 750; }
@media (max-width: 560px) {
  .quick-card { min-height: 82px; }
  .quick-card strong { font-size: 15px; }
  .program-content { padding: 15px 16px; }
  .program-content h3 { font-size: 17px; margin-bottom: 6px; }
  .program-content p { font-size: 14px; line-height: 1.55; }
  .about-point strong { font-size: 15px; }
  .school-life p, .about-copy > p, .section-heading p { font-size: 16px; }
  .news-card p { font-size: 15px; }
  .footer-col a, .footer-contact p { font-size: 14px; }
}


/* =========================================================
   v5.0 — Portal informasi sekolah negeri
   Retains the v3.1 visual system while prioritising utility.
   ========================================================= */
:root {
  --sp-body-size: 16px;
  --sp-muted: #5f7084;
  --sp-container: 1200px;
}
body { font-size: 16px; }
.button-header { min-height: 42px; padding: 0 18px; border: 1px solid #cbd9e8; border-radius: 999px; color: var(--sp-navy); background: #fff; font-size: 12px; font-weight: 800; }
.button-header:hover { color: #fff; border-color: var(--sp-blue); background: var(--sp-blue); }
.portal-hero { min-height: 505px; }
.portal-hero .hero-inner { min-height: 505px; }
.portal-hero .hero-copy { max-width: 610px; }
.portal-hero .hero h1 { max-width: 600px; font-size: clamp(42px, 4.7vw, 60px); }
.portal-hero .hero-description { max-width: 540px; font-size: 17px; }
.portal-hero .hero-shade { background: linear-gradient(90deg, rgba(7,31,62,.92) 0%, rgba(9,42,78,.78) 40%, rgba(9,42,78,.25) 78%, rgba(9,42,78,.10) 100%), linear-gradient(0deg, rgba(8,34,67,.35), transparent 58%); }
.button-secondary { color: var(--sp-navy); border: 1px solid #d7e1ec; background: #fff; box-shadow: none; }
.button-secondary:hover { color: var(--sp-blue); border-color: var(--sp-blue); background: #f7fbff; }

.portal-shortcuts { position: relative; z-index: 3; margin-top: -34px; }
.portal-shortcut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e1e9f2; border-radius: 20px; background: #fff; box-shadow: 0 18px 45px rgba(16,59,115,.11); }
.portal-shortcut { display: flex; min-height: 104px; align-items: center; gap: 14px; padding: 20px 22px; border-right: 1px solid var(--sp-line); transition: background .2s ease; }
.portal-shortcut:last-child { border-right: 0; }
.portal-shortcut:hover { background: #f7fbff; }
.portal-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 15px; color: var(--sp-blue); background: #edf5fd; }
.portal-icon svg, .service-icon svg, .calendar-panel-icon svg, .download-panel-icon svg, .public-note-mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-shortcut strong { display: block; color: var(--sp-navy); font-size: 15px; line-height: 1.3; }
.portal-shortcut small { display: block; margin-top: 4px; color: var(--sp-muted); font-size: 12px; line-height: 1.4; }
.shortcut-arrow { margin-left: auto; color: #9aaabd; font-size: 22px; }

.portal-updates { padding-top: 82px; padding-bottom: 82px; }
.portal-updates-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .72fr); align-items: start; gap: 46px; }
.portal-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.portal-section-heading h2 { margin: 10px 0 7px; color: var(--sp-navy); font-size: clamp(29px, 3vw, 39px); font-weight: 850; line-height: 1.16; letter-spacing: -.04em; }
.portal-section-heading p { margin: 0; color: var(--sp-muted); font-size: 15px; line-height: 1.65; }
.portal-section-heading > .text-link { flex: 0 0 auto; margin-bottom: 5px; }
.notice-list { overflow: hidden; border: 1px solid var(--sp-line); border-radius: 18px; background: #fff; }
.notice-item { display: grid; grid-template-columns: 65px minmax(0,1fr) 25px; align-items: center; gap: 18px; min-height: 110px; padding: 19px 22px; border-bottom: 1px solid var(--sp-line); }
.notice-item:last-child { border-bottom: 0; }
.notice-date { display: flex; width: 60px; min-height: 63px; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; color: var(--sp-blue); background: #edf5fd; }
.notice-date strong { font-size: 23px; font-weight: 850; line-height: 1; }
.notice-date span { margin-top: 5px; font-size: 11px; font-weight: 700; }
.notice-copy h3 { margin: 0 0 5px; color: var(--sp-navy); font-size: 16px; font-weight: 800; line-height: 1.4; }
.notice-copy h3 a:hover { color: var(--sp-blue); }
.notice-copy p { margin: 0; color: var(--sp-muted); font-size: 13px; line-height: 1.55; }
.notice-open { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--sp-blue); background: #f0f6fc; font-size: 18px; }
.notice-empty { padding: 28px; }
.notice-empty strong { color: var(--sp-navy); font-size: 16px; }
.notice-empty p { color: var(--sp-muted); font-size: 14px; }
.notice-empty a { color: var(--sp-blue); font-size: 14px; font-weight: 800; }
.portal-side-column { display: grid; gap: 17px; }
.calendar-panel { padding: 27px 28px 29px; border-radius: 20px; color: #fff; background: linear-gradient(145deg, #103b73, #185c9e); box-shadow: 0 15px 35px rgba(16,59,115,.15); }
.calendar-panel-icon { display: grid; width: 48px; height: 48px; margin-bottom: 22px; place-items: center; border-radius: 14px; color: var(--sp-navy); background: var(--sp-yellow); }
.calendar-panel .eyebrow { color: #ffdf8b; }
.calendar-panel h2 { margin: 10px 0 9px; color: #fff; font-size: 26px; font-weight: 850; line-height: 1.18; letter-spacing: -.03em; }
.calendar-panel p { margin: 0 0 21px; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.7; }
.calendar-panel .button { min-height: 44px; }
.download-panel { display: flex; align-items: center; gap: 16px; padding: 21px; border: 1px solid var(--sp-line); border-radius: 17px; background: #fff; }
.download-panel-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 14px; color: var(--sp-blue); background: var(--sp-blue-light); }
.download-panel h3 { margin: 0 0 4px; color: var(--sp-navy); font-size: 16px; font-weight: 800; }
.download-panel p { margin: 0 0 7px; color: var(--sp-muted); font-size: 13px; }
.download-panel .text-link { font-size: 13px; }

.portal-services { padding: 76px 0 88px; background: #f5f8fc; }
.services-heading { margin-bottom: 30px; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card { position: relative; display: flex; min-height: 255px; flex-direction: column; padding: 25px 23px 22px; border: 1px solid #e4ebf2; border-radius: 18px; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-4px); border-color: #c9dced; box-shadow: 0 16px 35px rgba(16,59,115,.08); }
.service-number { position: absolute; top: 24px; right: 23px; color: #9aabba; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.service-icon { display: grid; width: 51px; height: 51px; margin-bottom: 19px; place-items: center; border-radius: 15px; color: var(--sp-blue); background: #edf5fd; }
.service-card h3 { margin: 0 0 8px; color: var(--sp-navy); font-size: 18px; font-weight: 850; line-height: 1.25; }
.service-card p { margin: 0 0 18px; color: var(--sp-muted); font-size: 14px; line-height: 1.65; }
.service-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--sp-blue); font-size: 13px; font-weight: 800; }
.service-link b { font-size: 18px; font-weight: 600; }

.portal-about { padding-top: 88px; padding-bottom: 88px; }
.portal-about .about-grid { gap: 70px; }
.portal-about .about-copy h2 { max-width: 550px; margin: 13px 0 15px; color: var(--sp-navy); font-size: clamp(31px, 3.2vw, 43px); font-weight: 850; line-height: 1.14; letter-spacing: -.045em; }
.portal-about .about-copy p { max-width: 570px; margin: 0 0 23px; color: var(--sp-muted); font-size: 16px; line-height: 1.8; }
.public-education-note { padding: 27px 0; background: #edf5fd; }
.public-note-inner { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 22px; }
.public-note-mark { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 16px; color: var(--sp-blue); background: #fff; }
.public-note-inner h2 { margin: 0 0 5px; color: var(--sp-navy); font-size: 19px; font-weight: 850; }
.public-note-inner p { max-width: 780px; margin: 0; color: #536981; font-size: 14px; line-height: 1.65; }
.public-note-inner > .text-link { white-space: nowrap; }

.portal-news { padding-top: 86px; padding-bottom: 90px; }
.portal-news .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 23px; }
.portal-news .news-card { overflow: hidden; border: 1px solid var(--sp-line); border-radius: 18px; background: #fff; box-shadow: none; }
.portal-news .news-image { display: block; height: 220px; overflow: hidden; background: #e8f0f7; }
.portal-news .news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.portal-news .news-card:hover .news-image img { transform: scale(1.035); }
.portal-news .news-card-content { padding: 21px 22px 22px; }
.portal-news .news-meta { margin-bottom: 10px; color: #77899d; font-size: 12px; }
.portal-news .news-card h3 { margin: 0 0 9px; color: var(--sp-navy); font-size: 19px; font-weight: 850; line-height: 1.35; }
.portal-news .news-card-content p { margin: 0 0 14px; color: var(--sp-muted); font-size: 14px; line-height: 1.65; }
.portal-news .news-read { color: var(--sp-blue); font-size: 13px; font-weight: 800; }
.news-empty { padding: 30px; border: 1px solid var(--sp-line); border-radius: 16px; background: #fff; }
.news-empty strong { color: var(--sp-navy); font-size: 16px; }
.news-empty p { color: var(--sp-muted); font-size: 14px; }
.portal-ppdb-note { padding: 28px 0; border-top: 1px solid var(--sp-line); background: #fbfcfe; }
.portal-ppdb-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-ppdb-inner strong { display: block; margin-bottom: 4px; color: var(--sp-navy); font-size: 17px; }
.portal-ppdb-inner p { margin: 0; color: var(--sp-muted); font-size: 14px; }

/* Slightly larger footer navigation and readable page templates in v5.0 */
.site-footer .footer-main { padding-top: 62px; padding-bottom: 48px; }
.site-footer .footer-col a, .site-footer .footer-contact p, .site-footer .footer-about p { font-size: 14px; }

@media (max-width: 1100px) {
  .portal-shortcut { padding-inline: 15px; gap: 10px; }
  .portal-shortcut strong { font-size: 14px; }
  .portal-updates-grid { grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 28px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .portal-shortcuts { margin-top: -24px; }
  .portal-shortcut-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .portal-shortcut:nth-child(2) { border-right: 0; }
  .portal-shortcut:nth-child(-n+2) { border-bottom: 1px solid var(--sp-line); }
  .portal-shortcut { min-height: 90px; padding: 16px 18px; }
  .portal-updates { padding-top: 68px; }
  .portal-updates-grid { grid-template-columns: 1fr; }
  .portal-side-column { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .download-panel { align-items: flex-start; }
  .portal-news .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portal-news .news-card:last-child { display: none; }
  .public-note-inner { grid-template-columns: 54px minmax(0,1fr); }
  .public-note-inner > .text-link { grid-column: 2; }
}
@media (max-width: 560px) {
  .portal-hero, .portal-hero .hero-inner { min-height: 485px; }
  .portal-hero .hero-bg { background-position: 61% center; }
  .portal-hero .hero-shade { background: linear-gradient(90deg, rgba(7,31,62,.92), rgba(9,42,78,.65) 75%, rgba(9,42,78,.45)), linear-gradient(0deg, rgba(8,34,67,.42), transparent 58%); }
  .portal-hero .hero-copy { padding: 60px 0 78px; }
  .portal-hero .hero h1 { max-width: 420px; font-size: clamp(37px, 10vw, 47px); }
  .portal-hero .hero-description { font-size: 15px; line-height: 1.65; }
  .portal-hero .hero-actions .button { min-height: 45px; padding-inline: 17px; font-size: 12px; }
  .portal-shortcut-grid { border-radius: 16px; }
  .portal-shortcut { min-height: 84px; gap: 10px; padding: 13px 12px; }
  .portal-icon { width: 39px; height: 39px; flex-basis: 39px; border-radius: 12px; }
  .portal-icon svg { width: 20px; height: 20px; }
  .portal-shortcut strong { font-size: 13px; }
  .portal-shortcut small { font-size: 11px; }
  .shortcut-arrow { font-size: 18px; }
  .portal-updates { padding-top: 58px; padding-bottom: 62px; }
  .portal-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .portal-section-heading h2 { font-size: 30px; }
  .portal-section-heading p { font-size: 14px; }
  .notice-item { grid-template-columns: 52px minmax(0,1fr); gap: 12px; padding: 15px 14px; }
  .notice-date { width: 50px; min-height: 56px; }
  .notice-date strong { font-size: 20px; }
  .notice-date span { font-size: 10px; }
  .notice-copy h3 { font-size: 14px; }
  .notice-copy p { font-size: 12px; }
  .notice-open { display: none; }
  .portal-side-column { grid-template-columns: 1fr; }
  .calendar-panel { padding: 23px; }
  .download-panel { padding: 18px; }
  .portal-services { padding: 62px 0; }
  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { min-height: auto; padding: 20px; }
  .service-icon { margin-bottom: 13px; }
  .service-card h3 { font-size: 17px; }
  .service-card p { margin-bottom: 13px; font-size: 13px; }
  .portal-about { padding-top: 65px; padding-bottom: 66px; }
  .portal-about .about-grid { gap: 28px; }
  .portal-about .about-photo { height: 265px; border-radius: 18px 18px 52px 18px; }
  .portal-about .about-copy h2 { font-size: 31px; }
  .portal-about .about-copy p { font-size: 14px; }
  .public-note-inner { grid-template-columns: 44px minmax(0,1fr); gap: 13px; }
  .public-note-mark { width: 42px; height: 42px; border-radius: 12px; }
  .public-note-mark svg { width: 21px; height: 21px; }
  .public-note-inner h2 { font-size: 16px; }
  .public-note-inner p { font-size: 12px; }
  .portal-news { padding: 64px 0; }
  .portal-news .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .portal-news .news-card:last-child { display: block; }
  .portal-news .news-image { height: 205px; }
  .portal-news .news-card-content { padding: 18px; }
  .portal-news .news-card h3 { font-size: 18px; }
  .portal-ppdb-inner { align-items: flex-start; flex-direction: column; gap: 15px; }
  .portal-ppdb-inner strong { font-size: 16px; }
  .portal-ppdb-inner p { font-size: 13px; }
}
