/*CAROUSEL SWIPER*/

.banners-row > div:has(#carousel) {
    width: 100%;
    padding: 0;
}

#carousel {
    max-width: 1480px;
    margin-inline: auto;
}

#carousel {
    opacity: 0;
    transition: opacity ease 300ms;
}

#carousel:has(.swiper) {
    opacity: 1;
}

.carousel-inner > .item > a > img, .carousel-inner > .item > img {
    width: auto;
    max-width: 347px;
}

#carousel .swiper {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 20px 0;
}

#carousel .swiper-slide {
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 341px;
    height: initial;
}

#carousel .swiper-slide a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

#carousel .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

#carousel .extended-banner-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    row-gap: 16px;

    position: absolute;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    padding: 16px;
    z-index: 2;

    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background-color: rgba(0, 0, 0, 0.3); /* poloprůhledné pozadí */
}

#carousel .extended-banner-texts > * {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0;
}

#carousel .extended-banner-title {
    font-size: 17px;
    font-weight: bold;
    color: #000;
    background: none;
    border: none;
    box-shadow: none;
    text-align: left;
}

#carousel .extended-banner-text {
    color: #000;
    line-height: 1.5;
    border: none;
    background: none;
    max-width: 100%;
    font-size: 15px;
    box-shadow: none;
    text-align: left;
}

#carousel .extended-banner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;


    background-color: #fff;
    color: #000;
    min-height: 44px;
    padding: 8px 28px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    height: initial;
    border: none;
    margin-top: 0;

    text-shadow: none;
}

#carousel .extended-banner-link:hover {
    background-color: #dadada;
    color: #000;
}

#carousel .text-dark .extended-banner-link {
    background-color: #000;
    color: #fff;
}

#carousel .text-dark .extended-banner-link:hover {
    background-color: #332c2c;
    color: #fff;
}

#carousel .swiper-button-prev,
#carousel .swiper-button-next {
    color: #C4185B;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.homepage-box.before-carousel {
    background-color: transparent !important;
}

#carousel .swiper-button-prev {
    left: 10px;
}

#carousel .swiper-button-next {
    right: 10px;
}

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


/* Video container styles */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.video-container img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    opacity: 0;
}

.video-container video ~ img {
    opacity: 1;
}

#carousel .extended-banner-texts.text-light .extended-banner-title,
#carousel .extended-banner-texts.text-light .extended-banner-text {
    color: #fff;
}

#carousel .swiper-slide {
    border-radius: 20px;
}

/* Responsive styles */

@media (max-width: 1439px) {
    #carousel .swiper-slide,
    .carousel-inner > .item > a > img, .carousel-inner > .item > img {
        width: 386.66px;
    }
}

@media (max-width: 1199px) {

    #carousel .extended-banner-text,
    #carousel .extended-banner-title {
        margin: 0px 5px;
    }

    #carousel .extended-banner-title {
        font-size: 18px
    }

    #carousel .extended-banner-text {
        font-size: 14px
    }


    #carousel .swiper-slide,
    .carousel-inner > .item > a > img, .carousel-inner > .item > img {
        width: 362.5px;
    }

}

@media (max-width: 991px) {

    #carousel .swiper-slide,
    .carousel-inner > .item > a > img, .carousel-inner > .item > img {
        width: 370px;
    }
}


@media (max-width: 767px) {
    #carousel .extended-banner-title {
        font-size: 20px;
    }

    #carousel .extended-banner-text {
        font-size: 14px;
    }


    #carousel .swiper-button-prev,
    #carousel .swiper-button-next {
        width: 35px;
        height: 35px;
    }

    #carousel .extended-banner-link {
        min-height: unset;
        padding: 8px 24px;
    }

    #carousel .extended-banner-texts {
        row-gap: 10px;

        padding: 20px 10px;
    }

    #carousel .swiper-slide,
    .carousel-inner > .item > a > img, .carousel-inner > .item > img {
        width: 362.5px;
        max-width: 80%;
    }
}

@media (max-width: 480px) {

    #carousel .extended-banner-title {
        font-size: 16px;
    }

    #carousel .extended-banner-text {
        font-size: 14px;
    }


    #carousel .swiper::after {
        content: '';
        position: absolute;
        height: 100%;
        width: 21px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
        pointer-events: none;
        z-index: 1;
    }
}

@media (max-width: 320px) {

    #carousel .extended-banner-text,
    #carousel .extended-banner-title {
        margin: 0px 2px;
    }

    #carousel .extended-banner-title {
        font-size: 16px;
    }

    #carousel .extended-banner-text {
        font-size: 14px;
    }
}