[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

.otonom-hero,
.otonom-nav,
.otonom-section {
    width: 100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.otonom-section { margin-bottom: 80px; scroll-margin-top: 110px; }

/* Hero */
.otonom-hero { text-align: center; padding: 60px 20px 48px; }
.otonom-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 14px 0 12px; }
.otonom-hero p { max-width: 620px; margin: 0 auto; opacity: .85; }
.otonom-hero::after { left: 50%; transform: translateX(-50%); }

/* Navigasi cepat */
.otonom-nav {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px; margin: 28px auto 72px;
}
.otonom-nav a {
    padding: 9px 20px;
    border: 1px solid var(--card-border, rgba(255,255,255,.12));
    border-radius: 999px;
    background: var(--card-bg, rgba(255,255,255,.04));
    color: var(--text-main, #f1f5ff);
    font-size: .85rem; font-weight: 700; text-decoration: none;
    transition: border-color .25s, color .25s;
}
.otonom-nav a:hover,
.otonom-nav a:focus-visible {
    border-color: var(--card-border-hover, rgba(250,204,21,.45));
    color: var(--gold-400, #facc15);
}

/* Header tiap section */
.otonom-section .section-intro {
    min-height: 0; margin: 0 0 32px; padding: 0 0 22px;
    text-align: left; background: none; border: 0;
    border-bottom: 1px solid var(--card-border, rgba(255,255,255,.12));
    border-radius: 0; box-shadow: none; overflow: visible;
}
.otonom-section .section-intro::after { left: 0; }
.otonom-section .section-intro h2 {
    margin: 14px 0 8px;
    font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
}
.otonom-section .section-intro p { max-width: 560px; }

/* Pengertian */
.pengertian-box {
    position: relative;
    background: var(--card-bg, rgba(255,255,255,.04));
    border: 1px solid var(--card-border, rgba(255,255,255,.1));
    border-left: 4px solid var(--gold-400, #facc15);
    border-radius: 16px;
    padding: 30px 32px 30px 76px;
    font-size: 1.05rem; line-height: 1.85;
}
.pengertian-box p + p { margin-top: 14px; }
.pengertian-box::before {
    content: '“';
    position: absolute; top: 14px; left: 24px;
    font-family: Georgia, serif; font-size: 4rem; line-height: 1;
    color: var(--gold-400, #facc15); opacity: .55;
}

/* Tugas */
.tugas-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.tugas-card {
    display: flex; align-items: flex-start; gap: 18px;
    padding: 22px 24px;
    background: var(--card-bg, rgba(255,255,255,.04));
    border: 1px solid var(--card-border, rgba(255,255,255,.1));
    border-radius: 16px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tugas-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-hover, rgba(250,204,21,.4));
    box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
.tugas-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tugas-num {
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-300, #fde68a), var(--gold-500, #facc15));
    color: var(--ink-950, #0f172a); font-weight: 800;
}
.tugas-body h3 { margin: 0 0 6px; font-size: 17px; }
.tugas-body p { margin: 0; font-size: 15px; line-height: 1.7; opacity: .9; }

/* Galeri */
.galeri-bar {
    margin-bottom: 14px; font-size: .82rem; font-weight: 700;
    letter-spacing: .04em; color: var(--text-muted, #a9b7d6);
}
.galeri-bar strong { color: var(--gold-400, #facc15); }
.foto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.foto-item {
    position: relative; margin: 0; aspect-ratio: 4 / 3;
    border-radius: 16px; overflow: hidden;
    background: var(--ink-900, #1e293b);
}
.foto-btn {
    display: block; width: 100%; height: 100%;
    padding: 0; margin: 0; border: 0; background: none;
    cursor: zoom-in; position: relative;
}
.foto-btn:focus-visible { outline: 3px solid var(--gold-400, #facc15); outline-offset: -3px; }
.foto-item img {
    display: block; width: 100%; height: 100%;
    object-fit: cover; transition: transform .4s;
}
.foto-item:hover img { transform: scale(1.06); }
.foto-caption {
    position: absolute; inset: auto 0 0 0;
    padding: 40px 16px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,.78));
    color: #fff; font-size: 14px; font-weight: 500;
    pointer-events: none;
}
.foto-zoom-icon {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; opacity: 0; transition: opacity .25s; pointer-events: none;
}
.foto-item:hover .foto-zoom-icon,
.foto-btn:focus-visible .foto-zoom-icon { opacity: 1; }

.otonom-status { text-align: center; opacity: .7; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(2,6,23,.94);
    opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure {
    margin: 0; display: flex; flex-direction: column; align-items: center;
    gap: 14px; max-width: 92vw; max-height: 92vh;
}
.lightbox-img {
    max-width: 92vw; max-height: 80vh; object-fit: contain;
    border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox-caption { color: #fff; font-size: 15px; font-weight: 600; text-align: center; }
.lightbox-counter {
    color: var(--text-muted, #a9b7d6); font-size: 13px;
    font-weight: 700; letter-spacing: .05em;
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(15,23,42,.7); color: #fff; cursor: pointer;
    transition: border-color .25s, color .25s;
}
.lightbox-close:hover, .lightbox-nav:hover,
.lightbox-close:focus-visible, .lightbox-nav:focus-visible {
    border-color: var(--gold-400, #facc15);
    color: var(--gold-400, #facc15);
    outline: none;
}
.lightbox-close { top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; font-size: 26px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
body.lightbox-open { overflow: hidden; }

/* Responsif */
@media (max-width: 768px) {
    .otonom-section { margin-bottom: 60px; }
    .otonom-nav { margin-bottom: 52px; }
    .tugas-list { grid-template-columns: 1fr; }
    .pengertian-box { padding: 56px 22px 24px; }
    .pengertian-box::before { top: 8px; left: 20px; }
    .foto-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
    .lightbox-nav { top: auto; bottom: 24px; transform: none; width: 46px; height: 46px; }
}