:root {
      --navy: #0a192f;
      --blue: #1e40af;
      --blue-2: #3b82f6;
      --cyan: #06b6d4;
      --green: #10b981;
      --gold: #f59e0b;
      --red: #ef4444;
      --text: #0f172a;
      --muted: #475569;
      --soft: #f8fafc;
      --white: #ffffff;
      --line: rgba(30, 64, 175, .14);
      --glass: rgba(255, 255, 255, .80);
      --shadow-sm: 0 8px 22px rgba(15, 23, 42, .08);
      --shadow-md: 0 18px 50px rgba(15, 23, 42, .12);
      --shadow-lg: 0 28px 80px rgba(30, 64, 175, .20);
      --radius: 28px;
      --container: 1180px;
      --side: clamp(18px, 4vw, 34px);
      --ease: cubic-bezier(.2, .8, .2, 1);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; scroll-padding-top: 118px; }
    body {
      min-width: 320px; overflow-x: hidden; max-width: 100vw;
      font-family: 'Manrope', 'Plus Jakarta Sans', Arial, sans-serif;
      color: var(--text);
      background: radial-gradient(circle at 4% 0%, rgba(6, 182, 212, .12), transparent 28rem),
                  radial-gradient(circle at 96% 10%, rgba(59, 130, 246, .12), transparent 26rem),
                  linear-gradient(180deg, #f8fafc 0%, #ffffff 44%, #f8fafc 100%);
      line-height: 1.7; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
    }
    img, svg, video, iframe { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    button, input, textarea { font: inherit; }
    button { cursor: pointer; border: none; }
    ::selection { background: rgba(59, 130, 246, .20); color: var(--navy); }
    ::-webkit-scrollbar { width: 10px; }
    ::-webkit-scrollbar-track { background: #eef6ff; }
    ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--blue), var(--cyan)); border-radius: 999px; border: 2px solid #eef6ff; }

    .container { width: min(100% - (var(--side) * 2), var(--container)); margin-inline: auto; }
    .wide-container { width: min(100% - (var(--side) * 2), 1360px); margin-inline: auto; }
    .section { padding: clamp(72px, 8vw, 108px) 0; position: relative; }
    .section-title { max-width: 760px; margin: 0 auto 44px; text-align: center; }
    .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(30, 64, 175, .08); color: var(--blue); border: 1px solid rgba(30, 64, 175, .12); font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
    .section-title h2, .hero-title, .page-hero h1 { font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif; font-weight: 900; letter-spacing: -.045em; color: var(--navy); line-height: 1.08; }
    .section-title h2 { font-size: clamp(2rem, 4vw, 3.15rem); margin: 14px 0 12px; }
    .section-title p { color: var(--muted); font-size: clamp(.98rem, 1.4vw, 1.08rem); }

    /* TOPBAR */
    .topbar { position: relative; z-index: 70; display: block; background: radial-gradient(circle at 10% 50%, rgba(245, 158, 11, .26), transparent 34%), linear-gradient(90deg, #0f172a, var(--blue), #0f172a); color: #fff; border-bottom: 1px solid rgba(251, 191, 36, .35); font-size: .78rem; }
    .topbar::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), #fff, var(--gold), transparent); opacity: .75; }
    .topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
    .topbar-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
    .topbar-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 25px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px); white-space: nowrap; }
    .topbar-pill i { color: #fbbf24; }
    .topbar-clock { background: rgba(255, 255, 255, .92); color: #172554; font-weight: 900; letter-spacing: .04em; }

    /* HEADER */
    .site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .82); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(226, 232, 240, .86); box-shadow: 0 8px 28px rgba(15, 23, 42, .05); transition: box-shadow .35s var(--ease), background .35s var(--ease); }
    .site-header.is-scrolled { background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-md); }
    .navbar { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; min-width: max-content; background: transparent; text-align: left; white-space: nowrap; }
    .brand > span:last-child, .brand-title, .brand-subtitle { white-space: nowrap; }
    .brand-logo { width: 56px; height: 56px; flex: 0 0 auto; display: grid; place-items: center; background: transparent; transition: transform .35s var(--ease); }
    .brand:hover .brand-logo { transform: translateY(-2px) rotate(-1deg); }
    .brand-logo img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
    .brand-logo-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
    .brand-title { display: block; font-weight: 900; line-height: 1.05; color: var(--navy); letter-spacing: -.02em; font-size: 1.07rem; }
    .brand-subtitle { display: block; color: var(--green); font-weight: 800; font-size: .72rem; letter-spacing: .035em; text-transform: uppercase; margin-top: 4px; }
    .nav-links { display: flex; align-items: center; justify-content: flex-end; flex: 1 1 auto; min-width: 0; list-style: none; gap: clamp(12px, 2vw, 26px); }
    .nav-link { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 0; color: #334155; white-space: nowrap; font-size: .94rem; font-weight: 800; transition: color .28s var(--ease), transform .28s var(--ease), background .28s var(--ease); background: transparent; }
    .nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: center; transition: transform .32s var(--ease); }
    .nav-link:hover, .nav-link.active { color: var(--blue); transform: translateY(-1px); }
    .nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
    .nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; font-weight: 900; box-shadow: 0 12px 30px rgba(30, 64, 175, .25); transition: transform .32s var(--ease), box-shadow .32s var(--ease); }
    .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(30, 64, 175, .32); }
    .menu-toggle { display: none; width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; box-shadow: 0 12px 28px rgba(30, 64, 175, .24); align-items: center; justify-content: center; }

    /* PAGE */
    .page { display: none; min-height: calc(100vh - 116px); }
    .page.is-active { display: block; animation: pageIn .48s var(--ease) both; }
    @keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

    /* HOME HERO */
    .home-hero { min-height: auto; display: grid; align-items: center; padding: clamp(34px, 5vw, 64px) 0 clamp(58px, 7vw, 88px); overflow: hidden; position: relative; background: transparent; }
    .home-hero::before, .home-hero::after { content: ''; position: absolute; border-radius: 999px; filter: blur(2px); pointer-events: none; animation: floatSoft 9s var(--ease) infinite alternate; }
    .home-hero::before { width: 460px; height: 460px; right: -160px; top: 40px; background: rgba(59, 130, 246, .12); }
    .home-hero::after { width: 280px; height: 280px; left: -120px; bottom: 60px; background: rgba(6, 182, 212, .13); animation-delay: -2s; }
    @keyframes floatSoft { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -12px, 0); } }
    @keyframes shimmerMove { from { transform: translateX(-12px) rotate(0deg); } to { transform: translateX(12px) rotate(4deg); } }
    .hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 6vw, 76px); align-items: center; position: relative; z-index: 1; }
    .hero-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(30, 64, 175, .15); background: rgba(255, 255, 255, .72); color: var(--blue); font-weight: 800; box-shadow: var(--shadow-sm); }
    .hero-title { margin: 18px 0 12px; font-size: clamp(3rem, 8vw, 6.8rem); }
    .hero-subtitle { color: var(--blue); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 900; line-height: 1.35; margin-bottom: 22px; }
    .hero-desc { color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.14rem); max-width: 720px; margin-bottom: 32px; }
    .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 20px; border-radius: 999px; font-weight: 900; transition: transform .32s var(--ease), box-shadow .32s var(--ease), background .32s var(--ease), color .32s var(--ease); -webkit-tap-highlight-color: transparent; }
    .btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 14px 35px rgba(30, 64, 175, .27); }
    .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(30, 64, 175, .35); }
    .btn-outline { background: rgba(255, 255, 255, .78); color: var(--blue); border: 1px solid rgba(30, 64, 175, .18); box-shadow: var(--shadow-sm); }
    .btn-outline:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-md); }
    .hero-note { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: #64748b; font-weight: 700; }
    .hero-note i { color: var(--gold); }
    .hero-card { position: relative; min-height: 420px; border-radius: 36px; padding: clamp(22px, 4vw, 34px); padding-top: clamp(54px, 7vw, 72px); background: linear-gradient(145deg, rgba(255,255,255,.90), rgba(239,246,255,.88)); border: 1px solid rgba(30,64,175,.14); box-shadow: var(--shadow-lg); overflow: hidden; display: grid; align-content: center; justify-items: center; text-align: center; isolation: isolate; transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
    .hero-card:hover { transform: translateY(-4px); box-shadow: 0 34px 90px rgba(30,64,175,.24); }
    .hero-card::before { content: ''; position: absolute; inset: -35% -10% auto; height: 74%; background: radial-gradient(circle, rgba(6,182,212,.25), transparent 62%); animation: shimmerMove 6s linear infinite alternate; z-index: -1; }
    .hero-card img { width: clamp(180px, 26vw, 260px); height: clamp(180px, 26vw, 260px); object-fit: cover; border-radius: 50%; background: #fff; padding: 14px; border: 1px solid rgba(30,64,175,.16); box-shadow: 0 20px 56px rgba(30,64,175,.20); animation: floatSoft 5.5s var(--ease) infinite alternate; }
    .hero-card-content { position: relative; z-index: 2; color: var(--text); margin-top: 22px; max-width: 430px; }
    .hero-card-content h3 { color: var(--navy); font-size: 1.4rem; line-height: 1.25; margin-bottom: 8px; }
    .hero-card-content p { color: var(--muted); }
    .hero-floating { position: absolute; z-index: 4; top: 14px; left: 14px; padding: 10px 16px; border-radius: 22px; background: rgba(255,255,255,.88); backdrop-filter: blur(16px); color: var(--navy); border: 1px solid rgba(30,64,175,.12); box-shadow: var(--shadow-md); font-weight: 900; display: flex; align-items: center; gap: 11px; animation: floatSoft 6.5s var(--ease) infinite alternate; white-space: nowrap; }
    .hero-floating i { color: var(--blue); font-size: 1.2rem; }

    /* STATS */
    .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; z-index: 3; }
    .stat-card, .card, .soft-card { border-radius: var(--radius); background: rgba(255,255,255,.88); border: 1px solid rgba(30,64,175,.11); box-shadow: var(--shadow-sm); backdrop-filter: blur(16px); transition: transform .36s var(--ease), box-shadow .36s var(--ease), border-color .36s var(--ease); }
    .stat-card { padding: 24px; text-align: center; }
    .stat-card:hover, .card:hover, .soft-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(30,64,175,.24); }
    .stat-card h3 { color: var(--blue); font-size: clamp(1.45rem, 2.6vw, 2.4rem); font-weight: 900; line-height: 1; }
    .stat-card p { color: var(--muted); font-weight: 800; margin-top: 8px; font-size: .9rem; }

    /* QUICK PAGES */
    .quick-pages, .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
    .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .card { padding: 28px; }
    .soft-card { padding: 24px; }
    .quick-card { padding: 26px; position: relative; overflow: hidden; min-height: 198px; text-align: left; }
    .quick-card::before { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 999px; background: rgba(59,130,246,.09); right: -34px; top: -34px; transition: transform .5s var(--ease); }
    .quick-card:hover::before { transform: scale(1.35); }
    .icon-box { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 14px 30px rgba(30,64,175,.24); margin-bottom: 18px; }
    .quick-card h3, .card h3, .soft-card h3 { color: var(--navy); font-weight: 900; letter-spacing: -.025em; line-height: 1.15; }
    .quick-card p, .card p, .soft-card p { color: var(--muted); margin-top: 10px; }

    /* INFO STRIP */
    .info-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; border-radius: 34px; padding: 24px; background: radial-gradient(circle at 84% 30%, rgba(6,182,212,.24), transparent 32%), linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; overflow: hidden; position: relative; box-shadow: var(--shadow-lg); }
    .info-strip .btn-outline { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.4); }
    .info-strip .btn-outline:hover { background: rgba(255,255,255,0.28); color: #fff; }
    .info-strip::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 82% 0%, rgba(251,191,36,.22), transparent 24rem); pointer-events: none; }
    .info-strip > * { position: relative; z-index: 1; }
    .info-strip i { width: 64px; height: 64px; display: grid; place-items: center; background: rgba(255,255,255,.12); border-radius: 22px; color: #fbbf24; font-size: 1.8rem; }
    .info-strip h3 { color: #fff; font-size: 1.35rem; font-weight: 900; }
    .info-strip p { color: rgba(255,255,255,.78); margin-top: 4px; }

    /* PAGE HERO */
    .page-hero { position: relative; overflow: hidden; padding: clamp(62px, 8vw, 96px) 0 clamp(34px, 4vw, 52px); background: radial-gradient(circle at 92% 18%, rgba(59,130,246,.11), transparent 28rem), radial-gradient(circle at 8% 6%, rgba(6,182,212,.11), transparent 22rem), linear-gradient(180deg, rgba(239,246,255,.58), rgba(255,255,255,.86)); color: var(--text); border-bottom: 1px solid rgba(30,64,175,.08); }
    .page-hero::before { content: ''; position: absolute; width: 340px; height: 340px; right: -130px; top: -120px; border-radius: 999px; background: rgba(6,182,212,.14); animation: floatSoft 9s var(--ease) infinite alternate; pointer-events: none; }
    .page-hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .48fr; gap: 28px; align-items: center; }
    .page-hero h1 { color: var(--navy); font-size: clamp(2.25rem, 5vw, 4.15rem); margin: 12px 0 14px; }
    .page-hero p { color: var(--muted); max-width: 720px; font-size: clamp(1rem, 1.5vw, 1.15rem); }
    .breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 900; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
    .hero-badge-card { position: relative; padding: 22px; border-radius: 28px; background: rgba(255,255,255,.86); border: 1px solid rgba(30,64,175,.12); box-shadow: var(--shadow-md); color: var(--text); backdrop-filter: blur(16px); text-align: center; }
    .hero-badge-card img { width: 105px; height: 105px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; box-shadow: 0 18px 38px rgba(0,0,0,.10); background: #fff; padding: 7px; }
    .hero-badge-card strong { color: var(--navy); font-size: 1.2rem; display: block; margin-bottom: 4px; }
    .hero-badge-card span { color: var(--muted); font-weight: 800; }

    /* DATA TABLE */
    .data-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 20px; box-shadow: var(--shadow-sm); background: #fff; }
    .data-table tr { border-bottom: 1px solid rgba(226,232,240,.9); }
    .data-table tr:last-child { border-bottom: none; }
    .data-table td { padding: 15px 18px; vertical-align: top; }
    .data-table td:first-child { width: 38%; font-weight: 900; color: var(--navy); background: rgba(30,64,175,.04); }

    /* VISION & LIST */
    .vision-card { border-left: 5px solid var(--blue); }
    .list-check { list-style: none; display: grid; gap: 12px; }
    .list-check li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
    .list-check i { color: var(--green); margin-top: 5px; }

    /* FEATURE CARD */
    .feature-card { position: relative; overflow: hidden; }
    .feature-card .icon-box { margin-bottom: 16px; }
    .feature-card h3 { font-size: 1.15rem; }
    .feature-card::after { content: ''; position: absolute; width: 86px; height: 86px; border-radius: 999px; right: -30px; bottom: -30px; background: rgba(6,182,212,.10); transition: transform .45s var(--ease); }
    .feature-card:hover::after { transform: scale(1.6); }

    /* FACILITY */
    .facility-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: stretch; }
    .facility-main { min-height: 410px; border-radius: 34px; overflow: hidden; position: relative; background: #dbeafe; box-shadow: var(--shadow-md); }
    .facility-main img { width: 100%; height: 100%; object-fit: cover; min-height: 410px; transition: transform .8s var(--ease); }
    .facility-main:hover img { transform: scale(1.06); }
    .facility-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(7,25,54,.74)); }
    .facility-main-content { position: absolute; inset: auto 28px 28px; z-index: 1; color: #fff; }
    .facility-main-content h3 { color: #fff; font-size: 2rem; }
    .facility-main-content p { color: rgba(255,255,255,.78); }
    .facility-list { display: grid; gap: 14px; }
    .facility-item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 18px; }
    .facility-item i { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); }

    /* MPLS 2026 */
    .mpls-sukses-banner { background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 40%, #2563eb 70%, #0e7490 100%); padding: 64px 24px 56px; text-align: center; position: relative; overflow: hidden; }
    .mpls-sukses-banner::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
    .mpls-sukses-confetti { font-size: 1.5rem; margin-bottom: 16px; opacity: 0.6; letter-spacing: 12px; color: #fff; }
    .mpls-sukses-content { position: relative; max-width: 640px; margin: 0 auto; }
    .mpls-sukses-badge { width: 80px; height: 80px; background: linear-gradient(135deg, #fbbf24, #f59e0b); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; color: #fff; box-shadow: 0 8px 24px rgba(251,191,36,0.4); animation: pulse-badge 2s ease-in-out infinite; }
    @keyframes pulse-badge { 0%,100% { transform: scale(1); box-shadow: 0 8px 24px rgba(251,191,36,0.4); } 50% { transform: scale(1.06); box-shadow: 0 12px 32px rgba(251,191,36,0.6); } }
    .mpls-sukses-title { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; color: #fff; margin: 0 0 14px; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,0.2); }
    .mpls-sukses-sub { color: rgba(255,255,255,0.88); font-size: 1.05rem; line-height: 1.6; margin-bottom: 24px; }
    .mpls-sukses-badge-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
    .mpls-sukses-badge-row span { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); color: #fff; padding: 7px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; display: flex; align-items: center; gap: 6px; backdrop-filter: blur(4px); }

    .gugus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
    .gugus-card { background: #fff; border-radius: 16px; padding: 28px 22px 22px; box-shadow: 0 2px 16px rgba(30,64,175,0.08); border: 1.5px solid #e0e7ff; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; cursor: pointer; transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s; -webkit-tap-highlight-color: transparent; user-select: none; }
    .gugus-card:active { transform: scale(0.98); }
    .gugus-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(30,64,175,0.15); border-color: #6366f1; }
    .gugus-icon-wrap { width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, #3b82f6, #1d4ed8); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; box-shadow: 0 4px 14px rgba(59,130,246,0.35); flex-shrink: 0; }
    .gugus-icon-wrap.gugus-2 { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 14px rgba(16,185,129,0.35); }
    .gugus-icon-wrap.gugus-3 { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 14px rgba(245,158,11,0.35); }
    .gugus-icon-wrap.gugus-4 { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 4px 14px rgba(239,68,68,0.35); }
    .gugus-icon-wrap.gugus-5 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 4px 14px rgba(139,92,246,0.35); }
    .gugus-info h3 { font-size: 1.2rem; font-weight: 800; color: #1e293b; margin: 0 0 4px; }
    .gugus-info p { font-size: 0.85rem; color: #64748b; margin: 0; }
    .gugus-btn { margin-top: auto; background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff; border: none; border-radius: 10px; padding: 10px 22px; font-size: 0.9rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: opacity 0.18s, transform 0.18s; -webkit-tap-highlight-color: transparent; width: 100%; justify-content: center; }
    .gugus-btn:active { transform: scale(0.96); }

    /* GUGUS MODAL - FULLSCREEN OVERLAY FIX */
    .gugus-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100dvh;
      min-height: 100vh;
      /* Hampir maksimal, tapi HARUS di bawah lightbox (#imageModal) supaya foto
         yang diklik dari dalam modal dokumentasi tampil di atas, bukan tertutup. */
      z-index: 2147483640;
      align-items: center;
      justify-content: center;
      padding: 16px;
      background: rgba(15, 23, 42, 0);
      overflow: hidden;
      overscroll-behavior: contain;
      isolation: isolate;
      /* Blur diterapkan langsung (tidak dianimasikan) supaya browser tidak
         menghitung ulang blur setiap frame — inilah yang sebelumnya
         menyebabkan animasi buka modal terasa patah-patah/ngelek di HP. */
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      transition: background .28s ease-out;
      will-change: background;
    }

    .gugus-modal-overlay.aktif {
      background: rgba(15, 23, 42, .82);
    }

    .gugus-modal {
      position: relative;
      z-index: 1;
      width: min(600px, 100%);
      max-width: 600px;
      max-height: calc(100dvh - 32px);
      margin: 0;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      background: #fff;
      border-radius: 24px;
      box-shadow: 0 32px 100px rgba(0,0,0,.4);
      opacity: 0;
      transform: translate3d(0, 24px, 0) scale(.97);
      transition: opacity .26s ease-out,
                  transform .26s ease-out;
      will-change: opacity, transform;
      backface-visibility: hidden;
    }
    .gugus-modal-overlay.aktif .gugus-modal {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
    .gugus-modal-overlay.keluar .gugus-modal {
      opacity: 0;
      transform: translate3d(0, 14px, 0) scale(0.98);
    }
    .gugus-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: linear-gradient(135deg, #1e40af, #2563eb); color: #fff; position: sticky; top: 0; z-index: 2; border-radius: 20px 20px 0 0; }
    .gugus-modal-header h2 { font-size: 1.15rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; }
    .gugus-modal-close { 
      background: rgba(255,255,255,0.2); border: none; color: #fff; 
      width: 40px; height: 40px; border-radius: 12px; font-size: 1.2rem; cursor: pointer; 
      display: flex; align-items: center; justify-content: center; 
      transition: background 0.18s, transform 0.18s; 
      flex-shrink: 0; -webkit-tap-highlight-color: transparent; 
    }
    .gugus-modal-close:hover { background: rgba(255,255,255,0.32); transform: rotate(90deg); }
    .gugus-modal-close:active { background: rgba(255,255,255,0.45); transform: rotate(90deg) scale(0.9); }
    .gugus-modal-body { padding: 28px 24px 24px; }
    .gugus-foto-grid { display: flex; flex-direction: column; gap: 22px; }
    .gugus-foto-slot { display: flex; flex-direction: row; align-items: center; gap: 18px; width: 100%; padding: 14px; border: 1px solid #e0e7ff; border-radius: 14px; background: #fff; min-width: 0; }
    .gugus-foto-wrap { width: clamp(120px, 35%, 220px); flex: 0 0 clamp(120px, 35%, 220px); border-radius: 14px; overflow: hidden; border: 2px solid #e0e7ff; aspect-ratio: 4/3; background: #f8fafc; }
    .gugus-foto-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
    .gugus-foto-kosong { width: 100%; height: 100%; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #94a3b8; background: #f8fafc; padding: 20px; }
    .gugus-foto-kosong i { font-size: 2rem; }
    .gugus-foto-kosong span { font-weight: 700; font-size: 0.9rem; }
    .gugus-foto-kosong small { font-size: 0.75rem; color: #cbd5e1; text-align: center; }
    .gugus-foto-kosong code { background: #f1f5f9; color: #ef4444; font-size: 0.78rem; padding: 4px 10px; border-radius: 6px; word-break: break-all; text-align: center; margin-top: 4px; }
    .gugus-foto-caption { flex: 1; min-width: 0; text-align: left; font-size: 0.95rem; color: #64748b; font-weight: 600; margin: 0; line-height: 1.5; word-break: break-word; }

    /* EKSKUL CARD */
    .ekskul-card { background: #fff; border-radius: 20px; padding: 26px 24px; box-shadow: 0 2px 16px rgba(30,64,175,0.08); border: 1.5px solid #e0e7ff; display: flex; flex-direction: column; gap: 12px; cursor: pointer; text-align: left; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); -webkit-tap-highlight-color: transparent; user-select: none; position: relative; overflow: hidden; }
    .ekskul-card::after { content: ''; position: absolute; width: 110px; height: 110px; border-radius: 999px; right: -36px; bottom: -36px; background: rgba(6,182,212,.08); transition: transform .5s var(--ease); }
    .ekskul-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(30,64,175,0.16); border-color: #6366f1; }
    .ekskul-card:hover::after { transform: scale(1.5); }
    .ekskul-card:active { transform: scale(0.98); }
    .ekskul-card .icon-box { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; color: #fff; font-size: 1.7rem; margin-bottom: 6px; box-shadow: 0 12px 26px rgba(30,64,175,0.26); }
    .ekskul-card h3 { font-size: 1.25rem; font-weight: 900; color: #1e293b; letter-spacing: -.02em; margin: 0; }
    .ekskul-card p { font-size: .88rem; color: #64748b; margin: 0; line-height: 1.55; flex: 1; }
    .ekskul-card .ekskul-open { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--blue); font-weight: 900; font-size: .88rem; }
    .ekskul-card .ekskul-open i { transition: transform .3s var(--ease); }
    .ekskul-card:hover .ekskul-open i { transform: translateX(4px); }
    /* Warna ikon per ekskul */
    .ekskul-card .icon-box.ib-osis { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
    .ekskul-card .icon-box.ib-pmr { background: linear-gradient(135deg, #f43f5e, #e11d48); }
    .ekskul-card .icon-box.ib-pramuka { background: linear-gradient(135deg, #10b981, #059669); }
    .ekskul-card .icon-box.ib-futsal { background: linear-gradient(135deg, #f59e0b, #ea580c); }

    /* EKSKUL MODAL */
    .ekskul-desc { font-size: 1rem; color: #475569; line-height: 1.75; margin: 0 0 22px; text-align: left; }
    .ekskul-subtitle { display: flex; align-items: center; gap: 8px; font-weight: 900; color: #1e293b; font-size: .95rem; margin-bottom: 14px; letter-spacing: .02em; }
    .ekskul-subtitle i { color: var(--blue); }

    /* GALLERY */
    .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .gallery-item { position: relative; border-radius: 28px; overflow: hidden; min-height: 260px; background: #dbeafe; box-shadow: var(--shadow-sm); cursor: pointer; }
    .gallery-item img, .gallery-item video { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; transition: transform .75s var(--ease), filter .75s var(--ease); }
    .gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(7,25,54,.82)); opacity: .92; }
    .gallery-caption { position: absolute; inset: auto 18px 18px; z-index: 1; color: #fff; transform: translateY(6px); transition: transform .45s var(--ease); }
    .gallery-caption h3 { color: #fff; font-size: 1.1rem; font-weight: 900; }
    .gallery-caption p { color: rgba(255,255,255,.78); font-size: .9rem; margin-top: 3px; }
    .gallery-item:hover img, .gallery-item:hover video { transform: scale(1.08); filter: saturate(1.08); }
    .gallery-item:hover .gallery-caption { transform: translateY(0); }

    /* NEWS */
    .pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 10px; font-size: .75rem; font-weight: 900; color: var(--blue); background: rgba(30,64,175,.08); border: 1px solid rgba(30,64,175,.12); }
    .program-image { border-radius: 20px 20px 0 0; overflow: hidden; }
    .program-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s var(--ease); }
    .program-card:hover .program-image img { transform: scale(1.05); }
    .program-body { padding: 20px; }

    /* CONTACT */
    .contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
    .contact-list { display: grid; gap: 14px; }
    .contact-item { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 18px; border-radius: 24px; background: rgba(255,255,255,.86); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
    .contact-item:hover { transform: translateY(-3px); }
    .contact-item i { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
    .contact-form { display: grid; gap: 14px; }
    .form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(148,163,184,.34); border-radius: 18px; padding: 14px 16px; background: rgba(255,255,255,.88); color: var(--text); outline: none; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
    .contact-form textarea { min-height: 156px; resize: vertical; }
    .contact-form input:focus, .contact-form textarea:focus { border-color: rgba(30,64,175,.48); box-shadow: 0 0 0 5px rgba(30,64,175,.09); transform: translateY(-1px); }
    .map-card iframe { width: 100%; height: 330px; border: 0; border-radius: 26px; }

    /* REVEAL */
    .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
    .reveal.is-visible { opacity: 1; transform: translateY(0); }
    .reveal.visible { opacity: 1; transform: translateY(0); }  /* alias lama — kartu dari CMS/JS */

    /* BACK TOP */
    .back-top { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 48px; height: 48px; border-radius: 17px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(14px) scale(.94); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
    .back-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

    /* KUNCI SCROLL SAAT MODAL GUGUS TERBUKA */
    html.gugus-modal-open,
    body.gugus-modal-open {
      overflow: hidden !important;
      overscroll-behavior: none !important;
    }

    /* MODAL */
    .modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: rgba(7,25,54,.72); backdrop-filter: blur(8px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .modal.show { display: grid; }
    .modal-card { position: relative; max-width: 980px; width: 100%; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.33); margin: auto; }
    .modal-card img, .modal-card video { width: 100%; max-height: min(72vh, 72dvh); object-fit: contain; background: #0f172a; }
    #modalVideo { display: none; }
    .modal-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 16px; background: rgba(255,255,255,.92); color: var(--navy); box-shadow: var(--shadow-sm); z-index: 2; display: grid; place-items: center; }

    /* FOOTER */
    footer { background: #0a192f; color: #cbd5e1; padding: 42px 0 24px; margin-top: 0; }
    .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
    footer h3 { color: #fff; margin-bottom: 13px; font-weight: 900; }
    footer p, footer a { color: #cbd5e1; }
    footer a:hover { color: #fff; }
    .footer-links { list-style: none; display: grid; gap: 8px; }
    .footer-links .nav-link { color: #cbd5e1; padding: 0; }
    .footer-links .nav-link::after { display: none; }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 26px; padding-top: 18px; text-align: center; font-size: .9rem; color: #94a3b8; }

    /* RESPONSIVE */
    @media (max-width: 1280px) {
      .nav-links, .nav-cta { display: none; }
      .menu-toggle { display: inline-flex; }
      .mobile-menu { 
        display: grid !important;
        position: fixed; left: var(--side); right: var(--side); top: 126px; z-index: 55; padding: 14px; border-radius: 24px; background: rgba(255,255,255,.96); border: 1px solid var(--line); box-shadow: var(--shadow-md); backdrop-filter: blur(18px); transform: translateY(-12px) scale(.98); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); gap: 4px; 
      }
      .mobile-menu.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
      .mobile-menu .nav-link { display: flex; width: 100%; padding: 13px 14px; border-radius: 16px; }
      .mobile-menu .nav-link::after { display: none; }
      .mobile-menu .nav-link.active, .mobile-menu .nav-link:hover { background: rgba(30,64,175,.08); }
    }
    @media (min-width: 1281px) {
      .mobile-menu { display: none !important; opacity: 0 !important; pointer-events: none !important; } 
    }

    @media (max-width: 980px) {
      .hero-grid, .page-hero-content, .grid-2, .facility-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
      .hero-card { min-height: 390px; }
      .page-hero { padding-top: 48px; }
      .hero-badge-card { max-width: 280px; margin: 0 auto; }
      .page-hero-content { gap: 20px; }
    }

    @media (max-width: 930px) {
      .topbar { display: block !important; }
      .topbar-inner { justify-content: center; min-height: 40px; }
      .topbar-group:first-child { display: none; }
      .topbar-group:last-child { width: 100%; justify-content: center; flex-wrap: nowrap; }
      .home-hero { padding-top: 26px; }
      .stats-grid, .quick-pages, .grid-3, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
      .grid-4 { grid-template-columns: repeat(2, 1fr); }
      .page { min-height: auto; }
      .mobile-menu { top: 122px !important; }
    }

    @media (max-width: 680px) {
      /* Avoid compositing several blurred layers on low-power phones. */
      .site-header, .topbar-pill, .mobile-menu, .card, .soft-card, .stat-card,
      .hero-kicker, .hero-floating, .hero-badge-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
      }
      :root { --side: 16px; }
      .topbar { font-size: .68rem; }
      .topbar-inner { min-height: 42px; padding-top: 5px; padding-bottom: 5px; }
      .topbar-pill { padding: 5px 8px; min-height: 24px; }
      .topbar-group:last-child .topbar-pill:first-child span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .topbar-clock { min-width: 92px; justify-content: center; }
      .navbar { height: 72px; }
      .brand-logo, .brand-logo-video { width: 48px; height: 48px; }
      .brand-title { font-size: .98rem; }
      .brand-subtitle { font-size: .62rem; }
      .mobile-menu { top: 114px !important; left: 14px; right: 14px; }
      .home-hero { padding-top: 22px; }
      .hero-title { font-size: clamp(2.35rem, 15vw, 4.2rem); }
      .hero-actions { flex-direction: column; }
      .btn { width: 100%; }
      .hero-card { min-height: 340px; }
      .hero-card img { width: 170px; height: 170px; }
      .hero-floating { top: 14px; left: 14px; right: 14px; justify-content: center; white-space: normal; }
      .stats-grid, .quick-pages, .grid-3, .grid-4, .gallery-grid, .form-row, .gugus-foto-grid { grid-template-columns: 1fr; }
      .gugus-grid { grid-template-columns: 1fr 1fr; }
      .gugus-foto-slot { flex-direction: column; align-items: stretch; }
      .gugus-foto-wrap { width: 100%; flex: 0 0 auto; }
      .info-strip { grid-template-columns: 1fr; text-align: left; gap: 14px; }
      .info-strip > i { width: 48px; height: 48px; font-size: 1.4rem; }
      .info-strip .btn { align-self: flex-start; width: auto; }
      .data-table td { display: block; width: 100% !important; }
      .data-table td:first-child { padding-bottom: 6px; }
      .footer-grid { gap: 28px; }
    }

    @media (max-width: 380px) {
      .gugus-grid { grid-template-columns: 1fr; }
      .gugus-foto-slot { flex-direction: column; align-items: stretch; }
      .gugus-foto-wrap { width: 100%; flex: 0 0 auto; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    }

/* =========================================
   17 AGUSTUS MERAH PUTIH - KHUSUS TEMA
   Hanya untuk #agustus17 & elemen terkait
   ========================================= */

/* NAV LINK MERAH PUTIH */
.nav-link-merah-putih {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(220,38,38,0.28);
  border: 1.5px solid rgba(255,255,255,0.18);
}
.nav-link-merah-putih::after { display: none !important; }
.nav-link-merah-putih:hover, .nav-link-merah-putih.active {
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(220,38,38,0.38) !important;
}
.mobile-menu .nav-link-merah-putih {
  background: linear-gradient(135deg, #fef2f2, #fff) !important;
  color: #dc2626 !important;
  border: 1.5px solid #fecaca !important;
}
.mobile-menu .nav-link-merah-putih.active,
.mobile-menu .nav-link-merah-putih:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  color: #fff !important;
}

/* QUICK CARD MERAH PUTIH */
.quick-card-merah-putih {
  background: linear-gradient(135deg, #fff 0%, #fef2f2 50%, #fff 100%) !important;
  border: 2px solid #fecaca !important;
  position: relative;
}
.quick-card-merah-putih::before {
  background: linear-gradient(135deg, rgba(220,38,38,0.10), rgba(220,38,38,0.02)) !important;
  width: 180px !important; height: 180px !important;
}
.quick-card-merah-putih::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #dc2626 0%, #dc2626 50%, #ffffff 50.1%, #f8fafc 100%);
  border-radius: 28px 28px 0 0;
}

/* ====== 17 AGUSTUS PAGE ====== */
#agustus17 {
  background: linear-gradient(180deg, #fff 0%, #fef2f2 22%, #ffffff 55%, #f8fafc 100%);
}

.agustus-merdeka-banner {
  position: relative;
  padding: clamp(48px, 7vw, 84px) 20px clamp(72px, 8vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.9) 0%, transparent 22%),
    radial-gradient(circle at 86% 88%, rgba(255,255,255,0.75) 0%, transparent 24%),
    linear-gradient(180deg, #b91c1c 0%, #dc2626 38%, #ef4444 50%, #ffffff 50.3%, #f8fafc 100%);
  border-bottom: 4px solid #dc2626;
}
.agustus-merdeka-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}
.bendera-hiasan {
  position: absolute;
  width: 180px; height: 28px;
  background: linear-gradient(90deg, #dc2626 50%, #fff 50.1%);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0.9;
}
.bendera-hiasan-1 { top: 18px; left: -18px; transform: rotate(-18deg); }
.bendera-hiasan-2 { top: 28px; right: -14px; transform: rotate(16deg); }
.bendera-hiasan-3 { bottom: 62px; left: 42%; transform: rotate(-4deg); width: 120px; opacity: 0.7; }

.agustus-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 20px;
  font-size: 1.6rem;
  opacity: 0.85;
}
.agustus-confetti span {
  display: inline-block;
  animation: agustusFloat 4.5s ease-in-out infinite alternate;
}
.agustus-confetti span:nth-child(2) { animation-delay: 0.6s; }
.agustus-confetti span:nth-child(3) { animation-delay: 1.2s; }
.agustus-confetti span:nth-child(4) { animation-delay: 0.3s; }
.agustus-confetti span:nth-child(5) { animation-delay: 1s; }

@keyframes agustusFloat {
  from { transform: translateY(0) rotate(-6deg); }
  to { transform: translateY(-10px) rotate(8deg); }
}

.bendera-strip-merah {
  position: absolute; left: 0; right: 0; bottom: 32px; height: 16px;
  background: #dc2626;
}
.bendera-strip-putih {
  position: absolute; left: 0; right: 0; bottom: 0; height: 32px;
  background: #ffffff;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.agustus-hero-content {
  position: relative; z-index: 2; text-align: center; max-width: 760px; margin: 0 auto;
}

.agustus-badge-tujuhbelas {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: #991b1b; font-weight: 900; font-size: .85rem; letter-spacing: .06em;
  border: 2px solid #fecaca;
  box-shadow: 0 8px 22px rgba(0,0,0,0.14);
  margin-bottom: 18px;
}
.agustus-badge-tujuhbelas i { color: #dc2626; }

.agustus-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: .95;
  letter-spacing: -.04em;
  margin: 0 0 10px;
  text-shadow: 0 3px 18px rgba(0,0,0,0.22);
}
.agustus-title .merah { color: #fff; }
.agustus-title .putih { 
  color: #fff; 
  -webkit-text-stroke: 1.5px #991b1b;
  text-stroke: 1.5px #991b1b;
  text-shadow: 2px 2px 0 #fff, 0 3px 18px rgba(0,0,0,0.25);
  background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.agustus-title .putih { color: #ffffff; }

.agustus-sub-title {
  display: block;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  font-weight: 800;
  color: #7f1d1d;
  background: rgba(255,255,255,0.92);
  padding: 6px 16px;
  border-radius: 999px;
  margin-top: 10px;
  border: 1.5px solid #fecaca;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  letter-spacing: .04em;
}

.agustus-desc {
  color: #450a0a;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  font-weight: 600;
  background: rgba(255,255,255,0.88);
  padding: 12px 18px;
  border-radius: 16px;
  margin: 18px auto 22px;
  max-width: 620px;
  border: 1px solid rgba(220,38,38,0.12);
  box-shadow: var(--shadow-sm);
}

.agustus-info-pills {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.agustus-info-pills span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: #7f1d1d; font-weight: 800; font-size: .84rem;
  border: 1px solid #fecaca;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* EYEBROW MERAH */
.agustus-eyebrow {
  background: rgba(220,38,38,0.08) !important;
  color: #dc2626 !important;
  border-color: rgba(220,38,38,0.18) !important;
}

/* STATS MERAH PUTIH */
.agustus-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 8px;
}
.agustus-stat {
  padding: 20px 16px; text-align: center;
  border-radius: 22px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  box-shadow: var(--shadow-sm);
}
.agustus-stat.merah {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff; border-color: #991b1b;
}
.agustus-stat.merah p { color: rgba(255,255,255,0.85); }
.agustus-stat.putih {
  background: linear-gradient(135deg, #fff, #fef2f2);
  border-color: #fecaca;
}
.agustus-stat h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900; color: #991b1b; line-height: 1;
}
.agustus-stat.merah h3 { color: #fff; }
.agustus-stat p { font-weight: 800; color: #64748b; margin-top: 6px; font-size: .85rem; }
.agustus-stat.putih h3 { color: #dc2626; }

/* LOMBA GRID */
.lomba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 12px;
}

.lomba-card {
  position: relative;
  background: #fff;
  border-radius: 26px;
  padding: 26px 24px 22px;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 8px 28px rgba(15,23,42,0.07);
  overflow: hidden;
  transition: transform .34s var(--ease), box-shadow .34s var(--ease), border-color .34s var(--ease);
  display: flex; flex-direction: column; gap: 12px;
  text-align: left;
}
.lomba-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(127,29,29,0.12);
}
.lomba-card.lomba-merah {
  border-top: 6px solid #dc2626;
  border-color: #fecaca;
}
.lomba-card.lomba-merah:hover { border-color: #fca5a5; }
.lomba-card.lomba-putih {
  border-top: 6px solid #e5e7eb;
  background: linear-gradient(180deg, #fff 0%, #fff 65%, #fef2f2 100%);
  border-color: #e5e7eb;
}
.lomba-card.lomba-putih:hover { border-color: #fecaca; }

.lomba-card::before {
  content: '';
  position: absolute; width: 120px; height: 120px; border-radius: 999px;
  right: -30px; top: -30px; opacity: 0.07;
  transition: transform .5s var(--ease);
}
.lomba-card.lomba-merah::before { background: #dc2626; }
.lomba-card.lomba-putih::before { background: #991b1b; }
.lomba-card:hover::before { transform: scale(1.5); }

.lomba-dekorasi {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, #dc2626 50%, #ffffff 50.1%);
  opacity: 0.9;
}
.lomba-card.lomba-putih .lomba-dekorasi {
  background: linear-gradient(90deg, #f1f5f9 50%, #dc2626 50.1%);
}

.lomba-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.lomba-icon {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center;
  color: #fff; font-size: 1.6rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.lomba-icon-merah { background: linear-gradient(135deg, #ef4444, #991b1b); }
.lomba-icon-putih { background: linear-gradient(135deg, #fff, #fecaca); color: #dc2626 !important; border: 1.5px solid #fecaca; }

.lomba-peserta-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: #dc2626; color: #fff;
  font-weight: 900; font-size: .78rem;
  box-shadow: 0 4px 12px rgba(220,38,38,0.22);
}
.lomba-peserta-badge.putih {
  background: #fff; color: #dc2626; border: 1.5px solid #fecaca;
}

/* DUAL STATS: PER KELAS / TOTAL 15 KELAS */
.lomba-dual-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.lomba-kelas-stat {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 11px; border-radius: 16px;
  background: #fff7f7; border: 1.5px solid #fecaca;
  box-shadow: 0 3px 10px rgba(220,38,38,0.06);
}
.lomba-card.lomba-putih .lomba-kelas-stat { background: #fff; border-color: #eee2e2; }
.lomba-ic {
  width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: .88rem;
  background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff;
  box-shadow: 0 4px 10px rgba(220,38,38,0.28);
}
.lomba-stat-txt { display: grid; line-height: 1.15; text-align: left; }
.lomba-stat-txt strong { font-size: .98rem; font-weight: 900; color: #7f1d1d; letter-spacing: -.01em; }
.lomba-stat-txt small { font-size: .64rem; font-weight: 800; color: #b91c1c; text-transform: uppercase; letter-spacing: .05em; }
.lomba-kelas-stat.total {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border-color: #b91c1c;
  box-shadow: 0 6px 16px rgba(153,27,27,0.28);
}
.lomba-kelas-stat.total .lomba-ic { background: rgba(255,255,255,0.16); color: #fef08a; box-shadow: none; }
.lomba-kelas-stat.total .lomba-stat-txt strong { color: #fff; }
.lomba-kelas-stat.total .lomba-stat-txt small { color: #fecdd3; }

/* FIX: warna teks jam pada kartu lomba putih agar tidak hilang di background putih */
#agustus17 .lomba-card.lomba-putih .lomba-kelas-stat.total {
  background: #ffffff !important;
  border-color: #fecaca !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.10) !important;
}
#agustus17 .lomba-card.lomba-putih .lomba-kelas-stat.total .lomba-ic {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.28) !important;
}
#agustus17 .lomba-card.lomba-putih .lomba-kelas-stat.total .lomba-stat-txt strong,
#agustus17 .lomba-card.lomba-putih .lomba-kelas-stat.total .lomba-stat-txt small {
  color: #dc2626 !important;
}

.lomba-card h3 {
  font-size: 1.28rem; font-weight: 900; color: #7f1d1d;
  display: flex; align-items: center; gap: 10px; margin: 0;
  letter-spacing: -.02em;
}
.lomba-card h3 span {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: #fef2f2; color: #dc2626; font-size: .95rem; border: 1px solid #fecaca;
}
/* Judul lomba bernomor 02, 04, 06, 08, dan 10 tampil merah pada kartu putih. */
.lomba-card.lomba-putih h3 { color: #dc2626; }

.lomba-card p {
  font-size: .92rem; line-height: 1.65; color: #57534e; margin: 0;
}

.lomba-detail {
  list-style: none; display: grid; gap: 8px; margin-top: 6px;
  padding: 14px 14px; border-radius: 16px;
  background: #fef2f2;
  border: 1px dashed #fecaca;
}
.lomba-card.lomba-putih .lomba-detail {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.lomba-detail li {
  display: flex; align-items: center; gap: 8px;
  font-size: .84rem; font-weight: 700; color: #7f1d1d;
}
.lomba-detail li i { color: #dc2626; width: 18px; text-align: center; }

/* INFO STRIP MERAH PUTIH */
.agustus-info-strip {
  margin-top: 36px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: 26px;
  border-radius: 28px;
  background: radial-gradient(circle at 88% 20%, rgba(255,255,255,0.8), transparent 26%),
              linear-gradient(135deg, #991b1b 0%, #dc2626 54%, #ef4444 100%);
  color: #fff;
  box-shadow: 0 20px 60px rgba(153,27,27,0.28);
  position: relative; overflow: hidden;
}
.agustus-info-strip::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.agustus-info-strip > * { position: relative; z-index: 1; }
.agustus-info-icon {
  width: 62px; height: 62px; border-radius: 18px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.16); color: #fff; font-size: 1.7rem;
  border: 1px solid rgba(255,255,255,0.22);
}
.agustus-info-strip h3 { color: #fff; font-weight: 900; font-size: 1.35rem; }
.agustus-info-strip p { color: rgba(255,255,255,0.88); margin-top: 6px; line-height: 1.6; }
.agustus-total-peserta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.agustus-total-peserta span {
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: .78rem; font-weight: 800; color: #fff;
}
.agustus-total-peserta span strong { color: #fef08a; }

.btn-merah-putih {
  background: #fff !important; color: #991b1b !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.16) !important;
  border: 1.5px solid #fff;
  font-weight: 900;
  white-space: nowrap;
}
.btn-merah-putih:hover {
  background: #fef2f2 !important;
  transform: translateY(-2px);
}

/* BUTTON LIHAT DOKUMENTASI DI KARTU LOMBA */
.lomba-btn-dok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .01em;
  border: 1.5px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.28);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  margin-top: 6px;
  font-family: inherit;
}
.lomba-btn-dok:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.42);
}
.lomba-btn-dok:active {
  transform: translateY(0) scale(0.98);
}
.lomba-btn-dok i {
  font-size: .95rem;
}

/* Untuk kartu lomba putih (kelas lomba bernomor genap), button lebih soft */
.lomba-card.lomba-putih .lomba-btn-dok {
  background: #fff;
  color: #dc2626;
  border: 1.5px solid #fecaca;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.12);
}
.lomba-card.lomba-putih .lomba-btn-dok:hover {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.36);
}

/* =========================================
   MODAL DOKUMENTASI LOMBA 17 AGUSTUS
   ========================================= */
.lomba-modal-container {
  width: min(720px, 100%) !important;
  max-width: 720px !important;
}

/* TAB KELAS / TINGKAT (KELAS 7, 8, 9) */
.lomba-dok-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border-radius: 16px;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
}
.lomba-dok-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 12px;
  background: transparent;
  color: #7f1d1d;
  font-weight: 800;
  font-size: .88rem;
  border: none;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.lomba-dok-tab i {
  font-size: .88rem;
}
.lomba-dok-tab:hover {
  background: #fff;
  color: #dc2626;
}
.lomba-dok-tab.aktif {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.32);
}
.lomba-dok-tab.aktif i {
  color: #fef08a;
}

/* SUB-KELAS CONTAINER (7A-7E, 8A-8E, 9A-9E) */
.lomba-dok-subkelas-wrap {
  margin-bottom: 16px;
}
.lomba-dok-subkelas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.lomba-dok-subkelas-btn {
  padding: 10px 8px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #fecaca;
  color: #7f1d1d;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s var(--ease);
  text-align: center;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.lomba-dok-subkelas-btn:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #dc2626;
  transform: translateY(-2px);
}
.lomba-dok-subkelas-btn.aktif {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.32);
}

/* FOTO GRID (2 FOTO PER KELAS) */
.lomba-dok-foto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.lomba-dok-foto-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  display: flex;
  flex-direction: column;
}
.lomba-dok-foto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(220, 38, 38, 0.22);
  border-color: #fca5a5;
}
.lomba-dok-foto-card:active {
  transform: translateY(-1px) scale(0.99);
}
.lomba-dok-foto-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8fafc;
}
.lomba-dok-foto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.lomba-dok-foto-card:hover .lomba-dok-foto-img {
  transform: scale(1.04);
}
.lomba-dok-foto-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #dc2626;
  display: grid;
  place-items: center;
  font-size: .85rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .2s var(--ease);
}
.lomba-dok-foto-card:hover .lomba-dok-foto-zoom {
  transform: scale(1.1);
}
.lomba-dok-foto-caption {
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lomba-dok-foto-caption strong {
  font-size: .92rem;
  font-weight: 800;
  color: #1e293b;
}
.lomba-dok-foto-caption span {
  font-size: .76rem;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #fecaca;
}

@media (max-width: 580px) {
  .lomba-dok-foto-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .lomba-dok-subkelas-btn {
    padding: 8px 4px;
    font-size: .82rem;
  }
  .lomba-dok-tab {
    font-size: .82rem;
    padding: 9px 8px;
  }
}

/* KECIL BANNER */
.merah-putih-banner-kecil {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(90deg, #fef2f2, #fff, #fef2f2);
  border: 1.5px solid #fecaca;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.merah-putih-text {
  font-weight: 700; color: #7f1d1d; font-size: .92rem;
}
.merah-putih-text strong { color: #dc2626; }

/* RESPONSIVE AGUSTUS */
@media (max-width: 980px) {
  .agustus-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .agustus-info-strip { grid-template-columns: 1fr; }
  .agustus-info-strip .btn-merah-putih { width: fit-content; }
}
@media (max-width: 680px) {
  .agustus-merdeka-banner { padding: 44px 16px 76px; }
  .bendera-hiasan { display: none; }
  .agustus-title { font-size: clamp(2rem, 10vw, 3rem); }
  .agustus-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .lomba-grid { grid-template-columns: 1fr; }
  .agustus-info-pills { justify-content: flex-start; }
}
@media (max-width: 400px) {
  .lomba-dual-stats { grid-template-columns: 1fr; }
}

/* =========================================================
   PENYEMPURNAAN ANIMASI — MODAL DOKUMENTASI JADI MULUS
   (ditambahkan saat restrukturisasi folder media/ css/ js/)
   Prinsip: hanya animasikan transform & opacity (dipercepat GPU),
   hindari animasi blur/background/height yang bikin patah-patah.
   ========================================================= */

:root {
  --ease-modal: cubic-bezier(.22, .61, .36, 1);
}

/* --- Overlay dokumentasi (gugus / ekskul / lomba) --- */
.gugus-modal-overlay {
  background: rgba(15, 23, 42, .82) !important;
  opacity: 0;
  transition: opacity .28s var(--ease-modal);
  will-change: opacity;
  /* blur ringan & statis: tidak dihitung ulang tiap frame */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translateZ(0);
}
.gugus-modal-overlay.aktif { opacity: 1; }
.gugus-modal-overlay.keluar { opacity: 0; }

.gugus-modal {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(.975);
  transition: opacity .3s var(--ease-modal), transform .34s var(--ease-modal);
  will-change: auto;
  backface-visibility: hidden;
  transform-origin: center bottom;
  contain: paint;
}
.gugus-modal-overlay.aktif .gugus-modal {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.gugus-modal-overlay.keluar .gugus-modal {
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(.985);
  transition-duration: .22s;
}

/* isi modal digambar bertahap → scroll & animasi tetap 60fps */
.gugus-foto-slot,
.lomba-dok-foto-card {
  content-visibility: auto;
  contain-intrinsic-size: 200px;
}

/* --- Foto fade-in lembut (thumbnail dari media/thumb/) --- */
.foto-fade {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .45s var(--ease-modal), transform .6s var(--ease-modal);
}
.foto-fade.is-loaded {
  opacity: 1;
  transform: scale(1);
}
.gugus-foto-wrap,
.lomba-dok-foto-wrap {
  background: linear-gradient(100deg, #f1f5f9 30%, #e2e8f0 50%, #f1f5f9 70%);
  background-size: 220% 100%;
  animation: fotoSkeleton 1.4s linear infinite;
}
.gugus-foto-wrap:has(.is-loaded),
.lomba-dok-foto-wrap:has(.is-loaded) { animation: none; background: #f8fafc; }
@keyframes fotoSkeleton {
  from { background-position: 120% 0; }
  to   { background-position: -20% 0; }
}

/* --- Lightbox galeri (#imageModal) --- */
.modal {
  opacity: 0;
  transition: opacity .24s var(--ease-modal);
  will-change: opacity;
}
.modal.tampil { opacity: 1; }
.modal .modal-card {
  transform: translate3d(0, 18px, 0) scale(.98);
  opacity: 0;
  transition: opacity .26s var(--ease-modal), transform .3s var(--ease-modal);
  backface-visibility: hidden;
}
.modal.tampil .modal-card {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

/* --- Lightbox harus selalu di ATAS modal dokumentasi (Gugus / Ekskul / 17 Agustus) ---
   Overlay dokumentasi memakai z-index hampir maksimal. Tanpa aturan ini foto
   ukuran besar muncul di BALIK overlay, tombol X-nya tidak bisa diklik, dan
   satu-satunya jalan keluar (Esc) menutup semua layer sekaligus sehingga
   halaman terlihat melompat ke atas. */
.modal { z-index: 2147483647; }
.modal .modal-close { z-index: 3; }

/* --- Kunci scroll tanpa "lompat" saat modal dibuka/ditutup ---
   scroll-behavior: auto di sini memastikan pemulihan posisi halaman tidak
   dianimasikan (html { scroll-behavior: smooth } akan membuat halaman
   "naik ke atas dulu, lalu turun lagi"). */
body.gugus-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
html.gugus-modal-open {
  scroll-behavior: auto;
}

/* --- Tab dokumentasi lomba: transisi halus antar kelas --- */
.lomba-dok-foto-grid > * {
  animation: dokMasuk .34s var(--ease-modal) both;
}
.lomba-dok-foto-grid > *:nth-child(2) { animation-delay: .05s; }
.lomba-dok-foto-grid > *:nth-child(3) { animation-delay: .1s; }
.lomba-dok-foto-grid > *:nth-child(4) { animation-delay: .15s; }
.lomba-dok-foto-grid > *:nth-child(n+5) { animation-delay: .18s; }
.gugus-foto-grid > * {
  animation: dokMasuk .34s var(--ease-modal) both;
}
.gugus-foto-grid > *:nth-child(2) { animation-delay: .06s; }
.gugus-foto-grid > *:nth-child(3) { animation-delay: .12s; }
.gugus-foto-grid > *:nth-child(n+4) { animation-delay: .16s; }
@keyframes dokMasuk {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* --- Perangkat kecil / hemat daya: blur dimatikan biar tidak ngelag --- */
@media (max-width: 640px) {
  .gugus-modal-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(15, 23, 42, .88) !important;
  }
  .modal { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7, 25, 54, .9); }
}

@media (prefers-reduced-motion: reduce) {
  .foto-fade, .gugus-modal, .modal, .modal .modal-card { transition: none !important; }
  .gugus-foto-grid > *, .lomba-dok-foto-grid > * { animation: none !important; }
  .gugus-foto-wrap, .lomba-dok-foto-wrap { animation: none !important; }
}

    /* ===== Jadwal Pelajaran ===== */
    .jd-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
    .jd-tab { border: 1px solid rgba(30, 64, 175, .18); background: #fff; color: var(--navy); font-weight: 800; padding: 9px 15px; border-radius: 999px; cursor: pointer; font-size: .86rem; transition: all .25s var(--ease); }
    .jd-tab:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(30, 64, 175, .14); }
    .jd-tab.aktif { background: var(--navy); color: #fff; border-color: var(--navy); }
    .jd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
    .jd-hari { background: #fff; border: 1px solid rgba(30, 64, 175, .10); border-radius: 20px; padding: 16px; box-shadow: 0 14px 34px rgba(30, 64, 175, .08); }
    .jd-hari h3 { margin: 0 0 12px; font-size: 1.05rem; color: var(--navy); display: flex; align-items: center; gap: 8px; }
    .jd-tabel { width: 100%; border-collapse: collapse; font-size: .88rem; }
    .jd-tabel th { text-align: left; padding: 8px 8px; background: rgba(30, 64, 175, .06); color: var(--navy); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
    .jd-tabel td { padding: 9px 8px; border-top: 1px solid rgba(30, 64, 175, .08); vertical-align: top; }
    .jd-tabel tr.jd-umum td { background: rgba(251, 191, 36, .10); font-weight: 700; color: var(--navy); }
    .jd-tabel tr.jd-umum td[colspan] { text-align: left; }
    .jd-mapel b { color: var(--navy); }
    .jd-mapel small { display: block; color: #64748b; font-size: .74rem; margin-top: 2px; }
    .jd-tanda { color: #94a3b8; }
    .jd-kosong { padding: 14px; color: #64748b; background: rgba(30, 64, 175, .05); border-radius: 12px; }

    /* ============================================================
       DATA LENGKAP SEKOLAH — komponen baru (13 Oktober 2026)
       Skor akreditasi · Linimasa · Detail fasilitas · Tautan data
       ============================================================ */

    /* ── Skor akreditasi per standar ── */
    .skor-list { display: grid; gap: 14px; margin-top: 18px; }
    .skor-row { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; align-items: baseline; }
    .skor-nama { font-weight: 800; color: var(--navy); font-size: .95rem; }
    .skor-nilai { font-weight: 900; color: var(--blue); font-size: .95rem; font-variant-numeric: tabular-nums; }
    .skor-track { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: rgba(30,64,175,.10); overflow: hidden; }
    .skor-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
    .skor-fill.tinggi { background: linear-gradient(90deg, #059669, #10b981); }
    .skor-fill.sedang { background: linear-gradient(90deg, #d97706, #f59e0b); }

    /* ── Linimasa kegiatan & peristiwa ── */
    .timeline { position: relative; display: grid; gap: 16px; margin-top: 24px; padding-left: 32px; }
    .timeline::before { content: ''; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 3px; border-radius: 999px; background: linear-gradient(180deg, var(--blue), var(--cyan), rgba(6,182,212,.22)); }
    .tl-item { position: relative; }
    .tl-item::before { content: ''; position: absolute; left: -29px; top: 24px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: 0 0 0 4px rgba(30,64,175,.12); }
    .tl-item.prestasi::before { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,158,11,.16); }
    .tl-card { padding: 18px 20px; }
    .tl-tanggal { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(30,64,175,.08); border: 1px solid rgba(30,64,175,.12); color: var(--blue); font-size: .76rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
    .tl-item.prestasi .tl-tanggal { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.26); color: #b45309; }
    .tl-card h3 { font-size: 1.1rem; margin: 12px 0 6px; }
    .tl-card p { color: var(--muted); font-size: .95rem; }
    .tl-sumber { display: block; margin-top: 10px; font-size: .78rem; font-weight: 700; color: #94a3b8; }

    /* ── Detail fasilitas (chip jumlah & kondisi) ── */
    .fas-num { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
    .fas-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: rgba(16,185,129,.12); color: #047857; border: 1px solid rgba(16,185,129,.24); }
    .fas-chip.netral { background: rgba(30,64,175,.08); color: var(--blue); border-color: rgba(30,64,175,.14); }
    .fas-chip.warn { background: rgba(245,158,11,.14); color: #b45309; border-color: rgba(245,158,11,.28); }
    .fas-chip.danger { background: rgba(239,68,68,.12); color: #b91c1c; border-color: rgba(239,68,68,.24); }
    .facility-item p { color: var(--muted); font-size: .92rem; margin-top: 4px; }

    /* ── Tautan data resmi ── */
    .link-data { display: grid; gap: 10px; margin-top: 16px; }
    .link-data a { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: 18px; background: rgba(30,64,175,.05); border: 1px solid var(--line); color: var(--navy); font-weight: 800; font-size: .92rem; transition: transform .25s var(--ease), background .25s var(--ease); }
    .link-data a:hover { transform: translateX(5px); background: rgba(30,64,175,.10); }
    .link-data a > i { color: var(--blue); font-size: 1rem; }
    .link-data small { margin-left: auto; color: var(--muted); font-weight: 700; font-size: .76rem; }

    /* ── Kartu kepemimpinan ── */
    .pemimpin-list { display: grid; gap: 12px; margin-top: 16px; }
    .pemimpin-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; background: rgba(30,64,175,.04); border: 1px solid var(--line); }
    .pemimpin-item i { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); font-size: 1.05rem; }
    .pemimpin-item h4 { color: var(--navy); font-weight: 900; font-size: 1rem; }
    .pemimpin-item span { display: block; color: var(--muted); font-size: .84rem; font-weight: 700; }
    .pemimpin-item.aktif { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.26); }

    @media (max-width: 720px) {
      .timeline { padding-left: 26px; }
      .tl-item::before { left: -23px; }
      .link-data a { flex-wrap: wrap; }
      .link-data small { margin-left: 0; width: 100%; }
    }

    /* ============================================================
       HALAMAN BERITA & ARTIKEL — perombakan tampilan (14 Okt 2026)
       Kartu berita (publik + admin) · Halaman /artikel/{slug}
       ============================================================ */

    /* ── Grid daftar berita ── */
    .news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
    .news-card {
      position: relative; display: flex; flex-direction: column; overflow: hidden;
      background: #fff; border: 1px solid var(--line); border-radius: 24px;
      box-shadow: var(--shadow-sm);
      transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    }
    .news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(30,64,175,.28); }
    .news-card:focus-within { border-color: var(--blue); }

    .news-cover { position: relative; display: block; overflow: hidden; background: linear-gradient(135deg, #dbeafe, #e0f2fe); }
    .news-cover img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
    .news-card:hover .news-cover img { transform: scale(1.06); }
    .news-cover::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(10,25,47,.45)); opacity: .9; }

    .news-cat {
      position: absolute; z-index: 2; left: 14px; top: 14px;
      display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
      font-size: .74rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase;
      color: #fff; background: rgba(30,64,175,.92); border: 1px solid rgba(255,255,255,.28);
      backdrop-filter: blur(6px); box-shadow: 0 8px 20px rgba(10,25,47,.25);
    }
    .news-cat.gold { background: rgba(245,158,11,.94); color: #431407; }
    .news-cat.green { background: rgba(16,185,129,.94); }

    .news-flag {
      position: absolute; z-index: 3; right: 14px; top: 14px;
      display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
      font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
      color: #431407; background: linear-gradient(135deg, #fbbf24, #f59e0b);
      box-shadow: 0 10px 24px rgba(245,158,11,.42);
    }

    .news-date {
      position: absolute; z-index: 2; left: 14px; bottom: 14px;
      display: inline-flex; align-items: center; gap: 7px;
      font-size: .78rem; font-weight: 800; color: #fff; text-shadow: 0 1px 6px rgba(10,25,47,.55);
    }

    .news-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
    .news-body h3 { font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif; font-size: 1.12rem; line-height: 1.35; font-weight: 900; letter-spacing: -.02em; color: var(--navy); }
    .news-body h3 a { color: inherit; }
    .news-card:hover .news-body h3 a { color: var(--blue); }
    .news-excerpt { color: var(--muted); font-size: .93rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .news-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .news-author { font-size: .78rem; font-weight: 800; color: #94a3b8; display: inline-flex; align-items: center; gap: 6px; }
    .news-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: .86rem; color: var(--blue); }
    .news-more i { transition: transform .3s var(--ease); }
    .news-card:hover .news-more i { transform: translateX(5px); }

    /* Kartu utama (berita terbaru) — bentang penuh, gambar di samping */
    .news-card.utama { grid-column: 1 / -1; flex-direction: row; }
    .news-card.utama .news-cover { flex: 0 0 46%; max-width: 46%; }
    .news-card.utama .news-cover img { aspect-ratio: 16 / 11; height: 100%; }
    .news-card.utama .news-body { padding: clamp(22px, 3vw, 34px); gap: 12px; }
    .news-card.utama .news-body h3 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); }
    .news-card.utama .news-excerpt { -webkit-line-clamp: 4; font-size: 1rem; }

    .news-empty {
      grid-column: 1 / -1; text-align: center; padding: 46px 22px; border-radius: 24px;
      background: rgba(30,64,175,.05); border: 1px dashed var(--line); color: var(--muted);
    }
    .news-empty i { font-size: 2.2rem; color: var(--blue); margin-bottom: 12px; }

    @media (max-width: 860px) {
      .news-card.utama { flex-direction: column; }
      .news-card.utama .news-cover { flex: 1 1 auto; max-width: 100%; }
      .news-card.utama .news-cover img { aspect-ratio: 16 / 10; }
    }

    /* ── Halaman artikel /artikel/{slug} ── */
    .article-topbar { position: relative; z-index: 50; background: linear-gradient(90deg, #0f172a, var(--blue), #0f172a); color: #fff; border-bottom: 1px solid rgba(251,191,36,.35); }
    .article-topbar .container { display: flex; align-items: center; gap: 14px; min-height: 66px; flex-wrap: wrap; }
    .article-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.02em; }
    .article-brand img { width: 40px; height: 40px; border-radius: 12px; background: #fff; object-fit: contain; }
    .article-brand small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #bfdbfe; }
    .article-topbar .spacer { flex: 1; }
    .article-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; font-weight: 800; font-size: .82rem; transition: background .25s var(--ease), transform .25s var(--ease); }
    .article-back:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

    .article-wrap { padding-bottom: clamp(48px, 7vw, 90px); }
    .article-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-md); overflow: hidden; }
    .article-image { position: relative; margin: 0; background: #e2e8f0; }
    .article-image img { width: 100%; max-height: 520px; object-fit: cover; }
    .article-badge {
      position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
      padding: 8px 15px; border-radius: 999px; background: rgba(10,25,47,.86); color: #fff;
      font-size: .74rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(8px);
    }
    .article-content { padding: clamp(22px, 3.4vw, 44px); }
    .article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; font-size: .8rem; font-weight: 800; color: #64748b; }
    .article-meta span { display: inline-flex; align-items: center; gap: 7px; }
    .article-meta i { color: var(--blue); }
    .article-content h1, .article-content h2 {
      font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif; font-weight: 900; letter-spacing: -.035em;
      color: var(--navy); line-height: 1.16; font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin-bottom: 20px;
    }
    .article-rule { height: 5px; width: 92px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--cyan)); margin: 0 0 22px; }
    .article-body p { color: #334155; font-size: 1.03rem; line-height: 1.85; margin-bottom: 16px; }
    .article-body p:last-child { margin-bottom: 0; }

    .share-box { margin-top: 28px; padding: 18px 20px 20px; border-radius: 22px; background: rgba(30,64,175,.05); border: 1px dashed var(--line); }
    .share-box > p { font-size: .92rem; font-weight: 900; color: var(--navy); display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
    .share-row { display: flex; flex-wrap: wrap; gap: 10px; }
    .share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; font-weight: 800; font-size: .84rem; border: 1px solid var(--line); background: #fff; color: var(--navy); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
    .share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
    .share-btn.wa { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.3); color: #047857; }
    .share-btn.fb { background: rgba(30,64,175,.1); border-color: rgba(30,64,175,.26); color: #1d4ed8; }
    .share-btn.tg { background: rgba(6,182,212,.12); border-color: rgba(6,182,212,.3); color: #0e7490; }
    .share-btn.copy { background: var(--navy); border-color: var(--navy); color: #fff; }

    .related-section { margin-top: clamp(34px, 5vw, 56px); }
    .related-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
    .related-head h3 { font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif; font-weight: 900; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--navy); letter-spacing: -.03em; }
    .related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
    .related-grid .news-body { padding: 16px 18px 18px; }
    .related-grid .news-body h3 { font-size: 1rem; }

    .article-loading { display: grid; gap: 14px; padding: 12px 0; }
    .article-loading .sk { height: 16px; border-radius: 999px; background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%); background-size: 400% 100%; animation: skMove 1.3s ease infinite; }
    .article-loading .sk.t { height: 34px; width: 70%; }
    .article-loading .sk.s { width: 40%; }
    @keyframes skMove { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

    .article-footer { margin-top: clamp(40px, 6vw, 70px); padding: 26px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; text-align: center; }


    /* ============================================================
       OSIS PIMPINAN — Ketua & Wakil Ketua OSIS
       ============================================================ */
    .osis-pimpinan-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 22px;
      max-width: 820px;
      margin: 0 auto;
    }
    .osis-card {
      position: relative;
      display: block;
      text-decoration: none;
      color: inherit;
      background: #fff;
      border: 1.5px solid #e0e7ff;
      border-radius: 26px;
      overflow: hidden;
      box-shadow: 0 8px 32px rgba(30,64,175,0.08);
      transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
      text-align: center;
    }
    .osis-card:focus-visible {
      outline: 3px solid var(--blue-2);
      outline-offset: 3px;
    }
    .osis-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 20px 48px rgba(30,64,175,0.14);
      border-color: #c7d2fe;
    }
    .osis-foto-wrap {
      position: relative;
      cursor: pointer;
      width: 100%;
      aspect-ratio: 4 / 4.4;
      background: linear-gradient(145deg, #dbeafe, #eef2ff);
      overflow: hidden;
    }
    .osis-foto-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform .6s var(--ease);
    }
    .osis-card:hover .osis-foto-wrap img { transform: scale(1.04); }
    .osis-badge {
      position: absolute;
      left: 50%;
      bottom: 14px;
      transform: translateX(-50%);
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 16px;
      border-radius: 999px;
      font-size: .78rem;
      font-weight: 900;
      letter-spacing: .04em;
      text-transform: uppercase;
      white-space: nowrap;
      box-shadow: 0 8px 22px rgba(0,0,0,0.18);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
    .osis-badge.ketua {
      background: linear-gradient(135deg, #f59e0b, #d97706);
      color: #fff;
      border: 1.5px solid rgba(255,255,255,0.9);
    }
    .osis-badge.wakil {
      background: linear-gradient(135deg, #1e40af, #2563eb);
      color: #fff;
      border: 1.5px solid rgba(255,255,255,0.9);
    }
    .osis-info {
      padding: 20px 18px 22px;
      background: #fff;
    }
    .osis-info h3 {
      font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
      font-size: clamp(1.15rem, 2.2vw, 1.35rem);
      font-weight: 900;
      color: var(--navy);
      letter-spacing: -.02em;
      line-height: 1.2;
      margin: 0;
    }
    .osis-kelas {
      margin-top: 6px;
      color: var(--muted);
      font-size: .88rem;
      font-weight: 700;
    }
    .osis-periode {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 10px;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(30,64,175,.07);
      border: 1px solid rgba(30,64,175,.12);
      color: var(--blue);
      font-size: .78rem;
      font-weight: 800;
    }
    .osis-periode i { color: var(--blue); font-size: .72rem; }
    .osis-share-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px dashed rgba(30,64,175,.18);
    }
    .osis-share-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 9px 16px;
      border-radius: 999px;
      background: var(--navy);
      color: #fff;
      font-size: .8rem;
      font-weight: 800;
      cursor: pointer;
      transition: background .28s var(--ease), transform .28s var(--ease), box-shadow .28s var(--ease);
    }
    .osis-share-btn:hover {
      background: var(--blue);
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(30,64,175,.28);
    }
    .osis-share-btn:focus-visible {
      outline: 3px solid var(--blue-2);
      outline-offset: 2px;
    }
    .osis-link {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 9px 16px;
      border-radius: 999px;
      background: rgba(30,64,175,.08);
      border: 1px solid rgba(30,64,175,.14);
      color: var(--blue);
      font-size: .8rem;
      font-weight: 800;
      transition: background .28s var(--ease), border-color .28s var(--ease);
    }
    .osis-card:hover .osis-link {
      background: #dbeafe;
      border-color: rgba(30,64,175,.28);
    }
    @media (max-width: 680px) {
      .osis-pimpinan-grid { grid-template-columns: 1fr; max-width: 380px; }
      .osis-foto-wrap { aspect-ratio: 4 / 3.6; }
    }

    /* ── Jadwal: catatan pembaruan & tabel lebih rapi ── */
    .jd-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 14px; border-radius: 999px; background: rgba(16,185,129,.10); border: 1px solid rgba(16,185,129,.24); color: #047857; font-size: .78rem; font-weight: 800; }
    .jd-tabel tr.jd-umum td { color: #92400e; }
    .jd-tabel tr.jd-umum td:last-child i { color: var(--gold); }
    .jd-mapel b { letter-spacing: .01em; }
    .jd-jam { font-weight: 900; color: var(--blue); text-align: center; width: 42px; }
    .jd-waktu { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
    @media (max-width: 520px) {
      .jd-tabel { font-size: .8rem; }
      .jd-tabel th, .jd-tabel td { padding: 7px 5px; }
      .jd-hari { padding: 13px; border-radius: 16px; }
    }
