.site-content .ast-container {
    display: block !important;
    border-top: 1px solid rgba(4, 31, 51, 0.1);
    
}

#content {
    background-color: #fff !important;
}

.ast-row {
    display: none !important;
}

.breadcrumb {
    margin-top: 24px;
    margin-bottom: 24px;
}

#main {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-left: 96px;
    margin-right: 96px;

    .item {
        width: calc((100% - 64px) / 3);
        overflow: hidden;

        img {
            transition: transform 0.3s ease;
            box-shadow: none !important;
        }

        a {
            transition: transform 0.3s ease;
            overflow: hidden;

            &:hover {
                cursor: pointer;

                img {
                    transform: scale(1.1);
                }
            }
        }

        .item-img {
            margin-bottom: 16px;
            overflow: hidden;
        }

        .item-title {
            margin-bottom: 16px;
            font-size: 28px;
            color: #000;
        }

        .item-categories {
            display: flex;
            margin-bottom: 16px;

            .item-category {
                padding: 5px;
                background-color: rgba(158, 121, 77, 0.10);
                margin-right: 8px;
                color: #000;
            }
        }

        .item-date {
            margin-bottom: 16px;
            color: #000;
            font-size: 12px;
        }

        .item-description {
            margin-bottom: 42px;
            color: #000;
            font-size: 16px;
        }

        .item-link {
            height: 40px;

            a {
                text-decoration: none;
                font-size: 14px;
                color: #041F33;
                border: 1px solid #041F33;
                padding: 10px;
        
                &:after {
                    content: "";
                    display: inline-block; 
                    width: 16px;
                    height: 12px; 
                    background-image: url(../icons/news-item-link.svg);
                    background-size: cover;
                    background-repeat: no-repeat;
                    margin-left: 10px; 
                }
        
                &:hover {
                    content: "";
                    background-color: #041F33;
                    color: #fff;
                    transition: all .2s linear;
                }
        
                &:hover::after {
                    background-image: url(../icons/news-item-link-white.svg);
                    transition: all .2s linear;
                }
            }
        }
    }
}

.news-content-wrapper {
    margin-left: 96px;
    margin-right: 96px;
    display: flex;
    gap: 32px;
    margin-bottom: 64px;

    .item {
        width: calc((100% - 64px) / 3);
        overflow: hidden;

        img {
            transition: transform 0.3s ease;
            box-shadow: none !important;
        }

        a {
            transition: transform 0.3s ease;
            overflow: hidden;

            &:hover {
                cursor: pointer;

                img {
                    transform: scale(1.1);
                }
            }
        }

        .item-img {
            margin-bottom: 16px;
            overflow: hidden;
        }

        .item-title {
            margin-bottom: 16px;
            font-size: 28px;
            color: #000;
        }

        .item-categories {
            display: flex;
            margin-bottom: 16px;

            .item-category {
                padding: 5px;
                background-color: rgba(158, 121, 77, 0.10);
                margin-right: 8px;
                color: #000;
            }
        }

        .item-date {
            margin-bottom: 16px;
            color: #000;
            font-size: 12px;
        }

        .item-description {
            margin-bottom: 42px;
            color: #000;
            font-size: 16px;
        }

        .item-link {
            height: 40px;

            a {
                text-decoration: none;
                font-size: 14px;
                color: #041F33;
                border: 1px solid #041F33;
                padding: 10px;
        
                &:after {
                    content: "";
                    display: inline-block; 
                    width: 16px;
                    height: 12px; 
                    background-image: url(../icons/news-item-link.svg);
                    background-size: cover;
                    background-repeat: no-repeat;
                    margin-left: 10px; 
                }
        
                &:hover {
                    content: "";
                    background-color: #041F33;
                    color: #fff;
                    transition: all .2s linear;
                }
        
                &:hover::after {
                    background-image: url(../icons/news-item-link-white.svg);
                    transition: all .2s linear;
                }
            }
        }
    }
}

#load-more-container {
    margin-top: 64px;
    border-top: 1px solid rgba(4, 31, 51, 0.1);
    text-align: center;

    #load-more {
        background-color: #fff;
        border: 1px solid #000;
        border-radius: 0;
        color: #000;
        margin: 40px 0 60px 0;

        &:hover {
            background-color: #000;
            color: #fff;
        }
    }
}

#load-more-container + .footer-move-up {
    text-align: right;
    max-width: 1120px;
    margin-left: 96px;
    margin-right: 96px;

    .move-up {
        font-size: 14px;
        float: right;
        margin-top: 20px;
        margin-bottom: 40px;

        &:before {
            content: "";
            display: inline-block; 
            width: 12px;
            height: 6px; 
            background-image: url(../icons/arrow_up.svg);
            background-size: cover;
            background-repeat: no-repeat;
            margin-right: 8px;
            margin-bottom: 2px; 
            transition: transform 0.3s ease;
        }

        &:hover {
            text-decoration: underline;
            cursor: pointer;
        }
    }
}

.posts-title-content + #primary {
    border-top: none;
}

.posts-title-content {
    justify-content: space-between;
    margin-bottom: 64px;
    margin-left: 96px;
    margin-right: 96px;

    .post-title {
        h1 {
            font-size: 60px;
        }
    }

    .post-categories {
        display: flex;

        #post-cat {
            border: none;
            box-shadow: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background: none;
            margin-top: 20px;
            border-radius: unset;


            options {
                background-color: #f2f2f2;
            }
        }
    }
}

.custom-select-container {
    min-width: 200px;
}

.custom-select {
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: right;
}

.select-selected {
    font-size: 16px;
    margin-top: 32px;
    min-width: 200px;
    text-align: right;
    padding-top: 5px;

    &:before {
        content: "";
        display: inline-block; 
        width: 18px;
        height: 12px; 
        background-image: url(../icons/cat-select.svg);
        background-size: cover;
        background-repeat: no-repeat;
        margin-right: 8px;
    }
}

.add-background {
    background-color: #f2f2f2;
}

.remove-background {
    background-color: #fff;
}

.select-items {
    display: none;
    position: absolute;
    background-color: #f2f2f2;
    z-index: 99;
    font-size: 14px;
    margin-top: 53px;
    min-width: 200px;
}

.select-items div:first-child {
    padding: 20px 10px 10px 10px;
    cursor: pointer;
    text-align: right;
}

.select-items div {
    padding: 10px;
    cursor: pointer;
    text-align: right;
}

.select-items div:hover {
    text-decoration: underline;
}

.select-hide {
    display: none;
}

.select-show {
    display: block;
}

@media (max-width: 1024px) {
    #main {
        .item {
            width: calc((100% - 64px) / 2);
        }
    }
}

@media (max-width: 768px) {
    .posts-title-content {
        margin-left: 0;
        margin-right: 0;
    }

    #main {
        margin-left: 0;
        margin-right: 0;
    }

    #load-more-container + .footer-move-up {
        margin-right: 0;
    }
}

@media (max-width: 450px) {
    #main {
        .item {
            width: calc((100%) / 1);
        }
    }
}
