﻿/* ==========================================================
   IMAGE SLIDER
   ========================================================== */

.mhg-image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.mhg-image-slider__carousel {
    position: relative;
    width: 100%;
}


/* ==========================================================
   SLIDES
   ========================================================== */

.mhg-image-slider__slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 530px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #333;
}


/* ==========================================================
   OVERLAY
   ========================================================== */

.mhg-image-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.28);
}


/* ==========================================================
   CONTENT
   ========================================================== */

.mhg-image-slider__content {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100% - 180px));
    margin: 0 auto;
    text-align: center;
    color: #fff;
}


/* ==========================================================
   HEADER
   ========================================================== */

.mhg-image-slider__header {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}


/* ==========================================================
   SUBHEADER
   ========================================================== */

.mhg-image-slider__subheader {
    max-width: 900px;
    margin: 0 auto 30px;
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

    .mhg-image-slider__subheader p,
    .mhg-image-slider__subheader div {
        margin-bottom: 0;
    }


/* ==========================================================
   CTA BUTTON
   ========================================================== */

.mhg-image-slider__cta {
    margin-top: 28px;
}

.mhg-image-slider__cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    padding: 14px 28px;
    border: 2px solid #ed1c24;
    border-radius: 4px;
    background: #ed1c24;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .mhg-image-slider__cta-link:hover,
    .mhg-image-slider__cta-link:focus {
        background: #c9151c;
        border-color: #c9151c;
        color: #fff !important;
        transform: translateY(-1px);
    }


/* ==========================================================
   LEFT / RIGHT CONTROLS
   ========================================================== */

.mhg-image-slider__control {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 8%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    opacity: 1;
}

.mhg-image-slider__control--prev {
    left: 0;
    justify-content: flex-start;
    padding-left: 30px;
}

.mhg-image-slider__control--next {
    right: 0;
    justify-content: flex-end;
    padding-right: 30px;
}

.mhg-image-slider__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #fff;
    font-size: 48px;
    font-family: Arial, sans-serif;
    font-weight: 300;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mhg-image-slider__control:hover
.mhg-image-slider__arrow {
    transform: scale(1.12);
}


/* ==========================================================
   PAGINATION / INDICATORS
   ========================================================== */

.mhg-image-slider__indicators {
    position: absolute;
    right: 0;
    bottom: 24px;
    left: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    gap: 9px;
    margin: 0;
}

    .mhg-image-slider__indicators button {
        box-sizing: border-box;
        width: 12px !important;
        height: 12px !important;
        margin: 0 !important;
        padding: 0;
        border: 2px solid #fff !important;
        border-radius: 50%;
        background-color: transparent !important;
        opacity: 1 !important;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

        .mhg-image-slider__indicators button.active {
            background-color: #fff !important;
            transform: scale(1.1);
        }


/* ==========================================================
   FADE
   ========================================================== */

.mhg-image-slider
.carousel-fade
.carousel-item {
    transition: opacity 0.75s ease-in-out;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991.98px) {

    .mhg-image-slider__slide {
        min-height: 500px;
    }

    .mhg-image-slider__content {
        width: min( 850px, calc(100% - 110px) );
    }

    .mhg-image-slider__control {
        width: 10%;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767.98px) {

    .mhg-image-slider__slide {
        min-height: 500px;
    }

    .mhg-image-slider__content {
        width: calc(100% - 80px);
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .mhg-image-slider__header {
        font-size: clamp( 2rem, 8vw, 2.7rem );
    }

    .mhg-image-slider__subheader {
        font-size: 1rem;
    }

    .mhg-image-slider__control {
        width: 12%;
    }

    .mhg-image-slider__control--prev {
        padding-left: 10px;
    }

    .mhg-image-slider__control--next {
        padding-right: 10px;
    }

    .mhg-image-slider__arrow {
        width: 32px;
        height: 32px;
        font-size: 34px;
    }
}
