

:root {
    --primary-color: #1b4d3e;     /* Hijau Khas Kejaksaan */
    --secondary-color: #d4af37;   /* Emas / Gold Aksen Kebanggaan */
    --dark-color: #1a1a1a;        /* Hitam Teks Utama */
    --light-bg: #f8f9fa;          /* Latar Belakang Terang */
    --white: #ffffff;
    --gray-border: #e2e8f0;
    --text-muted: #64748b;
    --transition-fast: all 0.3s ease;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* 1. Reset & Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--dark-color);
    background-color: #f5f7fb;
    line-height: 1.6;
    font-size: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. Top Bar / Header Info */
.top-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 3px solid var(--secondary-color);
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 3. Main Navigation Layout (Flexbox Horizontal) */
.main-navbar {
    background-color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 10px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand img {
    height: 55px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 24px; /* Melebar ke samping secara horizontal */
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    padding: 8px 4px;
    display: block;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    list-style: none;
    border-radius: 4px;
    border-top: 3px solid var(--primary-color);
    padding: 6px 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item a {
    color: var(--dark-color);
    padding: 10px 20px;
    display: block;
    font-size: 13px;
    font-weight: 500;
}

.dropdown-item a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 24px;
}

/* 4. Hero Banner / Slider Section */
.hero-section {
    position: relative;
    background-color: var(--primary-color);
    overflow: hidden;
    padding: 60px 0;
    color: var(--white);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

/* 5. Main Content Grid (Two Columns for News & Sidebar) */
.main-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    display: block;
}

.content-grid {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.main-content {
    display: table-cell;
    width: 70%;
    padding-right: 30px;
    vertical-align: top;
}

.sidebar-content {
    display: table-cell;
    width: 30%;
    vertical-align: top;
}

/* 6. Section Titles */
.section-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-left: 12px;
    border-left: 4px solid var(--secondary-color); /* Aksen garis vertikal emas */
    text-transform: uppercase;
    font-weight: 700;
}

/* 7. Components & Cards (News, Announcements) */
.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
    border: 1px solid var(--gray-border);
    transition: var(--transition-fast);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.news-body {
    padding: 20px;
}

.news-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* 8. Widget Sidebar */
.sidebar-widget {
    background: var(--white);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-border);
}

/* 9. Responsivitas Mobile Popup & Komponen Instansi */
.popup-container {
    max-width: 500px; /* Sesuai rasio standar pop-up responsif */
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    background: var(--white);
    border-radius: 6px;
}

.popup-img {
    width: 100%;
    height: auto;
    aspect-ratio: 500 / 241; /* Memastikan aspek rasio gambar pop-up tetap konsisten */
    object-fit: cover;
}

/* 10. Footer Berwibawa */
.main-footer {
    background-color: #0f2d24; /* Hijau yang lebih gelap untuk kedalaman kontras */
    color: #e2e8f0;
    padding: 50px 0 20px 0;
    border-top: 4px solid var(--secondary-color);
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* Media Queries untuk Mobile */
@media (max-width: 768px) {
    .content-grid, .main-content, .sidebar-content {
        display: block;
        width: 100%;
    }
    .main-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    .nav-menu {
        display: none; /* Menu laci/hamburger bisa diimplementasikan via JS */
    }
}
