.dd-progress-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.dd-swiper-container {
    width: 100%;
    /* Min-height now dynamically controlled by Elementor Global Settings */
}

/* Ensure slides conform to the container boundaries and Swiper handles visibility natively */
.dd-swiper-slide.dd-swiper-slide {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    height: auto;
}
.dd-swiper-slide:not(.swiper-slide-active) {
    opacity: 0 !important;
    z-index: 0;
}



/* =========================================
   BACKGROUND VIDEO DOM MAPPING
   ========================================= */
.dd-bg-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.dd-bg-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.5);
}

/* 16:9 Aspect Ratio enforcement for iframes to prevent black bars */
.dd-bg-video-wrapper iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* =========================================
   BOTTOM NAVIGATION WRAPPER
   ========================================= */
.dd-slider-navigation {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 30px);
    z-index: 10;
}

.dd-nav-item {
    position: relative;
    flex: 1;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    border-radius: 100px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.47);
    transition: background 0.3s ease;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    mix-blend-mode: lighten;
    transition: background 0.3s ease;
    padding: 15px 30px;
}

.dd-nav-item.is-active {
    background: rgba(255, 255, 255, 0.1);
}

.dd-nav-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
    pointer-events: none;
}

.dd-nav-label {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    pointer-events: none;
    line-height: 1;
}

/* =========================================
   CUSTOM CONTENT SCAFFOLDING
   ========================================= */
.dd-custom-slide-content {
    position: relative;
    z-index: 1; /* Elevates above background layers */
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 100px 40px 140px;
    background: transparent; /* Stripped to allow Elementor BG settings passthrough */
    color: #ffffff;
}

.dd-slide-heading {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: inherit;
    max-width: 1000px;
    width: 100%;
}

.dd-slide-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 800px;
    opacity: 0.9;
    max-width: 1000px;
    width: 100%;
}

.dd-slide-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    max-width: 450px;
    width: 100%;
}
.dd-slide-actions .dd-btn {
    flex: 1;
}
/* --- Alignment Matrices --- */
.dd-align-left {
    text-align: left;
    align-items: flex-start;
}
.dd-align-left .dd-slide-actions {
    justify-content: flex-start;
}

.dd-align-center {
    text-align: center;
    align-items: center;
}
.dd-align-center .dd-slide-actions {
    justify-content: center;
}

.dd-align-right {
    text-align: right;
    align-items: flex-end;
}
.dd-align-right .dd-slide-actions {
    justify-content: flex-end;
}

/* --- Buttons --- */
.dd-btn {
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.dd-btn-solid {
    background-color: #007bff;
    color: #ffffff;
    border: 2px solid #007bff;
}

.dd-btn-solid:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #ffffff;
}

.dd-btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.dd-btn-outline:hover {
    background-color: #ffffff;
    color: #000000;
}

.dd-placeholder {
    padding: 100px;
    text-align: center;
    background: #f1f1f1;
    border: 2px dashed #ccc;
    width: 100%;
}

/* =========================================
   BACKGROUND OVERLAY DOM MAPPING
   ========================================= */
.dd-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Sits above video/background (z-index: 0) */
    pointer-events: none;
    transition: background 0.3s ease;
}

/* =========================================
   INNER CONTENT STACKING
   ========================================= */
.dd-slide-inner-content {
    position: relative;
    z-index: 2; /* Elevates Custom Content & Templates above the overlay */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .dd-custom-slide-content {
        padding: 50px 20px 100px;
    }
    .dd-slider-navigation {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    .dd-nav-item {
        padding: 10px 15px;
        height: 40px;
    }
    .dd-nav-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .dd-slide-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .dd-slide-actions .dd-btn {
        width: 100%;
    }
}
