html, body {
    overflow-x: hidden;
}

.btn-login-admin-topbar {
    padding: .5rem .8rem;
    font-size: .82rem;
    white-space: nowrap;
    flex-shrink: 0;
}
@media (max-width: 575.98px) {
    .btn-login-admin {
        padding: .45rem .65rem;
        font-size: .8rem;
    }
    .brand-tagline { display: none; }
    .brand-republik { display: none; }
}


:root {
    --navy-900: #0b2545;
    --navy-800: #0f3060;
    --navy-700: #14407e;
    --gold-500: #d9a441;
    --gold-600: #c78f2a;
    --cream-100: #f7f8fa;
    --text-body: #33404f;
    --font-display: 'Merriweather', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: #fff;
    margin: 0;
}

a { text-decoration: none; }

.section-title {
    font-family: var(--font-display);
    color: var(--navy-900);
    font-weight: 900;
    font-size: 1.6rem;
    margin: 0;
    position: relative;
    padding-left: 16px;
    border-left: 5px solid var(--gold-500);
}

.link-lihat-semua {
    color: var(--navy-700);
    font-weight: 600;
    font-size: .9rem;
}
.link-lihat-semua:hover { color: var(--gold-600); }

/* ===== HEADER ===== */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #e9edf2;
}

.brand-logo {
    height: 58px;
    width: 58px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-kemenimipas {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--navy-800);
    text-transform: uppercase;
}

.brand-republik {
    font-size: .68rem;
    color: #6b7684;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--navy-900);
    margin: 2px 0 0;
}

.brand-tagline {
    font-size: .78rem;
    color: var(--gold-600);
    font-weight: 600;
    margin-top: 2px;
}

.search-box {
    display: flex;
    border: 1px solid #dfe4ea;
    border-radius: 999px;
    overflow: hidden;
}
.search-box input {
    border: none;
    padding: .5rem 1rem;
    outline: none;
    width: 210px;
    font-size: .85rem;
}
.search-box button {
    background: var(--navy-900);
    color: #fff;
    border: none;
    padding: 0 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy-900);
    color: #fff;
    margin-left: 6px;
    font-size: .85rem;
    transition: background .2s;
}
.social-icons a:hover { background: var(--gold-600); }

.main-nav {
    background: var(--navy-900);
}
.main-nav .nav-link {
    color: #dfe6f0;
    font-weight: 600;
    font-size: .92rem;
    padding: .9rem 1rem !important;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--gold-500);
}
.main-nav .dropdown-menu {
    border: none;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.btn-login-admin {
    background: var(--gold-500);
    color: var(--navy-900);
    font-weight: 700;
    border-radius: 999px;
    padding: .5rem 1.2rem;
    font-size: .85rem;
}
.btn-login-admin:hover { background: var(--gold-600); color: #fff; }

/* ===== HERO ===== */
.hero { position: relative; }
.hero .carousel-item img {
    height: 560px;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,37,69,.88) 0%, rgba(11,37,69,.55) 45%, rgba(11,37,69,.15) 100%);
}
.hero-caption {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    color: #fff;
}
.hero-eyebrow {
    color: var(--gold-500);
    font-weight: 700;
    letter-spacing: .1em;
    font-size: .85rem;
    margin-bottom: .5rem;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.6rem;
    line-height: 1.15;
    max-width: 620px;
}
.hero-desc {
    max-width: 520px;
    margin-top: 1rem;
    color: #dfe6f0;
}
.btn-hero {
    display: inline-block;
    margin-top: 1.2rem;
    background: var(--gold-500);
    color: var(--navy-900);
    font-weight: 700;
    padding: .7rem 1.6rem;
    border-radius: 999px;
    transition: background .2s;
}
.btn-hero:hover { background: #fff; color: var(--navy-900); }

.hero-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
}

/* ===== STAT BAR ===== */
.stat-bar {
    background: var(--navy-900);
    color: #fff;
    padding: 2.2rem 0;
}
.stat-icon {
    font-size: 1.6rem;
    color: var(--gold-500);
    margin-bottom: .5rem;
}
.stat-number {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.7rem;
}
.stat-label {
    font-size: .82rem;
    color: #c3ccd8;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ===== BERITA ===== */
.section-berita { background: var(--cream-100); }
.card-berita {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15,48,96,.06);
    transition: transform .2s;
    color: inherit;
}
.card-berita:hover { transform: translateY(-4px); }
.card-berita-img { height: 170px; overflow: hidden; }
.card-berita-img img { width: 100%; height: 100%; object-fit: cover; }
.card-berita-body { padding: 1rem 1.2rem; }
.card-berita-date {
    font-size: .78rem;
    color: var(--gold-600);
    font-weight: 700;
}
.card-berita-body h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-top: .4rem;
    line-height: 1.35;
}

/* ===== LAYANAN ===== */
.card-layanan {
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 10px;
    padding: 1.8rem 1.4rem;
    height: 100%;
    transition: border-color .2s, transform .2s;
}
.card-layanan:hover {
    border-color: var(--gold-500);
    transform: translateY(-4px);
}
.card-layanan i {
    font-size: 1.8rem;
    color: var(--navy-800);
    margin-bottom: .8rem;
}
.card-layanan h5 {
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: .4rem;
}
.card-layanan p {
    font-size: .9rem;
    color: #6b7684;
    margin: 0;
}

/* ===== GALERI ===== */
.galeri-item {
    border-radius: 8px;
    overflow: hidden;
    height: 160px;
}
.galeri-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s;
}
.galeri-item:hover img { transform: scale(1.08); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy-900);
    color: #cbd5e1;
    font-size: .9rem;
}
.footer-logo { height: 44px; }
.footer-brand {
    font-family: var(--font-display);
    font-weight: 900;
    color: #fff;
    font-size: .95rem;
    line-height: 1.2;
}
.footer-heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .05em;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: var(--gold-500); }

.btn-wa {
    display: inline-flex;
    align-items: center;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    padding: .55rem 1rem;
    border-radius: 8px;
    font-size: .85rem;
}
.btn-wa:hover { background: #1ebe5b; color: #fff; }

.footer-bottom {
    background: #081b34;
    font-size: .8rem;
    color: #93a1b3;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .hero .carousel-item img { height: 420px; }
    .hero-title { font-size: 1.9rem; }
    .top-bar .search-box { display: none !important; }
}
@media (max-width: 575.98px) {
    .hero .carousel-item img { height: 340px; }
    .hero-title { font-size: 1.5rem; }
    .brand-title { font-size: 1.05rem; }
}
