/* Annawawi Edukasi Global - gaya hub (header, konten) */

html, body { margin: 0; padding: 0; }
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fafafa;
    background-image: url("../assets/bg-painting.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #0a1628;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Mobile: lukisan versi portrait dengan tabir lembut supaya judul tetap tajam, tanpa fixed supaya tidak tersendat */
@media (max-width: 880px) {
    body {
        background-image: linear-gradient(rgba(250, 250, 250, 0.5), rgba(250, 250, 250, 0.5)), url("../assets/bg-painting-mobile.jpg");
        background-attachment: scroll;
    }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(10, 22, 40, 0.07);
}
.site-nav { padding: 8px 20px; }
.site-nav ul { display: flex; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
    position: relative;
    display: block;
    padding: 8px 14px 12px;
    color: #475569;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.15s;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #125aa6;
    transform: translateX(-50%);
    transition: width 0.2s;
}
.site-nav a:hover { color: #125aa6; }
.site-nav a:hover::after { width: 18px; }
.site-nav a[aria-current="page"] { color: #125aa6; }
.site-nav a[aria-current="page"]::after { width: 18px; }

/* Beranda */
.hub-wrap { max-width: 1080px; width: 100%; margin: 0 auto; padding: 56px 20px 64px; }

/* Di desktop konten ditengahkan vertikal supaya tidak terasa kosong di bawah */
@media (min-width: 881px) {
    .site-content--center { display: flex; flex-direction: column; flex: 1 0 auto; }
    .site-content--center .hub-wrap { margin: auto; }
    .site-content--center .fi-wrap { margin: auto; }
}
.hub-hero { text-align: center; margin-bottom: 36px; }
.hub-hero h1 { font-size: clamp(26px, 5.2vw, 40px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin: 0; color: #0a1628; }
.hero-brush { display: block; width: 168px; height: 12px; margin: 12px auto 0; }
.hero-brush--left { margin: 12px 0 0; }
.hub-lead {
    display: inline-block;
    font-size: 15px;
    line-height: 1.5;
    color: #52606f;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(10, 22, 40, 0.06);
    border-radius: 999px;
    padding: 7px 18px;
    margin: 16px 0 0;
}

.unit-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 880px) { .unit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.unit-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 20px;
    min-height: 116px;
    text-decoration: none;
    transition: border-color 0.2s;
}
.unit-card:hover { border-color: #125aa6; }
.unit-card img { display: block; height: 48px; width: auto; max-width: 100%; }

/* Tautan feedback, terpisah dari tiga unit */
.hub-feedback { margin: 28px 0 0; }
.hub-feedback a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 64px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #0a1628;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s;
}
.hub-feedback a:hover { border-color: #125aa6; }
.hub-feedback svg { color: #64748b; }
.hub-feedback-arrow { color: #125aa6; font-weight: 700; }

/* Responsif */
@media (max-width: 480px) {
    .hub-wrap { padding: 36px 16px 48px; }
    .hub-hero { margin-bottom: 28px; }
    .hero-brush { width: 132px; margin-top: 10px; }
    .hub-lead { margin-top: 14px; font-size: 14px; padding: 6px 14px; }
    .unit-card { padding: 18px 16px; min-height: 92px; }
    .unit-card img { height: 36px; }
}

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