/* === NEWS SECTION (Последние новости) === */
.news-section {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(135deg, #1a1c22 0%, #0f1115 100%);
}

.news-section .section-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 85%, rgba(139, 144, 154, 0.4) 0%, transparent 32%),
        radial-gradient(circle at 85% 15%, rgba(90, 95, 107, 0.3) 0%, transparent 42%);
    opacity: 0.12;
    animation: atmosphericPulse 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.news-section .container-fluid-custom {
    position: relative;
    z-index: 1;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    grid-auto-rows: 1fr; /* Все карточки одинаковой высоты */
}

.news-card {
    background: linear-gradient(135deg, #1a1c22 0%, #0f1115 100%);
    border: 1px solid rgba(152, 158, 161, 0.18);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%; /* Карточка занимает всю высоту ячейки */
}

/* Внутреннее свечение (как на features/community карточках) */
.news-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    border-radius: 16px;
    opacity: 0;
    filter: blur(10px);
    transition: all 0.4s ease;
    z-index: -1;
}

.news-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.6);
}

.news-card:hover::before {
    opacity: 1;
    filter: blur(20px);
}

.news-card:hover::after {
    opacity: 1;
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2a2c32 0%, #1f2125 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.news-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 17, 21, 0.8) 100%);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изображение заполняет весь контейнер */
}

.news-content {
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1; /* Контент занимает оставшееся пространство */
}

.news-date {
    font-size: 0.875rem;
    color: #8b909a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.news-date svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.news-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    position: relative;
    /* Обрезка длинного заголовка */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Максимум 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card:hover .news-title {
    color: #d6940d;
}

.news-excerpt {
    color: #c1c9d2;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    position: relative;
    /* Обрезка длинного текста */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Максимум 3 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    margin-top: auto; /* Теги прижимаются к низу карточки */
}

.news-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(214, 148, 13, 0.1);
    border: 1px solid rgba(214, 148, 13, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #d6940d;
    transition: all 0.3s ease;
}

.news-card:hover .news-tag {
    background: rgba(214, 148, 13, 0.15);
    border-color: rgba(214, 148, 13, 0.5);
}

/* Responsive */
@media (max-width: 1365px) {
    .news-section {
        min-height: auto;
        height: auto;
        padding: 4rem 0;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 3rem 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card {
        padding: 0;
    }
    
    .news-content {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 2rem 0;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
}

