.news-header-text {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 3px;
    color:#fff;
}

.news-header {
    /*background: #445878;*/
    background: linear-gradient(90deg, rgba(56, 75, 105, 1), rgba(96, 129, 181, 1), rgba(56, 75, 105, 1));
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px 8px 8px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.news-header-text {
    font-size: 20px;
    color: #fff;
}

.news-header {
    /*background: #445878;*/
    background: linear-gradient(90deg, rgba(56, 75, 105, 1), rgba(96, 129, 181, 1), rgba(56, 75, 105, 1))
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px 8px 8px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.news-grid-container {
    font-family: Bebas Neue;
    position: relative;
    width: 100%;
    padding-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    padding-bottom: 50px;
}

.news-item.selected {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1;
}

.news-item .image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .image img {
    transform: scale(1.05);
}

.news-item .info {
    padding: 15px;
}

.news-item h3 {
    color: #384b69;
    font-size: 18px;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.news-item .preview-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-item .date {
    font-size: 12px;
    color: #777;
    position: absolute;
    bottom: 15px;
    left: 15px;
}

.news-item .more-btn {
    position: absolute;
    bottom: 10px;
    right: 15px;
    padding: 6px 15px;
    background-color: #384b69;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s;
}

.news-item.selected .more-btn {
    opacity: 1;
}

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

.pagination button {
    background: #384b69;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    background: #2c3a4f;
}

.pagination button.active {
    background: #2c3a4f;
}

.pagination button:disabled {
    background: #ddd;
    cursor: not-allowed;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #384b69;
}

/* Мобильная адаптация */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        margin-bottom: 15px;
    }
    
    .pagination button {
        width: 35px;
        height: 35px;
        margin: 0 3px;
        font-size: 12px;
    }
    
    .news-header-text {
        font-size: 18px;
    }
    
    .news-item h3 {
        font-size: 16px;
    }
    
    .news-item .preview-text {
        font-size: 13px;
    }
}