/* ============================================
   MHB Slider Widget - Base CSS
   Note: Elementor controls override most values via inline selectors
   ============================================ */

.mhb-slider {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: #00009D;
    width: 100%;
    height: 685px;
}

.mhb-slider * { box-sizing: border-box; }

.mhb-slider-carousel {
    position: relative;
    height: 100%;
    z-index: 1;
}

.mhb-slider-carousel:not(.slick-initialized) .mhb-slide:not(:first-child) {
    display: none;
}

.mhb-slider .slick-list,
.mhb-slider .slick-track,
.mhb-slide {
    height: 100%;
}

.mhb-slider .slick-track { display: flex !important; }
.mhb-slider .slick-slide { height: inherit !important; }

.mhb-slide {
    position: relative;
}

/* Image background */
.mhb-slide-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Overlay */
.mhb-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Content layer */
.mhb-slide-content {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 2;
    color: #fff;
}

.mhb-slide-container {
    width: 100%;
    max-width: 1596px;
    margin: 0 auto;
    padding: 150px 10px 150px 20px;
}

.mhb-slide-inner {
    max-width: 535px;
}

/* Typography defaults (Elementor overrides via control selectors) */
.mhb-slide-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 7px;
}

.mhb-slide-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin: 7px 0 20px;
}

.mhb-slide-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
    margin: 7px 0 24px;
}

/* Button */
.mhb-slide-buttons { margin-top: 12px; }

.mhb-slide-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #fff;
    border: 2px solid #fff;
    color: #00009D;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1.5;
}

.mhb-slide-btn:hover,
.mhb-slide-btn:focus {
    background-color: transparent;
    color: #fff;
    text-decoration: none;
}

/* Slide transition animation (non-fade) */
.mhb-slider-carousel.slick-initialized .mhb-slide .mhb-slide-inner {
    transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
}
.mhb-slider-carousel.slick-initialized .mhb-slide.slick-current .mhb-slide-inner {
    opacity: 1;
    transform: translateX(0);
}
.mhb-slider-carousel.slick-initialized .mhb-slide:not(.slick-current) .mhb-slide-inner {
    opacity: 0;
    transform: translateX(-80px);
}

/* ============================================
   Control Bar
   ============================================ */
.mhb-slider-control-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding: 16px 24px;
    background-image: linear-gradient(45deg, #00009D 0%, #00FF78 100%);
}

.mhb-slider-control-container {
    width: 100%;
    max-width: 1596px;
    margin: 0 auto;
}

.mhb-slider-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Play/Pause */
.mhb-slider-play-pause {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    border-radius: 50%;
    border: solid 2px transparent;
    background-color: #fff;
    color: #00009D;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    order: 3;
}

.mhb-slider-play-pause::before {
    display: inline-block;
    content: '\275A\275A';
    letter-spacing: 2px;
    font-weight: 900;
    font-size: 11px;
}

.mhb-slider-play-pause:not(.play)::before {
    content: '\25B6';
    letter-spacing: 0;
    font-size: 14px;
    padding-left: 2px;
}

/* Dots wrapper */
.mhb-slider-dots-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    padding-right: 12px;
    order: 1;
    overflow: hidden;
}

.mhb-slider-dots-wrapper .slick-dots {
    --slick-dot-height: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    margin: 0;
    position: static;
    width: 100%;
}

@media (min-width: 992px) {
    .mhb-slider-dots-wrapper .slick-dots {
        --slick-dot-height: 50px;
    }
}

.mhb-slider-dots-wrapper .slick-dots li {
    flex: 1;
    width: auto;
    height: var(--slick-dot-height);
    margin: 0;
    max-width: 300px;
}

.mhb-slider-dots-wrapper .slick-dots li:not(:last-child) {
    margin-right: 20px;
}

.mhb-slider-dots-wrapper .slick-dots li button {
    position: relative;
    background-color: transparent;
    color: transparent;
    border: 0;
    width: 100%;
    height: var(--slick-dot-height);
    padding: 0;
    cursor: pointer;
    font-size: 0;
    display: flex;
    align-items: center;
}

.mhb-slider-dots-wrapper .slick-dots li button::before {
    content: '';
    display: block;
    opacity: 0.5;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: #fff;
    transition: all 300ms ease-in-out;
}

.mhb-slider-dots-wrapper .slick-dots li.slick-active button::before {
    opacity: 1;
    height: 2px;
}

/* Thumbnails (desktop) */
.mhb-dot-thumbnail { display: none; }

@media (min-width: 992px) {
    .mhb-dot-thumbnail {
        display: flex;
        height: var(--slick-dot-height, 50px);
        align-items: center;
    }
    .mhb-dot-thumbnail img {
        width: 55px;
        height: 36px;
        object-fit: cover;
        border-radius: 4px;
        transition: all 300ms ease-in-out;
    }
    .mhb-dot-thumbnail span {
        font-size: 0.875rem;
        line-height: 1.3;
        text-align: left;
        color: #fff;
        display: flex;
        height: 36px;
        flex: 1;
        padding-left: 10px;
        overflow: hidden;
        align-items: center;
    }
    .mhb-slider-dots-wrapper .slick-dots li.slick-active button .mhb-dot-thumbnail img,
    .mhb-slider-dots-wrapper .slick-dots li button:hover .mhb-dot-thumbnail img {
        transform: scale(1.1);
    }
}

/* Arrows wrapper */
.mhb-slider-arrows-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    order: 2;
}

.mhb-slider .slick-arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    width: 38px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    padding: 0;
    font-size: 0;
    line-height: 1;
}

.mhb-slider .slick-arrow::before,
.mhb-slider .slick-arrow::after {
    content: none !important;
    display: none !important;
}

.mhb-slider .slick-arrow i {
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
}

.mhb-slider .slick-arrow svg {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.mhb-slider .slick-arrow:hover,
.mhb-slider .slick-arrow:focus {
    color: #00FF78;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Empty state */
.mhb-slider-empty {
    padding: 40px;
    text-align: center;
    background: #f3f4f6;
    color: #6b7280;
    border: 2px dashed #d1d5db;
}

/* Mobile: stack controls tighter */
@media (max-width: 767px) {
    .mhb-slider-dots-wrapper .slick-dots li {
        max-width: 45px;
    }
    .mhb-slider-dots-wrapper .slick-dots li:not(:last-child) {
        margin-right: 5px;
    }
}
