/* Foundation-aligned public experience. Colors stay unit-specific via CSS variables. */
body {
    color: var(--ink);
    /* Ornament drawn directly (no translucent gradient stacked in front of it)
       so it reads the same as the foundation site's own .section/.section-alt
       pattern instead of being washed down to near-invisible. */
    background-color: var(--paper);
    background-image: url('../images/ornament.svg');
    background-size: 132px 132px;
    background-attachment: scroll;
}

.site-header {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(20,26,22,.11);
    box-shadow: 0 8px 24px rgba(20,26,22,.08);
}
.nav-shell { min-height: 94px; }
.brand strong,
.hero h1,
.page-banner h1,
.section h2,
.feature-card h3,
.content-card h2,
.album-card h2,
.brochure-row h2 { font-family: 'El Messiri', 'Segoe UI', sans-serif; }
.brand small { color: var(--primary-dark); font-weight: 800; }
/* Per-unit color filter on the on-page crest (.brand-mark/.portal-logo/
   .login-logo) was tried and then explicitly reverted - the school's real
   seal stays in its original green/yellow/red everywhere on the page. Only
   the browser-tab favicon (a separate generated file, favicon.png) keeps a
   per-unit tint; see make_favicons.php / --logo-hue in config.php for that. */
.main-nav > a,
.nav-dropdown-trigger { font-size: .82rem; letter-spacing: 0; }
.main-nav > a.nav-cta {
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

.hero { min-height: min(560px, calc(100svh - 94px)); background: var(--primary-dark); }
.hero-image { opacity: 1; transform: scale(1.02); }
.hero-shade {
    background:
        linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.6) 49%, rgba(0,0,0,.12) 100%),
        linear-gradient(0deg, rgba(0,0,0,.5), transparent 58%);
}
.hero::before,
.hero::after { display: none; }
.hero-content {
    z-index: 2;
    width: min(1120px, calc(100% - 40px));
    max-width: none;
    padding: clamp(56px, 8vh, 82px) 0 clamp(54px, 8vh, 84px) clamp(28px, 5vw, 66px);
    border-left: 0;
}
.hero h1 {
    max-width: 680px;
    font-size: clamp(2.7rem, 4.6vw, 4.35rem);
    letter-spacing: 0;
}
.hero p { max-width: 610px; line-height: 1.75; color: rgba(255,255,255,.86); }
.hero-actions { gap: 12px; }
.button { min-height: 48px; border-radius: 8px; }

.section { padding: clamp(66px, 8vw, 106px) 0; }
.section:not(.section-primary) {
    background-color: rgba(255,255,255,.78);
    background-image: url('../images/ornament.svg');
    background-size: 132px 132px;
    background-attachment: scroll;
}
.section-soft {
    background-color: var(--soft) !important;
    background-image: url('../images/ornament.svg') !important;
    background-size: 132px 132px !important;
    background-attachment: scroll !important;
}
.section-primary {
    background-color: var(--primary-dark);
    /* Ornament layer listed FIRST so it paints on top of the opaque gradient
       base (matches how the old working overlay worked) instead of being
       washed out underneath a near-opaque gradient - that was why the pattern
       looked "missing" after the previous fix. */
    background-image: url('../images/ornament-light.svg'), linear-gradient(135deg, var(--primary-dark), var(--primary));
    background-size: 132px 132px, auto;
    background-attachment: scroll;
    position: relative;
    overflow: hidden;
}
.section-primary > .shell { position: relative; z-index: 1; }
.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head h2,
.intro-grid h2 { font-size: clamp(2.25rem, 3.6vw, 3.55rem); line-height: 1.08; }
.section-head > .eyebrow { color: var(--primary-dark); }
.light-head > .eyebrow { color: rgba(255,255,255,.78); }
.intro-section { border-top: 1px solid rgba(0,0,0,.08); }

.feature-card,
.content-card,
.album-card,
.brochure-row,
.public-form,
.map-card {
    border-radius: 10px;
    border-color: rgba(0,0,0,.12);
    box-shadow: 0 14px 34px rgba(0,0,0,.09);
}
.feature-card { position: relative; overflow: hidden; padding: 30px; border-top: 3px solid var(--accent); }
.feature-card::after {
    content: '';
    position: absolute;
    width: 92px;
    height: 92px;
    right: -42px;
    top: -42px;
    border: 1px solid var(--accent);
    opacity: .58;
    border-radius: 50%;
}
.feature-icon { border-radius: 9px; background: var(--soft); }
.content-card { transition: transform .25s ease, box-shadow .25s ease; }
.content-card:hover,
.album-card:hover { transform: translateY(-7px); box-shadow: 0 22px 44px rgba(0,0,0,.16); }
.card-image { aspect-ratio: 16 / 10; }
.card-copy { padding: 22px; }
.card-copy h2 { font-size: 1.45rem; }
.album-tile { border-radius: 10px; min-height: 270px; box-shadow: 0 16px 36px rgba(0,0,0,.22); }

.page-banner {
    min-height: 300px;
    display: grid;
    align-items: center;
    color: #fff;
    border: 0;
    background-color: var(--primary-dark);
    background-image: linear-gradient(105deg, rgba(0,0,0,.85), rgba(0,0,0,.5)), url('../images/hero.optimized.webp');
    background-position: center;
    background-size: cover;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, transparent 0 68%, rgba(255,255,255,.22) 68% 68.2%, transparent 68.2%);
}
.page-banner .shell { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(2.8rem, 5vw, 4.75rem); }
.page-banner p { color: rgba(255,255,255,.8); }
.page-banner .eyebrow { color: var(--accent); }

.site-footer {
    margin-top: 0;
    /* This used to declare its own background-image (a plain opaque gradient
       + the dark ornament.svg), which fully overrode style.css's version that
       actually wires in the unit's hero photo via --footer-photo - so the
       photo never rendered and, since the gradient stops here were opaque
       colors (not alpha-blended), the ornament layer under it was 100%
       hidden too. Re-declaring it here instead of dropping it, so the wash
       stays tuned for this dark footer while still letting the school photo
       show through underneath. */
    background-color: var(--ink);
    background-image: linear-gradient(125deg, rgba(0,0,0,.8), rgba(0,0,0,.82)), var(--footer-photo, none);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.footer-grid { padding-top: 12px; }
.footer-grid h2 { color: var(--accent); }
.footer-grid a:hover { color: #fff; }

@media (max-width: 980px) {
    .nav-shell { min-height: 76px; }
    .main-nav { top: 76px; background: rgba(255,255,255,.98); }
    .hero { min-height: calc(100svh - 76px); }
    .hero-content { padding-left: 32px; }
}
@media (max-width: 620px) {
    .hero-content { width: auto; margin: 0 14px; padding: 28px 22px; border: 1px solid rgba(255,255,255,.17); border-radius: 14px; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
    .hero h1 { font-size: clamp(2.5rem, 11vw, 3.5rem); }
    .page-banner { min-height: 250px; }
    .page-banner h1 { font-size: clamp(2.35rem, 10vw, 3.35rem); }
}

/* Unit home hero follows the foundation layout while retaining its unit palette. */
.hero-foundation { min-height: min(560px, calc(100svh - 94px)); }
.hero-foundation .hero-image { animation: hero-image-drift 18s ease-in-out infinite alternate; }
.hero-foundation .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
    column-gap: clamp(40px, 7vw, 110px);
    align-items: end;
}
.hero-foundation .eyebrow,
.hero-foundation h1,
.hero-foundation .hero-content > p,
.hero-foundation .hero-actions { grid-column: 1; }
.hero-foundation h1 { animation: hero-copy-in .7s ease both; }
.hero-foundation .hero-content > p { animation: hero-copy-in .7s .08s ease both; }
.hero-foundation .hero-actions { animation: hero-copy-in .7s .16s ease both; }
.hero-unit-note {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: center;
    padding: 0;
    border-left: 0;
    animation: hero-note-in .8s .2s ease both;
}
.hero-unit-note span {
    display: block;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .12em;
}
.hero-unit-note p { margin: 10px 0 0; font-size: .9rem; line-height: 1.6; color: rgba(255,255,255,.75); }
.hero-facts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    max-width: 650px;
    margin-top: 30px;
    padding-top: 0;
    border-top: 0;
    animation: hero-copy-in .7s .26s ease both;
}
.hero-facts span { display: grid; gap: 3px; }
.hero-facts b { color: #fff; font-size: 1.02rem; }
.hero-facts small { color: rgba(255,255,255,.6); font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.hero-motion-orbit { display: none; }

.unit-notice-bar {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: 50px;
    overflow: hidden;
    color: #fff;
    background: var(--primary-dark);
    border-top: 1px solid rgba(255,255,255,.16);
}
.unit-notice-label {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0 22px;
    color: var(--ink);
    background: var(--accent);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .045em;
    box-shadow: 9px 0 20px rgba(0,0,0,.13);
}
.unit-notice-window { min-width: 0; overflow: hidden; display: flex; align-items: center; }
.unit-notice-track { width: max-content; display: flex; align-items: center; animation: unit-ticker 33s linear infinite; }
.unit-notice-track span { display: inline-flex; align-items: center; gap: 13px; padding: 0 28px; white-space: nowrap; color: rgba(255,255,255,.9); font-size: .78rem; font-weight: 750; }
.unit-notice-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.unit-notice-bar:hover .unit-notice-track { animation-play-state: paused; }

@keyframes hero-image-drift { from { transform: scale(1.02) translate3d(0,0,0); } to { transform: scale(1.1) translate3d(-1.3%,-.8%,0); } }
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-note-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes orbit-float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-16px,14px,0); } }
@keyframes unit-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 980px) {
    .hero-foundation .hero-content { grid-template-columns: minmax(0, 1fr) 190px; }
    .hero-unit-note { padding-left: 22px; }
}
@media (max-width: 720px) {
    .hero-foundation { min-height: 560px; }
    .hero-foundation .hero-content { display: block; }
    .hero-unit-note { display: none; }
    .hero-facts { margin-top: 36px; gap: 12px; }
    .hero-facts b { font-size: .88rem; }
    .hero-facts small { font-size: .56rem; }
    .orbit-one { width: 80vw; height: 80vw; right: -38vw; bottom: -28vw; }
    .orbit-two { width: 48vw; height: 48vw; right: 6vw; top: -18vw; }
    .unit-notice-label { padding: 0 13px; font-size: .62rem; }
    .unit-notice-track span { padding: 0 18px; font-size: .69rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-foundation .hero-image,
    .hero-foundation h1,
    .hero-foundation .hero-content > p,
    .hero-foundation .hero-actions,
    .hero-unit-note,
    .hero-facts,
    .hero-motion-orbit,
    .unit-notice-track { animation: none !important; }
}

/* "Mengapa memilih [unit]" - copy + real unit photo panel. Uses .section-primary
   for its dark background/ornament/parallax so it stays visually tied to the
   rest of the site instead of introducing a third background treatment. The
   photo is always the unit's own uploaded hero photo (admin > Media Hero) -
   never a stock/placeholder image. */
.why-grid-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.why-unit-copy { color: #fff; }
.why-unit-ribbon {
    display: inline-block;
    padding: 13px 38px 13px 22px;
    margin: 0 0 24px -22px;
    background: var(--accent);
    color: var(--ink);
    font-family: 'El Messiri', 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.3;
    clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
}
.why-unit-lead {
    max-width: 560px;
    margin: 0 0 22px;
    color: rgba(255,255,255,.86);
    font-size: 1.05rem;
    line-height: 1.75;
}
.why-unit-points { display: grid; gap: 13px; margin: 0 0 30px; padding: 0; list-style: none; }
.why-unit-points li {
    position: relative;
    padding-left: 30px;
    color: rgba(255,255,255,.85);
    font-size: .92rem;
    line-height: 1.5;
}
.why-unit-points li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 1px;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    font-size: .62rem;
    font-weight: 900;
}
.why-unit-media { position: relative; }
.why-unit-media::before {
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    border-radius: 14px;
    background: var(--accent);
    z-index: 0;
}
.why-unit-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0,0,0,.35);
}
@media (max-width: 860px) {
    .why-grid-media { grid-template-columns: 1fr; }
    .why-unit-media { order: -1; max-width: 420px; margin: 0 auto; }
    .why-unit-media::before { inset: 12px -12px -12px 12px; }
    .why-unit-ribbon { margin-left: 0; }
}

/* Social wall unit memakai media native agar Reel dapat autoplay tanpa
   iframe/telemetry Instagram. Lima post aktif dari portal tampil di sini. */
.unit-instagram-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 5% 12%, rgba(251,191,36,.18), transparent 25%),
        radial-gradient(circle at 95% 88%, rgba(15,81,50,.13), transparent 28%),
        var(--soft);
}
.unit-instagram-section .section-head { max-width: 680px; text-align: center; margin-inline: auto; }
.unit-instagram-section .section-head .eyebrow { justify-content: center; }
.unit-instagram-section .section-head p { margin: 10px auto 0; color: var(--muted); }
.ig-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: center; gap: 22px; }
.ig-gallery-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(0,0,0,.1);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ig-gallery-card:hover { transform: translateY(-7px); border-color: var(--primary); box-shadow: 0 25px 52px rgba(0,0,0,.16); }
.ig-card-head { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 12px 14px; }
.ig-card-brand {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #833ab4 4%, #fd1d1d 56%, #fcb045);
    box-shadow: 0 7px 17px rgba(193,53,132,.24);
}
.ig-card-brand svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ig-card-brand .ig-dot { fill: currentColor; stroke: none; }
.ig-card-brand.ig-card-avatar { overflow: hidden; border: 2px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 7px 17px rgba(15,81,50,.2); }
.ig-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ig-card-identity { display: flex; flex: 1; min-width: 0; flex-direction: column; line-height: 1.25; }
.ig-card-identity strong, .ig-card-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-card-identity strong { color: var(--primary-dark); font-size: .88rem; }
.ig-card-identity small { color: var(--muted); font-size: .68rem; }
.ig-card-open {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--primary-dark);
    transition: color .2s ease, background .2s ease, transform .2s ease;
}
.ig-card-open:hover { color: #fff; background: var(--primary); transform: rotate(8deg); }
.ig-gallery-media { position: relative; isolation: isolate; aspect-ratio: 4 / 5; overflow: hidden; background: var(--primary-dark); }
.ig-gallery-media img, .ig-gallery-media video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ig-media-poster { z-index: 0; transform: scale(1.01); transition: transform .45s ease; }
.ig-media-video { z-index: 1; background: #080d0b; }
.ig-media-video[hidden] { display: none; }
.ig-gallery-card:hover .ig-media-poster { transform: scale(1.055); }
.ig-media-play { position: absolute; z-index: 3; top: 50%; left: 50%; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: none; border-radius: 50%; background: rgba(5,18,12,.55); color: #fff; cursor: pointer; transform: translate(-50%, -50%); transition: background .2s ease, transform .2s ease; }
.ig-media-play svg { width: 22px; height: 22px; margin-left: 2px; fill: currentColor; }
.ig-media-play:hover { background: rgba(5,18,12,.75); transform: translate(-50%, -50%) scale(1.06); }
.ig-media-play[hidden] { display: none; }
.ig-media-shade { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.08), transparent 65%, rgba(0,0,0,.32)); }
.ig-media-kind {
    position: absolute;
    z-index: 4;
    right: 11px;
    bottom: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    color: #fff;
    background: rgba(5,12,9,.68);
    font-size: .64rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .07em;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
.ig-media-kind i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(251,191,36,.6); animation: igPulse 1.2s infinite; }
.ig-native-card:not([data-ig-state="loading"]) .ig-media-kind i { display: none; }
@keyframes igPulse { 70% { box-shadow: 0 0 0 7px transparent; } }
.ig-gallery-foot { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 104px; padding: 15px 16px 16px; }
.ig-gallery-foot p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--ink); font-size: .83rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.ig-gallery-foot a { display: flex; align-items: center; justify-content: space-between; color: var(--primary-dark); font-size: .78rem; font-weight: 800; }
.ig-gallery-foot a span:last-child { transition: transform .2s ease; }
.ig-gallery-foot a:hover span:last-child { transform: translateX(4px); }
.ig-gallery-cta { margin-top: 30px; text-align: center; }
@media (max-width: 900px) { .ig-gallery-grid { grid-template-columns: repeat(2, minmax(0, 340px)); } }
@media (max-width: 620px) {
    .ig-gallery-grid { grid-template-columns: minmax(0, 370px); gap: 22px; }
    .ig-gallery-card { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .ig-gallery-card, .ig-media-poster, .ig-card-open { transition: none; }
    .ig-media-kind i { animation: none; }
}

/* "Potret Sekolah" album cards: bigger rounded corners + a floating pill-style
   label (instead of plain overlay text) so real uploaded activity photos read
   like a polished feature card - matches the tagged-photo-card look asked for. */
.album-strip { gap: 22px; }
.album-tile { border-radius: 20px; box-shadow: 0 18px 38px rgba(0,0,0,.24); transition: transform .25s ease, box-shadow .25s ease; }
.album-tile:hover { transform: translateY(-6px); box-shadow: 0 26px 48px rgba(0,0,0,.32); }
.album-tile > span {
    position: relative;
    z-index: 1;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.95);
    color: var(--ink);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

/* Unit social navigation and footer */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.unit-social-dropdown .unit-social-menu{left:50%;min-width:220px;padding:10px!important;border-top:3px solid var(--accent);border-radius:12px;transform:translateX(-50%);box-shadow:0 18px 40px rgba(0,0,0,.13)}
.unit-social-dropdown.open .unit-social-menu{display:grid;gap:6px}
.unit-social-menu:before{content:'';position:absolute;top:-8px;left:50%;width:12px;height:12px;background:#fffdf8;border-left:1px solid var(--line);border-top:1px solid var(--line);transform:translateX(-50%) rotate(45deg)}
.unit-social-link{display:flex!important;align-items:center;gap:10px;min-height:40px;padding:8px 10px!important;border-radius:9px;font-weight:850;color:var(--ink)!important}
.unit-social-link:hover{background:var(--soft);color:var(--primary-dark)!important}
.unit-social-link svg{width:18px;height:18px;display:block;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.unit-social-link.social-instagram svg{color:#e4405f}
.unit-social-link.social-facebook svg{color:#1877f2;fill:currentColor;stroke:none}
.unit-social-link.social-tiktok svg{color:#111827;fill:currentColor;stroke:none;filter:drop-shadow(1px 0 #fe2c55) drop-shadow(-1px 0 #25f4ee)}
.unit-social-link.social-youtube svg{color:#ff0033}
.unit-social-link.social-youtube svg path:first-child{fill:currentColor;stroke:none}
.unit-social-link.social-youtube svg path:last-child{fill:#fff;stroke:none}
.main-nav{padding:5px;border:1px solid rgba(31,48,34,.08);border-radius:14px;background:rgba(255,255,255,.58);box-shadow:0 10px 28px rgba(30,36,27,.06)}
.nav-dropdown-menu{min-width:178px;border-top:3px solid var(--accent);border-radius:12px;padding:8px!important}
.nav-dropdown-menu a{min-height:38px;display:flex;align-items:center}
.unit-info-dropdown .nav-dropdown-menu{min-width:190px}
.main-nav>a.active:not(.nav-cta),.nav-dropdown-trigger.active{background:var(--soft);border-radius:9px}
.unit-site-footer{padding:72px 0 0;background-image:linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.62)),var(--footer-photo,none)!important;background-size:cover,cover!important;background-position:center!important}
.unit-footer-grid{display:grid;grid-template-columns:1.35fr .8fr 1fr 1.15fr;gap:44px;align-items:start;padding-top:0}
.unit-footer-brand .footer-brand{display:grid!important;grid-template-columns:64px minmax(0,1fr);gap:15px;align-items:center;width:100%;max-width:390px}
.unit-footer-brand .brand-mark-wrap{width:64px;height:64px;background:#fff;border-radius:50%;display:grid;place-items:center;padding:4px;flex:none}
.unit-footer-brand .brand-mark{width:54px!important;height:54px!important;background:#fff;border-radius:50%;object-fit:contain}
.unit-footer-brand .footer-brand>span:not(.brand-mark-wrap){position:relative;display:grid;gap:2px;padding-left:17px}
.unit-footer-brand .footer-brand>span:not(.brand-mark-wrap):before{content:'';position:absolute;left:0;top:6px;bottom:6px;width:3px;border-radius:999px;background:var(--accent)}
.unit-footer-brand .brand strong{font-size:1.12rem;color:#fff}
.unit-footer-brand .brand small{color:var(--accent);font-weight:800}
.unit-footer-brand p{max-width:360px;margin:18px 0;color:rgba(255,255,255,.84);font-size:.95rem}
.unit-footer-grid h2{color:var(--accent);font-size:.95rem;margin:0 0 14px}
.unit-footer-nav,.unit-footer-contact{display:grid;gap:3px}
.unit-footer-social-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.unit-footer-social .unit-social-link{min-height:42px;padding:8px 12px!important;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.unit-footer-social .unit-social-link:hover{background:rgba(255,255,255,.16);color:#fff!important}
.unit-footer-social .unit-social-link span{font-size:.83rem}
.unit-site-footer .footer-bottom{margin-top:46px;background:rgba(0,0,0,.16)}
@media(max-width:980px){.main-nav{padding:14px max(20px,calc((100vw - 1120px)/2));border:0;border-radius:0;background:rgba(255,255,255,.98);box-shadow:0 12px 22px rgba(33,38,28,.09)}.nav-dropdown-menu{border-top:0}.unit-social-dropdown{width:100%;padding-top:10px;margin-top:4px;border-top:1px solid var(--line)}.unit-social-dropdown:before{content:'Sosial Media';display:block;margin:0 10px 9px;color:var(--primary-dark);font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.unit-social-trigger{display:none!important}.unit-social-dropdown .unit-social-menu{position:static;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;width:100%;padding:8px!important;border:0;background:var(--soft);box-shadow:none;transform:none}.unit-social-menu:before{display:none}.unit-social-menu .unit-social-link{justify-content:center;background:#fff;border:1px solid var(--line);box-shadow:0 5px 14px rgba(0,0,0,.05)}.unit-footer-grid{grid-template-columns:1fr 1fr;gap:28px}.unit-footer-social{grid-column:1/-1}.unit-footer-social-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:620px){.unit-site-footer{padding-top:42px;text-align:left}.unit-footer-grid{grid-template-columns:1fr;gap:0}.unit-footer-grid>section{padding:20px 0}.unit-footer-grid>section+section{border-top:1px solid rgba(255,255,255,.16)}.unit-footer-brand .footer-brand{grid-template-columns:58px minmax(0,1fr);align-items:center;max-width:100%}.unit-footer-brand .brand strong{font-size:1rem;line-height:1.12}.unit-footer-brand .brand small{font-size:.72rem}.unit-footer-brand .brand-mark-wrap{width:58px;height:58px}.unit-footer-brand .brand-mark{width:48px!important;height:48px!important}.unit-footer-brand p{margin:14px 0}.unit-footer-social-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.unit-footer-social .unit-social-link{justify-content:center}.unit-social-dropdown .unit-social-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.unit-social-menu .unit-social-link span{font-size:.82rem}}

/* Foundation-style unit navbar */
.site-header{background:#f4f4f4!important;border-bottom:1px solid rgba(3,30,19,.08)!important;box-shadow:none!important}
.nav-shell{min-height:100px;justify-content:flex-start;gap:clamp(42px,5vw,76px)}
.site-header .brand{min-width:390px;gap:12px}
.site-header .brand-mark-wrap{width:68px;height:68px}
.site-header .brand img.brand-mark{width:68px;height:68px;object-fit:contain}
.site-header .brand>span:not(.brand-mark-wrap){position:relative;display:grid;gap:0;padding-left:14px;line-height:1.02}
.site-header .brand>span:not(.brand-mark-wrap):before{content:'';position:absolute;left:0;top:6px;bottom:6px;width:2px;background:var(--primary);border-radius:999px}
.site-header .brand strong{font-family:Inter,Segoe UI,sans-serif;font-size:1rem;font-weight:900;color:var(--primary);letter-spacing:0;line-height:1.05}
.site-header .brand small{font-size:.82rem;font-weight:850;color:var(--primary);line-height:1.05}
.main-nav{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;gap:26px}
.main-nav>a,.nav-dropdown-trigger{min-height:100px;padding:0!important;border-radius:0!important;color:#1f2937;font-size:.94rem;font-weight:700}
.main-nav>a:hover,.nav-dropdown-trigger:hover,.main-nav>a.active:not(.nav-cta),.nav-dropdown-trigger.active{background:transparent;color:var(--primary)}
.main-nav>a:not(.nav-cta)::after,.nav-dropdown-trigger::after{left:0;right:0;bottom:0;height:3px;background:var(--accent)}
.main-nav>a.nav-cta{margin-left:0;padding-inline:0!important;background:transparent;color:#1f2937;box-shadow:none}
.main-nav>a.nav-cta:hover,.main-nav>a.nav-cta.active{background:transparent;color:var(--primary)}
.main-nav>a.nav-cta::after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--accent);transform:scaleX(0);transform-origin:center;transition:transform .2s ease}
.main-nav>a.nav-cta.active::after,.main-nav>a.nav-cta:hover::after{transform:scaleX(1)}
.nav-dropdown-menu{top:calc(100% + 0px);border-top:0;border-radius:0 0 14px 14px;background:#fff;box-shadow:0 18px 42px rgba(15,23,42,.13)}
.unit-social-dropdown .unit-social-menu{border-top:0;border-radius:0 0 14px 14px}
.unit-social-menu:before{display:none}
@media(max-width:980px){.nav-shell{min-height:76px;justify-content:space-between;gap:18px}.site-header .brand{min-width:0;max-width:calc(100% - 58px);gap:11px}.site-header .brand-mark-wrap{width:58px;height:58px}.site-header .brand img.brand-mark{width:56px;height:56px}.site-header .brand>span:not(.brand-mark-wrap){padding-left:13px}.site-header .brand strong{font-size:.95rem}.site-header .brand small{font-size:.72rem}.main-nav{top:76px;padding:14px max(20px,calc((100vw - 1120px)/2));background:rgba(255,255,255,.98);box-shadow:0 12px 22px rgba(33,38,28,.09);gap:2px}.main-nav>a,.nav-dropdown-trigger{min-height:46px;padding:12px 10px!important}.main-nav>a:not(.nav-cta)::after,.nav-dropdown-trigger::after,.main-nav>a.nav-cta::after{display:none}.main-nav>a.active:not(.nav-cta),.nav-dropdown-trigger.active,.main-nav>a.nav-cta.active{background:var(--soft);color:var(--primary-dark)}}

/* Official YouTube feed */
@supports (content-visibility: auto) {
    main > .section:not(:first-child) { content-visibility: auto; contain-intrinsic-size: auto 760px; }
}
.unit-youtube-section { overflow: hidden; }
.youtube-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.youtube-gallery-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 16px 38px rgba(0,0,0,.11); transition: transform .25s ease, box-shadow .25s ease; }
.youtube-gallery-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,.16); }
.youtube-gallery-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background-color: #111; background-position: center; background-size: cover; }
.youtube-gallery-frame::after { position: absolute; z-index: 0; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.34)); content: ""; pointer-events: none; }
.youtube-gallery-frame iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; }

.youtube-gallery-play { position: absolute; z-index: 3; top: 50%; left: 50%; display: grid; width: 62px; height: 62px; padding: 0; border: 0; border-radius: 50%; place-items: center; background: #e62117; box-shadow: 0 12px 32px rgba(0,0,0,.34); cursor: pointer; transform: translate(-50%,-50%); transition: transform .2s ease,background .2s ease; }
.youtube-gallery-play:hover { background: #c91810; transform: translate(-50%,-50%) scale(1.08); }
.youtube-gallery-play span { width: 0; height: 0; margin-left: 5px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #fff; }
.youtube-gallery-card.is-playing .youtube-gallery-play { display: none; }
.youtube-gallery-frame > span { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 9px; border-radius: 999px; background: #e62117; color: #fff; font-size: .64rem; font-weight: 900; letter-spacing: .07em; pointer-events: none; }
.youtube-gallery-card footer { display: grid; gap: 11px; padding: 16px 18px 18px; }
.youtube-gallery-card footer strong { overflow: hidden; color: var(--ink); font-size: .95rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.youtube-gallery-card footer a { color: var(--primary-dark); font-size: .78rem; font-weight: 850; }
@media (max-width: 720px) { .youtube-gallery-grid { grid-template-columns: 1fr; } }

.activity-detail-section { background: linear-gradient(180deg,rgba(245,249,245,.96),rgba(255,253,248,.95)) !important; }
.detail-content { max-width: 980px; }
.detail-back { display: inline-block; margin-bottom: 24px; }
.detail-article { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 22px 55px rgba(28,52,34,.12); }
.detail-heading { padding: 34px clamp(22px,5vw,54px) 26px; }
.detail-heading .eyebrow { margin-top: 0; }
.detail-heading h2 { margin-top: 11px; font-size: clamp(2rem,5vw,3.45rem); line-height: 1.08; }
.detail-heading .detail-date { margin: 12px 0 0; }
.detail-hero-image { max-height: 580px; aspect-ratio: 16 / 10; margin: 0; border-radius: 0; }
.detail-body { padding: 36px clamp(22px,5vw,58px) 46px; font-family: Georgia,'Times New Roman',serif; font-size: 1.06rem; line-height: 1.9; }
.detail-body .detail-lead { color: var(--ink); font-family: Inter,Segoe UI,sans-serif; font-size: 1.18rem; font-weight: 750; line-height: 1.65; }
.detail-documentation { padding-top: 68px; }
.detail-documentation .section-head p { max-width: 670px; margin: 8px 0 0; color: var(--muted); }
.detail-documentation-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.detail-documentation-card { overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 12px 30px rgba(28,52,34,.1); }
.detail-documentation-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.detail-documentation-card:hover img { transform: scale(1.04); }
.detail-documentation-card > span { display: grid; gap: 5px; padding: 14px 16px 17px; }
.detail-documentation-card strong { font-size: .88rem; }
.detail-documentation-card small { color: var(--muted); font-size: .73rem; font-weight: 500; line-height: 1.5; }
.detail-documentation-empty { padding: 28px; border: 1px dashed rgba(20,92,57,.32); border-radius: 16px; background: rgba(255,255,255,.76); text-align: center; }
.detail-documentation-empty p { margin: 7px 0 0; color: var(--muted); }
@media (max-width: 720px) {
    .detail-article { border-radius: 18px; }
    .detail-heading { padding: 25px 20px 20px; }
    .detail-hero-image { aspect-ratio: 4 / 3; }
    .detail-body { padding: 25px 20px 30px; font-size: 1rem; line-height: 1.82; }
    .detail-body .detail-lead { font-size: 1.07rem; }
    .detail-documentation { padding-top: 48px; }
    .detail-documentation-grid { grid-template-columns: 1fr; }
}
