/* ── Navigasi bagian (sticky) ── */
.hf-subnav {
    position: sticky;
    top: var(--ui-nav-offset);
    z-index: 40;
    background: var(--ui-surface);
    border-bottom: 1px solid var(--ui-line);
}
.hf-subnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
}
.hf-subnav-links {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.hf-subnav-links::-webkit-scrollbar { display: none; }
.hf-subnav-links a {
    padding: 8px 12px;
    border-radius: var(--ui-radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ui-muted);
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.hf-subnav-links a:hover,
.hf-subnav-links a.active { background: var(--ui-primary-50); color: var(--ui-primary-600); }
.hf-periode {
    flex-shrink: 0;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-pill);
    background: var(--ui-surface);
    color: var(--ui-body);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 12px;
    max-width: 220px;
}
.hf-section { scroll-margin-top: calc(var(--ui-nav-offset) + 64px); }

/* ── Tentang ── */
.hf-about {
    display: grid;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}
@media (min-width: 992px) { .hf-about { grid-template-columns: 1.1fr 1fr; } }
.hf-about-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.hf-logo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--ui-surface);
    box-shadow: 0 0 0 4px var(--ui-surface), 0 0 0 6px var(--ui-primary-100), var(--ui-shadow);
}
.hf-about-head h2 { margin: 0; }
.hf-about-text p { color: var(--ui-body); line-height: 1.8; margin: 0 0 14px; }
.hf-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hf-socials a { text-decoration: none; }
.hf-socials a:hover { border-color: var(--ui-primary-400); color: var(--ui-primary-600); }
.hf-visi blockquote {
    margin: 12px 0 0;
    font-family: var(--ui-font-head);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--ui-ink);
}
.hf-card-head { display: flex; align-items: center; gap: 12px; }
.hf-card-head h3 { margin: 0; font-family: var(--ui-font-head); font-size: 1.1rem; font-weight: 800; color: var(--ui-ink); }
.hf-misi { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: misi; display: grid; gap: 10px; }
.hf-misi li { counter-increment: misi; display: flex; gap: 12px; color: var(--ui-body); line-height: 1.6; }
.hf-misi li::before {
    content: counter(misi);
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ui-primary-50);
    color: var(--ui-primary-600);
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hf-stats { margin-top: clamp(28px, 4vw, 40px); }

/* ── Struktur ── */
.hf-sub { font-family: var(--ui-font-head); font-size: 1.15rem; font-weight: 800; color: var(--ui-ink); margin: 0 0 16px; text-align: center; }
.hf-inti {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(14px, 2vw, 22px);
    margin-bottom: clamp(36px, 5vw, 56px);
}
.hf-person {
    width: 180px;
    text-align: center;
    padding: 22px 14px 18px;
}
.hf-person-photo {
    width: 92px;
    height: 92px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ui-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ui-font-head);
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 0 0 4px var(--ui-surface), 0 0 0 6px var(--ui-primary-100);
}
.hf-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.hf-person strong { display: block; font-size: 0.95rem; color: var(--ui-ink); line-height: 1.35; }
.hf-person .ui-badge { margin-top: 8px; white-space: normal; }
.hf-divisi-head { display: flex; align-items: flex-start; gap: 14px; }
.hf-divisi-head h3 { margin: 0; font-family: var(--ui-font-head); font-size: 1.05rem; font-weight: 800; color: var(--ui-ink); }
.hf-divisi-head small { color: var(--ui-subtle); font-weight: 700; }
.hf-divisi p { margin: 12px 0 0; color: var(--ui-muted); font-size: 0.9rem; line-height: 1.6; }
.hf-members { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--ui-line); display: grid; gap: 10px; }
.hf-members li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hf-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--ui-primary-50);
    color: var(--ui-primary-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}
.hf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hf-members b { display: block; font-size: 0.86rem; color: var(--ui-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-members em { display: block; font-style: normal; font-size: 0.75rem; color: var(--ui-subtle); }

/* ── Program kerja ── */
.hf-proker-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.hf-progress { flex: 1 1 260px; max-width: 380px; }
.hf-progress-track { height: 8px; border-radius: 99px; background: var(--ui-line); overflow: hidden; }
.hf-progress-fill { height: 100%; border-radius: 99px; background: var(--ui-gradient); }
.hf-progress small { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--ui-muted); }
.hf-proker { display: flex; flex-direction: column; gap: 10px; }
.hf-proker h3 { margin: 0; font-family: var(--ui-font-head); font-size: 1rem; font-weight: 700; color: var(--ui-ink); line-height: 1.4; }
.hf-proker p { margin: 0; color: var(--ui-muted); font-size: 0.9rem; line-height: 1.6; }
.hf-proker-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.hf-proker-link { font-size: 0.85rem; font-weight: 700; color: var(--ui-primary-600); text-decoration: none; }
.hf-proker-link:hover { text-decoration: underline; }
.hf-proker[hidden] { display: none; }

/* ── Prestasi ── */
.hf-prestasi { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.hf-prestasi-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--ui-line-soft); }
.hf-prestasi-ph {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ui-gradient);
    color: rgba(255, 255, 255, 0.9);
    font-size: 2.2rem;
}
.hf-prestasi-body { padding: 18px 20px 20px; }
.hf-prestasi-body h3 { margin: 10px 0 6px; font-family: var(--ui-font-head); font-size: 1rem; font-weight: 700; color: var(--ui-ink); line-height: 1.4; }
.hf-prestasi-body p { margin: 0; color: var(--ui-muted); font-size: 0.88rem; line-height: 1.6; }

/* ── Berita ── */
.hf-news { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.hf-news img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ui-line-soft); }
.hf-news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hf-news-body time { font-size: 0.78rem; font-weight: 600; color: var(--ui-subtle); }
.hf-news-body h3 { margin: 0; font-family: var(--ui-font-head); font-size: 1rem; font-weight: 700; color: var(--ui-ink); line-height: 1.45; }
.hf-news:hover h3 { color: var(--ui-primary-600); }

/* ── E-buletin ── */
.hf-buletin { text-decoration: none; color: inherit; display: block; }
.hf-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--ui-radius-sm);
    overflow: hidden;
    background: var(--ui-gradient);
    box-shadow: var(--ui-shadow);
    transition: transform 0.35s var(--ui-ease-out), box-shadow 0.35s;
}
.hf-cover img { width: 100%; height: 100%; object-fit: cover; }
.hf-cover-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.85); font-size: 2.6rem; }
.hf-cover-cta {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 12px 12px;
    background: linear-gradient(to top, rgba(8, 20, 63, 0.85), transparent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.hf-buletin:hover .hf-cover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--ui-shadow-lg); }
.hf-buletin:hover .hf-cover-cta,
.hf-buletin:focus-visible .hf-cover-cta { opacity: 1; }
.hf-buletin h3 { margin: 14px 0 4px; font-family: var(--ui-font-head); font-size: 0.95rem; font-weight: 700; color: var(--ui-ink); line-height: 1.4; }
.hf-buletin small { color: var(--ui-subtle); font-size: 0.78rem; font-weight: 600; }

/* ── Gabung & kontak ── */
.hf-join {
    display: grid;
    gap: 28px;
    align-items: center;
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-gradient);
    color: rgba(255, 255, 255, 0.82);
    box-shadow: var(--ui-shadow-primary);
}
@media (min-width: 992px) { .hf-join { grid-template-columns: 1.3fr 1fr; } }
.hf-join h2 { margin: 12px 0 10px; font-family: var(--ui-font-head); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; line-height: 1.25; }
.hf-join p { margin: 0; line-height: 1.7; }
.hf-join-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--ui-radius-pill);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}
.hf-join-status i { font-size: 0.55rem; color: #4ade80; }
.hf-join-status.is-closed i { color: rgba(255, 255, 255, 0.5); }
.hf-join-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hf-join-links { display: grid; gap: 10px; }
.hf-join-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--ui-radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}
.hf-join-links a:hover { background: rgba(255, 255, 255, 0.16); }
.hf-join-links i { width: 20px; text-align: center; }
