/* ===== ORIGINAL VIDEO BANNER (.banner) — unchanged ===== */
.banner {
    padding: var(--div-padding);
    min-height: 300px;
    position: relative;

    background-color: var(--primary-dark);
    color: white;

    display: flex;
}
.banner video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.45;
    z-index: 0;
}
.banner .content {
    position: relative;
    z-index: 1;
    height: auto;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: -80px;
    /*margin-bottom: 65px;*/
}
.banner .content h1 {
    font-size: 2.5rem;
    font-weight: normal;
    line-height: 1.5;
}
.banner .content .text { flex: 2; }
.banner .content .quick-info {
    background-color: rgba(255, 255, 255, 0.624);
    padding: var(--div-padding);
    color: black;
    border-radius: var(--radius);
    flex: 1;
}

.banner .content .quick-info p {
	margin: 16px 0;
}

/* RESPONSIVE PART (banner) */
@media screen and (max-width: 480px) {
    .banner .content { 
        flex-direction: column; 
        text-align: center; 
        margin-top: 0;
    }
    .banner .content h1 { font-size: x-large; }
}
@media screen and (min-width: 481px) and (max-width: 1024px) {
    .banner .content { 
        flex-direction: column; 
        text-align: center; 
        margin-top: 0; 
    }
}
@media screen and (min-width: 1025px) and (max-width: 1366px) {
    .banner .content { 
        margin-top: -30px; 
    }
}

/* ===== Info-banner carousel container (keeps original box styles) ===== */
.info-banner-wrapper { position: relative; }

/* Stack slides to cross-fade; let the active slide provide height */
.ib-viewport { position: relative; }
.ib-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 480ms ease-in-out;
    z-index: 0;
}
.ib-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;   /* active one flows for height */
    z-index: 1;
}

/* Dots */
.info-banner-wrapper .ib-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 50;
    pointer-events: auto;
}
.info-banner-wrapper .ib-dots .ib-dot {
    all: unset;
    display: block;
    width: 20px;
    height: 6px;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}
/* Active = aria-selected="true" */
.info-banner-wrapper .ib-dots .ib-dot[aria-selected="true"] {
    background: var(--primary-dark);
    transform: scale(1.25);
}
/* Focus ring */
.info-banner-wrapper .ib-dots .ib-dot:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Hide dots if single */
.info-banner-wrapper:not(.has-multiple) .ib-dots { display: none; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ib-slide { transition: none; }
}
