/* ==========================================================================
   PORTAL DLHKP PROVINSI PAPUA - MAIN STYLE CSS
   Designed with High-Performance & Core Web Vitals Optimization
   ========================================================================== */

:root {
    --primary-color: #1B5E20; /* Hijau Khas Dinas Kehutanan */
    --secondary-color: #FFA000; /* Aksen Amber/Emas Papua */
    --dark-color: #0f172a;
    --text-muted: #64748b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--light-bg);
    color: var(--dark-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.main-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.main-nav a:hover, .main-nav .active {
    color: var(--primary-color);
}

/* Structural Components */
.section-header {
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.main-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.news-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Double Panel / Grid System Responsif */
.dynamic-double-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Grid Berita */
.news-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.news-img-container {
    width: 100%;
    height: 200px;
    background: #e2e8f0;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-caption {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.read-more-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Footer Section */
.main-footer {
    background: #111827;
    color: #9ca3af;
    padding: 40px 0 20px 0;
    margin-top: 60px;
    font-size: 0.9rem;
    border-top: 4px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1f2937;
    font-size: 0.8rem;
}

/* Mobile Responsive Utility */
@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .main-title {
        font-size: 1.5rem;
    }
}