/*
Theme Name: Latifundist Theme
Author: Junie
Description: Theme based on Latifundist.com design
Version: 1.0
*/


/* Photogallery Fixes */
.company-gallery-slider.owl-carousel {
    padding: 0 30px;
}

.company-gallery-slider.owl-carousel .owl-nav {
    display: block !important;
}

.company-gallery-slider.owl-carousel .owl-nav .owl-prev,
.company-gallery-slider.owl-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff !important;
    color: #fff !important;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 0;
    transition: background 0.3s, opacity 0.3s;
    z-index: 10;
}

.company-gallery-slider.owl-carousel .owl-nav .owl-prev:hover,
.company-gallery-slider.owl-carousel .owl-nav .owl-next:hover {
    background: #0056b3 !important;
}

.company-gallery-slider.owl-carousel .owl-nav .owl-prev.disabled,
.company-gallery-slider.owl-carousel .owl-nav .owl-next.disabled {
    opacity: 0.3;
    cursor: default;
}

.company-gallery-slider.owl-carousel .owl-nav .owl-prev {
    left: -10px;
}

.company-gallery-slider.owl-carousel .owl-nav .owl-next {
    right: -10px;
}

.company-gallery-slider.owl-carousel .owl-nav .owl-prev::before {
    content: '\f104';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 18px;
}

.company-gallery-slider.owl-carousel .owl-nav .owl-next::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 18px;
}

/* Images aspect ratio */
.company-gallery-slider .material_item__image_container {
    position: relative;
    width: 100%;
    padding-top: 0; /* Adjusted aspect ratio */
    overflow: hidden;
    border-radius: 4px;
}

.company-gallery-slider .material_item__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s;
}

.company-gallery-slider .material_item:hover .material_item__image {
    transform: scale(1.05);
}

/* Fix for news slider height and visibility */
.main-slider .slider-images.owl-carousel {
    display: block !important;
    height: 298px !important;
}

.main-slider .owl-stage-outer,
.main-slider .owl-stage,
.main-slider .owl-item {
    height: 100% !important;
}

.main-slider .material_item__inner {
    padding-top: 0 !important;
    height: 298px !important;
    overflow: hidden !important;
}

.main-slider .material_item-readin,
.main-slider .material_item_fl {
    height: 100% !important;
}

.main-slider .material_item__link {
    display: block !important;
    height: 100% !important;
    position: relative !important;
}

.main-slider .slider-img {
    display: block !important;
    height: 100% !important;
}

/* Fix for titles position */
.main-slider .material_item__title.pt {
    position: absolute !important;
    top: auto !important;
    bottom: 45px !important;
    left: 0 !important;
    width: 100% !important;
    padding: 10px 35px !important;
    z-index: 30 !important;
}

.main-slider .material_item__image_container.pt_container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding-bottom: 0 !important;
}

.main-slider .material_item__image {
    height: 100% !important;
border-radius: 5px;
}

.main-slider .material_item__image img {
    display: none !important; /* Мы используем background-image на родителе */
}
.page_profiles__filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.page_profiles__filter__alphabet {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-right: 20px;
}

.page_profiles__filter__alphabet__item {
     display: inline-block;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page_profiles__filter__alphabet__item:hover,
.page_profiles__filter__alphabet__item.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.page_profiles__search {
    width: 300px;
    margin-right: 20px;
}

.page_profiles__search__form {
    position: relative;
}

.page_profiles__search__inputbox {
width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.page_profiles__search__icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.page_profiles__showall_btn {
    display: inline-block;
    padding: 10px 20px;
    background: #6c757d;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.page_profiles__showall_btn:hover {
    background: #5a6268;
}

section.wrapper.companies_block {
    margin-top: 40px;
}

.material_item.material_item-company {
    max-width: 20% !important;
    text-align: center;
}

.material_item.material_item-company .material_item__image_container {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f5f5f5;
}
.material_item.material_item-company .material_item__image_container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.material_item__image_placeholder {
    width: 100%;
    height: 100%;
}
.material_item__image_container img {
    width: 100%;
    height: auto;
    display: block;
}
.material_item.material_item-company {
width: 19% !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-bottom: 20px !important;
}

.page_news__top img {display: block;}

.page_news__top .material_item__image {
    background-image: none !important;
    position: relative;
    max-height: 420px;
    overflow: hidden;
}

.material_item__image_container {
    padding: 0;
    position: relative;
    margin-bottom: 10px;
}

.material_item__inner {
    padding: 0;
    position: relative;
}

.post-type-archive-news_item .list-view .clv2-append {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-around;
}

.post-type-archive-news_item .list-view .clv2-append .material_item.material_item-read {
    width: 50%;
}

.article__info__left {
    display: flex;
    align-items: center;
}

.it_news_top {
    display: flex;
}

.it_news_top .article__image {
    width: 40%;
}

.it_news_top .article__image img {
    width: 100%;
    height: auto;
}

.article__info_rtop {
    width: 60%;
    padding-left: 30px;
}

.article-content img {
    width: max-content !important;
    height: auto !important;
    margin: 15px auto;
    display: block;
    max-width: 100% !important;
}

footer.wrapper.footer {
    max-width: 1420px;
    margin: 0 auto;
    display: block;
    float: none;
    background: none;
    padding: 0 30px;
}

.material_item.material_item-company {
    box-shadow: 0 0 14px 0px #dcdcdc;
    padding: 0 14px !important;
    border-radius: 5px;
}

section.wrapper.companies_block .clv2-append {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
	padding: 0 30px;
}

.header__bottom {
    margin: 0 !important;
       width: 70% !important;
    padding: 0 5%;
}

a#logo {
    position: relative;
    margin: 0;
    left: 0;
    top: 0;
    width: 25%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

a.header__search__btn-open {
position: relative;
    right: 0;
    top: 0;
    width: 5%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

a#logo img {
    width: 270px;
}

.header__bottom nav#yw2 {
    display: flex;
    justify-content: space-between;
}

a.footer__social__item {
    text-decoration: none;
}

.page_company__gallery.wrapper .material_item {
    width: 100%;
}

.wrapper.page_company__management_block h4,.page_company__gallery.wrapper h4,.page_company__contacts h4 {
      font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}



.wrapper.page_company__management_block .material_item__inner {
    display: flex;
}

.wrapper.page_company__management_block .material_item__inner img {
    max-width: 130px;
    border-radius: 5px;
}

.wrapper.page_company__management_block .material_item__inner .material_item__image_container {
    max-width: 130px;
    margin-right: 15px;
}

.mndg {
    width: 70%;
}

.wrapper.page_company__management_block {
    margin: 25px 0;
}

.page_company__gallery.wrapper {
  margin-top: 50px;
    margin-bottom: 40px;
}


div#read_block__list .material_item__image_container {
    max-height: 260px;
}

.material_item.material_item-company {
    padding-top: 14px !important;
}
.material_item.material_item-company {
    padding-top: 14px !important;
}

.page_company__head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.page_company__head .page_company__head__logo {
    max-height: 150px;
    float: none;
    height: 150px;
    position: relative;
    width: 30%;
}

.page_news__top img.attachment-large.size-large.wp-post-image {
    max-height: 390px;
    width: auto;
    border-radius: 5px;
}

@media (max-width: 991px) {
    .page_profiles__filter {
        flex-direction: column;
        align-items: stretch;
    }
    .page_profiles__filter__alphabet {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .page_profiles__search {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
	
	.header__top {
 
    padding: 0 15px;
}

.header {

    height: 70px;

}



.header.active {
    top: 0;
}
a#logo img {
    width: 100%;
}
a#logo {

    width: 60%;

}
    .header__top {
        height: 70px;
    }
	
	a.header__search__btn-open {
 
    right: 50px;

}
.header__mainmenu__btn-open {
    height: 60px;
    width: 40px;
    position: absolute;
    right: 8px;
    top: 4px;
}
.news_block__list {
    margin-top: -30px;
}

.material_item.material_item-company {
    width: 50% !important;

    max-width: 48% !important;
}

footer.wrapper.footer {

    padding: 0px;
}
    .footer__socials {
        justify-content: left;
    }
	
	.footer__col.footer__col-menu {
    margin: 30px 0;
    text-align: left;
}

.footer__menu-list li {
    text-align: left;
}

.footer__subscribe h3 {
    text-align: left;
    margin-left: 10px;
    margin-bottom: 0;
}
.header__bottom.active {
    visibility: visible;
    height: 100vh;
    max-height: 100vh;
    transition: max-height 0.5s ease;
    top: 0 !important;
    z-index: 9999;
    width: 88% !important;
}
.header__menu__link {

    font-size: 20px;

    margin: 15px 5px;
}
.header__bottom nav#yw2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    float: none;
    height: 100%;
    justify-content: center;
}
.header__bottom_inner {
    height: 100%;
}
.it_news_top {
    display: flex;
    flex-wrap: wrap;
}
.it_news_top .article__image {
    width: 100%;
}
.article__info_rtop {
    width: 100%;
    padding-left: 0;
}
.article__info {
    width: 100%;
    float: none;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.article__info__right {
    width: 30%;
    display: flex;
    justify-content: flex-end;
}
h1.articletitle {
    font-size: 20px;
    font-weight: bold;
    line-height: 33px;
}
.page_company__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    float: none;
}
.page_company__head .page_company__head__logo {

    width: 50%;
}
.page_company__head__info {
    padding-top: 10px;
    width: 100%;
    float: none;
    margin-left: 30px;
}
}

/* Rubrics Block Styles */
.material_item-rubric .material_item__inner {
height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0px;
    padding: 0;
}

.material_item-rubric .material_item__inner:hover {
    opacity: 0.9;
}

.material_item-rubric .material_item__link {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 20px;
}

.material_item-rubric .rubric_icon {
    margin-bottom: 15px;
    line-height: 0;
}

.material_item-rubric .rubric_icon img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.material_item-rubric .material_item__title {
    text-align: center;
    color: #fff !important;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
}

.material_item-rubric .material_item__title span {
       color: #fff !important;
    text-transform: uppercase;
    font-size: 24px;
}
