.okthemes-content-carousel {
    overflow: hidden;
    position: relative;
}

/* Namespace all Swiper related classes to avoid conflicts with Elementor */
.okthemes-content-carousel .okt-swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition-property: transform;
    box-sizing: content-box;
    z-index: 1;
}

.okthemes-content-carousel .okt-swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
}

.okthemes-content-carousel.okt-swiper-container-vertical .okt-swiper-wrapper {
    flex-direction: column;
}

/* Base carousel content */
.okthemes-content-carousel .carousel-content {
    display: flex;
    gap: 60px;
}

.okthemes-content-carousel .carousel-content .media-container {
    width: 40%;
    position: relative;
}

.okthemes-content-carousel .carousel-content .text-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
}

.okthemes-content-carousel .carousel-content .text-content .title {
    font-size: 70px;
}
.okthemes-content-carousel .carousel-content .text-content .pagination-title {
    display: none !important;
}

/*Layout style*/
.okthemes-content-carousel.okthemes-carousel-top-bottom-layout .carousel-content {
    flex-direction: column;
    gap: 0;
}
.okthemes-content-carousel.okthemes-carousel-top-bottom-layout .carousel-content .media-container,
.okthemes-content-carousel.okthemes-carousel-top-bottom-layout .carousel-content .text-content {
    width: 100%;
    text-align: center;
}

.okthemes-content-carousel.okthemes-carousel-top-bottom-layout .carousel-content .text-content .title {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 10px;
}
.okthemes-content-carousel.okthemes-carousel-top-bottom-layout .carousel-content .text-content .top-title {
    font-size: 90px;
    color: var(--torac-primary-color);
    text-transform: uppercase;
    letter-spacing: 30px;
    font-weight: 100;
    line-height: normal;
    
    margin-top: -60px;
    position: relative;
}

.okthemes-content-carousel.okthemes-carousel-top-bottom-layout .swiper-navigation-wrapper {
    bottom: 0;
    width: 90%;
    justify-self: center;
}

.okthemes-content-carousel .swiper-navigation-wrapper {
    z-index: 999;
    width: 60%;
    display: flex;
    justify-self: flex-end;
    padding: 15px 60px;
    justify-content: space-between;
    position: relative;
    bottom: 40px;
}

/* Custom pagination bullets */
.okthemes-content-carousel .okt-swiper-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 10;
}

/*
.okthemes-content-carousel .okt-swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.okthemes-content-carousel .okt-swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #000;
}
*/

.okthemes-content-carousel .okt-swiper-pagination .okt-swiper-pagination-bullet {
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--torac-body-typography-color);
    cursor: pointer;
    margin: 0px;
    transition: all 0.3s ease;
}
.okthemes-content-carousel .okt-swiper-pagination .okt-swiper-pagination-bullet:hover,
.okthemes-content-carousel .okt-swiper-pagination .okt-swiper-pagination-bullet.okt-swiper-pagination-bullet-active {
    color: var(--torac-primary-color);
}

/* Custom navigation buttons */
.okthemes-content-carousel .okt-swiper-button-prev,
.okthemes-content-carousel .okt-swiper-button-next {
    cursor: pointer;
    position: relative;
    z-index: 10;
}

/* Vertical carousel specific styles */
.okthemes-carousel-vertical {
    height: 700px; /* Default height for vertical carousel */
}

.okthemes-carousel-vertical .okt-swiper-wrapper {
    flex-direction: column; /* This is redundant as Swiper handles it, but added for clarity */
}

.okthemes-carousel-vertical .okt-swiper-slide {
    height: auto; /* Allow slides to have auto height */
}

.okthemes-carousel-vertical .carousel-content {
    height: 100%;
}

.okthemes-carousel-vertical .swiper-navigation-wrapper {
    flex-direction: column;
    height: 80%;
    width: auto;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    padding: 20px 10px;
}

.okthemes-carousel-vertical .okt-swiper-pagination {
    flex-direction: column;
    width: auto;
    height: auto;
}

.okthemes-carousel-vertical .okt-swiper-button-prev,
.okthemes-carousel-vertical .okt-swiper-button-next {
    transform: rotate(90deg);
}

/* Multi-slide view styles */
/* Multi-slide view styles - Updated with side navigation */
.okthemes-carousel-multi-slide {
    position: relative; /* Ensure proper positioning context for the arrows */
    padding: 0; /* Add space on sides for the arrows */
}

.okthemes-carousel-multi-slide .carousel-content {
    flex-direction: column;
    gap: 0;
}

.okthemes-carousel-multi-slide .carousel-content .media-container {
    margin-bottom: 15px;
}

.okthemes-carousel-multi-slide .carousel-content .media-container,
.okthemes-carousel-multi-slide .carousel-content .text-content {
    width: 100%;
    padding: 0;
}

.okthemes-carousel-multi-slide .carousel-content .text-content .title {
    font-size: 36px;
}

/* Style for pagination only */
.okthemes-carousel-multi-slide .swiper-navigation-wrapper:has(.okt-swiper-pagination):not(:has(.okt-swiper-button-prev, .okt-swiper-button-next)) {
    width: 100%;
    justify-content: center;
    padding: 15px 0;
    position: relative;
    bottom: 0;
}

/* Style for arrows only - Apply when pagination is not present */
.okthemes-carousel-multi-slide .swiper-navigation-wrapper:has(.okt-swiper-button-prev, .okt-swiper-button-next):not(:has(.okt-swiper-pagination)) {
    width: 100%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    pointer-events: none; /* Prevent wrapper from blocking content */
    z-index: 10;
}

/* Style for both pagination and arrows */
.okthemes-carousel-multi-slide .swiper-navigation-wrapper:has(.okt-swiper-pagination):has(.okt-swiper-button-prev, .okt-swiper-button-next) {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    padding: 0;
    pointer-events: none;
    z-index: 10;
}

/* Style the pagination when both are present */
.okthemes-carousel-multi-slide .swiper-navigation-wrapper:has(.okt-swiper-button-prev, .okt-swiper-button-next) .okt-swiper-pagination {
    position: absolute;
    bottom: -30px; /* Move pagination below slides */
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    pointer-events: auto;
}

/* Style the navigation buttons for multi-slide view */
.okthemes-carousel-multi-slide .okt-swiper-button-prev,
.okthemes-carousel-multi-slide .okt-swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    pointer-events: auto; /* Ensure buttons are clickable */
}

.okthemes-carousel-multi-slide .okt-swiper-button-prev {
    left: 40px;
}

.okthemes-carousel-multi-slide .okt-swiper-button-next {
    right: 40px;
}

/* Responsive adjustments for navigation */
@media (max-width: 991px) {
    .okthemes-carousel-multi-slide {
        padding: 0 50px;
    }
    
    .okthemes-carousel-multi-slide .okt-swiper-button-prev,
    .okthemes-carousel-multi-slide .okt-swiper-button-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .okthemes-carousel-multi-slide {
        padding: 0 40px;
    }
    
    .okthemes-carousel-multi-slide .okt-swiper-button-prev,
    .okthemes-carousel-multi-slide .okt-swiper-button-next {
        width: 35px;
        height: 35px;
    }
    
    .okthemes-carousel-multi-slide .okt-swiper-button-prev {
        left: 5px;
    }
    
    .okthemes-carousel-multi-slide .okt-swiper-button-next {
        right: 5px;
    }
    .okthemes-content-carousel .okt-swiper-pagination .okt-swiper-pagination-bullet .bullet {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: var(--torac-secondary-color);
        opacity: 0.5;
        cursor: pointer;
        transition: all 0.3s ease;
        display: block;     
    }
    .okthemes-content-carousel .okt-swiper-pagination .okt-swiper-pagination-bullet .slide-name {
        display: none;
    }
}

/* Video Specific Styles */
.okthemes-content-carousel .video-container,
.okthemes-content-carousel .elementor-video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Aspect ratio containers for videos */
.okthemes-content-carousel .elementor-video-wrapper {
    position: relative;
    height: 0;
    overflow: hidden;
}

.okthemes-content-carousel .elementor-aspect-ratio-169 {
    padding-bottom: 56.25%; /* 16:9 */
}

.okthemes-content-carousel .elementor-aspect-ratio-219 {
    padding-bottom: 42.85%; /* 21:9 */
}

.okthemes-content-carousel .elementor-aspect-ratio-43 {
    padding-bottom: 75%; /* 4:3 */
}

.okthemes-content-carousel .elementor-aspect-ratio-32 {
    padding-bottom: 66.66%; /* 3:2 */
}

.okthemes-content-carousel .elementor-aspect-ratio-11 {
    padding-bottom: 100%; /* 1:1 */
}

.okthemes-content-carousel .elementor-aspect-ratio-916 {
    padding-bottom: 177.77%; /* 9:16 */
}

/* Video iframe and HTML5 video positioning */
.okthemes-content-carousel .elementor-video-iframe,
.okthemes-content-carousel .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Video overlay styles */
.okthemes-content-carousel .elementor-custom-embed-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    cursor: pointer;
}

.okthemes-content-carousel .elementor-custom-embed-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.okthemes-content-carousel .elementor-custom-embed-play:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.okthemes-content-carousel .elementor-custom-embed-play i {
    font-size: 36px;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .okthemes-content-carousel .carousel-content .text-content .title {
        font-size: 50px;
    }
    
    .okthemes-content-carousel .carousel-content .text-content {
        padding: 0 40px;
    }
    
    .okthemes-content-carousel .swiper-navigation-wrapper {
        width: 70%;
        padding: 15px 40px;
    }
    
    .okthemes-carousel-multi-slide .carousel-content .text-content .title {
        font-size: 28px;
    }
    
    .okthemes-carousel-vertical {
        height: 600px;
    }
}

@media (max-width: 991px) {
    .okthemes-content-carousel:not(.okthemes-carousel-multi-slide) .carousel-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .okthemes-content-carousel:not(.okthemes-carousel-multi-slide) .carousel-content .media-container,
    .okthemes-content-carousel:not(.okthemes-carousel-multi-slide) .carousel-content .text-content {
        width: 100%;
    }
    
    .okthemes-content-carousel .carousel-content .text-content .title {
        font-size: 40px;
    }
    
    .okthemes-content-carousel:not(.okthemes-carousel-vertical) .swiper-navigation-wrapper {
        width: 100%;
        bottom: 20px;
    }
    
    .okthemes-carousel-multi-slide .carousel-content .text-content .title {
        font-size: 24px;
    }
    
    .okthemes-carousel-vertical {
        height: 500px;
    }
    
    .okthemes-carousel-vertical .swiper-navigation-wrapper {
        right: 10px;
    }
}

@media (max-width: 767px) {
    .okthemes-content-carousel .okt-swiper-wrapper {
        margin-bottom: 40px;
    }
    .okthemes-content-carousel .carousel-content .text-content {
        padding: 0 20px;
    }
    
    .okthemes-content-carousel .carousel-content .text-content .title {
        font-size: 32px;
    }
    
    .okthemes-content-carousel:not(.okthemes-carousel-vertical) .swiper-navigation-wrapper {
        padding: 10px 20px;
    }
    
    .okthemes-carousel-multi-slide .carousel-content .text-content .title {
        font-size: 20px;
    }
    
    .okthemes-carousel-vertical {
        height: 400px;
    }

    .okthemes-content-carousel:not(.okthemes-carousel-vertical) .swiper-navigation-wrapper {
        bottom: 0;
    }

    .okthemes-content-carousel .okt-swiper-pagination {
        align-items: center;
    }
}

