
:root {
    --bg-main: #0c120c;
    --bg-card: #131c13;
    --bg-surface: #1a261a;
    --border: #233523;
    --accent: #52b788;
    --accent-light: #95d5b2;
    --accent-dark: #2d6a4f;
    --text-primary: #edf2f4;
    --text-muted: #8fa38f;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    font-size: 16px;
}

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

/* Header */
.site-header {
    background-color: rgba(12, 18, 12, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--accent-light);
}
.brand-crest { font-size: 32px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-heading); font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.brand-sub { font-family: var(--font-sans); font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--accent-light); }

.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 0;
    min-width: 250px;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 8px 18px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
}
.dropdown-menu a:hover { background: var(--bg-surface); color: var(--accent-light); }

.header-search { position: relative; width: 220px; }
.header-search input {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}
.header-search input:focus { border-color: var(--accent); }
.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-top: 5px;
    max-height: 350px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 200;
}
.search-item {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
}
.search-item:hover { background: var(--bg-surface); }
.search-item-title { font-weight: 600; color: var(--accent-light); }
.search-item-cat { font-size: 11px; color: var(--text-muted); }

/* Hero */
.hero {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(rgba(12,18,12,0.85), rgba(12,18,12,0.95)), url('/assets/images/hero.jpg') center/cover no-repeat;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.hero-tag {
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    margin-bottom: 15px;
    display: inline-block;
    font-weight: 600;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 44px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}
.hero-sub {
    max-width: 750px;
    margin: 0 auto 30px;
    color: var(--text-muted);
    font-size: 18px;
}

/* Grids */
.section-title {
    font-family: var(--font-heading);
    color: var(--accent-light);
    font-size: 32px;
    margin: 50px 0 30px;
    text-align: center;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 10px auto 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}
.card-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.article-card:hover .card-img { transform: scale(1.04); }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}
.card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.3;
}
.card-title a { color: var(--text-primary); text-decoration: none; transition: color 0.2s; }
.card-title a:hover { color: var(--accent-light); }
.card-summary {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    font-size: 13px;
}
.read-more { color: var(--accent-light); text-decoration: none; font-weight: 600; }
.read-more:hover { text-decoration: underline; }

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}
.category-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.2s, transform 0.2s;
}
.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.cat-icon { font-size: 38px; margin-bottom: 15px; display: block; }
.cat-title { font-family: var(--font-heading); font-size: 24px; margin-bottom: 10px; color: var(--accent-light); }
.cat-desc { font-size: 14px; color: var(--text-muted); }

/* Article View */
.article-header {
    padding: 60px 0 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
    text-align: center;
}
.article-header h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    line-height: 1.3;
    margin: 15px 0;
    color: #ffffff;
}
.article-meta {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 20px;
}
.article-content {
    max-width: 820px;
    margin: 0 auto 60px;
    font-size: 17px;
    line-height: 1.8;
}
.article-content p { margin-bottom: 24px; }
.article-content h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--accent-light);
    margin: 35px 0 15px;
}
.article-content ul {
    margin: 0 0 25px 25px;
}
.article-content li { margin-bottom: 10px; }
.article-banner {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

/* Footer */
.site-footer {
    background: #090e09;
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.footer-brand .brand-name { font-family: var(--font-heading); font-size: 22px; color: var(--accent-light); font-weight: 700; }
.footer-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.footer-copy { font-size: 12px; color: #5a6e5a; }
.footer-col h4 { font-family: var(--font-heading); font-size: 20px; color: var(--accent-light); margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-address, .footer-contact { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }
.footer-legal { font-size: 13px; color: var(--text-muted); margin-top: 20px; }
.footer-legal a { color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--accent-light); }

@media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 15px 0; gap: 15px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-title { font-size: 32px; }
}
