/* Swiper Carousel Styles */
.tx-clubdata-carousel {
    width: 100%;
    overflow: hidden; /* Prevent horizontal scroll */
}

.tx-clubdata-carousel .clubdata-swiper {
    width: 100%;
    /* Height includes space for pagination below */
    height: calc(400px + 60px); /* 400px slider + ~60px pagination area */
    position: relative;
}

.tx-clubdata-carousel .clubdata-swiper .swiper-wrapper {
    height: 400px; /* Keep slides at original height */
}


/* Swiper Slide */
.clubdata-swiper .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Active slide should be fully opaque */
.clubdata-swiper .swiper-slide-active {
    opacity: 1;
}

/* Non-active slides become more visible on hover */
.clubdata-swiper .swiper-slide:not(.swiper-slide-active):hover {
    opacity: 1;
}

.clubdata-swiper .swiper-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.clubdata-swiper .swiper-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Image Styling */
.clubdata-swiper .swiper-image-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.clubdata-swiper .swiper-slide:hover .swiper-slide-image {
    transform: scale(1.05);
}

/* Overlay and Caption */
.clubdata-swiper .swiper-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 50px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

/* Show caption for active slide and on hover */
.clubdata-swiper .swiper-slide-active .swiper-slide-overlay,
.clubdata-swiper .swiper-slide:hover .swiper-slide-overlay {
    transform: translateY(0);
}

.clubdata-swiper .swiper-slide-caption {
    text-align: left;
}

.clubdata-swiper .swiper-slide-date {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
}

.clubdata-swiper .swiper-slide-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.clubdata-swiper .swiper-slide-subtitle {
    font-size: 16px;
    margin: 0 0 8px 0;
    opacity: 0.9;
    font-weight: 400;
}

.clubdata-swiper .swiper-slide-teaser {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
    line-height: 1.4;
}

/* Navigation Buttons */
.clubdata-swiper .swiper-button-next,
.clubdata-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
}

.clubdata-swiper .swiper-button-next:after,
.clubdata-swiper .swiper-button-prev:after {
    font-size: 18px;
}

.clubdata-swiper .swiper-button-next:hover,
.clubdata-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Pagination */
.clubdata-swiper .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    margin-top: 20px;
    padding: 15px 0;
    text-align: center;
}

.clubdata-swiper .swiper-pagination-bullet {
    background: #333;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.clubdata-swiper .swiper-pagination-bullet:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.clubdata-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #007bff;
    width: 14px;
    height: 14px;
    transform: scale(1.2);
}

/* Scrollbar */
.clubdata-swiper .swiper-scrollbar {
    background: rgba(255, 255, 255, 0.3);
}

.clubdata-swiper .swiper-scrollbar-drag {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tx-clubdata-carousel .clubdata-swiper {
        height: calc(300px + 40px); /* 300px slider + ~40px pagination area */
    }
    
    .tx-clubdata-carousel .clubdata-swiper .swiper-wrapper {
        height: 300px; /* Keep slides at original height */
    }
    
    .clubdata-swiper .swiper-slide-overlay {
        position: static;
        transform: none;
        background: rgba(0, 0, 0, 0.8);
        padding: 15px;
    }
    
    .clubdata-swiper .swiper-pagination {
        margin-top: 10px;
        padding: 10px 0;
    }
    
    .clubdata-swiper .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }
    
    .clubdata-swiper .swiper-pagination-bullet-active {
        width: 12px;
        height: 12px;
    }
    
    
    .clubdata-swiper .swiper-slide-title {
        font-size: 18px;
    }
    
    .clubdata-swiper .swiper-slide-subtitle {
        font-size: 14px;
    }
    
    .clubdata-swiper .swiper-button-next,
    .clubdata-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
    
    .clubdata-swiper .swiper-button-next:after,
    .clubdata-swiper .swiper-button-prev:after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tx-clubdata-carousel .clubdata-swiper {
        height: calc(250px + 40px); /* 250px slider + ~40px pagination area */
    }
    
    .tx-clubdata-carousel .clubdata-swiper .swiper-wrapper {
        height: 250px; /* Keep slides at original height */
    }
    
    .clubdata-swiper .swiper-slide-title {
        font-size: 16px;
    }
    
    .clubdata-swiper .swiper-slide-teaser {
        display: none;
    }
    
    
    .clubdata-swiper .swiper-pagination {
        margin-top: 12px;
        padding: 8px 0;
    }
    
    .clubdata-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    
    .clubdata-swiper .swiper-pagination-bullet-active {
        width: 10px;
        height: 10px;
    }
}
