/* ================================
   Mobidictum Hero Slider v1.3
   Sequential fade - no overlap, no stacking issues
   ================================ */

.mhs-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 15px;
}

/* Slides container */
.mhs-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* All slides stacked. First child is relative to set height. */
.mhs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    visibility: hidden;
    display: flex;
    flex-direction: column;
}

.mhs-slide:first-child {
    position: relative;
}

.mhs-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    visibility: visible;
}

/* Background image layer */
.mhs-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Overlay layer */
.mhs-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Content layer */
.mhs-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Template inside slide fills available height */
.mhs-slide-content > .elementor {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mhs-slide-content > .elementor > .elementor-section-wrap,
.mhs-slide-content > .elementor > .e-con {
    flex: 1;
}

/* Navigation wrapper */
.mhs-navigation {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 30px 25px;
}

.mhs-nav-bottom-right {
    bottom: 0;
    right: 0;
}

.mhs-nav-bottom-center {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.mhs-nav-bottom-left {
    bottom: 0;
    left: 0;
}

/* Dots */
.mhs-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mhs-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.mhs-dot.active {
    transform: scale(1.2);
}

/* Arrows */
.mhs-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mhs-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.mhs-arrow svg {
    width: 20px;
    height: 20px;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 1024px) {
    .mhs-navigation {
        padding: 0 20px 20px;
    }
}

@media (max-width: 767px) {
    .mhs-navigation {
        padding: 0 15px 15px;
        gap: 12px;
    }
}

/* ================================
   Elementor editor overrides
   ================================ */

.elementor-editor-active .mhs-slide {
    position: relative !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.15);
    margin-bottom: 5px;
}

.elementor-editor-active .mhs-slide::before {
    content: attr(data-slide-label);
    position: absolute;
    top: 10px;
    right: 10px;
    background: #AE0012;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 100;
    letter-spacing: 0.5px;
}
