/* Custom styles to fix Swiper slider height */
section.landing-slider {
    margin-top: 15px;
    margin-bottom: 20px;
}

section.landing-slider .swiper-container {
    height: 400px; /* Set a fixed height */
    max-height: 400px;
    overflow: hidden;
}

section.landing-slider .swiper-slide {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

section.landing-slider .item {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

section.landing-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This will maintain aspect ratio while covering the container */
    object-position: center;
}

/* Fix for replays section */
section.replays {
    margin-top: 15px;
    margin-bottom: 20px;
    overflow: hidden;
}

section.replays .swiper-container {
    height: 120px; /* Set appropriate height for the replays section */
    overflow: visible;
}

section.replays .swiper-slide {
    height: 100px;
    width: auto !important;
}

section.replays .item-2 {
    height: 100%;
}

section.replays .circle {
    height: 75px;
    width: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

section.replays .circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix for jackpot games section */
.all-games.jackpot.jakpot_container {
    position: relative;
    padding: 20px 0;
    margin: 15px 0;
    clear: both;
    overflow: visible;
}

/* Fix nested jackpot containers */
.all-games.jackpot.jakpot_container .all-games.jackpot.jakpot_container {
    padding: 0;
    margin: 0;
    border: none;
}

/* Ensure proper spacing between game items */
.all-games.jackpot.jakpot_container .games .row {
    margin-bottom: 15px;
}

.all-games.jackpot.jakpot_container .item {
    margin-bottom: 20px;
}

/* Fix thumbnail images */
.all-games.jackpot.jakpot_container .thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 180px;
}

.all-games.jackpot.jakpot_container .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Provider logos slider styles */
.provider-logos {
    padding: 15px 0;
    overflow: hidden;
}

.provider-logos .provider-logos-swiper {
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.provider-logos .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.provider-logos .item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.provider-logos .provider {
    display: block;
    width: 100%;
    height: 40px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.provider-logos .provider:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
    section.landing-slider .swiper-container,
    section.landing-slider .swiper-slide {
        height: 300px;
    }
    
    section.replays .swiper-container {
        height: 100px;
    }
    
    section.replays .swiper-slide {
        height: 80px;
    }
    
    section.replays .circle {
        height: 60px;
        width: 60px;
    }
    
    .all-games.jackpot.jakpot_container .thumbnail {
        height: 150px;
    }
}

@media only screen and (max-width: 480px) {
    section.landing-slider .swiper-container,
    section.landing-slider .swiper-slide {
        height: 200px;
    }
    
    section.replays .swiper-container {
        height: 90px;
    }
    
    section.replays .swiper-slide {
        height: 70px;
    }
    
    section.replays .circle {
        height: 50px;
        width: 50px;
    }
    
    .all-games.jackpot.jakpot_container .thumbnail {
        height: 120px;
    }
}
