/* Public site shared theme */
:root {
    --public-pr: #003b7a;
    --public-pr-l: #0056b3;
    --public-ac: #e8a020;
    --public-ac-s: #fff3dc;
    --public-sf: #f4f7fb;
    --public-sf2: #eaf0f8;
    --public-tx: #1a2535;
    --public-mu: #6b7a90;
    --public-wh: #ffffff;
    --public-bd: #d6e0ee;
    --public-gn: #1a7a4a;
    --public-rd: #c0392b;
}

/* ── BASE ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: var(--public-sf);
    color: var(--public-tx);
    overflow-x: hidden;
}

img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

.topbar,
.main-navbar {
    font-family: "Plus Jakarta Sans", sans-serif;
}

.topbar {
    background: var(--public-pr);
    color: rgba(255, 255, 255, 0.72);
}

.topbar a:hover {
    color: var(--public-ac);
}

.topbar-inner {
    gap: 6px;
}

.top-contact {
    gap: 12px;
}

.top-social {
    gap: 10px;
    margin-left: 4px;
}

.top-social-link,
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.top-social-link {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.footer-social-link {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.top-social-link:hover,
.footer-social-link:hover {
    transform: translateY(-1px);
}

.main-navbar {
    border-bottom-color: var(--public-ac) !important;
    box-shadow: 0 2px 18px rgba(0, 59, 122, 0.09);
}

.brand-text .t1,
.sec-title span {
    color: var(--public-pr);
}

.brand-text .t2,
.sec-tag,
.section-kicker,
.card-subtitle,
.lbl,
.mu-text {
    color: var(--public-mu);
}

.sec-tag,
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--public-ac-s);
    color: #8a6400;
    border: 1px solid #e8c97a;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sec-title {
    margin: 10px 0 0;
    font-size: clamp(1.6rem, 2vw, 2.4rem);
    font-weight: 800;
    color: var(--public-tx);
    line-height: 1.15;
}

.sec-title span {
    color: var(--public-pr);
}

.hero-section,
.content-shell,
.section-shell {
    background: var(--public-wh);
    border: 1px solid var(--public-bd);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(15, 32, 68, 0.08);
}

.card,
.panel,
.news-card,
.stat-cell,
.feature-card {
    border: 1px solid var(--public-bd);
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(15, 32, 68, 0.08);
}

.btn,
button,
.nav-list > li > button {
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary,
.btn-cta,
.btn-brand,
.action-btn-primary {
    background: linear-gradient(135deg, #f0ba4d, #e8a020) !important;
    border-color: #c98f16 !important;
    color: #1a2535 !important;
}

.btn-primary:hover,
.btn-cta:hover,
.btn-brand:hover,
.action-btn-primary:hover {
    background: linear-gradient(135deg, #e8a020, #d69210) !important;
    color: #1a2535 !important;
}

.btn-outline-primary,
.btn-light,
.btn-secondary {
    background: #ffffff;
    border-color: var(--public-bd);
    color: var(--public-pr);
}

.btn-outline-primary:hover,
.btn-light:hover,
.btn-secondary:hover {
    background: #f8fbff;
    border-color: #c6d7ea;
    color: #0f2044;
}

.form-control,
.form-select {
    border-color: var(--public-bd);
    border-radius: 10px;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--public-ac);
    box-shadow: 0 0 0 0.18rem rgba(232, 160, 32, 0.12);
}

.table thead th {
    background: #f8fbff;
    color: var(--public-pr);
}

.table td,
.table th {
    border-color: var(--public-bd);
}

.table-hover tbody tr:hover {
    background: var(--public-ac-s);
}

.pagination .page-link {
    border-color: var(--public-bd);
    color: var(--public-pr);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #f0ba4d, #e8a020);
    border-color: #c98f16;
    color: #1a2535;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-cell {
    background: var(--public-wh);
    padding: 18px 20px;
}

.stat-cell .val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--public-pr);
    line-height: 1;
}

.stat-cell .lbl {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
}

.berita-grid-fixed {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
    gap: 20px !important;
}

.berita-card {
    background: var(--public-wh);
    border: 1px solid var(--public-bd);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.berita-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 59, 122, 0.10);
}

.public-loading {
    text-align: center;
    padding: 40px;
}

.public-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--public-bd);
    border-top-color: var(--public-pr);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.public-action-row {
    display: flex;
    gap: 8px;
}

.public-refresh-btn {
    background: var(--public-pr);
    color: #fff;
    border: 1.5px solid var(--public-pr);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}

.public-refresh-btn:hover {
    background: var(--public-pr-l);
}

.berita-card .title,
.berita-card .card-title,
.berita-card h5 {
    color: var(--public-pr);
    font-weight: 700;
}

/* ── RESPONSIVE MEDIA QUERIES ── */

/* Topbar: sembunyikan info jam & email di layar kecil */
@media (max-width: 575px) {
    .topbar-inner > div:first-child {
        display: none;
    }
    .topbar-inner {
        justify-content: flex-end;
    }
    .top-contact {
        gap: 8px;
    }
    .top-contact span {
        font-size: 11px;
    }
}

/* Brand text: perkecil di tablet kecil */
@media (max-width: 767px) {
    .brand-text .t1 {
        font-size: 11.5px;
    }
    .brand-text .t2 {
        font-size: 10px;
    }
    .brand-logo {
        height: 42px !important;
    }
    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .berita-grid-fixed {
        grid-template-columns: 1fr !important;
    }
    .public-action-row {
        flex-wrap: wrap;
    }
    .sec-title {
        font-size: clamp(1.25rem, 5vw, 1.8rem);
    }
}

/* Mobile kecil */
@media (max-width: 425px) {
    .stat-row {
        grid-template-columns: 1fr;
    }
    .stat-cell {
        padding: 14px 12px;
    }
    .stat-cell .val {
        font-size: 1.5rem;
    }
    .brand-text .t2 {
        display: none;
    }
    .hero-section,
    .content-shell,
    .section-shell {
        border-radius: 14px;
    }
}

/* Layar sangat kecil 320px */
@media (max-width: 359px) {
    .brand-text .t1 {
        font-size: 10.5px;
    }
    .sec-tag,
    .section-tag {
        font-size: 9.5px;
        padding: 3px 9px;
    }
}
