@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary: #0a192f;
    --accent: #cc0000;
    --text: #1a1a1a;
    --muted: #666;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #fff; color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: auto; padding: 0 20px; }

/* Header */
header { background: #fff; padding: 20px 0; border-bottom: 5px solid var(--primary); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 900; color: var(--primary); }
.logo span { color: var(--accent); }

/* Navigasi & Dropdown */
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: 700; font-size: 14px; text-transform: uppercase; }
.dropdown { position: relative; }
.dropdown-content { 
    display: none; position: absolute; background: #fff; min-width: 180px; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); border-top: 3px solid var(--accent); top: 100%;
}
.dropdown-content li { list-style: none; border-bottom: 1px solid #eee; }
.dropdown-content a { padding: 12px 15px; display: block; text-transform: capitalize; }
.dropdown-content a:hover { background: #f4f4f4; color: var(--accent); }
.dropdown:hover .dropdown-content { display: block; }

/* Hero Section */
#hero-news { margin: 30px 0; display: flex; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
#hero-news img { width: 60%; height: 400px; object-fit: cover; }
.hero-content { width: 40%; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.category-tag { background: var(--accent); color: #fff; padding: 3px 10px; font-size: 10px; font-weight: 700; width: fit-content; margin-bottom: 10px; }

/* Grid Berita */
#news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 50px; }
.card { cursor: pointer; transition: 0.3s; }
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; }
.card h3 { font-family: 'Playfair Display', serif; margin: 15px 0 10px; font-size: 18px; }

/* Decoration */
.section-header { display: flex; align-items: center; gap: 15px; margin: 40px 0 20px; }
.section-title { font-family: 'Playfair Display', serif; white-space: nowrap; }
.line { height: 2px; background: #eee; width: 100%; }
.loading { padding: 50px; text-align: center; color: var(--muted); grid-column: 1/-1; }
footer { background: var(--primary); color: #fff; padding: 60px 0 30px; text-align: center; margin-top: 50px; }
.footer-copy { margin-top: 20px; font-size: 12px; color: #888; border-top: 1px solid #222; padding-top: 20px; }

@media (max-width: 768px) {
    #hero-news { flex-direction: column; }
    #hero-news img, .hero-content { width: 100%; }
    .header-flex { flex-direction: column; gap: 15
        px; }
              }
