@import "../../../Shared/assets/css/index.scss";



.container-banner-slider {
    .slick-slide {
        padding: 0rem .75rem;
        box-sizing: border-box;
    }

    .slick-list {
        padding: 0;
        margin: 0;
    }
      
}

.container-banner {

    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;

    .content-banner {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        width: 100%;
        height: 100%;
        min-height: 17.1875rem;
        box-sizing: border-box;
        background: #F1F3F8;
        padding: 1.875rem;

        .banner-information {
            width: 50%;
            height: 100%;
            padding-right: 2rem;
            padding-top: 0rem;
            display: flex;
            flex-direction: column;

            .icon-container {
                width: fit-content;
                min-width: 2.625rem;
                min-height: 2.625rem;
                margin-bottom: .25rem;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }
            }

            .title-icon {

                .title-container {
                    text-align: start;
                    max-width: 40rem;
                    margin-bottom: 1rem;

                    .title {
                        color: #2B363C;
                        margin: 0;
                        font-size: 2rem;
                        font-weight: 700;
                        line-height: 3rem;
                    }

                    .fontSize40 {
                        font-size: 1.875rem;
                    }

                    .fontSize24 {
                        font-size: 1.5rem;
                    }
                }
            }

            .banner-image-mobile {
                display: none;
            }

            .description-container {
                max-width: 90%;

                .description {
                    margin: 0;
                    font-size: 1rem;
                    color: #475164;
                    font-weight: 400;
                    line-height: 1.75rem;
                }
            }

            .button-container {
                margin-top: auto;
                width: fit-content;

                a {
                    text-decoration: none;
                    height: fit-content;
                    border-radius: .5rem;
                    padding: .6875rem 1rem;
                    color: #fff;

                    img {
                        filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(277deg) brightness(101%) contrast(102%);
                    }
                }
            }
        }

        .banner-image {
            width: 50%;
            height: 25.625rem;
            max-height: 25.625rem;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 1rem;
            }
        }

    }

    .content-banner-alternative {
        display: flex;
        flex-direction: column;
        gap: 1.875rem;
        align-items: flex-start;
        justify-content: unset;
        width: 100%;
        height: 100%;
        min-height: 37.0625rem;
        box-sizing: border-box;
        background: #F1F3F8;
        padding: 1.875rem;

        .banner-information {
            display: flex;
            flex-direction: column;
            order: 2;
            gap: .75rem;

            .title-icon {
                .title-container {
                    text-align: start;
                    max-width: 100%;
                    margin-bottom: unset;

                    .title {
                        color: #2B363C;
                        margin: 0;
                        font-size: 1.5rem;
                        font-weight: 500;
                        line-height: 2.25rem;
                    }

                    .fontSize40 {
                        font-size: 2.5rem;
                    }

                    .fontSize24 {
                        font-size: 1.5rem;
                    }
                }
            }


            .description-container {

                .description {
                    font-size: 1.125rem;
                    color: #2B363C;
                    font-weight: 500;
                    line-height: 2rem;
                    margin: 0;
                }
            }

            .banner-image-mobile {
                display: none;
            }

            .button-container {
                margin-top: 1.125rem !important;
                width: fit-content;

                a {
                    text-decoration: none;
                    height: fit-content;
                    border-radius: .5rem;
                    padding: .6875rem 1rem;
                    color: #fff;

                    img {
                        filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(277deg) brightness(101%) contrast(102%);
                    }
                }
            }
        }

        .banner-image {
            order: 1;
            width: 100%;
            max-height: 19.4375rem;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: .5rem;
            }
        }
    }

    .content-banner-alternative,
    .content-banner {

        .loading-container,
        .error-container {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
            min-height: 10.1875rem;
            justify-content: center;
            align-items: center;
        }

        .error-container {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            margin-top: 1rem;
            font-size: 1rem;
            font-family: inherit;
            font-weight: 700;
            line-height: 1.5rem;
            text-align: center;

            img {
                width: 6.25rem;
                height: 6.25rem;
            }

            h3 {

                font-family: inherit;
                font-size: .875rem;
                font-weight: 500;
                line-height: 1.5rem;
                text-align: center;
                color: #64718B;



            }
        }
    }
}




@media (max-width: 48rem) {


    .container-banner-slider {
        .slick-track {
            display: flex !important;
        }

        .slick-slide {
            height: auto !important;

            >div {
                height: 100%;

                .container-banner {
                    height: 100%;
                }
            }
        }
    }


    .container-banner {
        .content-banner {
            flex-direction: column;
            padding: 1rem;
            height: 100%;

            .banner-information {
                padding: 0;
                width: 100%;
                flex-direction: column;
                gap: 2rem;

                .title-icon {

                    .icon-container img {
                        width: 2rem;
                        height: 2rem;
                    }

                    .title-container {
                        margin: 0;
                        max-width: 100%;

                        .title {
                            font-size: 1.25rem;
                            line-height: 2rem;
                        }
                    }
                }

                .banner-image-mobile {
                    display: block;
                    width: 100%;
                    max-height: 13.1875rem;

                    img {
                        width: 100%;
                        min-height: 13.1875rem;
                        object-fit: cover;
                        border-radius: .5rem;
                        max-height: 100%;
                    }

                }

                .description-container {
                    max-width: 100%;

                    .description {
                        font-size: 1rem;
                    }
                }
            }

            .banner-image {
                display: none;
            }

        }

        .content-banner-alternative {
            min-height: 28.1875rem;
            padding: 1rem;

            .banner-image {
                img {
                    min-height: 12.3125rem;
                }
            }
        }
    }


}