/* Homepage only. Shared header/footer/tokens live in school-theme.css. */

body.modal-open { overflow: hidden; }

/* Hero */
.school-home-hero {
    position: relative;
    height: min(76vh, 700px);
    min-height: 560px;
    margin-top: var(--school-header-height);
    overflow: hidden;
    background: #0a3558;
}
.hero-slider-container,
.hero-slide { position: absolute; inset: 0; }
.hero-slider-container { overflow: hidden; }
.hero-slide {
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 1s ease, transform 1.4s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 34, 59, .91) 0%, rgba(6, 34, 59, .71) 40%, rgba(6, 34, 59, .27) 74%, rgba(6, 34, 59, .12) 100%),
        linear-gradient(0deg, rgba(4, 28, 49, .26), transparent 48%);
}
.school-hero-content {
    position: relative;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    padding-bottom: 42px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #fff;
}
.school-hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 15px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    backdrop-filter: none;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.school-hero-content h1 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .99;
    font-weight: 850;
    letter-spacing: -.055em;
    text-wrap: balance;
}
.school-hero-motto {
    margin: 19px 0 6px;
    color: #ffd276;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 800;
}
.school-hero-description {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 15px;
    line-height: 1.75;
}
.school-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.school-primary-button,
.school-secondary-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.school-primary-button { background: var(--school-accent); color: #172033; }
.school-primary-button:hover { background: #ffb83b; transform: translateY(-1px); }
.school-secondary-button { color: #fff; border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.1); }
.school-secondary-button:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.58); }
.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 99px;
    background: rgba(255,255,255,.48);
    transition: width .2s ease, background .2s ease;
}
.hero-dot.active { width: 26px; background: #fff; }

/* Quick access */
.quick-access-wrap {
    position: relative;
    z-index: 8;
    width: min(1180px, calc(100% - 32px));
    margin: -36px auto 0;
}
.quick-access-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 8px;
    overflow: hidden;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(214,225,236,.9);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(23,42,68,.14);
}
.quick-access-item {
    position: relative;
    min-width: 0;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 8px;
    border-radius: 15px;
    color: #445166;
    text-align: center;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.quick-access-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20%;
    right: -1px;
    width: 1px;
    height: 60%;
    background: linear-gradient(180deg, transparent, #dbe5ee 18%, #dbe5ee 82%, transparent);
}
.quick-access-item span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #eef7fc, #e5f1f8);
    color: var(--school-primary);
    font-size: 18px;
    box-shadow: inset 0 0 0 1px rgba(19,112,169,.05);
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.quick-access-item strong { font-size: 11.5px; line-height: 1.25; font-weight: 760; }
.quick-access-item:hover {
    background: #f7fbfe;
    color: var(--school-primary-dark);
    transform: translateY(-1px);
}
.quick-access-item:hover span {
    background: var(--school-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(14,107,164,.18);
}
.quick-access-item:focus-visible,
.highlight-card:focus-visible {
    outline: 3px solid rgba(22,120,182,.22);
    outline-offset: 3px;
}

/* Main homepage layout. min-width:0 is deliberate: horizontal galleries must never widen the page. */
.school-home-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 68px 0 86px;
    display: flex;
    flex-direction: column;
    gap: 58px;
}
.school-home-container > *,
.school-section,
.school-intro { width: 100%; min-width: 0; scroll-margin-top: 104px; }
.school-section-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.school-section-heading > div { min-width: 0; max-width: 760px; }
.section-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--school-primary);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.school-section-heading h2 {
    margin: 0;
    color: var(--school-ink);
    font-size: clamp(28px, 3.15vw, 42px);
    line-height: 1.08;
    font-weight: 820;
    text-wrap: balance;
}
.school-text-link {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--school-primary);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 800;
}
.school-text-link i { font-size: 10px; transition: transform .18s ease; }
.school-text-link:hover i { transform: translateX(3px); }

/* About */
.school-intro-card {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
    overflow: hidden;
    border: 1px solid var(--school-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--school-shadow);
}
.school-intro-main { padding: 34px; min-width: 0; }
.school-intro-main > p {
    max-width: 700px;
    margin: 0 0 24px;
    color: var(--school-text);
    font-size: 15px;
    line-height: 1.78;
}
.school-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}
.school-value {
    min-width: 0;
    min-height: 116px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 16px;
    border: 1px solid #e9eef4;
    border-radius: 14px;
    background: #f8fafc;
}
.school-value > i {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--school-accent-soft);
    color: #b56b08;
}
.school-value span { min-width: 0; display: grid; gap: 4px; }
.school-value strong { color: var(--school-ink); font-size: 13px; }
.school-value small { color: var(--school-muted); font-size: 11px; line-height: 1.5; }
.school-intro-visual {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    background: #0c4d80;
}
.school-intro-visual img { width: 100%; height: 100%; object-fit: cover; }
.school-intro-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5,31,54,.82), rgba(5,31,54,.06) 68%);
}
.school-intro-visual-copy {
    position: absolute;
    z-index: 2;
    inset: auto 24px 24px;
    color: #fff;
}
.school-intro-visual-copy strong {
    display: block;
    max-width: 360px;
    color: #fff;
    font-size: 22px;
    line-height: 1.16;
    letter-spacing: -.025em;
}
.school-intro-visual-copy span {
    display: block;
    margin-top: 7px;
    color: rgba(255,255,255,.8);
    font-size: 12px;
}
.school-intro-footer {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--school-line);
    background: #fbfcfe;
}
.school-intro-footer p { margin: 0; color: var(--school-muted); font-size: 12px; font-weight: 700; }
.school-social-links { display: flex; flex-wrap: wrap; gap: 7px; }
.social-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #dfe8f0;
    border-radius: 10px;
    background: #fff;
    color: var(--school-primary);
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.social-icon:hover { background: var(--school-primary); color: #fff; transform: translateY(-1px); }

/* Highlights: preview selalu teks. Media/embed hanya muncul saat detail dibuka. */
#highlights-container {
    min-width: 0;
    align-items: stretch;
    gap: 18px;
}
.highlight-card {
    --highlight-accent: #1678b6;
    --highlight-soft: #eef8ff;
    --highlight-line: #cfe8f7;
    --highlight-ink: #0b5f93;
    position: relative;
    min-width: 0;
    min-height: 188px;
    padding: 21px 22px 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--highlight-line);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff 0%, #fff 58%, var(--highlight-soft) 145%);
    box-shadow: 0 12px 30px rgba(23,42,68,.07);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.highlight-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--highlight-accent);
}
.highlight-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -48px;
    bottom: -58px;
    border-radius: 50%;
    background: var(--highlight-soft);
    pointer-events: none;
}
.highlight-card--announcement {
    --highlight-accent: #d89517;
    --highlight-soft: #fff8e9;
    --highlight-line: #f3dfb0;
    --highlight-ink: #9c6506;
}
.highlight-card--warning {
    --highlight-accent: #d84a4a;
    --highlight-soft: #fff0f0;
    --highlight-line: #f3caca;
    --highlight-ink: #ac2f2f;
}
.highlight-card--event {
    --highlight-accent: #1678b6;
    --highlight-soft: #eef8ff;
    --highlight-line: #cfe8f7;
    --highlight-ink: #0b5f93;
}
.highlight-card--info {
    --highlight-accent: #188a7b;
    --highlight-soft: #ecfaf7;
    --highlight-line: #c8ebe4;
    --highlight-ink: #106d61;
}
.highlight-card--news {
    --highlight-accent: #6e63b6;
    --highlight-soft: #f3f1ff;
    --highlight-line: #ddd8f5;
    --highlight-ink: #5549a0;
}
.highlight-card-topline {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}
.highlight-type {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid var(--highlight-line);
    border-radius: 999px;
    background: var(--highlight-soft);
    color: var(--highlight-ink);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.highlight-type i { font-size: 11px; }
.highlight-arrow {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #fff;
    color: var(--highlight-ink);
    border: 1px solid var(--highlight-line);
    font-size: 10px;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}
.highlight-card h3 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--school-ink);
    font-size: 17px;
    line-height: 1.34;
    font-weight: 840;
    letter-spacing: -.015em;
    text-wrap: balance;
}
.highlight-card p {
    position: relative;
    z-index: 2;
    margin: 9px 0 0;
    color: var(--school-text);
    font-size: 12.5px;
    line-height: 1.68;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
@media (hover:hover) and (pointer:fine) {
    .highlight-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 38px rgba(23,42,68,.11);
    }
    .highlight-card:hover .highlight-arrow {
        transform: translate(1px,-1px);
        background: var(--highlight-accent);
        color: #fff;
    }
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 16px;
    min-width: 0;
}
.article-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--school-line);
    border-radius: 17px;
    box-shadow: 0 10px 28px rgba(23,42,68,.07);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (hover:hover) and (pointer:fine) {
    .article-card:hover { transform: translateY(-3px); border-color: #cddde9; box-shadow: var(--school-shadow-hover); }
}
.article-card .article-img-wrapper { overflow: hidden; background: #e9eef4; }
.article-card .article-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-img-wrapper img { transform: scale(1.035); }
.article-featured { grid-row: span 2; }
.article-featured .article-img-wrapper { height: 100%; min-height: 390px; position: relative; }
.article-featured .article-image-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(6,24,41,.9), rgba(6,24,41,.06) 66%);
}
.article-featured .article-copy {
    position: absolute;
    z-index: 2;
    inset: auto 24px 22px;
    color: #fff;
}
.article-featured .article-copy small { color: rgba(255,255,255,.72); }
.article-featured .article-copy h3 { color: #fff; font-size: clamp(21px, 2.4vw, 30px); line-height: 1.18; }
.article-compact {
    display: grid;
    grid-template-columns: 155px minmax(0,1fr);
    min-height: 180px;
}
.article-compact .article-img-wrapper { min-height: 100%; }
.article-compact .article-copy { min-width: 0; padding: 19px; display: flex; flex-direction: column; justify-content: center; }
.article-copy small {
    display: block;
    margin-bottom: 7px;
    color: var(--school-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.article-copy h3 {
    margin: 0;
    color: var(--school-ink);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    text-wrap: balance;
}
.article-copy p {
    margin: 8px 0 0;
    color: var(--school-muted);
    font-size: 12px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card .read-more-indicator {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255,255,255,.94);
    color: var(--school-primary);
    opacity: 0;
    transform: translateX(4px);
    transition: opacity .18s ease, transform .18s ease;
}
.article-card:hover .read-more-indicator { opacity: 1; transform: none; }

/* Activity marquee */
.marquee-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--school-line);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(23,42,68,.055);
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #bed0dd transparent;
}
.marquee-container::-webkit-scrollbar { height: 6px; }
.marquee-container::-webkit-scrollbar-thumb { background: #bed0dd; border-radius: 999px; }
.marquee-track { display: flex; gap: 10px; width: max-content; max-width: none; transform: none !important; transition: none !important; will-change: auto; }
.marquee-item {
    width: clamp(210px, 22vw, 290px);
    height: 190px;
    flex: none;
    object-fit: cover;
    border-radius: 12px;
    background: #eef2f6;
    transition: none;
    scroll-snap-align: start;
}
.marquee-item:hover { filter: none; transform: none; }

/* Albums */
.school-gallery-shell { position: relative; min-width: 0; }
#album-container { min-width: 0; max-width: 100%; }
.album-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #e8eef4;
    border: 1px solid var(--school-line);
    box-shadow: var(--school-shadow);
    cursor: pointer;
}
.album-slideshow-container { position: absolute; inset: 0; }
.album-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.album-slide.active { opacity: 1; }
.album-overlay {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 26px 18px 17px;
    background: linear-gradient(transparent, rgba(5,22,37,.86));
    color: #fff;
}
.album-title { margin: 0 0 3px; color: #fff; font-size: 16px; font-weight: 800; }
.gallery-scroll {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--school-line);
    border-radius: 50%;
    background: #fff;
    color: var(--school-primary);
    box-shadow: 0 9px 22px rgba(23,42,68,.13);
    transform: translateY(-50%);
}
.gallery-scroll-left { left: -14px; }
.gallery-scroll-right { right: -14px; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Video gallery */
.video-gallery-grid {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.video-gallery-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--school-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23,42,68,.07);
}
.video-gallery-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #071a29;
}
.video-gallery-frame iframe,
.video-lite {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.video-lite { padding: 0; overflow: hidden; cursor: pointer; background: #0c1b2a; }
.video-lite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-lite::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,18,30,.24), rgba(4,18,30,.04)); }
.video-lite-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; transform: translate(-50%,-50%); background: rgba(255,255,255,.94); color: #0b6098; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.video-lite-play i { margin-left: 3px; }
.video-gallery-copy {
    min-width: 0;
    padding: 15px 17px 17px;
}
.video-gallery-copy span {
    display: block;
    margin-bottom: 5px;
    color: var(--school-primary);
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.video-gallery-copy h3 {
    margin: 0;
    color: var(--school-ink);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

/* Detail */
#article-detail-page { padding-top: calc(var(--school-header-height) + 42px) !important; }
#article-detail-page .section-card { border-radius: 18px; }
#detail-content iframe[src*="youtube.com"],
#detail-content iframe[src*="youtube-nocookie.com"],
#detail-content iframe[src*="youtu.be"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 24px 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
}

/* Modal system */
.modal-overlay {
    opacity: 0;
    background: rgba(8, 25, 42, .48);
    backdrop-filter: none;
    transition: opacity .2s ease;
}
.modal-overlay.active { opacity: 1; }
.modal-content {
    position: relative;
    width: min(100%, 720px);
    max-height: min(90vh, 760px);
    overflow: auto;
    border: 1px solid rgba(230,235,241,.9);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(8,25,42,.23);
    transform: translateY(10px) scale(.985);
    transition: transform .2s ease;
}
.modal-transition.active .modal-content { transform: none; }
.modal-close-button {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--school-line);
    border-radius: 50%;
    background: #fff;
    color: #657287;
    font-size: 21px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.modal-close-button:hover { color: #bd3c3c; background: #fff3f3; transform: rotate(4deg); }
.creative-input,
.creative-select {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #d8e0e8;
    border-radius: 11px;
    background: #fff;
    color: var(--school-ink);
}
.creative-input:focus,
.creative-select:focus { outline: 0; border-color: #8bb9da; box-shadow: 0 0 0 4px rgba(15,95,159,.09); }
.auth-tab {
    flex: 1;
    padding: 12px 10px;
    text-align: center;
    color: var(--school-muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.auth-tab.active { color: var(--school-primary); border-color: var(--school-primary); }

.viewer-nav-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--school-primary-dark);
    box-shadow: 0 10px 25px rgba(0,0,0,.16);
    transform: translateY(-50%);
}
.all-articles-card {
    overflow: hidden;
    border: 1px solid var(--school-line);
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(23,42,68,.07);
}
.all-articles-card img { transition: transform .35s ease; }
.all-articles-card:hover img { transform: scale(1.035); }
.page-enter, .page-exit { animation: none; transform: none; }

@media (max-width: 1000px) {
    .school-intro-card { grid-template-columns: 1fr; }
    .school-intro-visual { min-height: 310px; }
    .news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .article-featured { grid-column: 1 / -1; grid-row: auto; }
    .article-featured .article-img-wrapper { min-height: 340px; }
    .article-compact { grid-template-columns: 1fr; }
    .article-compact .article-img-wrapper { height: 180px; }
}

@media (max-width: 900px) {
    .quick-access-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .quick-access-item:nth-child(3)::after { display: none; }
    .quick-access-item:nth-child(4)::before,
    .quick-access-item:nth-child(5)::before,
    .quick-access-item:nth-child(6)::before {
        content: "";
        position: absolute;
        top: 0;
        left: 14%;
        width: 72%;
        height: 1px;
        background: linear-gradient(90deg, transparent, #dbe5ee 18%, #dbe5ee 82%, transparent);
    }
    .quick-access-item:nth-child(6)::after { display: none; }
    .video-gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .video-gallery-card:last-child { grid-column: 1 / -1; width: min(100%, calc(50% - 8px)); justify-self: center; }
}

@media (max-width: 767px) {
    .school-home-hero { min-height: 500px; height: 68vh; }
    .school-hero-content { width: calc(100% - 28px); padding-bottom: 46px; }
    .school-hero-content h1 { max-width: 96%; font-size: clamp(38px, 11.7vw, 56px); }
    .school-hero-description { max-width: 96%; font-size: 13px; line-height: 1.65; }
    .school-hero-actions { margin-top: 21px; }
    .school-primary-button,
    .school-secondary-button { min-height: 44px; font-size: 12px; }

    .quick-access-wrap { width: calc(100% - 24px); margin-top: -28px; }
    .quick-access-grid { grid-template-columns: repeat(3, minmax(0,1fr)); padding: 6px; border-radius: 18px; }
    .quick-access-item { min-height: 88px; padding: 10px 4px; gap: 7px; border-radius: 12px; }
    .quick-access-item span { width: 36px; height: 36px; font-size: 15px; border-radius: 11px; }
    .quick-access-item strong { font-size: 9.5px; }
    .highlight-card { min-height: 166px; padding: 18px 18px 19px; border-radius: 16px; }
    .highlight-card-topline { margin-bottom: 13px; }
    .highlight-card h3 { font-size: 15.5px; }
    .highlight-card p { font-size: 12px; -webkit-line-clamp: 2; }
    .video-gallery-grid { grid-template-columns: 1fr; gap: 13px; }
    .video-gallery-card:last-child { grid-column: auto; width: 100%; }
    .video-gallery-copy { padding: 13px 15px 15px; }

    .school-home-container { width: calc(100% - 24px); padding: 50px 0 64px; gap: 46px; }
    .school-section-heading { margin-bottom: 18px; align-items: flex-start; flex-direction: column; gap: 10px; }
    .school-section-heading h2 { font-size: clamp(27px, 8vw, 36px); }
    .school-intro-main { padding: 21px; }
    .school-values { grid-template-columns: 1fr; }
    .school-value { min-height: auto; }
    .school-intro-visual { min-height: 260px; }
    .school-intro-visual-copy { inset: auto 18px 18px; }
    .school-intro-footer { padding: 14px 17px; align-items: flex-start; flex-direction: column; }

    .news-grid { grid-template-columns: 1fr; gap: 13px; }
    .article-featured { grid-column: auto; }
    .article-featured .article-img-wrapper { min-height: 300px; }
    .article-featured .article-copy { inset: auto 18px 17px; }
    .article-compact { grid-template-columns: 118px minmax(0,1fr); min-height: 138px; }
    .article-compact .article-img-wrapper { height: auto; min-height: 138px; }
    .article-compact .article-copy { padding: 15px; }
    .article-copy p { display: none; }

    .marquee-item { width: 230px; height: 168px; }
    .gallery-scroll { width: 38px; height: 38px; }
    .gallery-scroll-left { left: -6px; }
    .gallery-scroll-right { right: -6px; }
    #article-detail-page { width: calc(100% - 24px) !important; padding-left: 0 !important; padding-right: 0 !important; }
    .modal-content { max-height: calc(100dvh - 24px); border-radius: 16px; }
}

@media (max-width: 480px) {
    .quick-access-grid { padding: 5px; }
    .quick-access-item { min-height: 84px; }
    .article-compact { grid-template-columns: 104px minmax(0,1fr); }
    .article-copy h3 { font-size: 14px; }
}

/* Agenda & Kalender Pendidikan - compact launcher + popup */
.agenda-launch-section{padding-top:4px;padding-bottom:4px}
.agenda-launch-card{width:100%;min-height:116px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:20px 22px;border:1px solid #dce7ef;border-radius:22px;background:linear-gradient(135deg,#fff 0%,#f5f9fc 62%,#edf6fb 100%);box-shadow:0 14px 34px rgba(22,55,82,.07);text-align:left;cursor:pointer;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.agenda-launch-card:hover{transform:translateY(-2px);border-color:#b9d5e6;box-shadow:0 18px 42px rgba(22,55,82,.11)}
.agenda-launch-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(145deg,#0f73ad,#0a5688);color:#fff;font-size:23px;box-shadow:0 12px 24px rgba(15,95,159,.2)}
.agenda-launch-copy{min-width:0;display:grid;gap:3px}.agenda-launch-eyebrow{color:var(--school-primary);font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.agenda-launch-copy strong{color:var(--school-ink);font-size:20px;line-height:1.2;font-weight:900}.agenda-launch-copy small{max-width:690px;color:#718095;font-size:11px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agenda-launch-action{display:inline-flex;align-items:center;gap:10px;min-height:42px;padding:0 15px;border-radius:13px;background:#fff;border:1px solid #d8e6ef;color:#0b6098;font-size:11px;font-weight:850;white-space:nowrap}.agenda-launch-action i{font-size:10px;transition:transform .2s ease}.agenda-launch-card:hover .agenda-launch-action i{transform:translateX(3px)}

.agenda-calendar-modal{width:min(100%,980px)!important;height:min(760px,calc(100dvh - 32px))!important;max-height:none!important;padding:0!important;overflow:hidden!important;border-radius:24px!important;display:grid!important;grid-template-rows:auto auto auto minmax(0,1fr)}
.agenda-modal-header{display:flex;align-items:flex-start;gap:15px;padding:20px 68px 15px 22px;border-bottom:1px solid #e7edf2;background:linear-gradient(135deg,#f8fbfd,#eef6fb)}
.agenda-modal-header-icon{width:46px;height:46px;display:grid;place-items:center;flex:none;border-radius:14px;background:#0c659e;color:#fff;font-size:18px;box-shadow:none}
.agenda-modal-header>div{min-width:0;display:grid;gap:2px}.agenda-modal-eyebrow{color:var(--school-primary);font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.agenda-modal-header h2{margin:0;color:#102f4c;font-size:23px;line-height:1.18;font-weight:900}.agenda-modal-header p{margin:2px 0 0;color:#718095;font-size:10.5px;line-height:1.45}
.agenda-modal-legend{display:flex;flex-wrap:nowrap;gap:7px;padding:9px 20px;border-bottom:1px solid #edf1f4;background:#fff;color:#65758a;font-size:8.5px;font-weight:800;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}.agenda-modal-legend::-webkit-scrollbar{display:none}.agenda-modal-legend span{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;background:#f8fbfd;border:1px solid #edf2f6;white-space:nowrap}.legend-dot{width:8px;height:8px;border-radius:50%;flex:none}.legend-dot.agenda{background:#2d8bc4}.legend-dot.academic{background:#e5a21c}.legend-dot.religious-observance{background:#1c9a8a}.legend-dot.national-observance{background:#2f9b72}.legend-dot.holiday{background:#dc655d}.legend-dot.collective-leave{background:#8b67c7}
.agenda-government-note{display:flex;align-items:flex-start;gap:8px;padding:8px 20px;border-bottom:1px solid #edf1f4;background:#f8fbfd;color:#64778b;font-size:8px;line-height:1.4}.agenda-government-note>i{margin-top:2px;color:#0d6fae}.agenda-government-note strong{color:#334b62}
.agenda-modal-layout{min-height:0;display:grid;grid-template-columns:minmax(0,1.06fr) minmax(300px,.94fr);gap:0;overflow:hidden}
.agenda-calendar-card,.agenda-event-card{min-width:0;min-height:0;padding:18px 20px;background:#fff}.agenda-event-card{display:flex;flex-direction:column;border-left:1px solid #e8edf2;background:#fbfcfd;overflow:hidden}
.agenda-calendar-toolbar{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:10px;margin-bottom:11px}.agenda-month-button{width:36px;height:36px;display:grid;place-items:center;border:1px solid #dce5ec;border-radius:11px;background:#fff;color:#5f7185;cursor:pointer;transition:background .12s ease,border-color .12s ease}.agenda-month-button:hover{border-color:#a9cbe0;background:#eef6fb;color:#0b6098}.agenda-month-copy{text-align:center;display:grid;gap:1px}.agenda-month-copy span{font-size:8px;color:#8795a4;font-weight:850;text-transform:uppercase;letter-spacing:.09em}.agenda-month-copy strong{color:#183a57;font-size:15px;font-weight:900;text-transform:capitalize}
.agenda-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-weekday{padding:4px 0 6px;text-align:center;color:#8794a3;font-size:8px;font-weight:900;text-transform:uppercase}.calendar-day{position:relative;overflow:hidden;min-width:0;aspect-ratio:1/1;min-height:38px;display:grid;place-items:center;border:1px solid transparent;border-radius:10px;background:#f7f9fb;color:#45586b;font-size:10px;font-weight:800;cursor:default;transition:background .1s ease,border-color .1s ease}.calendar-day[data-date-str]{cursor:pointer}.calendar-day[data-date-str]:hover{border-color:#bdd6e5;background:#eff6fa}.calendar-day.has-event{background:#eaf4fb;color:#0b6098;font-weight:900}.calendar-day.academic{background:#fff3d8;color:#976605;font-weight:900}.calendar-day.holiday{background:#fff0ef;color:#b5453f;font-weight:900}.calendar-day.today{box-shadow:inset 0 0 0 2px var(--school-primary);color:var(--school-primary-dark)}.calendar-day.sunday{color:#c34d4d}.calendar-day.source-school::before,.calendar-day.source-national::after{content:"";position:absolute;left:7px;right:7px;height:3px;border-radius:999px;opacity:.98}.calendar-day.source-school::before{top:4px;background:#0b6098}.calendar-day.source-national::after{bottom:4px;background:#2f9b72}.calendar-day.source-mixed::before,.calendar-day.source-mixed::after{height:3.5px}
.agenda-event-head{display:flex;align-items:center;gap:9px;margin-bottom:10px;flex:none}.agenda-event-head-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#eaf4fb;color:#0b6098;flex:none}.agenda-event-head>div{min-width:0;display:grid;gap:1px}.agenda-event-head span:not(.agenda-event-head-icon){color:#7a8a9b;font-size:8px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.agenda-event-head h3{margin:0;color:#263f56;font-size:14px;line-height:1.2;font-weight:900}.agenda-event-list{flex:1;min-height:0;display:grid;align-content:start;gap:8px;overflow-y:auto;overflow-x:hidden;padding:0 5px 4px 0;scrollbar-width:thin;scrollbar-color:#b9cbd8 transparent;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.agenda-event-list::-webkit-scrollbar{width:6px}.agenda-event-list::-webkit-scrollbar-thumb{background:#b9cbd8;border-radius:999px}.calendar-event-row{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;padding:10px;border:1px solid #e5ebf0;border-radius:12px;background:#fff;transition:border-color .1s ease}.calendar-event-row::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:4px;border-radius:0 999px 999px 0;background:#d9e6ef}.calendar-event-row.source-school::before{background:#0b6098}.calendar-event-row.source-national::before{background:#2f9b72}.calendar-event-icon{width:36px;height:36px;border-radius:10px;background:#eaf4fb;color:#0b6098;display:grid;place-items:center}.calendar-event-row>div{display:grid;gap:3px;min-width:0}.calendar-event-topline{display:flex;flex-wrap:wrap;align-items:center;gap:5px 7px}.calendar-source-badge{display:inline-flex;align-items:center;justify-content:center;min-height:19px;padding:0 7px;border-radius:999px;font-size:7.3px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;border:1px solid transparent}.calendar-source-badge.school{background:#eaf4fb;color:#0b6098;border-color:#d2e7f5}.calendar-source-badge.national{background:#eaf8f2;color:#25755b;border-color:#d4eee4}.calendar-event-row small{font-size:7.8px;line-height:1.35;color:#77879a}.calendar-event-row strong{font-size:10.5px;line-height:1.35;color:#31475e}.calendar-event-row p{margin:1px 0 0;font-size:8.8px;line-height:1.4;color:#748397}.calendar-event-row.academic .calendar-event-icon{background:#fff3d8;color:#976605}.calendar-event-row.holiday .calendar-event-icon,.calendar-event-row.government-holiday .calendar-event-icon{background:#fff0ef;color:#b5453f}.calendar-event-row.collective-leave .calendar-event-icon{background:#f3effb;color:#7353ad}.calendar-event-row.religious-observance .calendar-event-icon{background:#e8f8f5;color:#167b70}.calendar-event-row.national-observance .calendar-event-icon{background:#eaf8f2;color:#25805f}.calendar-event-row.highlight{border-color:#70acd0;box-shadow:inset 0 0 0 1px rgba(15,95,159,.08)}
.calendar-day.collective-leave{background:#f3effb;color:#684a9c;font-weight:900;box-shadow:inset 0 0 0 1px #e0d5f2}.calendar-day.religious-observance{background:#e7f8f5;color:#16796f;font-weight:900;box-shadow:inset 0 0 0 1px #cceee8}.calendar-day.national-observance{background:#eaf8f2;color:#25755b;font-weight:900;box-shadow:inset 0 0 0 1px #d2eee3}
@media(max-width:760px){.agenda-launch-card{grid-template-columns:auto minmax(0,1fr);gap:13px;min-height:100px;padding:16px;border-radius:19px}.agenda-launch-icon{width:50px;height:50px;border-radius:15px;font-size:20px}.agenda-launch-copy strong{font-size:17px}.agenda-launch-copy small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.agenda-launch-action{grid-column:1/-1;width:100%;justify-content:center;min-height:40px}.agenda-calendar-modal{width:calc(100% - 12px)!important;height:calc(100dvh - 12px)!important;border-radius:18px!important;grid-template-rows:auto auto auto minmax(0,1fr)}.agenda-modal-header{padding:13px 52px 10px 13px;gap:9px}.agenda-modal-header-icon{width:38px;height:38px;border-radius:11px;font-size:15px}.agenda-modal-header h2{font-size:17px}.agenda-modal-header p{display:none}.agenda-modal-legend{padding:7px 12px;gap:6px;font-size:8px}.agenda-government-note{padding:7px 12px;font-size:7.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agenda-modal-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(145px,1fr);overflow:hidden}.agenda-calendar-card{padding:10px 12px 8px}.agenda-event-card{padding:10px 12px 12px;border-left:0;border-top:1px solid #e8edf2}.agenda-event-head{margin-bottom:8px}.agenda-event-list{min-height:0;max-height:none;overflow-y:auto}.agenda-calendar-toolbar{grid-template-columns:32px minmax(0,1fr) 32px;margin-bottom:7px}.agenda-month-button{width:32px;height:32px}.agenda-month-copy strong{font-size:13px}.agenda-calendar-grid{gap:3px}.calendar-weekday{padding:2px 0 3px;font-size:7px}.calendar-day{min-height:28px;border-radius:8px;font-size:8.8px}.calendar-day.source-school::before,.calendar-day.source-national::after{left:5px;right:5px;height:2.5px}.calendar-day.source-school::before{top:3px}.calendar-day.source-national::after{bottom:3px}.calendar-event-row{grid-template-columns:32px minmax(0,1fr);padding:9px}.calendar-event-icon{width:32px;height:32px}.calendar-event-row strong{font-size:10px}.calendar-event-row p{font-size:8.5px}}
@media(max-width:420px){.agenda-modal-header{padding-top:11px;padding-bottom:9px}.agenda-modal-legend{padding-block:6px}.agenda-government-note{display:none}.agenda-calendar-modal{grid-template-rows:auto auto minmax(0,1fr)}.agenda-modal-layout{grid-template-rows:auto minmax(135px,1fr)}.agenda-calendar-card{padding:8px 10px 7px}.agenda-event-card{padding:9px 10px 10px}.agenda-calendar-grid{gap:2px}.calendar-day{min-height:26px;border-radius:7px;font-size:8.3px}.agenda-launch-copy strong{font-size:16px}}

/* Rich article content from Admin Website editor */
.article-rich-content{overflow-wrap:anywhere}.article-rich-content h1,.article-rich-content h2,.article-rich-content h3,.article-rich-content h4,.article-rich-content h5,.article-rich-content h6{color:#153653;line-height:1.25;font-weight:850}.article-rich-content h2{margin:1.25em 0 .45em;font-size:1.8em}.article-rich-content h3{margin:1.15em 0 .4em;font-size:1.45em}.article-rich-content h4{margin:1em 0 .35em;font-size:1.2em}.article-rich-content p{margin:.75em 0}.article-rich-content blockquote{margin:1.2em 0;padding:14px 17px;border-left:4px solid #76afd2;border-radius:0 12px 12px 0;background:#f3f8fb;color:#516a80}.article-rich-content ul,.article-rich-content ol{padding-left:1.7em}.article-rich-content img{display:block;max-width:100%;height:auto;margin:20px auto;border-radius:14px}.article-rich-content figure{max-width:100%;margin:20px 0}.article-rich-content figcaption{text-align:center;color:#7b8998;font-size:12px}.article-rich-content table{display:table;width:100%;min-width:520px;border-collapse:collapse;margin:20px 0}.article-rich-content>div:has(>table){max-width:100%;overflow-x:auto}.article-rich-content th,.article-rich-content td{padding:10px 12px;border:1px solid #d6e0e9;vertical-align:top}.article-rich-content th{background:#eef5f9;color:#173d5d;font-weight:850}.article-rich-content iframe{display:block;width:100%;max-width:900px;aspect-ratio:16/9;height:auto;margin:22px auto;border:0;border-radius:14px}.article-rich-content pre{max-width:100%;overflow:auto;padding:15px;border-radius:12px;background:#172033;color:#eff4f8;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.article-rich-content hr{border:0;border-top:1px solid #d8e2ea;margin:28px 0}

@media(max-width:560px){.article-rich-content table{min-width:460px}}
