/*СТИЛИЗАЦИЯ ВИДЖЕТОВ*/
.title-text {
    margin-bottom: 15px;
    margin-top: 1rem;
}

/*Виджет главных новостей на главной странице*/
.mp-mainposts_bg {
    background-color: rgb(255, 255, 255);
}

.mp-mainposts {
    padding-top: 70px;
    padding-bottom: 70px;
    padding-left: 4px;
    padding-right: 4px;
}

.mp-mainposts h2 {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 3px;
    position: relative;
}

.mp-mainposts h2:before {
    content: "";
    width: 100%;
    height: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.644));
}

.mp-mainposts .post-card_1 .post-card-title h3 {
    font-size: 1.4rem;
}

/*Виджет последних новостей на главной странице*/
.mp-lastposts_bg {
    background-color: rgb(255, 255, 255);
}

.mp-lastposts {
    padding-bottom: 30px;
}

.mp-lastposts .title {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 3px;
    position: relative;
}

.mp-lastposts .title:before {
    content: "";
    width: 100%;
    height: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.644));
}

.mp-lastpost {
    min-height: 320px;
    position: relative;
}

.mp-lastpost .card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

.mp-lastpost:hover .card-img {
    transform: scale(1.1);
    transition: all .5s;
}

.mp-lastpost .img-gradient {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.911), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.781));
}

.mp-lastpost h3 {
    font-size: 1rem;
    text-transform: uppercase;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 40%;
    width: 100%;
    background-color: rgb(255, 255, 255);
    margin: 0;
}

.mp-lastpost h3 a {
    color: rgb(51, 51, 51);
    text-decoration: none;
}

.mp-lastpost .category {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgb(236, 113, 27);
    padding: 0;
    margin: 5px;
}

.mp-lastpost .category a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 5px;
}

.mp-lastpost .date {
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    margin: 5px;
    padding-left: 5px;
    padding-right: 5px;
}

.post-card-bg {
    padding: 0.25rem;
}

.post-card-bg:nth-child(4n+1) {
    padding-left: 0;
}

.post-card-bg:nth-child(4n+4) {
    padding-right: 0;
}

.main-posts .post-item {
    background-color: rgb(255, 255, 255);
}

.main-posts .layout_7 .post-thumb_img {
    max-height: 450px;
}

/*Layout_9*/

.main-posts .layout_9 .post-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.main-posts .layout_9 .post-thumb {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.main-posts .layout_9 h3 {
    font-size: 1rem;
}

.main-posts .layout_9 .post-date {
    font-size: 0.8rem;
    padding: 2px;
}

.main-posts .layout_9 .post-category {
    text-align: center;
    font-size: 0.8rem;
    background-color: rgb(235, 129, 0);
    color: white;
    padding: 2px;
}

.main-posts .layout_5 h3 {
    font-size: 1rem;
}


/* Полоса прокрутки */
::-webkit-scrollbar {
    width: 6px;
}

/* Дорожка */
.main-posts .row::-webkit-scrollbar-track {
    background: #f1f1f100;
}

/* Ручка */
.main-posts .row::-webkit-scrollbar-thumb {
    background: rgba(135, 135, 135, 0.58);
}

/* Ручка при наведении */
.main-posts .row::-webkit-scrollbar-thumb:hover {
    background: rgb(135, 135, 135);
}

@media (max-width: 1400px) {
    .post-card-bg:nth-child(2n+1) {
        padding-left: 0;
    }

    .post-card-bg:nth-child(2n) {
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .post-card-bg {
        padding-left: 0;
        padding-right: 0;
    }
}

/*Виджет новостей категории на главной странице*/
.carousel-classic .title h2,
.main-posts .title h2,
.category-posts .title h2,
.carousel-news .title h2 {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 3px;
    position: relative;
}

.carousel-classic .title h2:before,
.main-posts .title h2:before,
.category-posts .title h2:before,
.carousel-news .title h2::before {
    content: "";
    width: 100%;
    height: 10px;
    position: absolute;
    left: 0;
    bottom: -5px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.644));
}

.carousel-classic .title h2 a,
.main-posts .title h2 a,
.category-posts .title h2 a,
.carousel-news .title h2 a {
    color: rgb(51, 51, 51);
    text-decoration: none;
}



.category-posts .col-sm-12 .layout_1,
.category-posts .col-sm-12 .layout_2 {
    height: 50%;
}

/* Layout_1 */
.category-posts .layout_1 img {
    max-height: 300px;
}

.category-posts .col-sm-12 .layout_1 img {
    max-height: 170px;
}

/* Layout_2 */
.category-posts .layout_2 img {
    max-height: 300px;
}

.category-posts .col-sm-12 .layout_2 img {
    max-height: 170px;
}


.category-posts .post-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background-color: rgb(255, 255, 255);
}

.category-posts .post-item:hover {
    background-color: rgb(235, 235, 235);
}

.category-posts .post-thumb {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.category-posts .layout_3 .post-thumb {
    height: 220px;
    object-fit: cover;
}

@media (max-width: 991px) {
    .category-posts .layout_3 .post-thumb {
        height: auto;
    }
}

.layout_4 .post-thumb img {
    height: 320px;
    object-fit: cover;
}

.category-posts .layout_6 .post-thumb,
.category-posts .layout_7 .post-thumb,
.category-posts .layout_8 .post-thumb {
    height: 220px;
}

.category-posts .layout_1 .post-item_1 .post-thumb,
.category-posts .layout_2 .post-item_3 .post-thumb {
    object-fit: cover;
}

/*Layout_8*/
.category-posts .layout_8 .post-item_2 .post-thumb,
.category-posts .layout_8 .post-item_3 .post-thumb,
.category-posts .layout_8 .post-item_4 .post-thumb,
.category-posts .layout_8 .post-item_5 .post-thumb,
.category-posts .layout_8 .post-item_6 .post-thumb,
.category-posts .layout_8 .post-item_7 .post-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 60px;
    min-height: 60px;
}

@media (max-width: 991px) {

    .category-posts .layout_8 .post-item_5 .post-thumb,
    .category-posts .layout_8 .post-item_6 .post-thumb,
    .category-posts .layout_8 .post-item_7 .post-thumb {
        width: 200px;
        height: 120px;
    }
}

@media (max-width: 767px) {

    .category-posts .layout_8 .post-item_2 .post-thumb,
    .category-posts .layout_8 .post-item_3 .post-thumb,
    .category-posts .layout_8 .post-item_4 .post-thumb,
    .category-posts .layout_8 .post-item_5 .post-thumb,
    .category-posts .layout_8 .post-item_6 .post-thumb,
    .category-posts .layout_8 .post-item_7 .post-thumb {
        width: 200px;
        height: 120px;
    }
}

.category-posts .post-title h3 {
    font-size: 1rem;
}

.category-posts .layout_1 .post-item_1 .post-title h3,
.category-posts .layout_2 .post-item_3 .post-title h3 {
    font-size: 1.3rem;
}

.category-posts .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
}

.category-posts .post-trimcontent p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-height: 1.3em;
}

/*Layout_10*/
.carouse-layout10 {
    height: 550px;
}

.carouse-layout10 .carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carouse-layout10 .carousel-caption-bg {
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.carouse-layout10 .post-card-cat {
    position: absolute;
    top: 0;
}

.carouse-layout10 .post-card-cat a {
    color: white;
}

.carouse-layout10 .post-card-date {
    position: absolute;
    top: 0;
    right: 0;
    color: white;
}

.carouse-layout10 .carousel-control-next-icon, .carousel-control-prev-icon {
    width: 3rem;
    height: 3rem;
}

.carousel-indicators [data-bs-target] {
    background-color: #6b6b6b;
}

.carouse-layout10 .carousel-control-next, .carousel-control-prev {
    bottom: 50px
}

.carouse-layout10 .post-thumb_grad {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(51, 51, 51, 0), rgba(0, 0, 0, 0.6));
}

.bvi-body .carouse-layout10 .carousel-control-prev-icon,
.bvi-body .carouse-layout10 .carousel-control-next-icon {
    filter: invert(1) !important;
}

@media (max-width: 991px) {
    .carouse-layout10 {
        height: 400px;
    }

    .carouse-layout10 .carousel-item img {
        width: 100%;
        height: 350px;
    }

    .carouse-layout10 .carousel-control-next, .carousel-control-prev {
        bottom: 100px
    }
}