/* =========================================================
   Simplified main banner (clickable-image carousel)
   Desktop: proportional 3:1 area (1920x640, 1440x480, ...)
   Mobile (<=767px): vertical variant (uses mobile image)
   Pagination (arrows + dots) moved below the banner.
   ========================================================= */

.banner {
    position: relative;
    top: 12px;
    width: 100%;
    height: auto;
    margin: 0;
    overflow: hidden;
}

/* Let the slide's aspect-ratio drive the height instead of Swiper's height:100%. */
.banner .swiper-wrapper {
    height: auto;
    align-items: stretch;
}

/* The whole slide is the (optionally clickable) banner image. */
.banner .banner__slide {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1920 / 640; /* scales proportionally with width */
    background-image: var(--banner-bg-desktop);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    color: #edf1f9;
    text-decoration: none;
}

/* Text/button overlay (shown only when filled in admin). */
.banner__container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
}

.banner__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start; /* left on desktop; overridden to center on mobile */
    gap: 2rem;
    max-width: 52rem;
}

.banner__title {
    font-family: 'Futura PT', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: clamp(2.4rem, 3.33vw, 6.4rem);
    line-height: 1;
    letter-spacing: 0;
    color: #edf1f9;
    margin: 0;
    max-width: none;
}

.banner__text {
    font-family: 'Futura PT', sans-serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 1.46vw, 2.8rem);
    line-height: 1.2;
    color: #edf1f9;
    margin: 0;
    max-width: none;
}

.banner__btn.big-btn {
    display: inline-flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
    padding: 2rem 2.4rem;
    background: #cdd8ff;
    border-radius: 8px;
    color: #1d1d28;
    margin-top: 2rem;
}

.banner__btn .big-btn__name {
    font-family: 'Futura PT', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 1.15vw, 2.2rem);
    line-height: 1;
    color: #1d1d28;
}

.banner__btn .big-btn__arr {
    min-width: auto;
    border: none;
}

.banner__btn .big-btn__arr,
.banner__btn .big-btn__arr-icon {
    width: 1.4rem;
    height: 1.4rem;
    color: #1d1d28;
    fill: #1d1d28;
}

/* ---- Pagination row below the banner ---- */
.banner .banner__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    width: 100%;
    padding: 1rem 3.2rem;
    background: transparent;
}

.banner .banner__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: #4c5767;
    cursor: pointer;
}

.banner .banner__nav svg {
    display: block;
    width: 10px;
    height: 19px;
}

.banner .banner__nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

/* Dots: count == number of banners; active #4C5767, inactive #C8C8C8 */
.banner .banner__pagination.swiper-pagination {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: auto;
    transform: none;
}

.banner .banner__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: #c8c8c8;
    border-radius: 50%;
    opacity: 1;
    transition: background-color 0.2s ease;
}

.banner .banner__pagination .swiper-pagination-bullet-active {
    background: #4c5767;
}

@media (min-width: 992px) {
    .banner {
        top: -35px;
    }
}


/* ---- Mobile vertical variant (<= 767px) ---- */
@media (max-width: 767px) {
    .banner .banner__slide {
        aspect-ratio: 375 / 500; /* vertical mobile banner */
        background-image: var(--banner-bg-mobile);
        background-position: center top;
    }

    .banner__container {
        justify-content: flex-end;
        align-items: center;
        padding-bottom: 3rem;
    }

    .banner__content {
        align-items: center;
        align-self: center;
        text-align: center;
        gap: 1.2rem;
        max-width: 28.8rem;
    }

    .banner__title,
    .banner__text {
        text-align: center;
    }

    .banner .banner__pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }
}
