/**
 * THG Banner Block - Frontend Styles
 */

.thg-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.thg-banner__viewport {
    position: relative;
    width: 100%;
}

/* ── Slide ── */

.thg-banner__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: none;
    z-index: 1;
}

.thg-banner__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ── Background Image ── */

.thg-banner__image {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.thg-banner__image--mobile {
    display: none;
}

/* ── Desktop Link Overlay (clickable image on 990px+) ── */

.thg-banner__link-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    text-decoration: none;
}

/* ── Background Overlay ── */

.thg-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
}

/* ── Content Overlay ── */

.thg-banner__content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
}

.thg-banner__content-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 30px auto;
}

.thg-banner__content-left,
.thg-banner__content-right {
    flex: 0 1 auto;
    max-width: 48%;
}

/* ── Mobile Right Content (below banner) ── */

.thg-banner__content-right--mobile {
    display: none;
}

/* ── Fade Animation ── */

.thg-banner--fade .thg-banner__slide {
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.thg-banner--fade .thg-banner__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.thg-banner--fade .thg-banner__slide.is-exiting {
    opacity: 0;
    visibility: visible;
    z-index: 2;
}

/* ── Zoom Animation ── */

.thg-banner--zoom .thg-banner__slide {
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
    transform: scale(1.1);
}

.thg-banner--zoom .thg-banner__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.thg-banner--zoom .thg-banner__slide.is-exiting {
    opacity: 0;
    visibility: visible;
    transform: scale(0.95);
    z-index: 2;
}

/* ── Slide Animation ── */

.thg-banner--slide .thg-banner__slide {
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
    transform: translateX(100%);
}

.thg-banner--slide .thg-banner__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.thg-banner--slide .thg-banner__slide.is-exiting {
    opacity: 1;
    visibility: visible;
    transform: translateX(-100%);
    z-index: 2;
}

.thg-banner--slide .thg-banner__slide.is-entering-prev {
    transform: translateX(-100%);
}

.thg-banner--slide .thg-banner__slide.is-exiting-prev {
    transform: translateX(100%);
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ── Navigation Arrows ── */

.thg-banner__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.thg-banner__arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.thg-banner__arrow--prev {
    left: 20px;
}

.thg-banner__arrow--next {
    right: 20px;
}

/* ── Dots Navigation ── */

.thg-banner__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thg-banner__dot {
    position: relative;
    width: 28px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: width 0.4s ease, background 0.4s ease;
}

.thg-banner__dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    min-width: 24px;
    height: 24px;
}

.thg-banner__dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.thg-banner__dot.is-active {
    width: 48px;
    background: #fff;
}
    .thg-banner__content-right {
        margin-right: 60px;
    }
/* ── Responsive ── */

@media (max-width: 990px) {
    .thg-banner {
        overflow: visible;
    }

    .thg-banner__content-right {
        margin-right: unset;
    }

    .thg-banner__viewport {
        overflow: hidden;
    }

    .thg-banner__image {
        top: 0;
    }

    .thg-banner__image--desktop {
        display: none;
    }

    .thg-banner__image--mobile {
        display: block;
    }

    .thg-banner__content {
        padding: 30px 20px;
        align-items: flex-end;
    }

    .thg-banner__content-container {
        justify-content: center;
    }

    .thg-banner__content-left {
        max-width: 100%;
        text-align: center;
    }

    .thg-banner__content-right--desktop {
        display: none;
    }

    .thg-banner__content-right--mobile {
        display: none;
        padding: 30px 20px;
        text-align: center;
    }

    .thg-banner__content-right--mobile.is-active {
        display: block;
    }

    .thg-banner__arrow {
        display: none;
    }

    .thg-banner__dots {
        bottom: 12px;
    }

    .thg-banner__dot {
        width: 10px;
        height: 10px;
        background: #707372;
    }

    .thg-banner__dot.is-active {
        background: #00426A;
    }
}

/* ── Keep faces visible when cover crops the image ── */
.thg-banner__image {
    background-position: center 30%;
}

/* ── Desktop: hide text content (image-only), enable link overlay ── */
@media (min-width: 991px) {
    .thg-banner__content {
        display: none;
    }

    .thg-banner__link-overlay {
        display: block;
    }

    .thg-banner__slide:not(.is-active) .thg-banner__link-overlay {
        display: none;
    }
}