@font-face {
    font-family: 'zpix';
    src: url('/fonts/zpix.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --secondary: #ff9800;
    --dark: #121212;
    --light: #f5f5f5;
    --gray: #424242;
    --accent: #8d6e63;
    --gray-light: #616161;
}

body {
    font-family: 'zpix', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

a {
    color: var(--secondary);
    text-decoration: none !important;
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary);
    text-decoration: none !important;
}

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

.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1,
.header h2 {
    font-size: 28px;
}

.header h1 a,
.header h2 a {
    color: white;
    text-decoration: none;
}

.header nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.header nav a:hover {
    opacity: 1;
}

.main {
    padding: 40px 0;
}

.main .container {
    display: flex;
    gap: 30px;
}

.content {
    flex: 1;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.page-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--light);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.news-item-link:hover {
    transform: translateY(-4px);
}

.news-item-link:hover .news-item {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.news-item {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.news-item .nes-container {
    padding: 1.5rem;
}

.news-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--light);
    line-height: 1.4;
}

.news-title span,
.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.news-title span:hover,
.news-title a:hover {
    color: var(--secondary);
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    color: #aaa;
}

.news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.news-summary {
    line-height: 1.8;
    color: #ccc;
    margin-top: 10px;
}

.news-detail {
}

.news-detail .news-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--light);
}

.news-detail .news-meta {
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray);
    margin-bottom: 30px;
}

.news-content {
    font-size: 16px;
    line-height: 2;
    color: var(--light);
}

.news-content p {
    margin-bottom: 20px;
}

.news-content img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border: 4px solid var(--gray);
    image-rendering: pixelated;
    box-sizing: border-box;
}

.news-content h1,
.news-content h2,
.news-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--light);
    padding-left: 10px;
    border-left: 4px solid var(--secondary);
}

.news-content a {
    color: var(--secondary);
    text-decoration: none !important;
    transition: all 0.2s;
}

.news-content a:hover {
    color: var(--secondary);
    text-decoration: none !important;
}

.sidebar-widget {
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--light);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
    background: rgba(0, 0, 0, 0.2);
}

.category-list a:hover {
    color: var(--secondary);
    border-color: var(--secondary);
    background: rgba(255, 152, 0, 0.1);
}

.category-list .count {
    padding: 4px 12px;
    font-size: 14px;
    color: #aaa;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-block;
    padding: 10px 16px;
    background: var(--gray);
    border: 1px solid var(--gray-light);
    color: var(--light);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    color: #aaa;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.back-btn {
    display: inline-block;
    margin-top: 30px;
    color: var(--secondary);
    text-decoration: none;
}

.back-btn:hover {
    text-decoration: underline;
}

.footer {
    background: #000;
    color: #777;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}

.empty-state p {
    font-size: 18px;
}

@media (max-width: 900px) {
    .main .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    .news-detail {
        padding: 20px;
    }
    .news-detail .news-title {
        font-size: 24px;
    }
    .news-title {
        font-size: 18px;
    }
    .news-meta {
        gap: 10px;
    }
    .news-meta span {
        font-size: 12px;
        padding: 3px 8px;
    }
}
