/**
 * Astra Child Theme Custom Styles
 * 自定义轮播组件样式
 */

/* 自定义轮播容器 */
.custom-image-carousel {
    margin: 40px 0;
    position: relative;
}

.custom-image-carousel .swiper-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 自定义幻灯片标题 */
.custom-image-carousel .custom-slide-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #ffffff;
    padding: 25px 20px 15px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .custom-image-carousel {
        margin: 20px 0;
    }

    .custom-image-carousel .custom-slide-title {
        font-size: 16px;
        padding: 20px 15px 10px;
    }
}

/* 自定义导航箭头 */
.custom-image-carousel .elementor-swiper-button {
    /*border:3px solid green;*/
    /*
    background: rgba(255, 255, 255, 0.95);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    */
    /*transform: translateY(calc(-50% - 10px));*/
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding:8.2px;

}

.custom-image-carousel .elementor-swiper-button:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.custom-image-carousel .elementor-swiper-button:after {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}





/*第二轮播图样式*/
/* 标题容器样式 */
.image-title-container {
    position: absolute;
    bottom: -50px; /* 标题显示在图片下方 */
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px 0;
    z-index: 10;
}

/* 标题文字样式 */
.image-title {
    color: #333;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
    max-width: 80%;
}

/* 确保幻灯片容器有相对定位 */
.swiper-slide {
    position: relative;
    overflow: visible !important; /* 确保标题可以显示在外面 */
    margin-bottom: 60px; /* 为标题留出空间 */
}

/* 图片样式 */
.swiper-slide img {
    transition: transform 0.3s ease;
    display: block;
    width: 100%;
    height: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .image-title {
        font-size: 14px;
        padding: 6px 10px;
    }

    .image-title-container {
        bottom: -40px;
    }

    .swiper-slide {
        margin-bottom: 50px;
    }
}

