/* Базовые стили для баннеров */
.banners {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-item {
    position: relative;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
}

.banner-item--active {
    opacity: 1;
}

/* Стили для слайдера */
.banners--slider {
    position: relative;
}

.banner-slider-wrapper {
    position: relative;
    width: 100%;
}

.banner-slider {
    position: relative;
    width: 100%;
}

/* Скрываем неактивные слайды */
.banners--slider .banner-item {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.banners--slider .banner-item--active {
    opacity: 1;
    position: relative;
    z-index: 2;
}

/* Навигационные точки */
.banner-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.banner-dot--active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

/* Навигационные стрелки */
.banner-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.banner-slider-arrow--prev {
    left: 20px;
}

.banner-slider-arrow--next {
    right: 20px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .banner-slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .banner-dot {
        width: 10px;
        height: 10px;
    }
    
    .banner-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .banner-slider-arrow--prev {
        left: 10px;
    }
    
    .banner-slider-arrow--next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .banner-slider-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .banner-dot {
        width: 8px;
        height: 8px;
    }
    
    .banner-slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .banner-slider-arrow--prev {
        left: 5px;
    }
    
    .banner-slider-arrow--next {
        right: 5px;
    }
}

/* Анимации для плавного перехода */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.banner-item--active {
    animation: fadeIn 0.5s ease-in-out;
}

/* Стили для ссылок баннеров */
.banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

/* Стили для контейнера баннера */
.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

/* Стили для контента баннера */
.banner-title {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.banner-content {
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Стили для оверлея - заменено на banner-content-overlay */

/* Адаптивные стили для контента */
@media (max-width: 768px) {
    .banner-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .banner-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 1.2rem;
    }
    
    .banner-content {
        font-size: 0.9rem;
    }
}

/* ===== НОВЫЕ СТИЛИ ДЛЯ ВЫРАВНИВАНИЯ КОНТЕНТА ===== */

/* Базовые стили для оверлея контента */
.banner-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    padding: 2rem;
    z-index: 5;
}

.banner-content-overlay .container {
    width: 100%;
    display: flex;
}

.banner-content-wrapper {
    max-width: 100%;
    word-wrap: break-word;
}

/* Горизонтальное выравнивание */
.banner-content-overlay--h-left {
    justify-content: flex-start;
}

.banner-content-overlay--h-left .container {
    justify-content: flex-start;
    text-align: left;
}

.banner-content-overlay--h-center {
    justify-content: center;
}

.banner-content-overlay--h-center .container {
    justify-content: center;
    text-align: center;
}

.banner-content-overlay--h-right {
    justify-content: flex-end;
}

.banner-content-overlay--h-right .container {
    justify-content: flex-end;
    text-align: right;
}

/* Вертикальное выравнивание */
.banner-content-overlay--v-top {
    align-items: flex-start;
}

.banner-content-overlay--v-middle {
    align-items: center;
}

.banner-content-overlay--v-bottom {
    align-items: flex-end;
}

/* Стили для контейнера без изображения */
.banner-content-container {
    position: relative;
    width: 100%;
    height: 300px; /* Минимальная высота для баннеров без изображения */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    padding: 2rem;
}

.banner-content-container .container {
    width: 100%;
    display: flex;
}

.banner-content-container .banner-content-wrapper {
    max-width: 100%;
    word-wrap: break-word;
}

.banner-content-container .banner-title {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.banner-content-container .banner-content {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Горизонтальное выравнивание для контейнера без изображения */
.banner-content-container--h-left {
    justify-content: flex-start;
}

.banner-content-container--h-left .container {
    justify-content: flex-start;
    text-align: left;
}

.banner-content-container--h-center {
    justify-content: center;
}

.banner-content-container--h-center .container {
    justify-content: center;
    text-align: center;
}

.banner-content-container--h-right {
    justify-content: flex-end;
}

.banner-content-container--h-right .container {
    justify-content: flex-end;
    text-align: right;
}

/* Вертикальное выравнивание для контейнера без изображения */
.banner-content-container--v-top {
    align-items: flex-start;
}

.banner-content-container--v-middle {
    align-items: center;
}

.banner-content-container--v-bottom {
    align-items: flex-end;
}

/* Адаптивные стили для новых элементов */
@media (max-width: 768px) {
    .banner-content-overlay,
    .banner-content-container {
        padding: 1rem;
    }
    
    .banner-content-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .banner-content-overlay,
    .banner-content-container {
        padding: 0.5rem;
    }
    
    .banner-content-container {
        height: 200px;
    }
}
