/* Основные стили для новостей */
.page-content {
    padding-top: 80px; /* чтобы заголовок был виден */
}

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

.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #7a3cff, #5f2ed9);
    margin: 0 auto;
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-image-container {
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 20px;
}

.news-card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.news-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #7a3cff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #5f2ed9;
}

.arrow-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover .arrow-icon {
    transform: translateX(3px);
}

/* Детальная страница новости */
.news-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px 40px 20px;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-detail-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 15px;
}

.news-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.news-detail-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.main-news-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.news-detail-text {
    line-height: 1.7;
    color: #444;
}

/* Похожие новости */
.related-news {
    margin-top: 60px;
}

.related-news h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-news-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.related-news-card:hover {
    transform: translateY(-5px);
}

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

.related-news-card h4 {
    font-size: 1.1rem;
    color: #333;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-detail-content {
        grid-template-columns: 1fr;
    }
    
    .news-detail-image {
        margin-bottom: 20px;
    }
}