/* Слайдер новостей с 3 карточками на слайде */

/* Заголовок секции новостей */
.section-news .section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}

.section-news .section-separator {
    font-size: 32px;
    font-weight: 700;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
    padding: 0 20px;
}

.section-news .section-separator::before,
.section-news .section-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.section-news .section-separator::before {
    left: -80px;
}

.section-news .section-separator::after {
    right: -80px;
}

/* Основной контейнер */
.news-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Слайдер */
.news-slider {
    margin-bottom: 30px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Слайд */
.news-slide {
    padding: 20px 0;
    width: 100%;
}

/* Сетка новостей (3 в ряд) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
    width: 100%;
    min-height: 400px;
}

/* Карточка новости */
.news-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    width: 100%;
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.1);
}

/* Изображение новости */
.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    width: 100%;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* Контент новости */
.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Заголовок новости */
.news-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Текст новости */
.news-text {
    color: #e0e0e0;
    line-height: 1.5;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    flex: 1;
    font-size: 14px;
}

/* Мета-информация */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Дата */
.news-date {
    color: #b0b0b0;
    font-size: 12px;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Кнопка */
.news-button {
    display: flex;
    background: url(../images/button.png) center no-repeat;
    background-size: contain;
    width: 100%;
    height: 46px;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-button:hover {
    opacity: 0.7;
    color: white;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

/* Навигация */
.news-navigation {
    text-align: center;
    margin-top: 30px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Стили для стрелок слайдера */
.news-slider .slick-prev,
.news-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #ffd700;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-slider .slick-prev:hover,
.news-slider .slick-next:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.news-slider .slick-prev {
    left: -50px;
}

.news-slider .slick-next {
    right: -50px;
}

.news-slider .slick-prev::before {
    content: '‹';
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.news-slider .slick-next::before {
    content: '›';
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

/* Скрываем стандартные надписи Slick */
.news-slider .slick-prev .slick-prev-icon,
.news-slider .slick-next .slick-next-icon {
    display: none !important;
}

.news-slider .slick-prev span,
.news-slider .slick-next span {
    display: none !important;
}

/* Дополнительное скрытие стандартных надписей */
.news-slider .slick-prev[aria-label],
.news-slider .slick-next[aria-label] {
    font-size: 0 !important;
}

.news-slider .slick-prev[aria-label]::after,
.news-slider .slick-next[aria-label]::after {
    content: none !important;
}

/* Скрываем все текстовые элементы внутри стрелок */
.news-slider .slick-prev *:not(::before),
.news-slider .slick-next *:not(::before) {
    display: none !important;
}

/* Стили для точек слайдера */
.news-slider .slick-dots {
    bottom: -40px;
    position: relative;
    z-index: 10;
}

.news-slider .slick-dots li button::before {
    color: #ffd700;
    font-size: 12px;
    opacity: 0.5;
}

.news-slider .slick-dots li.slick-active button::before {
    opacity: 1;
}

.all-news-link {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    z-index: 10;
}

.all-news-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .news-grid {
        gap: 20px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    /* Кнопка для больших экранов */
    .news-button {
        height: 44px;
        font-size: 14px;
    }
    
    /* Исправления для больших экранов */
    .news-slider {
        margin: 0 -30px 30px -30px;
    }
    
    .news-slider .slick-list {
        overflow: visible;
    }
    
    .news-slider .slick-track {
        display: flex;
    }
    
    .news-slider .slick-slide {
        padding: 0 30px;
    }
    
    /* Стрелки для больших экранов */
    .news-slider .slick-prev {
        left: -25px;
        font-size: 24px;
    }
    
    .news-slider .slick-next {
        right: -25px;
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Кнопка для планшетов */
    .news-button {
        height: 42px;
        font-size: 13px;
    }
    
    /* Исправления для планшетного слайдера */
    .news-slider {
        margin: 0 -20px 30px -20px;
    }
    
    .news-slider .slick-list {
        overflow: visible;
    }
    
    .news-slider .slick-track {
        display: flex;
    }
    
    .news-slider .slick-slide {
        padding: 0 20px;
    }
    
    /* Стрелки для планшетов */
    .news-slider .slick-prev {
        left: -15px;
        font-size: 22px;
    }
    
    .news-slider .slick-next {
        right: -15px;
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .news-content-container {
        padding: 0 15px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .news-text {
        font-size: 13px;
    }
    
    /* Кнопка для мобильных устройств */
    .news-button {
        height: 40px;
        font-size: 12px;
    }
    
    /* Исправления для мобильного слайдера */
    .news-slider {
        margin: 0 -15px 30px -15px;
    }
    
    .news-slider .slick-list {
        overflow: visible;
    }
    
    .news-slider .slick-track {
        display: flex;
    }
    
    .news-slider .slick-slide {
        padding: 0 15px;
    }
    
    /* Стрелки для мобильных устройств */
    .news-slider .slick-prev {
        left: -10px;
        font-size: 20px;
    }
    
    .news-slider .slick-next {
        right: -10px;
        font-size: 20px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Дополнительные эффекты */
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.news-card:hover::before {
    transform: translateX(100%);
}
