
/* =========================================
   MAIN BANNER
========================================= */

.mhsliderbanner {
    position: relative;
    width: 100%;
    padding: 30px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    box-sizing: border-box;
}

.mhsliderbanner-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.mhsliderbanner-content h1 {
    margin: 0 0 25px;
    text-align: center;
color:#f1f1f1;
}


/* =========================================
   SLIDES CONTAINER
========================================= */

.mhsliderbanner-slides {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}


/* =========================================
   INDIVIDUAL SLIDES
========================================= */

.mhsliderbanner-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.mhsliderbanner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}


/* =========================================
   SLIDE IMAGE
========================================= */

.mhsliderbanner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================
   SLOGAN
========================================= */

.mhsliderbanner-slide p {
    position: absolute;
    left: 50%;
    bottom: 35px;
    transform: translateX(-50%);

    width: 85%;
    max-width: 750px;

    margin: 0;
    padding: 15px 20px;

    color: #fff;
    background: rgba(0, 0, 0, 0.55);

    text-align: center;
    font-size: 22px;
    line-height: 1.4;

    box-sizing: border-box;
}


/* =========================================
   PREVIOUS / NEXT BUTTONS
========================================= */

.mhsliderbanner-prev,
.mhsliderbanner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    color: #fff;
    background: rgba(0, 0, 0, 0.5);

    font-size: 25px;
    cursor: pointer;

    transition: background 0.3s ease;
}

.mhsliderbanner-prev {
    left: 15px;
}

.mhsliderbanner-next {
    right: 15px;
}

.mhsliderbanner-prev:hover,
.mhsliderbanner-next:hover {
    background: rgba(0, 0, 0, 0.85);
}


/* =========================================
   SLIDE INDICATORS
========================================= */

.mhsliderbanner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;

    display: flex;
    justify-content: center;
    gap: 10px;
}

.mhsliderbanner-dot {
    width: 12px;
    height: 12px;

    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;

    background: transparent;
    cursor: pointer;

    transition: background 0.3s ease;
}

.mhsliderbanner-dot.active {
    background: #fff;
}


/* =========================================
   ACCESSIBILITY
========================================= */

.mhsliderbanner button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .mhsliderbanner {
        padding: 15px;
    }

    .mhsliderbanner-slides {
        height: 320px;
    }

    .mhsliderbanner-slide p {
        width: 80%;
        bottom: 30px;
        font-size: 17px;
    }

    .mhsliderbanner-prev,
    .mhsliderbanner-next {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

}

@media (max-width: 480px) {

    .mhsliderbanner-slides {
        height: 250px;
    }

    .mhsliderbanner-slide p {
        font-size: 14px;
        padding: 10px;
    }

}

/* Respect user's motion preferences */

@media (prefers-reduced-motion: reduce) {

    .mhsliderbanner-slide,
    .mhsliderbanner-dot,
    .mhsliderbanner-prev,
    .mhsliderbanner-next {
        transition: none;
    }

}
