/* =========================================================
   CAROUSEL
   ========================================================= */

.carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--section-color);
    box-sizing: border-box;
}



/* Remove text-line whitespace from structural carousel elements. */
.carousel,
.slides,
.slides .banner_page,
.slides .banner_page section,
.banner-full-image,
.entire_div {
    line-height: 0;
}

/* =========================================================
   SLIDES
   ========================================================= */

.slides {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    transition: transform 0.5s ease;
    will-change: transform;
}


/* =========================================================
   INDIVIDUAL BANNER
   ========================================================= */

.slides .banner_page {
    position: relative;
    isolation: isolate;

    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    /*
     * Show the entire banner without cropping.
     */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--section-color);

    overflow: hidden;
    box-sizing: border-box;
}


/*
 * Use a ratio closer to the actual banner artwork.
 * 1920 / 530 is approximately 3.62:1.
 */
.slides .banner_page section {
    position: relative;

    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1920 / 350;

    margin: 0;
    padding: 0;

    overflow: hidden;
    box-sizing: border-box;
}


/* =========================================================
   FULL-IMAGE BANNER
   ========================================================= */

.banner-full-image,
.entire_div {
    position: relative;
    display: block;

    width: 100%;
    height: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    overflow: hidden;
    box-sizing: border-box;
}

/*
 * Server-rendered link covering the complete image banner.
 * No JavaScript is required to create or assign this link.
 */
.banner-full-image-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: block;
    width: 100%;
    height: 100%;

    z-index: 1;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    border: 0;
    line-height: normal;
    -webkit-tap-highlight-color: transparent;
}

.banner-full-image-link:focus-visible {
    outline: 3px solid #ffa300;
    outline-offset: -3px;
}

/* Keep an optional visible CTA above the full-banner link. */
.only-image-button {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    z-index: 2;

    display: block;
    line-height: normal;
}

.only-image-button .cta-button {
    position: relative;
    z-index: 3;
}


/* =========================================================
   CONTENT LAYERS
   ========================================================= */

.slides .banner_page .banner_layer {
    position: relative;

    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;

    box-sizing: border-box;
}

.slides .banner_page .edi_text_middle {
    position: absolute;
    top: 50%;
    left: 50%;

    z-index: 3;

    color: #ffffff;
    text-align: center;

    transform: translate(-50%, -50%);
}

.text-background-overlay {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background-color: var(--section-color);
    opacity: 1;

    z-index: 1;
    box-sizing: border-box;
}

.text-overlay {
    position: relative;
    z-index: 2;

    display: block;
    min-width: 0;

    padding: 35px;

    color: #ffffff;
    box-sizing: border-box;
}


/* =========================================================
   CONTENT LAYOUTS
   ========================================================= */

.full {
    display: grid;
    grid-template-columns: minmax(0, 80%) minmax(0, 20%);
    align-items: center;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;

    overflow: hidden;
    box-sizing: border-box;
}

.half {
    width: 50%;
    max-width: 50%;
    min-width: 0;
    height: 100%;

    box-sizing: border-box;
}

.container_half {
    display: grid;
    grid-template-columns: 20% 20% 60%;

    width: 100%;
    height: 100%;
    min-width: 0;

    box-sizing: border-box;
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    padding: 20px;

    box-sizing: border-box;
}

.column-left {
    flex: 2;
    min-width: 0;
}

.full-button {
    text-align: center;
}

.half-button {
    flex: 2;
    text-align: center;
}

.right-side-banner {
    display: flex;
    align-items: center;
    justify-content: center;

    grid-column: 2;

    min-width: 0;
    height: 100%;

    overflow: hidden;
    box-sizing: border-box;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.block-span {
    display: block;
    margin-bottom: 10px;
}

.line-space {
    line-height: 1;
}

.header {
    font-size: 30px;
}

.second_header {
    color: var(--dot-color) !important;
    font-size: 20px;
}


/* =========================================================
   CTA BUTTON
   ========================================================= */

.slides .banner_page .cta-button,
.cta-button {
    display: inline-block;
    width: auto;
    max-width: 100%;

    padding: 5px 20px;

    border: 0;
    border-radius: 25px;

    background-color: var(--dot-color);
    color: #ffffff;

    font-size: 18px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
    box-sizing: border-box;
}


/* =========================================================
   QUOTE
   ========================================================= */

.text_container {
    width: 70%;
    padding: 2% 1% 1% 15%;

    box-sizing: border-box;
}

.signture {
    text-align: right;
}

.quote_slide {
    width: 100%;
    height: 100%;

    background-color: var(--section-color);
    color: #ffffff;

    box-sizing: border-box;
}

.quote_container {
    display: flex;

    width: 100%;
    min-width: 0;

    box-sizing: border-box;
}

.quote_text,
.quote_text > p {
    font-size: 24px;
    line-height: 1.2;
}


/* =========================================================
   ICONS
   ========================================================= */

.icons_header {
    padding-top: 20px;

    color: #ffa300;
    font-size: 20px;
    text-align: center;
}

.icon_container {
    display: grid;
    grid-template-rows: 80% 20%;
    justify-content: center;
    align-items: center;

    min-width: 0;
    gap: 10px;
}


/* =========================================================
   IMAGES
   ========================================================= */

.carousel img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   DOTS
   ========================================================= */

.dots {
    position: relative;
    z-index: 4;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 10px;
    min-height: 10px;

    margin: 0;
    padding: 0;

    background-color: var(--section-color);
}

.dot {
    width: 6px;
    height: 6px;

    margin: 0 2px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background-color: #f1f3f5;

    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.dot:hover {
    transform: scale(1.15);
}

.dot.active {
    background-color: var(--dot-color);
}


/* =========================================================
   ARROWS
   ========================================================= */

.carousel-nav {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: calc(100% - 10px);

    z-index: 5;
    pointer-events: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;

    width: 35px;
    height: 35px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background-color: #253b98;
    color: #ffffff;

    font-size: 20px;
    font-weight: bold;
    line-height: 35px;
    text-align: center;

    cursor: pointer;
    pointer-events: auto;
    user-select: none;

    transform: translateY(-50%);

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.carousel-arrow:hover {
    background-color: #ffa300;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
    left: 12px;
}

.carousel-arrow-right {
    right: 12px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 930px) {
    .header {
        font-size: 24px;
    }

    .second_header {
        font-size: 14px;
    }

    .quote_text,
    .quote_text > p {
        font-size: 0.9em;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 857px) {
    .carousel {
        margin: 0;
    }

    .slides .banner_page {
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }

    .slides .banner_page section {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 1920 / 350;
    }

    .text-background-overlay {
        background-color: rgba(37, 59, 152, 0.85);
    }

    .text-overlay {
        padding: 10px 15px;
    }

    .full {
        grid-template-columns: 1fr;
    }

    .half {
        width: 100%;
        max-width: 100%;
    }

    .container_half {
        grid-template-columns: 1fr;
    }

    .right-side-banner {
        display: none;
    }

    .header {
        font-size: 18px;
    }

    .second_header {
        font-size: 12px;
    }

    .banner_description,
    .banner_description p {
        font-size: 11px;
    }

    .slides .banner_page .cta-button,
    .cta-button {
        width: auto;
        padding: 6px 14px;
        font-size: 13px;
    }

    .only-image-button {
        right: 1rem;
        bottom: 1rem;
    }

    .carousel-arrow {
        width: 34px;
        height: 34px;

        font-size: 20px;
        line-height: 34px;
    }

    .carousel-arrow-left {
        left: 8px;
    }

    .carousel-arrow-right {
        right: 8px;
    }

    .dots {
        height: 10px;
        min-height: 10px;
        padding: 0;
    }

    .text_container {
        width: 100%;
        padding: 15px;
    }
}


/* Prevent inline script elements from contributing layout space. */
.carousel > script {
    display: none;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .slides,
    .carousel-arrow,
    .dot {
        transition: none;
    }
}