/*
Theme Name: Consalt
Theme URI: https://demo.themexbd.com/wpi/consalt/
Author: codexpert
Author URI: https://www.templatemonster.com/authors/codexpert/
Description: Consalt - Consulting Responsive WordPress Theme
Version: 1.0.3
Tested up to: 6.5
Requires PHP: 7.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, sticky-post, threaded-comments, translation-ready
Text Domain: consalt
*/
/*----------------------------------------
 Don't change any css from here. If you need to change, Please use child theme.
------------------------------------------*/


/*pagination*/
.page-numbers li {
    margin-top: 15px !important;
}

/*Отступ заголовка*/
.elementor-15716 .elementor-element.elementor-element-25954da {
    margin-top: 42px !important;
}
.elementor-422 .elementor-element.elementor-element-e7afef5 {
    padding: 42px 0px 60px 0px !important;
}

.consalt_menu ul .sub-menu li a:hover, .consalt_menu ul .sub-menu li.current-menu-item a, .consalt_menu>ul>li.current-menu-item>a, .consalt_menu>ul>li>a:hover, .consalt_nav_area.prefix .consalt_menu>ul>li.current-menu-item>a, .consalt_nav_area.prefix .consalt_menu>ul>li>a:hover, .hbg2 .consalt_menu>ul>li.current-menu-item>a, .hbg2 .consalt_menu>ul>li>a:hover, .heading_style_2 .consalt_menu>ul>li.current-menu-item>a, .heading_style_2 .consalt_menu>ul>li>a:hover, .heading_style_3 .consalt_menu>ul>li.current-menu-item>a, .heading_style_3 .consalt_menu>ul>li>a:hover, .heading_style_4 .consalt_menu>ul>li.current-menu-item>a, .heading_style_4 .consalt_menu>ul>li>a:hover {
    color: #ab635d !important;
}
#affiliate_post {
    /*margin-right: 20px;*/
}

/*****Правка шаблона филиалов: выравнивание по высоте правой колонки рядом с фото, чтобы соцсети влезали***************/
.portfolio-details-box .prots-contentg ul {
    margin-top: -19px;
}

@media (max-width: 767px) {
    .portfolio-details-box .prots-contentg ul {
        margin-top: 0px;
    }
}

/**********************************************************************************************************************/
/*Главная.
Убрать затемнение при наведении на Новости*/
.witr_sb_thumb:before, .consalt-blog-thumb a:before {
    background: none !important;
}
/*Главная. Выравнивание стрелок слайдеров*/
.carousel_imagess_area .slick-next {
    right: -55px !important;
}

.carousel_imagess_area .slick-prev {
    left: -55px !important;
}
/*Убираем границу перед отзывами*/
.elementor-1717 .elementor-element.elementor-element-a48e9ca {
    border-width: 0px !important;
}
/*Переопределение цвета фона стрелок на слайдерах*/
.slick-next:focus, .slick-next:hover, .slick-prev:focus, .slick-prev:hover {
    background: #ab635d !important;
}
/**********************************************************************************************************************/
/*Новости одной высоты*/
/* Делает строку с карточками flex-контейнером */
.witr_blog_area5 .row {
    display: flex;
    flex-wrap: wrap;
}

/* Заставляет колонки растягиваться по высоте */
.witr_blog_area5 .row > [class*="col-"] {
    display: flex;
}

/* Карточка новости — flex-элемент-колонка */
.busi_singleBlog {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Контент внутри карточки (заголовок + текст) тянется и занимает всё свободное место */
.busi_singleBlog .witr_blog_con {
    flex: 1;
}

/* Кнопка «Читати далі» всегда прижата к низу карточки */
.em-blog-content-area_adn {
    margin-top: auto;
}
/**********************************************************************************************************************/
/*soc icons top*/
/* унифицируем высоту и вертикальное выравнивание иконок */
ul.social-icons.text-right.text_m_center,
div.footer-menu ul.text-right {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* выравниваем иконки вправо */
    width: 100%;               /* растягиваем список во всю ширину родителя */
    height: 25.59px;
    line-height: 25.59px;
    padding: 0;
    margin: 0;
}
ul.social-icons.text-right.text_m_center li,
div.footer-menu ul.text-right li {
    display: inline-block;
    margin: 0 0.5em 0 0; /* отступ между иконками */
}
ul.social-icons.text-right.text_m_center li a,
div.footer-menu ul.text-right li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25.59px;
    height: 25.59px;
    line-height: 25.59px;
}

/**********************************************************************************************************************/
/******ourcontacts*/
@media (max-width: 991px) {
    .witr_s_flex {
        display: flex !important;
    }
    .em-service-title a {
        font-size: 14px !important;
    }

}
@media (max-width: 768px) {
    .witr_section_title .witr_section_title_inner, .witr_bar_inner {
        text-align: center !important;
    }

    .text-left .witr_bar_inner {
        margin: auto !important;
    }

    .witr_section_title_inner.text-left p {
        width: auto !important;
        margin: auto !important;
    }

    .e-con-inner {
        justify-content: center !important;
    }

    .elementor-415 .elementor-element.elementor-element-8f83489 .all_icon_color i, .elementor-415 .elementor-element.elementor-element-8f83489 .em-service2.sleft .em-service-icon {
        margin: 4px 0 0 0 !important;
    }

    .elementor-415 .elementor-element.elementor-element-d4583ee .all_color_service h3 {
        margin: 16px 0 0 0 !important;
    }

    .elementor-415 .elementor-element.elementor-element-04ec3eb .all_color_service h3 {
        margin: 16px 0 0 0 !important;
    }
}
/******ourcontacts*/
/**********************************************************************************************************************/
/*News клик по картинке - ссылка. Поднять над оверлеем */
/* Разрешаем клик по картинке под оверлеем */
.all_blog_color {
    pointer-events: none;
    position: relative; /* чтобы z-index работал */
    z-index: 1;
}

/* Оверлей активируется и начинает ловить клики только при ховере */
.busi_singleBlog:hover .all_blog_color {
    pointer-events: auto;
}

/* Поднимаем ссылку на картинку над оверлеем */
.witr_sb_thumb a {
    display: block;
    position: relative;
    z-index: 2;
}
/**********************************************************************************************************************/
/* venobox для Главной, модальные окна для администрации*/
.vbox-content {
    position: fixed !important;
    top: 50%         !important;
    left: 50%        !important;
    transform: translate(-50%, -50%) !important;
    margin: 0        !important;
}

/* ==============================
   Venobox Modal Custom Styles
   ============================== */
/* Стиль для модального профиля */
.vbox-inline.figlio {
    max-width: 400px !important;
    width: 95vw !important;
    min-height: unset !important;
    background: #fff !important;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(60, 72, 88, 0.16);
    padding: 36px 32px 28px 32px !important;
    text-align: center !important;
    margin: 0 auto !important;
    overflow: visible !important;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    color: #353535;
    animation: vbox-appear 0.35s cubic-bezier(.25,1.4,.6,1) 1;
    position: relative;
}

/*.vbox-inline.figlio {*/
/*    max-height: 95vh !important;*/
/*    height: auto !important;*/
/*    overflow-y: auto !important;*/
/*}*/

.vbox-inline.figlio {
    max-height: 92vh !important;
    height: auto !important;
    overflow-y: auto !important;
}


.vbox-inline.figlio img {
    display: block;
    width: 240px;
    height: 240px;
    object-fit: cover;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    box-shadow: 0 2px 18px rgba(171, 99, 93, 0.16);
    border: 4px solid #fff;
    background: #fff;
}

.vbox-inline.figlio h4 {
    margin-bottom: 9px;
    color: #ab635d;
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 0.03em;
    text-align: center;
}

.vbox-inline.figlio p {
    margin: 0 0 10px 0;
    line-height: 1.55;
    font-size: 1em;
    text-align: center;
}
.vbox-inline.figlio p strong {
    color: #67463d;
    font-weight: bold;
}

@media (max-width: 600px) {
    .vbox-inline.figlio {
        /*padding: 18px 6vw 15px 6vw !important;*/
        max-width: 97vw !important;
        padding: 10px 2vw 10px 2vw !important;
    }
    .vbox-inline.figlio img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 600px) {
    .vbox-inline.figlio {
        max-height: 97vh !important;

    }
}

/* Анимация появления */
@keyframes vbox-appear {
    from { opacity: 0; transform: translateY(28px) scale(0.96);}
    to { opacity: 1; transform: translateY(0) scale(1);}
}

.vbox-next,
.vbox-prev,
.vbox-arrow {
    display: none !important;
}

.vbox-close,
.vbox-num {
    display: none !important;
}

/*********************************************************Крестик для закрытия*/
.vbox-custom-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1001;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(171,99,93,0.12);
    color: #ab635d;
    cursor: pointer;
    outline: none;
    transition: background 0.15s;
}
.vbox-custom-close::before, .vbox-custom-close::after {
    content: "";
    position: absolute;
    left: 18px; top: 9px;
    width: 2px; height: 20px;
    background: #ab635d;
    border-radius: 2px;
}
.vbox-custom-close::before {
    transform: rotate(45deg);
}
.vbox-custom-close::after {
    transform: rotate(-45deg);
}
.vbox-custom-close:hover {
    background: rgba(171,99,93,0.22);
}
@media (max-width: 600px) {
    .vbox-custom-close {
        display: block;
    }

    /*header*/
    ul.social-icons.text-right.text_m_center, div.footer-menu ul.text-right {
        justify-content: center !important;
    }
}



/***********************Уберём icon top для мобильных*/
/*@media (max-width: 600px) {*/
    a#scrollUp {
        display: none !important;
    }
/*}*/

/********************Скрытие доп метабоксов в админке при добавлении записей ******************************************/
#_txbdm_em_header_style_option, #_txbdm_pageid1 {
    display: none !important;
}
/********************Отступ от фото в блоге****************************************************************************/
.single-blog-content .wp-block-image {
    margin-bottom: 20px;
}