/* ============================================================
   SD UMS GLOBAL CITIZEN — DESIGN TOKENS
   Ubah nilai di bagian ini untuk mengganti identitas visual.
   ============================================================ */
:root {
    --brand: #184690;               /* Dapat diganti lewat Filament */
    --brand-dark: color-mix(in srgb, var(--brand) 78%, #09162d);
    --brand-soft: color-mix(in srgb, var(--brand) 7%, white);
    --white: #ffffff;
    --page: #ffffff;
    --section: #f6f9fd;
    --ink: #142e56;
    --muted: #526581;
    --border: #d5e1f0;
    --shadow: 0 9px 28px rgba(24, 70, 144, .07);

    --font: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --font-body: 16px;
    --font-small: 13px;
    --font-nav: 13px;
    --font-h2: clamp(29px, 3.2vw, 41px);
    --font-hero: clamp(40px, 5vw, 72px);

    --container: 1200px;
    --radius: 20px;
    --header-h: 86px;
    --section-space: clamp(64px, 7vw, 105px);
}

/* General */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 var(--font-body)/1.65 var(--font); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
:focus-visible { outline: 3px solid #77a8f9; outline-offset: 3px; }
::selection { background: var(--brand); color: #fff; }
.container { width: min(var(--container), calc(100% - 44px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 8px; z-index: 9999; padding: 10px 14px; background: white; border: 2px solid var(--brand); border-radius: 10px; }
.skip-link:focus { top: 8px; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 470, 'GRAD' 0, 'opsz' 24; line-height: 1; }

/* Common buttons */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 11px;
    min-height: 46px; padding: 11px 22px; border: 1.5px solid transparent;
    border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.3;
    transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
    white-space: nowrap;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--brand); border-color: var(--brand); box-shadow: 0 6px 18px rgba(24, 70, 144, .22); }
.button-primary:hover { background: var(--brand-dark); }
.button-outline { background: white; border-color: var(--brand); color: var(--brand); }
.button-outline:hover { background: var(--brand-soft); }
.button-outline-light { color: white; border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.09); }
.button-outline-light:hover { background: rgba(255,255,255,.2); }
.button-white { background: white; color: var(--brand); border-color: white; }
.button-white:hover { background: #eff4fc; }
.text-link { color: var(--brand); font-size: 13px; font-weight: 700; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: currentColor; }

/* Header and navigation — each link looks clickable. */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(255,255,255,.98); border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 22px rgba(24,70,144,.055);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo-link { width: 178px; min-width: 140px; display: block; border-radius: 12px; }
.site-logo { display: block; width: 100%; max-height: 57px; object-fit: contain; object-position: left center; transition: transform .22s ease; }
.logo-link:hover .site-logo { transform: scale(1.045); }
.logo-link:active .site-logo { transform: scale(1.10); }
.desktop-nav { display: flex; align-items: center; gap: 7px; }
.nav-pill {
    display: inline-flex; align-items: center; padding: 10px 12px; min-height: 39px;
    border-radius: 50px; border: 1px solid var(--border); font-size: var(--font-nav);
    font-weight: 600; color: var(--brand); line-height: 1.3; white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s;
}
.nav-pill:hover { background: var(--brand-soft); border-color: var(--brand); }
.nav-pill.is-active { background: var(--brand); border-color: var(--brand); color: white; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-spmb { font-size: 12px; min-height: 40px; padding: 10px 15px; }
.menu-toggle { display: none; width: 45px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--brand); background: white; color: var(--brand); border-radius: 11px; }
.mobile-nav { background: white; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.mobile-nav[hidden] { display: none !important; }
.mobile-nav-inner { display: grid; padding: 14px 0 20px; gap: 7px; }
.mobile-nav a { display: block; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--brand); font-size: 14px; font-weight: 600; }
.mobile-nav a:hover { background: var(--brand-soft); }

/* HERO — Smooth Slow Zoom In + Crossfade */
.hero {
    min-height: calc(95svh - var(--header-h));
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    color: white;
    background: var(--brand-dark);
}

.hero-slides,
.hero-slide,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transform: scale(1);
    animation: none;
    transition: opacity 1.5s ease-in-out,
                transform 5s linear;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide.is-active {
        transform: none;
        transition: none;
    }
}
.hero-overlay { pointer-events: none; background: linear-gradient(90deg, rgba(9,36,79,.97) 0%, rgba(13,48,97,.88) 36%, rgba(9,42,86,.52) 75%, rgba(7,36,79,.48) 100%); }
.hero-content { position: relative; z-index: 1; min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(70px, 9vw, 126px); padding-bottom: 38px; }
.hero-main { max-width: 720px; }
.eyebrow { color: var(--brand); display: inline-block; font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-light { color: #dce9ff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.34); border-radius: 100px; padding: 8px 13px; letter-spacing: .08em; }
.hero h1 { font-size: var(--font-hero); font-weight: 800; max-width: 650px; letter-spacing: -.038em; line-height: 1.13; margin: 27px 0 20px; text-wrap: balance; }
.hero-main > p { color: #edf3ff; font-size: clamp(16px, 1.75vw, 19px); line-height: 1.7; max-width: 610px; margin: 0; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 58px; color: #e0ebff; font-size: 12px; }
.hero-pause { background: rgba(255,255,255,.13); color: white; border: 1px solid rgba(255,255,255,.55); border-radius: 99px; padding: 7px 13px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.hero-pause:hover { background: rgba(255,255,255,.23); }
.hero-pause .material-symbols-outlined { font-size: 18px; }

/* Sections and cards */
.section { padding: var(--section-space) 0; }
.section-alt { background: var(--section); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 27px; }
.section-header.center { display: flex; align-items: center; flex-direction: column; gap: 4px; text-align: center; }
.section-header h2 { margin: 5px 0 0; font-size: var(--font-h2); font-weight: 800; letter-spacing: -.035em; line-height: 1.25; text-wrap: balance; }
.section-header p { color: var(--muted); margin: 4px 0 0; max-width: 390px; font-size: 14px; line-height: 1.65; }
.section-header.center p { max-width: 650px; }
.icon-circle { background: var(--brand-soft); color: var(--brand); width: 51px; height: 51px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-circle .material-symbols-outlined { font-size: 26px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.shortcut-card { padding: 25px 13px 20px; min-height: 195px; display: flex; align-items: center; flex-direction: column; text-align: center; gap: 9px; background: white; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.shortcut-card:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: 0 15px 31px rgba(24,70,144,.12); }
.shortcut-card strong { font-size: 13px; line-height: 1.4; }
.shortcut-hint { font-size: 11px; color: var(--muted); line-height: 1.45; }
.card-arrow { color: var(--brand); margin-top: auto; font-weight: 800; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.info-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 23px; min-height: 166px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 15px 32px rgba(24,70,144,.12); }
.info-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 21px; }
.card-number { color: var(--brand); font-weight: 800; font-size: 15px; }
.info-card h3 { font-size: 16px; line-height: 1.47; margin: 0; letter-spacing: -.01em; }
.info-card p { color: var(--muted); font-size: 12px; margin: 8px 0; }
.info-card .text-link { display: inline-block; margin-top: 9px; }
.graduate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.graduate-card { background: white; display: flex; gap: 17px; align-items: center; padding: 20px; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.graduate-card h3 { margin: 5px 0 0; font-size: 14px; line-height: 1.45; }
.graduate-card p { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.mini-label { font-size: 10px; letter-spacing: .035em; font-weight: 800; color: var(--brand); }

/* Welcome and introductory video */
.welcome-card { background: var(--section); border: 1px solid var(--border); border-radius: 28px; padding: clamp(22px, 4vw, 46px); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.welcome-photo { min-height: 312px; background: #e6edf8; border-radius: 18px; overflow: hidden; }
.welcome-photo img { width: 100%; height: 360px; object-fit: cover; }
.welcome-placeholder { display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 16px; color: var(--muted); min-height: 350px; font-size: 13px; }
.welcome-placeholder .material-symbols-outlined { font-size: 64px; color: var(--brand); opacity: .7; }
.welcome-copy h2 { margin: 12px 0 15px; font-size: clamp(27px, 3vw, 40px); letter-spacing: -.02em; line-height: 1.25; }
.welcome-copy p { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.principal-name { display: block; color: var(--brand); margin-bottom: 8px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(25px, 4vw, 60px); align-items: center; }
.video-placeholder { position: relative; aspect-ratio: 16 / 10; border-radius: 23px; overflow: hidden; background: linear-gradient(125deg, #1a4b99, #071f4a); }
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.video-fallback { height: 100%; display: flex; justify-content: center; align-items: center; }
.video-fallback .material-symbols-outlined { font-size: 75px; color: #c6d9fb; }
.video-play { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: white; color: var(--brand); font-size: 27px; box-shadow: 0 10px 28px #0004; transition: transform .2s; }
.video-play:hover { transform: scale(1.08); }
.video-notice { position: absolute; bottom: 15px; left: 15px; background: rgba(255,255,255,.94); border-radius: 50px; padding: 8px 14px; color: var(--brand); font-size: 12px; font-weight: 600; }
.about-copy > p { font-size: 15px; color: var(--muted); margin: 0 0 24px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 25px; }
.intro-card { display: flex; align-items: center; gap: 10px; background: white; padding: 15px; border: 1px solid var(--border); border-radius: 15px; }
.intro-card .icon-circle { width: 37px; height: 37px; }
.intro-card .material-symbols-outlined { font-size: 21px; }
.intro-card strong { font-size: 12px; line-height: 1.4; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: white; border-radius: 19px; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s; }
.news-card:hover { transform: translateY(-4px); }
.news-image { display: block; aspect-ratio: 16/10; background: var(--brand-soft); }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-photo-fallback { height: 100%; display: flex; justify-content: center; align-items: center; color: var(--brand); }
.news-photo-fallback .material-symbols-outlined { font-size: 62px; }
.news-text { padding: 21px; }
.news-text h3 { margin: 10px 0 13px; font-size: 17px; line-height: 1.4; }
.news-text h3 a:hover { color: var(--brand); }
.empty-card { display: flex; align-items: center; gap: 18px; background: var(--section); border: 1px solid var(--border); padding: 24px; border-radius: 18px; color: var(--muted); font-size: 14px; }

/* CTA and footer */
.section-contact-cta { padding-top: 35px; padding-bottom: 55px; }
.cta-panel { background: var(--brand); color: white; border-radius: 24px; display: flex; align-items: center; gap: 23px; padding: 36px 45px; }
.cta-icon .material-symbols-outlined { font-size: 64px; }
.cta-panel h2 { margin: 0 0 3px; font-size: 26px; }
.cta-panel p { margin: 0; color: #e1eafd; font-size: 13px; }
.cta-buttons { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer { background: var(--brand); color: white; padding-top: 49px; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .85fr .85fr 1fr; gap: 37px; padding-bottom: 33px; }
.footer-grid > div { min-width: 0; }
.footer-grid h2 { font-size: 14px; margin: 0 0 14px; }
.footer-grid p, .footer-grid a { display: block; font-size: 12px; line-height: 1.75; color: #e1eafa; margin: 0 0 8px; }
.footer-grid a:hover { color: white; text-decoration: underline; }
.footer-logo { display: inline-flex !important; background: white; padding: 9px 13px; border-radius: 12px; margin-bottom: 16px !important; }
.footer-logo img { width: 140px; height: 48px; object-fit: contain; }
.footer-bottom { border-top: 1px solid #ffffff44; padding: 22px 0; color: #e0eaff; font-size: 11px; }

/* Inner pages and reusable elements */
.inner-hero { padding: 66px 0 56px; background: var(--section); border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 22px; }
.breadcrumb a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.inner-hero h1 { font-size: clamp(32px, 4vw, 53px); line-height: 1.2; letter-spacing: -.035em; margin: 8px 0 10px; }
.inner-hero p { max-width: 720px; color: var(--muted); margin: 0; }
.prose-card { max-width: 940px; background: white; padding: 32px; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.prose-card img { max-height: 360px; width: 100%; border-radius: 13px; object-fit: cover; margin-bottom: 20px; }
.prose-card p { margin: 0 0 18px; white-space: pre-line; line-height: 1.9; }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.program-card { border: 1px solid var(--border); border-radius: 20px; background: white; padding: 24px; box-shadow: var(--shadow); }
.program-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; margin-bottom: 15px; }
.program-card h2 { font-size: 20px; margin: 14px 0 8px; }
.program-card p { font-size: 14px; color: var(--muted); margin: 0; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.faq-list { display: grid; max-width: 890px; gap: 12px; }
.faq-item { background: white; border: 1px solid var(--border); border-radius: 15px; padding: 0 22px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 20px 0; }
.faq-item summary:hover { color: var(--brand); }
.faq-item p { color: var(--muted); font-size: 14px; padding-bottom: 18px; margin: 0; }
.search-form { display: flex; gap: 10px; max-width: 720px; margin-bottom: 22px; }
.search-form input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
.contact-card { background: white; padding: 27px; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); max-width: 850px; }
.contact-card h2 { font-size: 20px; margin: 8px 0; }
.contact-card p { color: var(--muted); }
.contact-card .button { margin: 7px 8px 0 0; }
.pagination { margin-top: 25px; }

/* Chat assistant */
.chat-widget { position: fixed; z-index: 200; right: 22px; bottom: 20px; display: flex; align-items: flex-end; flex-direction: column; gap: 12px; }
.chat-fab { border: 1px solid #fff5; border-radius: 99px; box-shadow: 0 12px 29px rgba(24,70,144,.28); background: var(--brand); color: white; display: flex; align-items: center; gap: 9px; padding: 12px 18px; font-size: 12px; font-weight: 700; }
.chat-fab:hover { background: var(--brand-dark); }
.chat-avatar { width: 26px; height: 26px; object-fit: cover; border-radius: 50%; }
.chat-panel { width: min(370px, calc(100vw - 36px)); height: min(485px, calc(100svh - 115px)); background: white; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 55px #06234d30; display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none !important; }
.chat-panel-header { display: flex; align-items: center; gap: 10px; background: var(--brand); padding: 14px 15px; color: white; font-size: 13px; }
.chat-close { margin-left: auto; border: 1px solid #fff6; background: transparent; border-radius: 8px; color: white; width: 31px; height: 31px; font-size: 22px; line-height: 1; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f7f9fd; }
.chat-bubble { align-self: flex-start; max-width: 92%; border: 1px solid var(--border); background: white; padding: 10px 12px; border-radius: 13px; font-size: 12px; line-height: 1.65; white-space: pre-wrap; margin: 0; }
.chat-user { background: var(--brand-soft); align-self: flex-end; }
.chat-form { display: flex; padding: 10px; gap: 8px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px; font-size: 12px; }
.chat-form button { background: var(--brand); color: white; border: 0; border-radius: 9px; width: 37px; }
.chat-disclaimer { font-size: 10px; color: var(--muted); padding: 0 12px 10px; line-height: 1.5; margin: 0; }

/* Scroll reveal, only enabled by JS when reduced-motion is not requested. */
.has-motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.has-motion .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1170px) {
    :root { --header-h: 77px; }
    .desktop-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .shortcut-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .graduate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
    :root { --section-space: 62px; }
    .hero { min-height: 610px; }
    .hero-content { padding-top: 76px; }
    .hero-bottom { padding-top: 45px; }
    .section-header { align-items: flex-start; flex-direction: column; gap: 12px; }
    .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { gap: 12px; }
    .graduate-grid { grid-template-columns: 1fr; }
    .welcome-card, .about-grid { grid-template-columns: 1fr; }
    .welcome-photo { min-height: 240px; }
    .welcome-photo img { height: 270px; }
    .news-grid, .program-grid { grid-template-columns: 1fr 1fr; }
    .cta-panel { flex-wrap: wrap; padding: 26px; }
    .cta-buttons { margin-left: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
}
@media (max-width: 520px) {
    .container { width: min(var(--container), calc(100% - 30px)); }
    .site-logo { max-height: 45px; }
    .logo-link { width: 155px; }
    .hero { min-height: 610px; }
    .hero-main p { font-size: 15px; }
    .hero h1 { margin: 22px 0 16px; }
    .eyebrow-light { font-size: 9px; line-height: 1.5; }
    .hero-actions { align-items: stretch; flex-direction: column; max-width: 265px; }
    .hero-actions .button { width: 100%; }
    .hero-bottom > span { display: none; }
    .hero-bottom { justify-content: flex-end; }
    .shortcut-card { min-height: 172px; padding: 18px 8px; }
    .shortcut-hint { font-size: 10px; }
    .feature-grid { grid-template-columns: 1fr; }
    .info-card { min-height: 125px; padding: 20px; }
    .info-card-top { margin-bottom: 11px; }
    .intro-grid { gap: 9px; }
    .intro-card { padding: 10px; flex-direction: column; text-align: center; }
    .news-grid, .program-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: clamp(27px, 7vw, 36px); }
    .cta-icon .material-symbols-outlined { font-size: 44px; }
    .cta-buttons, .cta-buttons .button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-identity { grid-column: 1 / -1; }
    .prose-card { padding: 20px; }
    .search-form { flex-direction: column; }
    .nav-spmb { padding: 9px 13px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal, .has-motion .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   REVISI UI 2026-10-09 — ruang simetris dan visual mudah dipindai.
   Semua ukuran/warna terpusat di :root untuk pengembangan berikutnya.
   ============================================================ */
:root {
    --gutter: clamp(16px, 3.7vw, 76px);
    --content-max: 1900px;
    --card-motion: 200ms ease;
}

/* Konten mengisi lebar layar, dengan margin kiri/kanan yang sama. */
.container { width: min(var(--content-max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.hero { min-height: min(800px, calc(100svh - var(--header-h))); }
.hero-content { padding-top: clamp(70px, 7vw, 125px); }

/* Navbar desktop: hover menampilkan menu, klik tombol untuk toggle. */
.nav-group { display: inline-flex; align-items: center; position: relative; }
.nav-group .nav-pill { padding-right: 12px; }
.nav-group.has-children .nav-pill { border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 9px; }
.submenu-toggle {
    display: inline-flex; justify-content: center; align-items: center;
    min-height: 39px; width: 31px; padding: 0; margin-left: -1px;
    border: 1px solid var(--border); border-radius: 0 99px 99px 0;
    color: var(--brand); background: #fff;
}
.nav-group:hover .nav-pill, .nav-group:focus-within .nav-pill, .nav-group.menu-open .nav-pill,
.nav-group:hover .submenu-toggle, .nav-group:focus-within .submenu-toggle, .nav-group.menu-open .submenu-toggle {
    color: white; background: var(--brand); border-color: var(--brand);
}
.nav-dropdown {
    position: absolute; top: calc(100% + 9px); left: 0; z-index: 110;
    display: none; min-width: 255px; max-width: min(360px, 90vw);
    background: white; border: 1px solid var(--border); box-shadow: 0 16px 42px #12386d25;
    border-radius: 15px; padding: 8px;
}
.nav-dropdown::before { content: ''; position: absolute; height: 11px; bottom: 100%; left: 0; width: 100%; }
.nav-group:hover .nav-dropdown, .nav-group:focus-within .nav-dropdown, .nav-group.menu-open .nav-dropdown { display: grid; }
.nav-dropdown a { color: var(--ink); border-radius: 10px; font-weight: 600; font-size: 13px; padding: 10px 12px; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: var(--brand-soft); color: var(--brand); }
.mobile-menu-group { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.mobile-menu-group summary { padding: 12px 14px; cursor: pointer; font-weight: 600; color: var(--brand); }
.mobile-menu-group[open] summary { background: var(--brand-soft); }
.mobile-menu-group > a { border: 0; border-top: 1px solid var(--border); border-radius: 0; margin-left: 12px; }
.nav-pill:active, .shortcut-card:active, .news-card:active, .program-card:active,
.teacher-card:active, .gallery-card:active, .button:active { transform: scale(.992); }

/* Keunggulan Sekolah: delapan kartu identik, foto lebih dominan. */
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(13px, 1.7vw, 26px); }
.advantage-card { padding: 0; min-height: unset; height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.advantage-image { aspect-ratio: 16 / 10; width: 100%; background: #e7effa; overflow: hidden; }
.advantage-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.advantage-card:hover .advantage-image img { transform: scale(1.035); }
.advantage-copy { padding: clamp(15px, 1.8vw, 27px); display: flex; flex-direction: column; gap: 9px; flex: 1; }
.advantage-copy h3 { font-size: clamp(14px, 1.16vw, 19px); line-height: 1.52; }
.image-pending { display: grid; place-content: center; gap: 7px; text-align: center; color: var(--muted); font-size: 12px; background: var(--brand-soft); min-height: 100%; padding: 20px; }
.image-pending .material-symbols-outlined { color: var(--brand); font-size: 28px; }

/* Foto kepala sekolah proporsional potret, bukan 1:1. */
.welcome-card { grid-template-columns: .42fr .58fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.welcome-photo { width: 100%; aspect-ratio: 3/4; max-height: 650px; min-height: 380px; overflow: hidden; border-radius: 20px; }
.welcome-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.welcome-copy p { max-width: 710px; }

/* Video profil: tampil bersih tanpa empat kartu tambahan. */
.about-grid { grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 70px); }
.video-placeholder { border-radius: 20px; overflow: hidden; }
.about-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }

/* Halaman dalam mempertahankan margin simetris. */
.prose-card.article-full { max-width: none; width: 100%; padding: clamp(23px, 3vw, 55px); }
.prose-card.article-full > img { max-height: min(65vh, 720px); aspect-ratio: 16/8; object-fit: cover; }
.prose-card.principal-long > img { max-width: 380px; aspect-ratio: 3/4; max-height: none; object-fit: cover; }
.readable-content { max-width: 90ch; font-size: 16px; line-height: 1.95; white-space: normal; overflow-wrap: anywhere; margin-bottom: 26px; }
.category-tabs { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.news-card, .shortcut-card, .program-card, .teacher-card, .gallery-card { transition: transform var(--card-motion), box-shadow var(--card-motion), border-color var(--card-motion); }
.news-card:hover, .teacher-card:hover, .gallery-card:hover, .program-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(24,70,144,.13); }
.news-text h2 { font-size: 18px; margin: 12px 0; }
.news-text h2 a:hover { color: var(--brand); }

/* Kurikulum, ekstrakurikuler, budaya dan fasilitas: foto besar di setiap kartu. */
.program-card { overflow: hidden; padding: 0; }
.program-image { width: 100%; aspect-ratio: 16/10; background: var(--brand-soft); overflow: hidden; }
.program-image img { width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; transition: transform .3s ease; }
.program-card:hover .program-image img { transform: scale(1.04); }
.program-copy { padding: 21px; }
.program-copy h2 { margin: 0 0 10px; }
.program-copy p { margin: 0; }
.program-copy .program-schedule { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.program-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Guru digeser horizontal secara eksplisit, dapat dinavigasi keyboard. */
.teacher-controls { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 20px; }
.teacher-strip { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 10px; padding: 8px 3px 25px; }
.teacher-card { flex: 0 0 clamp(230px, 22vw, 350px); scroll-snap-align: start; background: white; border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 18px; overflow: hidden; }
.teacher-photo { aspect-ratio: 3/4; background: var(--brand-soft); }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card h2 { font-size: 17px; margin: 0; padding: 18px; text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.gallery-card { margin: 0; background: white; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.gallery-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-card figcaption { padding: 18px; }
.gallery-card figcaption p { color: var(--muted); margin: 7px 0 0; font-size: 13px; }

/* FAQ semua lebar konten, jawaban membuka dengan transisi lembut. */
.faq-list { max-width: none; width: 100%; }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 25px; color: var(--brand); font-weight: 500; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { animation: fade-faq .25s ease both; }
@keyframes fade-faq { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }

/* Kontak dan peta sama lebar, memanfaatkan ruang layar. */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.contact-card { max-width: none; min-width: 0; }
.map-box { min-height: 425px; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.map-box iframe { border: 0; width: 100%; height: 100%; min-height: 425px; }
.social-links { display: flex !important; flex-wrap: wrap; gap: 9px; }
.social-links a { display: inline-grid !important; place-items: center; width: 38px; height: 38px; margin: 0 !important; border: 1px solid #ffffff66; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; text-decoration: none; }
.social-links a:hover { background: white; color: var(--brand); text-decoration: none; }
.contact-socials { margin-top: 20px; }
.contact-socials a { border-color: var(--brand); color: var(--brand); }
.contact-socials a:hover { background: var(--brand); color: white; }

/* Footer: logo putih transparan langsung di atas biru. */
.footer-logo { background: none; border: none; padding: 0; border-radius: 0; }
.footer-logo img { width: min(290px, 100%); height: auto; max-height: 100px; object-fit: contain; object-position: left; }
.footer-grid { grid-template-columns: 1.4fr .8fr .8fr 1.1fr; gap: 38px; }

@media (max-width: 1220px) {
    .desktop-nav { display: none; }
    .menu-toggle { display: inline-flex; }
}
@media (max-width: 950px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .welcome-card, .about-grid, .contact-layout { grid-template-columns: 1fr; }
    .welcome-photo { width: min(470px, 100%); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
    .feature-grid, .program-grid-large, .gallery-grid { grid-template-columns: 1fr; }
    .welcome-photo { width: 100%; min-height: unset; max-height: 570px; }
    .hero { min-height: max(610px, calc(100svh - var(--header-h))); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-identity { grid-column: auto; }
    .teacher-card { flex-basis: 78vw; }
    .teacher-controls { justify-content: space-between; }
    .cta-panel { padding: 24px 19px; }
}
@media (prefers-reduced-motion: reduce) {
    .faq-answer { animation: none; }
    .nav-dropdown, .has-motion .reveal { transition: none !important; }
}

.shortcut-icon-photo { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }
.social-links a { background: color-mix(in srgb, var(--brand) 95%, black); }
.social-links a img { display: block; width: 20px; height: 20px; }
.social-links a:hover img { filter: brightness(0) saturate(100%); }
.contact-socials a { color: white; background: var(--brand); }
.contact-socials a:hover { color: white; background: var(--brand-dark); }

.readable-content { margin-inline: auto; }
.mobile-nav { max-height: calc(100svh - var(--header-h)); overflow-y: auto; }


/* ===============================================================
   REVISI v4 — transparan, ringan, dan mudah disunting.
   Semua nilai utama tetap mengikuti variabel di bagian atas file.
   =============================================================== */
:root { --container: 1500px; }
.container { width: min(var(--container), calc(100% - clamp(30px, 5vw, 92px))); }

/* Desktop: dropdown hanya terbuka lewat klik. Hover hanya memberi feedback warna. */
.nav-group { position: relative; }
.nav-group.has-children .nav-pill { border-radius: 50px; padding: 9px 12px; }
.nav-dropdown-trigger { cursor: pointer; gap: 6px; white-space: nowrap; }
.nav-chevron { font-size: 19px; line-height: 1; transition: transform .2s ease; }
.nav-group.menu-open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown { top: calc(100% + 8px); max-height: 66vh; overflow-y: auto; }
.nav-dropdown[hidden] { display: none !important; }
.nav-group:hover .nav-dropdown, .nav-group:focus-within .nav-dropdown { display: none; }
.nav-group.menu-open .nav-dropdown { display: grid; }
.nav-group:hover .nav-pill, .nav-group:focus-within .nav-pill { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.nav-group .nav-pill.is-active, .nav-group:hover .nav-pill.is-active,
.nav-group.menu-open .nav-pill, .nav-group.menu-open .nav-pill.is-active {
    color: white; border-color: var(--brand); background: var(--brand);
}
.nav-group .nav-dropdown a { white-space: normal; }
.mobile-nav a.is-active { background: var(--brand); color: white; border-color: var(--brand); }
.mobile-menu-group summary { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-group[open] summary .material-symbols-outlined { transform: rotate(180deg); }

/* Ringkas kartu akses cepat: tanpa deskripsi. */
.shortcut-card { min-height: 137px; padding: 18px 12px 13px; gap: 8px; }
.shortcut-card .card-arrow { margin-top: 0; }
.shortcut-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.shortcut-card:active, .advantage-card:active, .news-card:active, .graduate-card:active,
.button:active { transform: translateY(1px) scale(.99); }

/* Foto keunggulan dan card tetap seragam. */
.advantage-card { min-width: 0; height: 100%; }
.advantage-card .advantage-image { flex: 0 0 auto; }
.advantage-card .advantage-copy { justify-content: flex-start; }
.graduate-card { transition: box-shadow .2s, transform .2s; }
.graduate-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #1846901c; }

/* CTA berita dipisah agar pada mobile berada setelah semua kartu. */
.news-more { display: flex; justify-content: flex-end; margin-top: 22px; }

/* Foto sambutan selalu potret, teks selalu sejajar pada desktop. */
.welcome-card { display: grid !important; grid-template-columns: minmax(275px, .42fr) minmax(0, .58fr) !important; align-items: center !important; gap: clamp(24px, 4vw, 68px); }
.welcome-photo { aspect-ratio: 3 / 4; width: 100%; max-height: 700px; min-height: 0; }
.welcome-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.welcome-copy { min-width: 0; }

/* Breadcrumb bertingkat; tidak tampak seperti tautan utama. */
.breadcrumb { font-size: 12px; gap: 9px; color: #7b879b; }
.breadcrumb a { color: #7b879b; text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: none; }
.breadcrumb [aria-current="page"] { color: #7b879b; }

/* Halaman visi-misi memakai dua kolom di desktop. */
.vision-cols { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 28px; }
.vision-cols section { background: var(--section); border: 1px solid var(--border); padding: clamp(22px, 3vw, 45px); border-radius: 20px; }
.vision-cols h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 16px; color: var(--brand); }

/* Footer ringkas, berimbang, sosial mudah diketuk. */
.footer-grid { grid-template-columns: 1.35fr .75fr 1fr; column-gap: clamp(22px, 5vw, 82px); }
.footer-socials a { margin-bottom: 0; }
.footer-socials .material-symbols-outlined { font-size: 21px; }

@media (max-width: 1220px) { .desktop-nav { display: none; } .menu-toggle { display: inline-flex; } }
@media (max-width: 950px) {
    .welcome-card { grid-template-columns: minmax(0, .42fr) minmax(0, .58fr) !important; }
    .vision-cols { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-identity { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    .container { width: calc(100% - 30px); }
    .hero { min-height: max(680px, calc(100svh - var(--header-h))); }
    .hero-content { min-height: max(680px, calc(100svh - var(--header-h))); padding-top: 54px; padding-bottom: 32px; justify-content: flex-start; }
    .hero-main { width: 100%; }
    .hero h1 { font-size: clamp(36px, 10vw, 51px); }
    .hero-actions {
        position: absolute; bottom: 33px; left: 50%; transform: translateX(-50%);
        display: flex; flex-direction: column; width: min(100%, 350px);
        margin: 0; gap: 12px; max-width: none;
    }
    .hero-actions .button { display: flex; width: 100%; min-height: 48px; }
    .hero-bottom { display: none; }
    .hero-pause { display: none !important; }
    .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .shortcut-card { min-height: 116px; padding: 13px 8px; }
    .shortcut-card .icon-circle { width: 43px; height: 43px; }
    .shortcut-card strong { font-size: 12px; }
    .shortcut-card .card-arrow { font-size: 13px; }
    .section-header.center { align-items: flex-start; text-align: left; }
    .feature-grid.horizontal-mobile-scroll,
    .news-grid.horizontal-mobile-scroll {
        display: flex !important; flex-wrap: nowrap; gap: 13px;
        overflow-x: auto; overflow-y: hidden;
        scroll-snap-type: x mandatory; overscroll-behavior-inline: contain;
        padding: 7px 3px 21px; scrollbar-width: thin;
    }
    .feature-grid.horizontal-mobile-scroll > .advantage-card { flex: 0 0 76%; min-width: 0; scroll-snap-align: start; }
    .news-grid.horizontal-mobile-scroll > .news-card { flex: 0 0 84%; min-width: 0; scroll-snap-align: start; }
    .horizontal-mobile-scroll::after { content: ''; flex: 0 0 1px; }
    .graduate-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .graduate-card { min-width: 0; padding: 14px 11px; align-items: flex-start; flex-direction: column; gap: 7px; }
    .graduate-card h3 { font-size: 12px; }
    .graduate-card .icon-circle { width: 42px; height: 42px; }
    .graduate-card .mini-label { font-size: 10px; }
    .welcome-card { display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 19px; }
    .welcome-photo { width: min(310px, 100%); aspect-ratio: 3/4; max-height: 430px; justify-self: center; }
    .welcome-copy { text-align: left; }
    .cta-panel { justify-content: center; text-align: center; gap: 13px; }
    .cta-icon { display: none; }
    .cta-buttons { width: 100%; justify-content: center; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 18px; }
    .footer-identity { grid-column: 1 / -1; }
    .footer-logo img { width: min(240px, 100%); }
    .footer-grid h2 { margin-bottom: 12px; }
    .footer-grid p, .footer-grid a { overflow-wrap: anywhere; }
    .footer-socials { display: flex; gap: 8px; }
    .section-header { gap: 8px; }
}
@media (max-width: 370px) {
    .hero h1 { font-size: 34px; }
    .nav-spmb { padding-inline: 11px; }
    .logo-link { width: 138px; min-width: 110px; }
    .feature-grid.horizontal-mobile-scroll > .advantage-card { flex-basis: 88%; }
}
@media (prefers-reduced-motion: reduce) {
    .feature-grid.horizontal-mobile-scroll, .news-grid.horizontal-mobile-scroll { scroll-behavior: auto; }
}

/* Halaman Sambutan: foto di kiri dan teks di kanan pada desktop. */
.prose-card.principal-long:has(.principal-page-photo) { display: grid; grid-template-columns: minmax(210px, .36fr) minmax(0, .64fr); gap: 32px; align-items: start; }
.prose-card.principal-long .principal-page-photo { width: 100%; max-width: none; height: auto; aspect-ratio: 3/4; object-fit: cover; margin: 0; }
@media (max-width: 700px) {
    .prose-card.principal-long:has(.principal-page-photo) { grid-template-columns: 1fr; gap: 20px; }
    .prose-card.principal-long .principal-page-photo { max-width: 320px; margin-inline: auto; }
}


/* ============================================================
   V5 — Penyempurnaan UI/UX
   Ubah variabel di :root pada bagian awal untuk warna dan font.
   ============================================================ */

/* Hero mengisi tinggi layar sesudah header, bukan melewati viewport. */
.hero {
    height: calc(100svh - var(--header-h));
    min-height: min(540px, calc(100svh - var(--header-h)));
    max-height: 960px;
}
.hero-content {
    display: flex;
    justify-content: center;
    min-height: 100%;
    padding-top: clamp(28px, 5vw, 90px);
    padding-bottom: clamp(28px, 5vw, 60px);
}
.hero-main { max-width: min(760px, 100%); transform: translateY(calc(var(--scroll-nudge, 0px) * .35)); }
.hero-slide { background-position: center; }
.hero .eyebrow-light { display: inline-flex; }
.hero-overlay {
    background: linear-gradient(90deg, rgba(6, 32, 73, .84), rgba(9, 37, 80, .60) 56%, rgba(11, 40, 85, .35));
}
/* Masuk bertahap saat laman pertama tampil, bukan gerakan yang mengalihkan fokus. */
@media (prefers-reduced-motion: no-preference) {
    .hero-main > .eyebrow { animation: enter-hero .7s .05s ease-out both; }
    .hero-main > h1 { animation: enter-hero .8s .16s ease-out both; }
    .hero-main > p { animation: enter-hero .8s .27s ease-out both; }
}
@keyframes enter-hero { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Section pertama sedikit menumpang hero untuk memberi kedalaman tanpa menutup teks. */
#informasi-sekolah {
    position: relative;
    z-index: 2;
    margin-top: -20px;
    border-radius: 22px 22px 0 0;
}

/* Semua halaman dalam: jarak judul dan konten dipadatkan secara konsisten. */
.inner-hero { padding: clamp(28px, 3vw, 45px) 0 clamp(23px, 2.6vw, 39px); }
.inner-hero h1 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.16; margin: 7px 0 0; }
.inner-hero + .section { padding-top: clamp(26px, 3.4vw, 52px); }
.breadcrumb { margin-bottom: 14px; }
.inner-hero-article + .article-page { padding-top: 32px; }

/* Foto dan teks keunggulan seragam untuk delapan kartu. */
.advantage-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.advantage-card .advantage-image { aspect-ratio: 4/3; overflow: hidden; }
.advantage-card .advantage-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.advantage-card:hover .advantage-image img { transform: scale(1.035); }
.advantage-card .advantage-copy { flex: 1; }
.news-card .news-image img { transition: transform .3s ease; }
.news-card:hover .news-image img { transform: scale(1.04); }

/* Artikel full-width editorial, tidak dibungkus seperti satu card besar. */
.article-page { padding-block: 20px 80px; }
.article-cover { width: 100%; margin: 0 auto clamp(24px, 4vw, 48px); }
.article-cover img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 16px; }
.article-meta { color: var(--muted); font-size: 13px; margin: 10px 0 0 !important; }
.article-body { max-width: 880px; margin: 0 auto 30px; }
.article-body p { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.85; white-space: pre-line; margin: 0 0 22px; overflow-wrap: anywhere; }
.article-inline-photo { margin: 30px 0; }
.article-inline-photo img { width: 100%; max-height: 600px; object-fit: contain; border-radius: 12px; background: var(--section); }
.article-page > .button { margin-top: 5px; }

/* Galeri bergaya dokumentasi, gambar vertikal tanpa card berita biasa. */
.gallery-masonry { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); align-items: start; }
.gallery-tile { margin: 0; position: relative; min-width: 0; border-radius: 16px; overflow: hidden; background: #f0f4fb; box-shadow: var(--shadow); }
.gallery-tile > a { display: block; overflow: hidden; }
.gallery-tile img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .3s ease; }
.gallery-tile:hover img { transform: scale(1.035); }
.gallery-tile figcaption { padding: 13px 15px 16px; }
.gallery-tile figcaption strong { font-size: 14px; line-height: 1.4; display: block; }
.gallery-tile figcaption p { font-size: 12px; color: var(--muted); margin: 4px 0; }
.gallery-share { border: 1px solid var(--border); background: white; color: var(--brand); border-radius: 99px; padding: 7px 12px; font-size: 12px; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; }
.gallery-share:hover { background: var(--brand-soft); }
.gallery-share .material-symbols-outlined { font-size: 16px; }

/* Kalender berupa daftar tautan yang jelas dapat diklik, tanpa konten fiktif. */
.calendar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.calendar-link { display: flex; align-items: center; gap: 16px; min-height: 65px; border: 1px solid var(--border); border-radius: 12px; background: white; padding: 14px 18px; font-weight: 650; transition: background .2s, transform .2s, box-shadow .2s; }
.calendar-link .material-symbols-outlined { color: var(--brand); }
.calendar-link span:last-child { margin-left: auto; }
.calendar-link:hover { background: var(--brand-soft); transform: translateY(-2px); box-shadow: var(--shadow); }

/* Staf dipisahkan dari Guru: kontrol slide dan keterangan tugas. */
.people-section + .people-section { margin-top: 64px; }
.people-section .section-header { margin-bottom: 16px; }
.teacher-position { font-size: 13px; color: var(--muted); margin: 5px 0 16px; }
.teacher-card:hover .teacher-photo img { transform: scale(1.035); }
.teacher-photo { overflow: hidden; }
.teacher-photo img { transition: transform .28s ease; }

/* Struktur Organisasi hanya sebuah gambar besar dan judul. */
.organization-chart { width: 100% !important; max-height: none !important; height: auto; object-fit: contain !important; margin: 0 !important; }
.prose-card.article-full:has(.organization-chart) { max-width: 100%; padding: clamp(14px, 3vw, 36px); }

/* Logo footer putih transparan dan kontak mudah ditemukan. */
.site-footer .footer-logo { background: transparent !important; border: 0; padding: 0; }
.footer-contact .footer-phone { display: inline-block; color: white; font-weight: 700; }
.footer-socials a img { width: 21px; height: 21px; object-fit: contain; }

/* Chatbot compact seperti bubble Meta AI: gambar bulat, nama kecil di bawah. */
.chat-widget { right: 18px; bottom: 18px; }
.chat-fab { padding: 0; border: 0; border-radius: 0; display: flex; flex-direction: column; gap: 4px; background: transparent; box-shadow: none; color: var(--brand); max-width: 110px; }
.chat-fab > svg, .chat-fab > .chat-avatar { background: var(--brand); color: white; border-radius: 50%; width: 56px; height: 56px; padding: 13px; box-shadow: 0 9px 24px #18469055; transition: transform .22s; }
.chat-fab > .chat-avatar { padding: 0; object-fit: cover; }
.chat-fab:hover { background: transparent; }
.chat-fab:hover > svg, .chat-fab:hover > .chat-avatar { transform: scale(1.065); }
.chat-fab-caption { text-align: center; background: white; color: var(--brand); border: 1px solid var(--border); border-radius: 99px; padding: 3px 7px; font-size: 10px; line-height: 1.3; max-width: 100px; overflow-wrap: anywhere; }

/* Aktif desktop dan mobile terlihat jelas. */
.nav-dropdown a.is-current { color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.mobile-menu-group > summary.is-active,
.mobile-menu-group > a.is-active { background: var(--brand); color: white; border-radius: 10px; }
.mobile-nav a.is-active { color: white; background: var(--brand); }

@media (max-width: 1200px) {
    .gallery-masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .hero { height: calc(100svh - var(--header-h)); min-height: 480px; max-height: none; }
    .hero-content { padding-block: 24px 27px; min-height: 100%; }
    .hero-main { max-width: 100%; flex: 1; display: grid; grid-template-rows: auto 1fr auto; align-items: start; }
    .hero .eyebrow-light { align-self: start; justify-self: start; max-width: 100%; font-size: 9px; padding: 6px 10px; }
    .hero h1 { align-self: center; font-size: clamp(36px, 9vw, 58px); line-height: 1.13; margin: 0; text-align: center; max-width: 100%; }
    .hero-main > p { align-self: end; text-align: center; font-size: clamp(13px, 3.8vw, 16px); line-height: 1.55; max-width: 100%; }
    .hero-slide { background-position: center center; }
    .hero-overlay { background: linear-gradient(180deg, rgba(8,32,73,.55), rgba(8,32,73,.68) 55%, rgba(8,32,73,.75)); }
    #informasi-sekolah { margin-top: -13px; border-radius: 15px 15px 0 0; }
    .inner-hero { padding: 25px 0 24px; }
    .inner-hero h1 { font-size: clamp(27px, 7vw, 36px); margin: 2px 0 0; }
    .inner-hero + .section { padding-top: 28px; }
    .breadcrumb { margin-bottom: 12px; font-size: 11px; }
    .gallery-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gallery-tile figcaption { padding: 10px 10px 12px; }
    .gallery-tile figcaption strong { font-size: 12px; }
    .article-page { padding-bottom: 50px; }
    .article-cover img { border-radius: 12px; }
    .people-section + .people-section { margin-top: 40px; }
    .chat-widget { right: 11px; bottom: 12px; }
    .chat-fab > svg, .chat-fab > .chat-avatar { width: 51px; height: 51px; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 390px) {
    .hero h1 { font-size: clamp(31px, 8vw, 40px); }
    .hero .eyebrow-light { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .hero-main { transform: none; }
}

.chat-fab > .chat-round-icon {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--brand); color: white;
    box-shadow: 0 9px 24px #18469055;
    transition: transform .22s;
}
.chat-fab:hover > .chat-round-icon { transform: scale(1.065); }
.chat-round-icon .material-symbols-outlined { font-size: 27px; }
@media (max-width: 700px) { .chat-fab > .chat-round-icon { width: 51px; height: 51px; } }

.teacher-card h3 { font-size: 16px; line-height: 1.4; padding: 13px 14px 0; margin: 0; text-align: center; }
.teacher-card .teacher-position { text-align: center; padding: 0 14px 12px; }

/* ===============================================================
   V6 — Hero full viewport + aksesibilitas; layout sekolah responsive.
   =============================================================== */
.hero {
    height: calc(100svh - var(--header-h));
    min-height: 490px;
    max-height: none;
}
.hero-content {
    height: 100%;
    min-height: 0;
    padding-block: 0;
    justify-content: center;
    align-items: flex-start;
}
.hero-main { display: flex; flex-direction: column; align-items: flex-start; width: min(720px, 100%); transform: translateY(calc(var(--scroll-nudge, 0px) * .35)); }
.hero .eyebrow-light { position: absolute; top: clamp(24px, 5vw, 55px); left: 0; max-width: 100%; }
.hero h1 { margin: 0 0 18px; font-size: clamp(42px, 5.4vw, 83px); line-height: 1.1; text-align: left; max-width: 780px; }
.hero-main > p { margin: 0; text-align: left; font-size: clamp(15px, 1.65vw, 20px); max-width: 690px; }
.hero-overlay { background: linear-gradient(90deg, rgba(6,27,59,.79) 0%, rgba(7,32,72,.68) 37%, rgba(7,35,76,.31) 85%); }
/* Jangan ada bagian putih yang memotong foto pada tampilan awal. */
#informasi-sekolah { margin-top: 0; border-radius: 0; }
.steam-definition { margin: 5px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.feature-grid { grid-auto-rows: 1fr; align-items: stretch; }
.advantage-card { height: 100%; display: flex; flex-direction: column; }
.advantage-card .advantage-image { aspect-ratio: 4/3; flex: 0 0 auto; }
.advantage-card .advantage-copy { display: flex; flex: 1; min-height: 114px; justify-content: flex-start; }
.advantage-card .advantage-copy h3 { margin: 0; }
.advantage-card:active .advantage-image img, .uniform-card:active img { transform: scale(1.035); }

/* Katalog seragam; dua kolom pada HP, tiga-empat pada desktop. */
.uniform-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(14px,2vw,28px); }
.uniform-card { overflow: hidden; min-width: 0; border: 1px solid var(--border); border-radius: 19px; box-shadow: var(--shadow); background: white; transition: transform .22s, box-shadow .22s; }
.uniform-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px #18469022; }
.uniform-photo { display: block; position: relative; width: 100%; aspect-ratio: 3/4; border: 0; padding: 0; background: var(--section); overflow: hidden; text-align: center; }
.uniform-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.uniform-card:hover .uniform-photo img { transform: scale(1.03); }
.photo-hint { position: absolute; bottom: 12px; right: 12px; background: #0b2855dc; color: white; padding: 6px 11px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.uniform-copy { padding: 15px 18px 20px; }
.uniform-day { display: inline-flex; color: var(--brand); background: var(--brand-soft); border-radius: 99px; padding: 4px 11px; font-size: 11px; font-weight: 700; }
.uniform-copy h2 { font-size: clamp(14px,1.35vw,21px); margin: 8px 0 0; line-height: 1.35; }

/* Jadwal KBM: informasi waktu bisa dipahami tanpa poster. */
.kbm-container { max-width: 1190px; }
.kbm-tabs { display: inline-flex; gap: 8px; background: #eef3fb; padding: 6px; border-radius: 999px; margin-bottom: 30px; }
.kbm-tab { border: 0; background: transparent; padding: 12px 19px; border-radius: 999px; color: var(--brand); font-weight: 700; font-size: 13px; transition: background .2s, color .2s; }
.kbm-tab.is-selected { color: white; background: var(--brand); box-shadow: var(--shadow); }
.kbm-panel[hidden] { display: none; }
.kbm-panel h2 { font-size: clamp(22px,2.5vw,34px); margin: 0 0 24px; }
.kbm-timeline { list-style: none; margin: 0 0 32px; padding: 0; }
.kbm-row { display: grid; grid-template-columns: 140px 16px 1fr; align-items: baseline; column-gap: clamp(14px,2.5vw,32px); padding: 16px 0; border-bottom: 1px solid var(--border); }
.kbm-time { font-size: 14px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.kbm-mark { width: 10px; height: 10px; align-self: start; border-radius: 50%; background: var(--brand); margin-top: 8px; }
.kbm-row h3 { font-size: 16px; margin: 0; }
.kbm-row p { color: var(--muted); margin: 4px 0 0; }
.kbm-poster { width: min(620px, 100%); margin: 26px auto 0; }
.kbm-poster .preview-button { display: block; position: relative; width: 100%; padding: 0; border: 0; border-radius: 15px; overflow: hidden; cursor: zoom-in; }
.kbm-poster img { width: 100%; }

/* Enam bidang akademik + slider kartu tenaga ahli berfoto. */
.support-intro { max-width: 950px; margin: 0 0 33px; color: var(--muted); line-height: 1.8; }
.support-list { display: grid; gap: 15px; }
.support-field { border: 1px solid var(--border); background: white; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.support-toggle { display: flex; align-items: center; width: 100%; gap: 20px; background: white; border: 0; padding: clamp(16px,2vw,26px); text-align: left; }
.support-toggle:hover, .support-toggle[aria-expanded="true"] { background: #f4f8ff; }
.support-order { font-size: clamp(21px,2.2vw,32px); font-weight: 800; color: var(--brand); }
.support-field-title { flex: 1; font-weight: 750; font-size: clamp(15px,1.6vw,20px); }
.support-field-title small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.support-action { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 650; color: var(--brand); }
.support-toggle[aria-expanded="true"] .support-action span { transform: rotate(180deg); }
.support-content[hidden] { display: none; }
.support-content { border-top: 1px solid var(--border); padding: 22px clamp(16px,2vw,26px) 28px; }
.support-description { color: var(--muted); }
.support-people-strip { display: flex; gap: 16px; overflow-x: auto; padding: 3px 2px 15px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.support-person { flex: 0 0 clamp(185px,24%,260px); border: 1px solid var(--border); border-radius: 15px; overflow: hidden; scroll-snap-align: start; box-shadow: 0 8px 22px #18469010; transition: transform .2s; }
.support-person:hover { transform: translateY(-3px); }
.support-portrait { aspect-ratio: 3/4; background: var(--brand-soft); }
.support-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-pending { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand); }
.portrait-pending .material-symbols-outlined { font-size: 50px; }
.support-person-text { padding: 14px; }
.support-person h3 { font-size: 14px; line-height: 1.5; margin: 0; }
.support-person p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

/* ===== Pendukung Akademik ===== */

.support-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 64px 1fr 56px;
    align-items: center;
    gap: 16px;

    padding: 18px 20px;
    border: 1px solid #d7e2f3;
    border-radius: 24px;
    background: #ffffff;
    color: #163d7a;
    text-align: left;
    cursor: pointer;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease,
        background-color 0.25s ease;
}

.support-toggle:hover {
    border-color: #184690;
    box-shadow: 0 10px 24px rgba(24, 70, 144, 0.10);
    transform: translateY(-2px);
}

/* Ikon kiri pengganti nomor */
.support-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #eef4ff;
    color: #184690;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-icon .material-symbols-outlined {
    font-size: 30px;
    line-height: 1;
}

/* Judul dan subjudul */
.support-field-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    font-weight: 700;
    color: #173d7a;
}

.support-field-title small {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #5f6f8f;
}

/* Tombol panah kanan */
.support-action {
    width: 48px;
    height: 48px;
    border: 1px solid #184690;
    border-radius: 14px;
    background: #ffffff;
    color: #184690;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.support-action .material-symbols-outlined {
    font-size: 26px;
    line-height: 1;
    display: block;
    transition: transform 0.28s ease;
}

/* Hover tombol panah */
.support-toggle:hover .support-action {
    background: #184690;
    color: #ffffff;
    border-color: #184690;
}

/* Saat terbuka */
.support-toggle[aria-expanded="true"] .support-action .material-symbols-outlined {
    transform: rotate(180deg);
}

.support-toggle[aria-expanded="true"] {
    border-color: #184690;
    box-shadow: 0 10px 28px rgba(24, 70, 144, 0.12);
}

/* Konten buka tutup */
.support-content {
    padding: 18px 12px 0;
}

/* Mobile */
@media (max-width: 640px) {
    .support-toggle {
        grid-template-columns: 56px 1fr 48px;
        gap: 12px;
        padding: 16px;
        border-radius: 22px;
    }

    .support-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .support-icon .material-symbols-outlined {
        font-size: 26px;
    }

    .support-action {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .support-field-title {
        font-size: 0.98rem;
    }

    .support-field-title small {
        font-size: 0.88rem;
    }
}
.support-icon-emoji {
    font-size: 28px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* Kalender seperti daftar pada referensi UMS, tapi interaktif dan mudah diakses. */
.calendar-simple-list { list-style: disc; padding-left: 25px; margin: 0; display: grid; gap: 14px; }
.calendar-simple-list li { padding-left: 5px; }
.calendar-simple-list button { background: none; color: var(--brand); border: 0; padding: 4px 0; text-align: left; font-size: clamp(15px,1.3vw,18px); font-weight: 650; cursor: zoom-in; }
.calendar-simple-list button:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Poster rincian biaya dengan zoom + unduh. */
.fees-grid { display: grid; gap: 32px; }
.fee-item { width: min(1140px,100%); margin-inline: auto; }
.fee-item h2 { margin: 0; font-size: clamp(20px,2vw,30px); }
.fee-item p { color: var(--muted); margin: 5px 0 18px; }
.fee-poster { display: block; position: relative; width: 100%; overflow: hidden; background: var(--section); border: 1px solid var(--border); border-radius: 16px; padding: 0; cursor: zoom-in; }
.fee-poster img { width: 100%; height: auto; }
.fee-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 19px; }

/* Dialog foto asli: pembesaran tidak menyembunyikan tombol navigasi. */
.image-viewer { width: min(96vw,1450px); max-width: none; max-height: 96dvh; padding: 0; border: 0; border-radius: 16px; color: var(--ink); box-shadow: 0 25px 80px #071b3b8a; overflow: hidden; }
.image-viewer::backdrop { background: #051c3bc9; }
.image-viewer[open] { display: flex; flex-direction: column; }
.image-viewer-header { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.image-viewer-header strong { font-size: 14px; flex: 1; overflow-wrap: anywhere; }
.image-viewer-actions { display: flex; gap: 6px; align-items: center; }
.viewer-control { min-width: 36px; min-height: 35px; display: inline-flex; justify-content: center; align-items: center; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--border); border-radius: 7px; font-weight: 750; font-size: 13px; padding: 6px 10px; }
.image-viewer-stage { overflow: auto; flex: 1; min-height: 110px; text-align: center; background: #f1f4fa; }
.image-viewer-stage img { display: block; height: auto; max-width: none; width: 100%; margin-inline: auto; }
.image-viewer-help { text-align: center; padding: 6px 10px; margin: 0; font-size: 11px; color: var(--muted); }

@media (min-width: 1600px) { .hero-main { width: 750px; } }
@media (max-width: 700px) {
    .hero { height: calc(100svh - var(--header-h)); min-height: 460px; max-height: none; }
    .hero-content { height: 100%; min-height: 0; padding: 0; justify-content: center; align-items: flex-start; }
    .hero-main { display: flex; flex: 0 1 auto; flex-direction: column; align-items: flex-start; transform: none; }
    .hero .eyebrow-light { top: 22px; left: 0; font-size: 9px; padding: 7px 10px; }
    .hero h1 { text-align: left; font-size: clamp(34px, 9.4vw, 48px); margin: 0 0 14px; line-height: 1.12; }
    .hero-main > p { text-align: left; font-size: clamp(13px,3.5vw,16px); line-height: 1.6; max-width: 330px; }
    .hero-overlay { background: linear-gradient(90deg,rgba(7,27,65,.82),rgba(7,29,65,.51) 70%,rgba(7,29,65,.36)); }
    .advantage-card .advantage-copy { min-height: 110px; }
    .uniform-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
    .uniform-copy { padding: 11px 11px 14px; }
    .uniform-copy h2 { font-size: 13px; }
    .uniform-day { font-size: 10px; padding: 3px 9px; }
    .kbm-tabs { display: flex; width: 100%; border-radius: 14px; }
    .kbm-tab { flex: 1; border-radius: 10px; font-size: 12px; padding: 10px 8px; }
    .kbm-row { grid-template-columns: 93px 9px 1fr; column-gap: 11px; padding: 14px 0; }
    .kbm-time { font-size: 12px; white-space: normal; }
    .kbm-row h3 { font-size: 13px; line-height: 1.6; }
    .support-toggle { gap: 11px; }
    .support-order { font-size: 19px; }
    .support-field-title { font-size: 13px; }
    .support-action { font-size: 10px; max-width: 62px; line-height: 1.2; }
    .support-person { flex-basis: 72%; max-width: 255px; }
    .fee-actions > * { flex: 1; padding-inline: 10px; font-size: 11px; }
    .image-viewer { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
    .image-viewer-header { align-items: stretch; }
    .image-viewer-header strong { width: 100%; flex-basis: 100%; }
}
@media (max-width: 390px) {
    .hero h1 { font-size: clamp(32px,8.4vw,40px); }
    .hero .eyebrow-light { font-size: 8px; }
    .image-viewer-actions { gap: 3px; }
    .viewer-control { min-width: 29px; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .support-person, .uniform-card, .uniform-photo img { transition: none; }
}

/* ===============================================================
   V7 — Final overrides, sengaja diletakkan terakhir agar aturan
   media-query versi sebelumnya tidak menimpa layout mobile.
   =============================================================== */

/* Hero sekitar 89% viewport (termasuk header), semua konten terpusat. */
.hero {
    height: calc(95svh - var(--header-h));
    min-height: min(500px, calc(100svh - var(--header-h)));
    max-height: none;
}
.hero-content {
    display: flex; align-items: center; justify-content: center;
    padding: clamp(22px, 3vw, 44px) 0; min-height: 100%;
}
.hero-main {
    width: min(850px, 100%); max-width: 100%;
    align-items: center; justify-content: center; text-align: center;
    transform: none;
    gap: 0;
}
.hero .eyebrow-light {
    position: static; align-self: center; justify-self: center;
    max-width: 100%; margin: 0 0 clamp(18px, 3vw, 28px);
    font-size: clamp(8px, 1vw, 12px); white-space: normal;
}
.hero h1 {
    align-self: center; width: 100%; max-width: 100%;
    text-align: center; font-size: clamp(34px, 5.6vw, 78px);
    margin: 0 0 clamp(13px, 2vw, 22px); line-height: 1.12;
}
.hero-main > p {
    align-self: center; width: min(650px, 100%); max-width: 100%;
    text-align: center; font-size: clamp(14px, 1.7vw, 19px);
    line-height: 1.6; margin: 0;
}
/* Tombol Daftar SPMB Sekarang */
.hero-register {
    margin-top: clamp(21px, 3vw, 33px);
    background: #FFFFFF;
    color: #184690;
    border: 2px solid #FFFFFF;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-size: clamp(12px, 1vw, 15px);
    padding-inline: 25px;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

/* Saat kursor mengarah ke tombol */
.hero-register:hover {
    background: #184690;
    color: #FFFFFF;
    border-color: #FFFFFF;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* Saat dipilih menggunakan keyboard */
.hero-register:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 4px;
}

/* Saat tombol ditekan */
.hero-register:active {
    transform: scale(0.98);
}
@media (prefers-reduced-motion: no-preference) {
    .hero-main > .hero-register { animation: enter-hero .8s .38s ease-out backwards; }
}

/* Ikon di atas, label dan panah pada satu baris. */
.shortcut-link-label { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; }
.shortcut-card .shortcut-link-label strong { font-size: 12px; }
.shortcut-card .shortcut-link-label .card-arrow { margin: 0; flex-shrink: 0; transition: transform .2s; }
.shortcut-card:hover .card-arrow { transform: translateX(4px); }

/* Semua carousel yang dipakai pengguna dapat digeser dengan sentuhan / scroll. */
.slider-heading { display: flex; flex-direction: row; align-items: flex-end; justify-content: space-between; text-align: left; }
.slider-controls { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; }
.slider-arrow {
    width: 40px; height: 40px; padding: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: white; border: 1px solid var(--border); color: var(--brand);
    font-size: 28px; line-height: 1; font-weight: 500;
    transition: transform .2s, background-color .2s, box-shadow .2s;
}
.slider-arrow:hover { background: var(--brand); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.slider-arrow:active { transform: scale(.94); }
.feature-grid.horizontal-mobile-scroll, .news-grid.horizontal-mobile-scroll {
    display: flex; flex-wrap: nowrap; align-items: stretch; overflow-x: auto;
    gap: 18px; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    overscroll-behavior-inline: contain; padding: 4px 2px 20px;
    scrollbar-width: thin;
}
.feature-grid.horizontal-mobile-scroll > .advantage-card { flex: 0 0 calc((100% - 54px)/4); scroll-snap-align: start; min-width: 0; }
.news-grid.horizontal-mobile-scroll > .news-card { flex: 0 0 calc((100% - 36px)/3); scroll-snap-align: start; min-width: 0; }
.advantage-card .advantage-copy { min-height: 96px; }
.card-number, .graduate-card .mini-label { display: none !important; }
.graduate-card h3 { margin-top: 0; }

/* Menu hamburger: submenu bukan bagian dari pill induk; ada jarak dan pembatas. */
.mobile-menu-group { overflow: visible; background: white; border: none; }
.mobile-menu-group summary { border: 1px solid var(--border); border-radius: 12px; list-style: none; }
.mobile-menu-group summary::-webkit-details-marker { display: none; }
.mobile-menu-group[open] summary { border-radius: 12px; }
.mobile-submenus { margin: 8px 0 12px 14px; padding-left: 12px; border-left: 2px solid var(--border); display: grid; gap: 7px; }
.mobile-submenus > a { margin: 0; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: #fff; }
.mobile-submenus > a.is-active { border-color: var(--brand); background: var(--brand); color: white; }
.mobile-submenus > a:hover { background: var(--brand-soft); color: var(--brand); }
.mobile-submenus > a.is-active:hover { background: var(--brand-dark); color: white; }

/* CTA batik resmi sekolah: motif halus sebagai latar, teks di depan. */
.cta-panel { position: relative; isolation: isolate; overflow: hidden; background: var(--brand-dark); }
.cta-panel::before { content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(15,55,115,.75), rgba(12,49,109,.83)),
                url('../images/batik-cakrawala-global.jpg') center center / cover no-repeat;
    opacity: .82;
}
.cta-panel > * { position: relative; z-index: 1; }

/* Bagan organisasi tampil lebar dan bisa dibuka untuk zoom. */
.organization-preview { position: relative; width: 100%; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.organization-preview .organization-chart { width: 100%; height: auto; }
.organization-preview:hover .photo-hint { background: var(--brand); }

/* Seragam: tombol kecil, hanya tampilan full dengan kembali. */
.uniform-photo-button { padding: 4px 8px; font-size: 10px; bottom: 8px; right: 8px; }
.image-viewer[data-viewer-mode='uniform'] .viewer-zoom-control,
.image-viewer[data-viewer-mode='uniform'] .viewer-download,
.image-viewer[data-viewer-mode='uniform'] .viewer-gallery-arrow,
.image-viewer[data-viewer-mode='uniform'] .image-viewer-help { display: none; }
.image-viewer:not([data-viewer-mode='gallery']) .viewer-gallery-arrow { display: none; }
.image-viewer[data-viewer-mode='gallery'] .viewer-zoom-control { display: none; }
.image-viewer[data-viewer-mode='gallery'] .viewer-gallery-arrow { display: inline-flex; font-size: 26px; }
.image-viewer[data-viewer-mode='gallery'] .image-viewer-help { display: none; }
.image-viewer .viewer-close { white-space: nowrap; }
.image-viewer[data-viewer-mode='uniform'] .image-viewer-stage { background: #f4f7fc; }
.image-viewer[data-viewer-mode='uniform'] .image-viewer-stage img,
.image-viewer[data-viewer-mode='gallery'] .image-viewer-stage img { max-width: 100%; height: 100%; width: auto !important; object-fit: contain; }

/* KBM tanpa poster dan kedua pilihan rata tengah. */
.kbm-tabs { display: flex; width: max-content; max-width: 100%; margin: 0 auto 32px; }
.kbm-panel h2 { text-align: center; }
.kbm-tab:hover:not(.is-selected) { background: color-mix(in srgb, var(--brand) 12%, white); }

/* Tombol chevron pendukung akademik terlihat dapat diketuk, tanpa teks tambahan. */
.support-action { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 39px; height: 39px; border: 1px solid var(--brand); border-radius: 10px;
    font-size: 0; color: var(--brand); background: #fff; }
.support-action span { font-size: 24px; line-height: 1; transition: transform .2s; }
.support-toggle:hover .support-action { background: var(--brand); color: #fff; }
.support-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.support-strip-head > strong { font-size: 16px; }

/* Artikel seperti berita: foto kotak, editor rich text dapat menempatkan gambar pada setiap paragraf. */
.article-cover img, .article-inline-photo img, .article-body img { border-radius: 0 !important; }
.article-body img { width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.article-body p { white-space: normal; }
.article-body h2, .article-body h3 { margin-top: 1.5em; line-height: 1.35; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body figure { margin: 24px auto; text-align: center; }
.article-body a { color: var(--brand); text-decoration: underline; }
.article-bottom-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.article-share-button { width: 46px; padding: 0; }
.article-share-button .material-symbols-outlined { font-size: 21px; }

/* Galeri sebagai dokumentasi landscape, bukan news-card membulat. */
.gallery-masonry { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.gallery-tile { border-radius: 8px; border: 1px solid var(--border); }
.gallery-photo { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--section); text-align: left; overflow: hidden; }
.gallery-photo img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform .24s; }
.gallery-photo:hover img { transform: scale(1.035); }
.gallery-photo-label { font-size: 10px; padding: 6px 10px; }
.gallery-tile figcaption { padding: 15px 17px; }
.gallery-tile figcaption strong { font-size: 15px; }

/* Chatbot satu tombol gabungan (avatar+label), bukan dua bubble terpisah. */
.chat-fab { display: flex; align-items: center; justify-content: center; flex-direction: column;
    gap: 0; border-radius: 32px; padding: 5px 6px 3px; background: white;
    border: 1px solid var(--border); box-shadow: 0 7px 22px #061c3b2b;
    max-width: 115px; }
.chat-fab:hover { background: #f1f6ff; transform: translateY(-3px); }
.chat-fab-caption { border: 0; background: transparent; padding: 3px 4px 1px;
    border-radius: 0; font-size: 10px; line-height: 1.3; }
.chat-fab > .chat-avatar, .chat-fab > .chat-round-icon { box-shadow: none; }

/* Footer: identitas satu baris lebar, lalu informasi + kontak. */
.footer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 35px 58px; }
.footer-identity { grid-column: 1 / -1; }
.footer-identity p { max-width: 530px; }
.footer-contact-line { display: flex; align-items: flex-start; gap: 9px; overflow-wrap: anywhere; }
.footer-contact-line span { flex: 0 0 auto; }
.footer-contact a:not(.footer-phone):hover { text-decoration: underline; }
.footer-socials { margin-top: 13px; }
.footer-socials a:hover { transform: translateY(-3px); }

/* Hover konsisten untuk kontrol publik, tetap mempertahankan fokus keyboard. */
.preview-button:hover .photo-hint, .gallery-photo:hover .photo-hint { background: var(--brand); }
.viewer-control:hover { background: var(--brand); color: white; }
.button, .nav-pill, .menu-toggle, .nav-spmb, .kbm-tab, .support-toggle, .viewer-control { transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.menu-toggle:hover { background: var(--brand-soft); }

@media (max-width: 960px) {
    .feature-grid.horizontal-mobile-scroll > .advantage-card { flex-basis: 47%; }
    .news-grid.horizontal-mobile-scroll > .news-card { flex-basis: 47%; }
}
@media (max-width: 700px) {
    .hero { height: calc(95svh - var(--header-h)); min-height: min(490px, calc(100svh - var(--header-h))); }
    .hero-content { height: 100%; min-height: 100%; padding: 18px 0; justify-content: center; align-items: center; }
    .hero-main { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
    .hero .eyebrow-light { position: static; align-self: center; justify-self: center; font-size: clamp(7px, 2.1vw, 10px); padding: 6px 9px; margin-bottom: 23px; text-align: center; }
    .hero h1 { align-self: center; margin: 0 0 16px; font-size: clamp(32px, 9vw, 48px); line-height: 1.13; text-align: center; }
    .hero-main > p { align-self: center; max-width: 340px; font-size: clamp(12px,3.4vw,16px); text-align: center; line-height: 1.6; }
    .hero-register { margin-top: 23px; min-height: 44px; padding-inline: 17px; }
    .hero-overlay { background: linear-gradient(180deg, rgba(5,28,64,.58), rgba(5,28,64,.68)); }
    #informasi-sekolah { 
        margin-top: -12px; 
        padding-top: 24px;
        border-radius: 16px 16px 0 0; 
    }
    .shortcut-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .shortcut-card { min-height: 122px; padding: 14px 10px; }
    .shortcut-card .shortcut-link-label strong { font-size: 11px; }
    .slider-heading { gap: 10px; }
    .slider-heading h2 { font-size: clamp(23px, 6vw, 31px); }
    .slider-arrow { width: 36px; height: 36px; font-size: 24px; }
    .feature-grid.horizontal-mobile-scroll > .advantage-card { flex: 0 0 80%; }
    .news-grid.horizontal-mobile-scroll > .news-card { flex: 0 0 83%; }
    .gallery-masonry { grid-template-columns: 1fr; gap: 17px; }
    .gallery-photo img { aspect-ratio: 16/10; }
    .gallery-tile figcaption strong { font-size: 15px; }
    .kbm-tabs { max-width: 100%; margin: 0 auto 24px; }
    .kbm-tab { font-size: 11px; padding: 10px 8px; }
    .kbm-panel h2 { text-align: center; font-size: 21px; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 22px 15px; }
    .footer-identity { grid-column: 1 / -1; }
    .footer-contact-line { font-size: 12px; }
    .chat-fab { max-width: 100px; }
    .image-viewer[data-viewer-mode='gallery'] .image-viewer-header { padding: 10px; }
}
@media (max-width: 380px) {
    .slider-arrow { width: 32px; height: 32px; }
    .hero h1 { font-size: clamp(30px, 8.5vw, 37px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-register, .slider-arrow, .chat-fab { animation: none !important; transform: none !important; }
    .feature-grid.horizontal-mobile-scroll, .news-grid.horizontal-mobile-scroll { scroll-behavior: auto; }
}


/* FOOTER DESKTOP — Layout 3 kolom seperti V6 */
/* Tidak memengaruhi tampilan mobile */

@media screen and (min-width: 951px) {

    .site-footer .footer-grid {
        display: grid;
        grid-template-columns:
            minmax(0, 1.4fr)
            minmax(0, .8fr)
            minmax(0, 1fr);

        column-gap: clamp(30px, 4vw, 80px);
        row-gap: 0;
        align-items: start;
        padding-bottom: 38px;
    }

    /* Logo tidak lagi memenuhi satu baris */
    .site-footer .footer-identity {
        grid-column: auto;
        grid-row: auto;
    }

    /* Informasi dan Kontak sejajar */
    .site-footer .footer-links,
    .site-footer .footer-contact {
        grid-column: auto;
        grid-row: auto;
    }

    /* Deskripsi tetap rapi */
    .site-footer .footer-identity p {
        max-width: 420px;
    }

    /* Ukuran logo */
    .site-footer .footer-logo img {
        width: min(290px, 100%);
        height: auto;
        object-fit: contain;
    }
}


/* ========================================
   CHATBOT V7 — CAPSULE STYLE
   ======================================== */

/* Tombol melayang berbentuk kapsul */
.chat-widget #chat-open {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: auto;
    max-width: min(260px, calc(100vw - 26px));
    padding: 11px 17px;

    background: #184690;
    color: #FFFFFF;
    border: 1px solid #184690;
    border-radius: 999px;

    box-shadow: 0 8px 24px rgba(24, 70, 144, 0.25);

    font-family: 'Poppins', sans-serif;
    cursor: pointer;

    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

/* Hover tombol kapsul */
.chat-widget #chat-open:hover {
    background: #10346E;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(24, 70, 144, 0.32);
}

/* Tombol benar-benar hilang ketika chat terbuka */
.chat-widget #chat-open[hidden] {
    display: none !important;
}

/* Ikon chatbot */
.chat-widget #chat-open .chat-round-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 23px;
    height: 23px;
    padding: 0;

    background: transparent;
    color: #FFFFFF;
    border-radius: 50%;
    box-shadow: none;
    flex-shrink: 0;
}

.chat-widget #chat-open .chat-round-icon
.material-symbols-outlined {
    font-size: 23px;
}

/* Avatar jika menggunakan foto dari admin */
.chat-widget #chat-open .chat-avatar {
    width: 27px;
    height: 27px;
    padding: 0;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: none;
    flex-shrink: 0;
}

/* Teks menyatu dengan tombol */
.chat-widget #chat-open .chat-fab-caption {
    display: inline-block;
    background: transparent;
    color: #FFFFFF;
    border: none;
    border-radius: 0;

    padding: 0;
    margin: 0;

    max-width: 190px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pertanyaan cepat */
.chat-widget .chat-suggestions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.chat-widget .chat-suggestions[hidden] {
    display: none !important;
}

.chat-widget .chat-suggestions-title {
    margin: 0 0 3px;
    color: #52617A;
    font-size: 12px;
    font-weight: 600;
}

/* Chip pertanyaan */
.chat-widget .chat-suggestion {
    display: inline-block;
    max-width: 100%;
    padding: 9px 13px;

    border: 1px solid #CCD9EC;
    border-radius: 999px;

    background: #FFFFFF;
    color: #184690;

    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.chat-widget .chat-suggestion:hover {
    background: #EAF2FF;
    border-color: #184690;
    transform: translateY(-1px);
}

/* Navigasi keyboard */
.chat-widget button:focus-visible {
    outline: 3px solid #FFCE54;
    outline-offset: 3px;
}

/* Hover tombol tutup */
.chat-widget #chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile */
@media (max-width: 700px) {
    .chat-widget #chat-open {
        padding: 10px 14px;
        gap: 7px;
    }

    .chat-widget #chat-open .chat-fab-caption {
        font-size: 11px;
    }

    .chat-widget .chat-suggestion {
        font-size: 11px;
    }
}

/* Aksesibilitas: kurangi animasi */
@media (prefers-reduced-motion: reduce) {
    .chat-widget #chat-open,
    .chat-widget .chat-suggestion {
        transition: none;
        transform: none !important;
    }
}

/* Merapikan teks sapaan awal chatbot */
.chat-welcome {
    white-space: normal;
    text-align: left;
    line-height: 1.7;
    padding: 14px 16px;
    margin: 0;
}


/* HAMBURGER MENU — Berubah menjadi X */

/* Pembungkus ikon */
.menu-toggle-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 20px;
}

/* Tiga garis hamburger */
.menu-toggle-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 3px;

    transition:
        top 0.25s ease,
        transform 0.25s ease,
        opacity 0.2s ease;
}

/* Posisi masing-masing garis */
.menu-toggle-bar:nth-child(1) {
    top: 3px;
}

.menu-toggle-bar:nth-child(2) {
    top: 9px;
}

.menu-toggle-bar:nth-child(3) {
    top: 15px;
}

/* Saat menu terbuka: garis pertama miring */
.menu-toggle[aria-expanded="true"]
.menu-toggle-bar:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

/* Garis tengah menghilang */
.menu-toggle[aria-expanded="true"]
.menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

/* Garis terakhir miring berlawanan */
.menu-toggle[aria-expanded="true"]
.menu-toggle-bar:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* Tombol hamburger normal dan saat terbuka */
.menu-toggle,
.menu-toggle[aria-expanded="true"] {
    background: #FFFFFF;
    color: #184690;
    border: 1px solid #184690;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

/* Hover hamburger maupun silang */
.menu-toggle:hover,
.menu-toggle[aria-expanded="true"]:hover {
    background: #184690;
    color: #FFFFFF;
    border-color: #184690;
}

/* Fokus keyboard */
.menu-toggle:focus-visible {
    outline: 3px solid #184690;
    outline-offset: 3px;
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
    .menu-toggle-bar {
        transition: none;
    }
}

.button-white:hover{
    background-color: #184690;
    color: #ffffff;
    border-color: #184690;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.4s ease;
    
}

.button-outline:hover{
    background-color: #184690;
    color: #ffff;
    border-color: #184690;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.4s ease;
}

/* Pendukung Akademik - Hilangkan Double Border */

.support-field {
    border: 1px solid #D7E2F3;
    border-radius: 22px;
    overflow: hidden;
    background: #FFFFFF;
}

/* Tombol tidak memerlukan border kedua */
.support-field > .support-toggle {
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* Hover tetap halus */
.support-field:hover {
    border-color: #184690;
    box-shadow: 0 8px 22px rgba(24, 70, 144, 0.08);
}

/* Tetap jelas saat navigasi keyboard */
.support-field > .support-toggle:focus-visible {
    outline: 2px solid #184690;
    outline-offset: -3px;
}

/* =======================================
   APIP AI — TYPING INDICATOR
   ======================================= */

.chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    max-width: 95%;
    width: fit-content;

    padding: 12px 15px;
    background: #FFFFFF;
    border: 1px solid #D6E2F3;
    border-radius: 14px;

    white-space: normal;
}

/* Teks indikator */
.chat-typing-label {
    font-size: 11px;
    font-weight: 500;
    color: #184690;
}

/* Pembungkus tiga titik */
.chat-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Bentuk titik */
.chat-typing-dots i {
    width: 6px;
    height: 6px;

    display: block;
    border-radius: 50%;
    background: #184690;

    animation: apipTyping 1.2s infinite ease-in-out;
}

/* Animasi bergantian */
.chat-typing-dots i:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing-dots i:nth-child(3) {
    animation-delay: 0.4s;
}

/* Titik bergerak halus */
@keyframes apipTyping {
    0%, 60%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

/* Pengguna yang mengurangi animasi */
@media (prefers-reduced-motion: reduce) {
    .chat-typing-dots i {
        animation: none;
        opacity: 1;
    }
}


/* EMAIL - Mencegah teks keluar dari kotak */

.contact-card a[href^="mailto:"] {
    overflow-wrap: anywhere;
}

/* FOOTER DESKTOP SAJA */
/* Mobile tidak diubah */

@media (min-width: 951px) {

    .site-footer .footer-grid {
        grid-template-columns:
            minmax(0, 1.1fr)
            minmax(0, 0.65fr)
            minmax(0, 1.35fr) !important;

        gap: clamp(24px, 4vw, 64px);
        align-items: start;
    }

    .site-footer .footer-identity {
        grid-column: auto;
        grid-row: auto;
    }

    .site-footer .footer-contact {
        min-width: 0;
    }

    .site-footer .footer-contact-line a[href^="mailto:"] {
        min-width: 0;
        flex: 1 1 auto;
        overflow-wrap: anywhere;
        font-size: 12px;
        line-height: 1.7;
    }
}

.wa{
    color: var(--brand);
    border: 1.5px solid var(--brand);
    padding: 7px;
    border-radius: 15px;
}

.wa:hover{
    color: white;
    background-color: var(--brand);
}

/* HERO TITLE — FADE IN + SLIDE UP */

.hero-title-reveal {
    animation: heroTitleReveal 5s ease-out 2s both;
}

@keyframes heroTitleReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE — Fade saja agar lebih stabil */
@media (max-width: 768px) {
    .hero-title-reveal {
        animation-name: heroTitleMobile;
    }

    @keyframes heroTitleMobile {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
    .hero-title-reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Slideshow lebih stabil khusus mobile */
@media (max-width: 700px) {

    .hero-slide {
        animation: none !important;
        transform: scale(1.04);
        transition: opacity 1.5s ease-in-out;
        will-change: opacity;
        backface-visibility: hidden;
    }

    .hero-slide.is-active {
        animation: none !important;
        opacity: 1;
    }
}


/* Merapikan seluruh baris kontak footer */
.footer-contact .footer-contact-line {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 8px;
    align-items: start;
}

/* Semua ikon memiliki posisi dan lebar sama */
.footer-contact .footer-contact-line > span {
    display: block;
    width: 20px;
    text-align: center;
    line-height: inherit;
}

/* Teks tetap rapi dan responsif */
.footer-contact .footer-contact-line > a {
    min-width: 0;
    overflow-wrap: anywhere;
}


/* Tombol kontak khusus Apip AI */
.apip-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.apip-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 13px;
    border-radius: 10px;
    background: #184690;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.apip-contact-button:hover {
    background: #123570;
    color: #ffffff !important;
}

.apip-contact-button:focus-visible {
    outline: 2px solid #184690;
    outline-offset: 3px;
}


.apip-contact-button img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}


/* Menu Share cadangan */
.article-share-dialog {
    width: min(90vw, 380px);
    max-width: 380px;
    border: 1px solid #d7e2f1;
    border-radius: 18px;
    padding: 24px;
    background: #ffffff;
    color: #153568;
}

.article-share-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.article-share-options {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.article-share-options a,
.article-share-options button {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #184690;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font: inherit;
    cursor: pointer;
}

#article-share-close {
    background: transparent;
    color: #184690;
    border: none;
    cursor: pointer;
}




/* Tombol WhatsApp chatbot - minimalis */
.apip-contact-links {
    margin-top: 7px;
}

.apip-contact-button {
    padding: 3px 6px !important;
    gap: 4px;
    border-radius: 6px;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
}

.apip-contact-button img {
    width: 12px !important;
    height: 12px !important;
}



/* === Bilingual language control: simple, accessible, desktop & hamburger === */
.language-switch {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 4px 8px; border: 1px solid #cbd7e7; border-radius: 999px;
    background: #fff; color: var(--brand, #184690); white-space: nowrap;
    min-height: 40px;
}
.language-switch__icon { font-size: 19px; line-height: 1; margin-right: 2px; }
.language-switch__option {
    appearance: none; border: 0; background: transparent; color: #63728a;
    padding: 5px 7px; border-radius: 999px; cursor: pointer;
    font: 700 12px/1.2 Poppins, sans-serif;
}
.language-switch__option.is-selected { color: #fff; background: var(--brand, #184690); }
.language-switch__option:focus-visible { outline: 2px solid #184690; outline-offset: 2px; }
.language-switch__separator { color: #a0aabe; font-size: 13px; }
.language-switch--mobile { display: none; }
@media (max-width: 1220px) {
    .language-switch--desktop { display: none; }
    .language-switch--mobile {
        display: inline-flex; justify-self: start; margin-bottom: 12px;
        border-color: #a7c0e2; min-height: 44px;
    }
}

/* HERO: Khusus mobile Bahasa Indonesia */
@media screen and (max-width: 700px) {
    html[lang="id"] .hero-main > p {
        max-width: min(300px, 100%);
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

/* SDUMSGC Teacher Profile: additive CSS, does not replace bilingual/mobile styles. */
.teacher-card-link { display:block; height:100%; text-decoration:none; color:inherit; }
.teacher-card-link:hover { color:inherit; }
.teacher-card-link:focus-visible { outline:3px solid var(--brand); outline-offset:-3px; border-radius:18px; }
.teacher-photo-fallback { width:100%; height:100%; display:grid; place-items:center; background:var(--brand); color:#fff; }
.teacher-photo-fallback .material-symbols-outlined { font-size:64px; }
.teacher-profile-hero h1 { text-align:center; }
.teacher-profile-container { max-width:1050px; }
.teacher-profile-overview { display:grid; grid-template-columns:minmax(200px,340px) minmax(0,1fr); gap:clamp(24px,5vw,62px); align-items:center; }
.teacher-profile-portrait { width:100%; aspect-ratio:3 / 4; overflow:hidden; background:var(--brand); border-radius:20px; display:grid; place-items:center; color:#fff; }
.teacher-profile-portrait img { width:100%; height:100%; object-fit:cover; display:block; }
.teacher-profile-portrait > .material-symbols-outlined { font-size:90px; opacity:.9; }
.teacher-profile-identity { min-width:0; }
.teacher-profile-eyebrow { color:var(--brand); letter-spacing:.09em; font-size:12px; font-weight:700; margin:0 0 13px; }
.teacher-profile-identity h2 { font-size:clamp(24px,3vw,39px); line-height:1.27; letter-spacing:-.03em; margin:0 0 16px; overflow-wrap:break-word; }
.teacher-profile-position { display:inline-flex; background:var(--brand-soft); color:var(--brand); padding:10px 16px; border-radius:12px; font-size:14px; font-weight:700; margin:0 0 20px; }
.teacher-profile-bio { color:var(--muted); font-size:15px; line-height:1.9; white-space:pre-line; margin:0; }
.teacher-profile-section { margin-top:clamp(36px,6vw,66px); }
.teacher-profile-section h2 { font-size:clamp(20px,2.6vw,27px); line-height:1.3; margin:0 0 28px; padding-bottom:14px; border-bottom:1px solid var(--border); }
.teacher-profile-timeline { list-style:none; border-left:2px solid #cbd7ea; margin:0 0 0 19px; padding:0 0 0 37px; display:grid; gap:20px; }
.teacher-profile-timeline-item { position:relative; min-width:0; }
.teacher-profile-timeline-item::before { content:""; position:absolute; width:17px; height:17px; top:25px; left:-47px; border-radius:50%; background:#fff; border:3px solid var(--brand); box-sizing:border-box; }
.teacher-profile-timeline-item:first-child::before { background:var(--brand); box-shadow:0 0 0 5px var(--brand-soft); }
.teacher-profile-timeline-card { padding:22px 25px; background:var(--section); border:1px solid var(--border); border-radius:13px; }
.teacher-profile-timeline-card h3 { font-size:clamp(15px,1.7vw,18px); line-height:1.5; font-weight:700; margin:0 0 8px; overflow-wrap:break-word; }
.teacher-profile-timeline-institution { font-size:14px; color:var(--ink); font-weight:500; line-height:1.65; margin:0; }
.teacher-profile-timeline-meta { font-size:12px; color:var(--muted); margin:8px 0 0; }
.teacher-profile-timeline-description { font-size:14px; color:var(--muted); white-space:pre-line; margin:10px 0 0; line-height:1.75; }
.teacher-profile-back { display:inline-flex; align-items:center; gap:9px; margin-top:35px; }
.teacher-profile-back .material-symbols-outlined { font-size:19px; }
@media (max-width:700px) {
  .teacher-profile-overview { grid-template-columns:1fr; gap:24px; }
  .teacher-profile-portrait { width:min(100%,320px); margin-inline:auto; }
  .teacher-profile-identity { text-align:center; }
  .teacher-profile-identity h2 { margin-bottom:14px; }
  .teacher-profile-position { margin-bottom:15px; }
  .teacher-profile-bio { text-align:left; }
  .teacher-profile-timeline { margin-left:9px; padding-left:28px; gap:14px; }
  .teacher-profile-timeline-item::before { left:-38px; top:22px; width:16px; height:16px; }
  .teacher-profile-timeline-card { padding:17px 16px; }
  .teacher-profile-section h2 { margin-bottom:22px; }
}
