.home-sliders-block {
    position: relative;
}
.slider-wrapper {

}
.slider-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 40%;
    display: flex;
    display: -ms-flex;
    align-items: center;
}
.slider-container .video-container {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    width: auto;
    height: 100%;
    z-index: 10;
}
.slider-container .video-content {
    width: 100% !important;
    height: 100% !important;
    position: relative;
    z-index: 11;
}

.slider-container .video-content .video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 0 !important;
}

.slider-container .video-content .video-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none;
    z-index: 12;
    pointer-events: auto;
}
.slider-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}
.slider-background {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-size: cover;
    background-position: top center;
    z-index: 10;
}
.slider-background.mobile-background {
    display: none;
}
.slider-content {
    position: relative;
    z-index: 11;
    font-family: CasperLight, serif;
    width: 100%;
    padding: 30px 240px;
    pointer-events: auto;
}
.slider-title {
    color: #ffffff;
    font-size: 36px;
    line-height: 42px;
    text-transform: capitalize;
    margin-bottom: 30px;
    letter-spacing: 0.64px;
}
.slider-btn {
    font-family: CasperRegular, serif;
    margin-right: 10px;
    text-transform: uppercase;
    min-width: 225px;
}
.owl-carousel .owl-nav button {
    display: inline-block;
    position: absolute;
    top: 50%;
    margin-top: -15px;
    width: 30px;
    height: 30px;
    outline: none;
    z-index: 12;
    text-indent: -9999px;
    opacity: 0.5;
    transition: all 0.2s ease;
}
.owl-carousel .owl-nav button:hover,
.owl-carousel .owl-nav button:active {
    opacity: 1;
}
.owl-carousel .owl-nav button.owl-prev {
    left: 45px;
    background-image: url("img/back.png");
    background-position: center;
    background-repeat: no-repeat;
}
.owl-carousel .owl-nav button.owl-next {
    right: 45px;
    background-image: url("img/next.png");
    background-position: center;
    background-repeat: no-repeat;
}
.owl-dots {
    position: absolute;
    left: 240px;
    bottom: 42px;
    right: 240px;
    text-align: left;
}
.owl-carousel button.owl-dot span {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 50%;
    margin: 0 13px 0 0;
    transition: all 0.2s ease;
}
.owl-carousel button.owl-dot:hover span,
.owl-carousel button.owl-dot.active span {
    background-color: #ffffff;
}
@media (max-width: 1600px) {
    .slider-content {
        padding: 30px 180px;
    }
    .owl-carousel .owl-nav button.owl-next {
        right: 35px;
    }
    .owl-carousel .owl-nav button.owl-prev {
        left: 35px;
    }
    .owl-dots {
        left: 180px;
        bottom: 30px;
        right: 180px;
    }
}
@media (max-width: 1440px) {
    .slider-content {
        padding: 30px 140px;
    }
    .owl-carousel .owl-nav button.owl-next {
        right: 35px;
    }
    .owl-carousel .owl-nav button.owl-prev {
        left: 35px;
    }
    .owl-dots {
        left: 140px;
        bottom: 30px;
        right: 140px;
    }
    .owl-carousel button.owl-dot {
        width: 14px;
        height: 14px;
        margin: 0 8px 0 0;
    }
}
@media (max-width: 1200px) {
    .slider-content {
        padding: 30px 90px;
    }
    .slider-title {
        font-size: 30px;
        line-height: 35px;
    }
    .owl-carousel .owl-nav button.owl-next {
        right: 25px;
    }
    .owl-carousel .owl-nav button.owl-prev {
        left: 25px;
    }
    .owl-dots {
        left: 90px;
        bottom: 30px;
        right: 90px;
    }
}
@media (max-width: 768px) {
    .slider-container {
        height: 100vh;
        align-items: start;
    }
    .admin-bar .slider-container {
        height: calc(100vh - 46px);
    }
    .slider-background {
        display: none;
    }
    .slider-container > iframe {
        display: none;
    }
    .slider-container .video-container {
        display: none;
    }
    .slider-background.mobile-background {
        display: block;
    }
    .slider-content {
        height: 100%;
        padding: 60px 15px 90px;
    }
    .slider-btn {
        width: auto;
        min-width: auto;
        max-width: 100%;
        margin-bottom: 15px;
        margin-right: 15px;
    }
    .slider-btn:last-child {
        margin-right: 0;
    }
    .owl-carousel .owl-nav button {
        display: none;
    }
    .owl-dots {
        text-align: center;
    }
    .owl-carousel button.owl-dot {
        margin: 0 10px 0 0;
        width: 15px;
        height: 15px;
    }
    .owl-carousel button.owl-dot:last-child {
        margin-right: 0;
    }
}

/* Đảm bảo video controls có thể tương tác khi có video */
.slider-container:has(.video-container) .slider-content-wrapper {
    z-index: 1;
}

.slider-container:has(.video-container) .slider-content {
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 20px;
}
