/* zbirka recommended */

.recommended-posts {
    display: block;
    position: relative;
    margin: 0.3rem 0;

    & .inner {
        width: 100%;
        background-color: var(--color-4);
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        border-radius: 0.2rem;
        overflow: hidden;
        padding: 0.3rem;

        & .title {
            width: 100%;
        }

        & .top-wrap {
            width: 100%;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: flex-start;

            & .buttons-wrap {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                gap: 0.2rem;
                width: fit-content;

                & .splide__arrows {
                    display: none;
                }
            }

            & .title {
                width: 7.94rem;
            }
        }

        & .news-wrap {
            width: 100%;
            display: flex;
            flex-direction: row;
            gap: 0.3rem;

            & .splide {
                visibility: visible;
            }

            & .splide__list {
                width: 100%;
                display: flex;
                flex-direction: row;
                gap: 0.3rem;
            }

            & .splide__arrows {
                display: none;
            }

            & .title {
                width: 100%;
            }
        }
    }

    @media screen and (max-width: 768px) {
        margin: 0.3rem 0;

        .container {
            width: 100%;
        }

        & .inner {
            width: 100%;
            gap: 0.2rem;
            overflow: hidden;
            padding: 0.3rem 0.15rem;
            border-radius: 0;

            & .top-wrap {
                align-items: flex-start;
                flex-direction: column;
                gap: 0.2rem;

                & .title {
                    width: 100%;
                }

                & .buttons-wrap {
                    width: 100%;

                    & .splide__arrows {
                        display: flex;
                        gap: 0.1rem;

                        & .splide__arrow {
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            background: none;
                            border: none;
                            padding: 0;

                            & svg {
                                width: 0.18rem;
                                height: 0.18rem;
                            }
                        }
                    }
                }
            }

            & .news-wrap {
                width: 100%;
                display: flex;
                flex-direction: row;
                gap: 0.2rem;

                & .splide {
                    width: 100%;
                    position: relative;
                }

                & .splide__list {
                    width: 100%;
                    gap: 0;
                }

                & .splide__slide {
                    display: flex;
                }

                & .splide__track {
                    overflow: visible;
                }

                & .splide__sr {
                    position: absolute;
                    width: 1px;
                    height: 1px;
                    margin: -1px;
                    overflow: hidden;
                    clip: rect(0, 0, 0, 0);
                    white-space: nowrap;
                    border: 0;
                }
            }
        }
    }
}
