.module-discover{

    --items: 4;
    --item-width:352px;
    --gap:35px;
    margin-bottom: 80px;
    padding:0 16px;

    .content{
        margin: 0 auto;
        max-width: unset;
        overflow: hidden;
        width: 100%;

        &:has(.center-items) .nav-wrap{
            display: none!important;
        }

        .text{
            margin-bottom:64px;
            position: relative;

            h3{
                margin-bottom: 0;
                text-align: center;
            }

            .nav-wrap{
                display: flex;
                gap:16px;
                position: absolute;
                right:16px;
                top:50%;
                transform:translateY(-50%);

                button{
                    background:no-repeat center center transparent;
                    border:none;
                    cursor: pointer;
                    height: 32px;
                    width: 32px;

                    &[value="prev"]{
                        background-image: url(../../img/icons/arrow-left.svg);
                    }

                    &[value="next"]{
                        background-image: url(../../img/icons/arrow-right.svg);
                    }

                    &.hide{
                        opacity: 0;
                        pointer-events: none;
                    }
                }

                @media screen and (max-width: 768px) {
                    display: none;
                }

            }
        }

        .wrap{
            display: flex;
            gap:var(--gap);
            justify-content: start;
            transition: 200ms;

            &.center-items{
                justify-content: center;
            }

            article{
                border: 1px solid #E6E5E5;
                border-top-right-radius: 20px;
                box-sizing: border-box;
                display: flex;
                flex-direction: column;
                min-height: 410px;
                justify-content: space-between;
                max-width: var(--item-width);
                padding: 40px;
                flex-shrink: 0;
                width:30%;

                .icon{
                    margin-bottom: 16px;
                    width: 48px;
                }

                h4{
                    font-size: 24px;
                    line-height: 32px;
                    margin-top: 0px;
                }

                footer{
                    a{
                        background: url(../../img/icons/arrow-right.svg) no-repeat center right;
                        background-size: 18px auto;
                        color: #2E2B29;
                        font-family: 'AvertaStdPE-Semibold';
                        font-weight: normal;
                        padding-right: 30px;
                    }
                }
            }

            @media screen and (max-width: 768px) {
                align-items: center;
                flex-direction: column;
                gap:24px;

                article{
                    width: var(--item-width);
                }
            }
        }
    }

    @media screen and (max-width: 768px) {
        margin-bottom: 48px!important;
    }

}