*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Georgia', serif;
    background: #f5f3ef;
}

section {
    background: #f5f3ef;
    padding: 72px 24px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7c6f5a;
    background: #ede9e0;
    border: 1px solid #d9d2c5;
    border-radius: 30px;
    padding: 4px 14px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #1c1a16;
    line-height: 1.2;
    margin-bottom: 12px;
    font-family: 'Georgia', serif;
}

.section-sub {
    font-size: 15px;
    color: #6b6457;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 48px;
}

/* ══════════════════════════════════════
   PROGRAMS GRID — layout tabel compact
══════════════════════════════════════ */
.programs-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2ddd5;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

/* ── CARD = ROW ── */
.prog-card {
    display: grid;
    grid-template-columns: 4px 90px 1fr auto;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e2ddd5;
    transition: background 0.18s ease;
    min-height: 88px;
}

.prog-card:last-child {
    border-bottom: none;
}

.prog-card:hover {
    background: #faf9f7;
}

/* Kolom 1 — strip warna */
.prog-card::before {
    content: '';
    display: block;
    align-self: stretch;
    width: 4px;
}

.prog-card.blue::before {
    background: #3b82f6;
}

.prog-card.gold::before {
    background: #f59e0b;
}

.prog-card.green::before {
    background: #22c55e;
}

/* ── KOLOM PDF THUMBNAIL ── */
.prog-img {
    width: 72px;
    height: 72px;
    position: relative;
    background: #f0ede7;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2ddd5;
    margin: 8px 12px;
    flex-shrink: 0;
}

.prog-img iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: none;
}

.prog-img .pdf-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #b0a898;
    font-size: 9px;
    font-family: 'DM Sans', sans-serif;
    background: #f5f3ef;
    pointer-events: none;
}

.prog-img .pdf-placeholder svg {
    width: 22px;
    height: 22px;
    opacity: 0.4;
}

/* ── KOLOM BODY (judul + deskripsi + badge) ── */
.prog-body {
    padding: 12px 16px 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prog-title {
    font-size: 14px;
    font-weight: 700;
    color: #1c1a16;
    line-height: 1.3;
}

.prog-desc {
    font-size: 12px;
    color: #6b6457;
    line-height: 1.55;
}

.prog-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 4px;
}

.blue .prog-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.gold .prog-badge {
    background: #fef3c7;
    color: #92400e;
}

.green .prog-badge {
    background: #dcfce7;
    color: #166534;
}

/* ── KOLOM AKSI ── */
.pdf-open-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: #1c1a16;
    text-decoration: none;
    border-radius: 6px;
    padding: 7px 14px;
    margin-right: 16px;
    white-space: nowrap;
    border-bottom: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.pdf-open-link:hover {
    background: #3a342b;
    transform: translateY(-1px);
    border-color: transparent;
}

.pdf-open-link svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}


/* NAV */
nav {
    background: #0f2d4a;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    color: #fff;
    font-family: "Playfair Display", serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}

.logo-sub {
    color: #a0bcd4;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2px;
}

.nav-links a {
    color: #ccdce8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    padding: 22px 16px;
    display: block;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    border-bottom-color: #c9a84c;
}

.nav-cta {
    background: #c9a84c;
    color: #0f2d4a !important;
    border-radius: 6px;
    padding: 10px 18px !important;
    font-weight: 500 !important;
    border-bottom: 3px solid transparent !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: #e8c96a !important;
    border-bottom-color: transparent !important;
}

.pdf-empty-message {
    background: #fff8e1;
    border: 1px solid #f2d88a;
    color: #7c5f1a;
    border-radius: 14px;
    padding: 24px;
    margin-top: 24px;
}

.pdf-list {
    display: grid;
    gap: 20px;
}

.pdf-group h2 {
    margin-bottom: 12px;
    font-size: 20px;
    color: #1c1a16;
}

.pdf-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2ddd5;
}

.pdf-title {
    font-size: 14px;
    font-weight: 700;
    color: #1c1a16;
    margin-bottom: 6px;
}

.pdf-path {
    font-size: 12px;
    color: #6b6457;
}

.pdf-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pdf-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1c1a16;
    border: 1px solid #d9d2c5;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pdf-download-link:hover,
.pdf-open-link:hover {
    background: #f5f3ef;
    border-color: #c9a775;
}


/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 768px) {

    /* NAV */
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 16px;
    }

    .nav-links {
        flex-wrap: wrap;
        width: 100%;
    }

    .nav-links a {
        padding: 10px;
        font-size: 12px;
    }

    /* HERO */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    /* STAT */
    .hero-stats {
        grid-template-columns: 1fr;
    }

    /* PROGRAMS — mobile: stack vertikal lebih natural */
    .programs-grid {
        border-radius: 10px;
    }

    .prog-card {
        grid-template-columns: 4px 64px 1fr;
        grid-template-rows: auto auto;
        min-height: unset;
    }

    /* Pada mobile, sembunyikan tombol di kolom kanan — taruh di bawah body */
    .pdf-open-link {
        margin: 0 0 12px 80px;
        grid-column: 2 / 4;
        width: fit-content;
    }

    .prog-img {
        width: 56px;
        height: 56px;
        margin: 10px 10px;
    }

    .prog-body {
        padding: 10px 12px 6px 4px;
    }

    /* NEWS */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* EVENTS */
    .event-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-date-box {
        margin-bottom: 10px;
    }
}