/* Homepage hero: a clean, image-only carousel managed from the Home page editor. */
.hongxin-minimal .home-hero {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1881 / 863 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background-color: #d7e2ef !important;
    background-image: url("../images/home/hongxin-campus-banner.png") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
}

/* Hide the former headline and product panel, then expose only the new carousel. */
.hongxin-minimal .home-hero > * {
    display: none !important;
}

.hongxin-minimal .home-hero > .hongxin-home-banner-carousel {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.hongxin-home-banner-carousel__track,
.hongxin-home-banner-carousel__slide,
.hongxin-home-banner-carousel__image-link {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hongxin-home-banner-carousel__slide {
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 700ms ease, visibility 700ms ease;
}

.hongxin-home-banner-carousel__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hongxin-home-banner-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #d7e2ef;
}

.hongxin-home-banner-carousel__arrow,
.hongxin-home-banner-carousel__dot {
    appearance: none;
    border: 0;
    cursor: pointer;
}

.hongxin-home-banner-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    color: #fff;
    background: rgba(4, 24, 52, .45);
    font-size: 24px;
    line-height: 1;
    opacity: .82;
    transform: translateY(-50%);
    transition: background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
    backdrop-filter: blur(4px);
}

.hongxin-home-banner-carousel__arrow--previous {
    left: clamp(14px, 2.8vw, 56px);
}

.hongxin-home-banner-carousel__arrow--next {
    right: clamp(14px, 2.8vw, 56px);
}

.hongxin-home-banner-carousel__arrow:hover,
.hongxin-home-banner-carousel__arrow:focus-visible {
    border-color: #08bfd7;
    background: #08bfd7;
    opacity: 1;
    outline: none;
}

.hongxin-home-banner-carousel__dots {
    position: absolute;
    bottom: clamp(14px, 2vw, 30px);
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(4, 24, 52, .35);
    transform: translateX(-50%);
    backdrop-filter: blur(4px);
}

.hongxin-home-banner-carousel__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    transition: width 180ms ease, background-color 180ms ease;
}

.hongxin-home-banner-carousel__dot.is-active {
    width: 28px;
    background: #08bfd7;
}

.hongxin-home-banner-carousel__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.hongxin-minimal .home-hero::before,
.hongxin-minimal .home-hero::after {
    content: none !important;
    display: none !important;
}

@media (max-width: 767px) {
    .hongxin-minimal .home-hero {
        height: auto !important;
        aspect-ratio: 1881 / 863 !important;
    }

    .hongxin-home-banner-carousel__arrow {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }

    .hongxin-home-banner-carousel__dots {
        gap: 7px;
        padding: 6px 8px;
    }

    .hongxin-home-banner-carousel__dot {
        width: 8px;
        height: 8px;
    }

    .hongxin-home-banner-carousel__dot.is-active {
        width: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hongxin-home-banner-carousel__slide,
    .hongxin-home-banner-carousel__arrow,
    .hongxin-home-banner-carousel__dot {
        transition: none;
    }
}
