/*
 * Styles for the Front Page Swiper.js Carousel
 */

/* Container styling */
.carousel-container {
    max-width: 100%; /* MODIFIED: Allow full width */
    margin: 0 auto;
    padding: 20px 0; /* MODIFIED: Remove horizontal padding */
}

/* Main slider styling */
.main-slider {
    width: 100%;
    height: auto; /* MODIFIED: Let aspect-ratio control the height */
    aspect-ratio: 16 / 9; /* ADDED: Set 16:9 aspect ratio */
    margin-bottom: 20px;
}

.main-slider .swiper-slide {
    position: relative;
    display: block;
    background: #333;
    border-radius: 8px;
    text-decoration: none; /* Remove default link underline */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3); /* Enhanced shadows */
    overflow: hidden; /* Ensures content stays within rounded corners */
}

.main-slider .swiper-slide img,
.main-slider .swiper-slide iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Text overlay on main slide */
.main-slider .slide-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 4px;
    max-width: 80%;
    pointer-events: none; /* Makes sure the text doesn't interfere with the link */
}

.main-slider .slide-content h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #fff !important; /* Override theme styles if necessary */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.main-slider .slide-content p {
    margin: 5px 0 0;
    font-size: 16px;
    color: #fff !important;
}

/* Navigation buttons */
.main-slider .swiper-button-next,
.main-slider .swiper-button-prev {
    color: #fff;
    width: 44px;
    height: 60px;
    background-color: rgb(0 0 0 / 80%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.main-slider .swiper-button-next:hover,
.main-slider .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
}

.main-slider .swiper-button-next:after,
.main-slider .swiper-button-prev:after {
    font-size: 20px;
}

/* Thumbnail slider styling */
.thumbnail-slider {
    width: 100%;
}

.thumbnail-slider .swiper-slide {
    opacity: 0.4;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s;
    height: auto; /* ADDED: Allow aspect-ratio to control height */
    aspect-ratio: 16 / 9; /* ADDED: Match main slider aspect ratio */
}

.thumbnail-slider .swiper-slide img {
    width: 100%;
    height: 100%; /* MODIFIED: Fill parent slide instead of fixed height */
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.thumbnail-slider .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #00ccff; /* Brighter border color (vibrant cyan) */
    filter: brightness(1.3); /* Increase brightness of active thumbnail */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Main slider height is now controlled by aspect-ratio, so fixed height can be removed */
    .main-slider .slide-content h2 {
        font-size: 20px;
    }
    .main-slider .slide-content p {
        font-size: 14px;
    }
    /* Thumbnail height is also controlled by aspect-ratio */
}

