/* CSS Variabler */
:root {
    --primary-dark: #0b1a30;
    --primary-red: #d32f2f;
    --primary-blue: #1976d2;
    --bg-light: #f4f5f7;
    --text-dark: #333;
    --text-light: #fff;
    --transition-speed: 0.3s;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Header */
header { background: #fff; padding: 20px; display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-icon { font-size: 2.5rem; color: var(--primary-blue); position: relative; }
.logo-icon::after { content: '\f0e7'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary-red); position: absolute; font-size: 1.5rem; top: -5px; right: -10px; }
.logo-text h1 { font-size: 2rem; color: var(--primary-dark); margin-bottom: -5px; }
.logo-text h1 span { color: var(--primary-blue); }
.logo-text p { font-size: 0.8rem; font-weight: bold; color: #666; text-transform: uppercase; letter-spacing: 1px; }
.top-select select { padding: 8px 15px; border: 1px solid #ccc; border-radius: 4px; background: #fff; cursor: pointer; }

/* Navigation */
nav { background-color: var(--primary-dark); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: flex-start; }
.nav-inner > ul { display: flex; }
.nav-inner > ul > li { position: relative; }
.nav-inner > ul > li > a { display: block; padding: 15px 25px; color: var(--text-light); font-weight: 600; text-transform: uppercase; transition: background var(--transition-speed); }
.nav-inner > ul > li > a:hover { background-color: #1a365d; }

/* Dropdown Lokalt */
.dropdown { display: none; position: absolute; top: 100%; left: 0; background-color: #1a365d; min-width: 200px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); }
.dropdown li a { display: block; padding: 10px 20px; color: #fff; transition: background 0.2s; }
.dropdown li a:hover { background-color: var(--primary-blue); }
.nav-inner > ul > li:hover .dropdown { display: block; }

/* Main Content Container & Transitions */
main { max-width: 1200px; margin: 30px auto; padding: 0 20px; transition: opacity var(--transition-speed) ease-in-out; opacity: 1; min-height: 60vh; }
main.loading { opacity: 0; }

/* Grid Layout (Home) */
.home-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }

/* Articles */
.hero-article { background: #000; color: #fff; border-radius: 8px; overflow: hidden; position: relative; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.hero-img { width: 100%; height: 400px; object-fit: cover; opacity: 0.8; }
.hero-content { position: absolute; bottom: 0; left: 0; padding: 30px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); width: 100%; }
.hero-content h2 { font-size: 2.2rem; color: var(--primary-red); margin-bottom: 10px; text-transform: uppercase; }
.hero-content p { font-size: 1.2rem; }

.sub-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.2s; }
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 150px; object-fit: cover; }
.card-content { padding: 15px; }
.category-tag { display: inline-block; font-size: 0.7rem; font-weight: bold; color: var(--primary-blue); margin-bottom: 5px; text-transform: uppercase; }
.category-tag.brand { color: var(--primary-red); }
.card-content h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.3; }
.time { font-size: 0.8rem; color: #888; }

/* Sidebar */
.sidebar-section { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.sidebar-section h3 { border-bottom: 2px solid var(--primary-dark); padding-bottom: 10px; margin-bottom: 15px; }

.quick-update { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.quick-update:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.icon-circle { width: 35px; height: 35px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; flex-shrink: 0; }
.bg-blue { background-color: var(--primary-blue); }
.bg-red { background-color: var(--primary-red); }
.quick-update p { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }

.map-img { width: 100%; border-radius: 8px; }

.volunteer-card { display: flex; gap: 15px; background: var(--primary-dark); color: #fff; padding: 15px; border-radius: 8px; }
.volunteer-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.volunteer-card h4 { color: var(--primary-red); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 5px; }
.volunteer-card p { font-size: 0.85rem; }

/* Footer */
footer { background: var(--primary-dark); color: #aaa; text-align: center; padding: 30px 20px; margin-top: 40px; }
.footer-links { margin-bottom: 15px; }
.footer-links a { color: #fff; margin: 0 10px; font-size: 0.9rem; }
.footer-links a:hover { text-decoration: underline; }

/* Page Content Placeholders (for AJAX simulation) */
.page-content { display: none; }
.page-content.active { display: block; }