html, body {
    height: 100%;
    margin: 0;
}

body.news {
    background: #1a1a1a url('/sahtout/img/backgrounds/bg-news.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: #e0e0e0;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

.wow-news-container {
    margin: 20px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    max-width: 1400px;
}

body.news.list-view .wow-news-container {
    max-width: 900px;
}

body.news.single-view .wow-news-container {
    max-width: 1200px;
}

.wow-news-title {
    color: #ffd700;
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.news-list {
    margin-top: 20px;
}

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

.news-item {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item:hover {
    border-color: #ffd700;
    background: rgba(40, 40, 40, 0.8);
}

.news-item.important {
    border-left: 4px solid #ff4500;
}

.news-image {
    max-width: 300px;
    max-height: 200px;
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 0 auto;
}

.news-content h2 {
    color: #ffd700;
    font-size: 1.5em;
    margin: 0 0 10px;
    text-align: center;
}

.news-excerpt {
    color: #ccc;
    line-height: 1.5;
    text-align: center;
    margin: 10px 0 0;
}

.news-meta {
    color: #aaa;
    font-size: 0.9em;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.news-meta .category {
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
}

.category.update { background: #4682b4; color: white; }
.category.event { background: #8b4513; color: white; }
.category.maintenance { background: #dc143c; color: white; }
.category.other { background: #20b2aa; color: white; }

.no-news {
    text-align: center;
    padding: 20px;
    color: #888;
}

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 8px 12px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    border-radius: 3px;
    color: #ffd700;
    text-decoration: none;
}

.pagination-link:hover {
    background: rgba(255, 215, 0, 0.4);
}

.pagination-link.active {
    background: rgba(255, 215, 0, 0.6);
    font-weight: bold;
}

.news-single {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 5px;
    padding: 20px;
}

.news-single.important {
    border-left: 4px solid #ff4500;
}

.news-single-image {
    max-width: 100%;
    display: block;
    margin: 0 auto 20px;
    border: 1px solid #887f7f;
    width: 80%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.news-single-title {
    text-align: center;
    color: #ffd700;
    font-size: 2.5em;
    margin: 0 0 15px;
}

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

.news-single-content {
    color: #e0e0e0;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-single-back {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    border-radius: 3px;
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

.news-single-back:hover {
    background: rgba(255, 215, 0, 0.4);
}

footer {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .news-item {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .news-image {
        margin: 0;
        flex: 0 0 auto;
    }

    .news-content {
        flex: 1;
    }

    .news-content h2,
    .news-excerpt,
    .news-meta {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .wow-news-container {
        padding: 15px;
        margin: 10px;
    }

    .news-single-title {
        font-size: 2em;
    }

    .news-single-content {
        font-size: 1em;
    }
}