/* Branded Luxury Slider Styles */
.branded-slider {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.branded-slider .main-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.branded-slider .main-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branded-slider .container {
    position: relative;
    z-index: 1;
}

.branded-slider-area {
    position: relative;
    padding: 2rem 0;
}

.branded-slider-area h2 {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.branded-slider-area h2.branded-heading-active {
    opacity: 1;
    transform: translateY(0);
}

.branded-slider-container {
    position: relative;
    min-height: 400px;
}

.branded-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    /* Prevent layout shift - position change is instant, no transition */
    will-change: opacity, visibility;
}

.branded-slide.branded-active {
    opacity: 1;
    visibility: visible;
    /* Position change happens instantly (no transition) to prevent CLS */
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

/* Ensure inactive slides stay absolute and don't interfere */
.branded-slide.branded-inactive {
    position: absolute;
    z-index: 1;
}

/* .branded-slide.branded-inactive {
    opacity: 0;
    visibility: hidden;
} */

.branded-owl-carousel {
    margin-bottom: 50px;
}

.branded-slide-box {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.branded-slide-zoom-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 1.5s ease-out;
    transform: scale(1.3);
}

.branded-slide.branded-active .branded-slide-zoom-image{
    transform: scale(1);
}

.branded-slide-box:hover .branded-slide-zoom-image {
    transform: scale(1.05);
}

.branded-text {
    text-align: center;
    /* padding: 1rem 0; */
}

.branded-text h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 400;
}

.branded-text h4 {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 0;
}

.branded-previous,
.branded-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    width: 28px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.branded-previous:hover,
.branded-next:hover {
    opacity: 0.7;
}

.branded-previous {
    left: -60px;
}

.branded-next {
    right: -60px;
}

.branded-previous svg,
.branded-next svg {
    width: 28px;
    height: 44px;
}

/* Owl Carousel Dots */
.branded-owl-carousel .owl-dots {
    text-align: center;
    margin-top: 1rem;
}

.branded-owl-carousel .owl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.branded-owl-carousel .owl-dot.active {
    background-color: #fff;
}

/* Responsive */
@media (max-width: 1440px) {
    .branded-slide-box {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .branded-previous {
        left: 10px;
    }
    
    .branded-next {
        right: 10px;
    }
    
    .branded-slider-area h2 {
        font-size: 1.5rem;
    }

    .branded-text h3 {
        font-size: 18px;
    }
}
