/* style_news.css */

body {
    margin: 0;
    font-family: 'Russo One', sans-serif;
    background-color: #0b1120;
    color: #ffffff;
}

header {
    background-color: #0d1b2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    box-shadow: 0 0 10px #00000099;
}

header img {
    height: 60px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 20px;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3399ff;
}

.news-section {
    padding: 60px 40px;
    background: linear-gradient(to right, #0b1120, #13293d);
    min-height: 100vh;
}

.news-section h1 {
    font-size: 48px;
    color: #66aaff;
    text-align: center;
    margin-bottom: 40px;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background-color: #0f172a;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px #00000088;
    transition: transform 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: scale(1.03);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.news-card h2 {
    font-size: 22px;
    color: #66aaff;
    margin: 0 0 10px;
}

.news-card p {
    font-size: 16px;
    color: #cccccc;
    margin: 0 0 15px;
}

.news-card .date {
    font-size: 14px;
    color: #888;
}

footer {
    background-color: #0d1b2a;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #888;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #0f172a;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 10px #00000088;
}

.modal-content img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.modal-content h2 {
    font-size: 24px;
    color: #66aaff;
    margin: 0 0 15px;
}

.modal-content p {
    font-size: 16px;
    color: #cccccc;
    margin: 0 0 15px;
}

.modal-content .date {
    font-size: 14px;
    color: #888;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ccc;
    text-decoration: none;
}