/*
====================
NEWS
====================
 */
#posts-wrapper {
    .container {
        border-top: 1px solid rgba(0, 0, 0, .1);
    }
}

article {
    &.post {
        padding-block: 20px;
        @media (min-width: 991.8px) {
            padding-block: 40px;
            padding-inline: 0;
        }
        border-bottom: 1px solid rgba(0, 0, 0, .1);


        &:last-of-type {
            border-bottom: none;
        }

        .post-text {
            order: 2;
            @media (min-width: 991.8px) {
                padding-left: 0;
                order: 1;
            }

            .pos-text-inner {
                width: 650px;
                max-width: 100%;
                display: flex;
                flex-wrap: wrap;
                flex-direction: column;
                height: 100%;
                text-align: center;
                @media (min-width: 991.8px) {
                    text-align: left;
                }

                h5 {
                    font-weight: 400;
                    letter-spacing: -1px;
                    margin-bottom: 15px;
                    @media (min-width: 991.8px) {
                        margin-bottom: 20px;
                    }

                    a {
                        color: var(--black-20);
                        text-decoration-line: none;

                        &:hover {
                            text-decoration-line: underline;
                        }
                    }
                }

                .post-excerpt {
                    margin-bottom: 20px;
                }

                .post-bottom {
                    margin-top: auto;
                    display: flex;
                    flex-wrap: wrap;
                    align-items: center;
                    justify-content: flex-start;
                    width: 100%;

                    a {
                        order: 2;
                        width: 500px;
                        max-width: 100%;
                        margin-inline: auto;
                        justify-content: center;

                        @media (min-width: 991.8px) {
                            order: 1;
                            width: auto;
                            margin-left: 0;
                            margin-right: 0;
                        }

                    }

                    .date {
                        display: block;
                        width: 100%;
                        order: 1;
                        margin-bottom: 20px;
                        @media (min-width: 991.8px) {
                            display: flex;
                            width: auto;
                            margin-left: 35px;
                            order: 2;
                            margin-bottom: 0;
                        }
                    }
                }


            }
        }

        .post-image-wrapper {
            max-width: 100%;
            order: 1;
            margin-bottom: 25px;
            @media (min-width: 991.8px) {
                padding-right: 0;
                order: 2;
                margin-bottom: 0;
            }
        }

        .post-image {
            border-radius: 20px;
            background-color: #373737;
            position: relative;
            padding-top: 70%;
            height: 0;
            overflow: hidden;


            a {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;

                img {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    -webkit-transition: all .3s ease-out;
                    -moz-transition: all .3s ease-out;
                    -o-transition: all .3s ease-out;
                    transition: all .3s ease-out;
                }

                &:hover {
                    img {
                        transform: scale(1.2);
                    }
                }
            }


        }
    }
}

.pagination-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    padding-block: 20px;
    @media (min-width: 767.8px) {
        border-top: 1px solid rgba(0, 0, 0, .1);
    }
    @media (min-width: 991.8px) {
        padding-block: 50px;
        border-top: 1px solid rgba(0, 0, 0, .1);
    }


    .pagination {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;

        .page-numbers {
            font-size: 16px;
            line-height: 16px;
            color: #5a5a5a;
            font-weight: 400;
            align-items: center;
            border: 2px solid rgba(0, 0, 0, 0);
            text-decoration-line: none;
            display: flex;
            width: 36px;
            height: 36px;
            text-align: center;
            justify-content: center;
            border-radius: 10px;
            margin-right: 5px;
            padding: 0;
            @media (min-width: 767.8px) {
                width: 50px;
                height: 50px;

                font-size: 20px;
                line-height: 20px;
            }


            &.current {
                border: 2px solid rgba(0, 0, 0, .1);
                color: var(--red-10);
            }

            &:hover {
                color: var(--red-10);
                border: 2px solid var(--black-20);
            }
        }


    }

    .pagination-arrows {
        display: none;



        @media (min-width: 767.8px) {
            margin-left: auto;
            margin-right: 0;
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            align-items: center;
        }

        blog .disabled {
            display: none;
        }

        .post-arrow {
            width: 49px;
            flex-basis: 49px;
            height: 49px;
            border-radius: 10px;
            display: flex;
            flex-wrap: wrap;
            border: 2px solid rgba(0, 0, 0, .1);
            position: relative;
            margin-left: 12px;
            align-items: center;
            justify-content: center;

            .icon {
                width: 15px;
                height: 15px;
                background-color: var(--black-20);
            }

            &.arrow-right {
                .icon {
                    mask-image: url("../images/arrow-right.svg");
                    mask-size: contain;
                    mask-repeat: no-repeat;
                    mask-position: center;
                }
            }

            &.arrow-left {
                .icon {
                    mask-image: url("../images/arrow-left.svg");
                    mask-size: contain;
                    mask-repeat: no-repeat;
                    mask-position: center;
                }
            }

            &:hover {
                border: 1px solid var(--red-10);

                .icon {
                    background-color: var(--red-10);
                }
            }
        }

        .disabled {
            display: none;
        }
    }
}

