/* Additional styles for navigation arrows and dots */
.data-tabs {
    position: relative;
}

/* Navigation arrows */
.data-tabs__navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
}

.data-tabs__arrow {
    position: absolute;
    top: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 60px;
    height: 60px;
    font-size: 0;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.data-tabs__arrow:before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
}

.data-tabs__arrow--prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.data-tabs__arrow--prev:before {
    border-width: 12px 18px 12px 0;
    border-color: transparent #333 transparent transparent;
    margin-left: -3px;
}

.data-tabs__arrow--next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.data-tabs__arrow--next:before {
    border-width: 12px 0 12px 18px;
    border-color: transparent transparent transparent #333;
    margin-right: -3px;
}

.data-tabs__arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hide dots since tabs work well */
.data-tabs__dots {
    display: none;
}

/* Slide title styling */
.data-tabs__slide-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: inherit;
}

div.data-tabs__content > div > p {
    font-family: 'PT Sans', sans-serif;
}

/* Tab styling updates */
.data-tabs__tab {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.data-tabs__tab:not(.active) {
    opacity: 0.7;
}

.data-tabs__tab.active {
    opacity: 1;
}

/* Add focus styles for accessibility */
.data-tabs__arrow:focus,
.data-tabs__dot:focus,
.data-tabs__tab:focus {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
}

/* Fix for multiple sliders - proper stacking context and heights */
.data-tabs__upper {
    position: relative;
    min-height: 500px;
}

.data-tabs__upper__container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: opacity 0.3s ease-in-out;
}

/* Ensure content and media maintain their flex properties */
.data-tabs__content {
    flex: 1;
    padding: 20px;
}

.data-tabs__media {
    flex: 1;
}

/* Visibility states for slides */
.data-tabs__upper__container[aria-hidden="true"] {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.data-tabs__upper__container[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
    z-index: 5;
}

/* Tablet responsive adjustments */
@media (max-width: 768px) {
    .data-tabs__upper {
        min-height: 600px; /* Increased for stacked content */
    }
    
    .data-tabs__arrow {
        width: 50px;
        height: 50px;
    }
    
    .data-tabs__arrow--prev {
        border-radius: 0 6px 6px 0;
    }
    
    .data-tabs__arrow--next {
        border-radius: 6px 0 0 6px;
    }
    
    .data-tabs__arrow--prev:before {
        border-width: 10px 15px 10px 0;
    }
    
    .data-tabs__arrow--next:before {
        border-width: 10px 0 10px 15px;
    }
    
    /* Stack content and media vertically on tablet */
    .data-tabs__upper__container {
        flex-direction: column;
    }
    
    .data-tabs__content,
    .data-tabs__media {
        flex: none;
        width: 100%;
        min-height: 300px;
    }
    
    .data-tabs__media {
        height: 300px;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .data-tabs__navigation {
        display: none;
    }
    
    /* Reset container to normal block behavior */
    .data-tabs__upper {
        position: static !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Make slides behave like normal block elements on mobile */
    .data-tabs__upper__container {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        flex-direction: column;
        display: none; /* Hide by default */
    }
    
    /* Show only the active slide as a normal block */
    .data-tabs__upper__container[aria-hidden="false"] {
        display: block !important;
        opacity: 1 !important;
        z-index: auto !important;
    }
    
    .data-tabs__upper__container[aria-hidden="true"] {
        display: none !important;
    }
    
    /* Content and media stack naturally */
    .data-tabs__content {
        padding: 20px;
        width: 100%;
    }
    
    .data-tabs__media {
        width: 100%;
        height: 300px; /* Fixed height for media */
        margin: 0 auto !important;
    }
    
    /* Ensure images and videos fit properly */
    .data-tabs__media img,
    .data-tabs__media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Tab adjustments for mobile */
    .data-tabs__tab {
        font-size: 0.9em;
        padding: 10px 5px;
    }
    
    .data-tabs__tab__title {
        font-size: 0.9em;
    }
    
    /* Ensure tabs are visible and properly spaced 
    .data-tabs__lower {
        margin-top: 20px;
    }*/
    
}

