@import "dxHelpers/reset";
@import "dxHelpers/text";

:host {
    --dx-c-padding: 0 var(--dx-g-page-padding-horizontal);
    --dx-c-container-justify-content: left;
}

dx-formatted-rich-text {
    --dx-c-formatted-rich-text-inline-link-color: var(
        --dx-g-cloud-blue-vibrant-95
    );
    --dx-c-formatted-rich-text-inline-link-color-hover: var(
        --dx-g-blue-vibrant-70
    );
}

.container {
    display: flex;
    flex-direction: row;
    padding: var(--dx-c-padding);
    justify-content: var(--dx-c-container-justify-content);
    overflow: hidden;
}

.container > * {
    width: 50%;
}

.text-container {
    --dx-g-text-body-color: var(--dx-g-text-heading-color);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--dx-g-spacing-lg) 0 var(--dx-g-spacing-4xl) 0;
    min-height: 460px;
    text-align: left;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.button-container {
    display: flex;
    gap: var(--dx-g-spacing-md);
}

.secondary-button {
    --dx-c-button-background-color: white;
}

.light-text > *:not(:last-child) {
    color: white;
}

.image-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: visible;
}

img {
    width: 100%;
}

img.desktop {
    min-width: 876px;
    margin-left: var(--dx-g-spacing-lg);
}

img.mobile {
    display: none;
}

img.mobile.top-img {
    min-width: 1024px;
}

img.mobile.center-img {
    min-width: 0;
    padding-bottom: 100px;
}

.multiple-image-container {
    position: relative;
    max-width: 646px;
}

.image-one {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 418px;
    height: 515px;
}

.image-two {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 341px;
    height: 339px;
}

.text-container > *:not(:last-child) {
    margin-bottom: var(--dx-g-spacing-smd);
}

dx-button {
    margin-top: var(--dx-g-spacing-smd);
}

svg {
    width: 100%;
    position: relative;
    bottom: 60px;
}

.foot-note-container {
    display: flex;
}

.center-img {
    align-self: center;
    min-width: 0 !important;
    height: auto;
    display: block;
    margin: 0 auto;
    padding-right: 40px;
}

@media screen and (min-width: 1024px) {
    .text-container {
        text-align: left;
    }
}

@media screen and (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .container > * {
        width: 100%;
    }

    .text-container {
        align-items: center;
        padding-top: var(--dx-g-spacing-4xl);
        padding-bottom: 0;
        min-height: unset;
    }

    .button-container {
        justify-content: center;
    }

    .text-container > * {
        max-width: 700px;
    }

    .image-container {
        justify-content: center;
    }

    img.desktop {
        display: none;
    }

    img.mobile {
        display: block;
        margin-top: var(--dx-g-spacing-3xl);
    }

    .multiple-image-container {
        display: none;
    }
}

@media screen and (max-width: 1024px) {
    img.center-img {
        padding-left: 20px;
        padding-right: 20px;
        width: calc(100% - 40px);
        min-width: 0;
        box-sizing: border-box;
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .body,
    .subtitle {
        font-size: var(--dx-g-text-base);
        line-height: var(--dx-g-text-xl);
    }

    .heading {
        font-size: var(--dx-g-text-3xl);
        line-height: var(--dx-g-text-4xl);
    }
}
@media screen and (min-width: 479px) and (max-width: 1024px) {
    .text-container {
        text-align: center;
    }
}

@media screen and (min-width: 479px) {
    .foot-note-image {
        display: none;
    }
}

@media screen and (max-width: 479px) {
    .foot-note-image {
        object-fit: contain;
    }
}
