/*
Theme Name: UkrINTEI Default
Theme URI: 
Author: Dmytro Honcharenko
Author URI: 
Description: Відтворення старого вигляду сайту УкрІНТЕІ у Wordpress
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ukrintei-default
Tags: Новини, Дві колонки, Права бічна колонка, Паттерни редактора блоків, Стилі редактора блоків, Редактор сайту, translation-ready
*/

*, *::before, *::after {
    box-sizing: border-box;
}
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.43;
}


.block-logo .wp-block-media-text__content {
padding: 0;
padding-left: 15px;
}

.wp-block-polylang-language-switcher {list-style:none;
font-size:14px;
margin:0;
margin-right:30px;
background: url(https://www.ukrintei.ua/sites/default/files/lang.png) left center no-repeat;
padding-top:5px;
padding-bottom:5px;
}
/* ---для кнопок соц-мереж --- */
header svg:hover {
fill: var(--wp--preset--color--custom-color-4) !important;}
footer svg:hover {
fill: #cccccc !important;}
/* --- --- */


/* ---основна кастомізація блоків навігації --- */
.header-nav .wp-block-navigation__responsive-container-open {
border: 1px solid whitesmoke;
border-radius:3px;
padding: 4px 5px;}

.header-nav .wp-block-navigation-item__content.wp-block-navigation-item__content {
padding:15px;
}

.header-nav .wp-block-navigation__submenu-icon {
width: revert;
padding-right: 0.6em;
}
@media (max-width: 599px) {
    .header-nav.wp-block-navigation {
        gap: 15px;
    }
    .navbar-container {
justify-content:right !important;}
}

@media (min-width: 600px) {
.header-nav .wp-block-navigation__submenu-container {
box-shadow: 0 6px 12px rgba(0, 0, 0, .175);}
}

.header-nav .wp-block-navigation__submenu-container {
min-width:250px !important;
font-size:14px !important;
padding: 5px 0;
border-radius: 4px;
}

.header-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
padding:3px 20px !important;
}

.header-nav .wp-block-navigation-item:hover:not(.has-modal-open .wp-block-navigation-item)  {
background-color: var(--wp--preset--color--custom-color-4) !important;
}
.header-nav .wp-block-navigation-item__content:hover {
color: white !important;
}

.footer-nav .wp-block-navigation-item__content:hover {
color: white !important;
}


.sidebar-nav {
color: var(--wp--preset--color--custom-color-1);
gap:0;
font-size:13px;
line-height:1.43;
}
.sidebar-nav .wp-block-navigation-item__content.wp-block-navigation-item__content {
padding:3px 15px;
width:100%;
}
.sidebar-nav .wp-block-navigation-item { width:100%;}
.sidebar-nav .current-menu-item {font-weight:bold;}
.sidebar-subitem {
color:var(--wp--preset--color--custom-color-4) !important;
padding-left:15px !important;}
.sidebar-nav .wp-block-navigation-item:not(.current-menu-item) .wp-block-navigation-item__content:hover {
background-color: #f5f5f5 !important;
color:var(--wp--preset--color--custom-color-4) !important;
}
.sidebar-nav .nolink {
color:var(--wp--preset--color--custom-color-3) !important;}
/* --- --- */

.cb-hero-slider {
--wp--custom--carousel-block--navigation-size: 55px;
--wp--custom--carousel-block--navigation-sides-offset: 15%;

--wp--custom--carousel-block--pagination-top: 104%;
--wp--custom--carousel-block--pagination-bullet-size:12px; 
--wp--custom--carousel-block--pagination-bullet-inactive-color: var(--wp--preset--color--custom-color-4) !important;
--wp--custom--carousel-block--pagination-bullet-active-color: var(--wp--preset--color--custom-color-1) !important;
--wp--custom--carousel-block--pagination-bullet-inactive-hover-color: #447797 !important;
--wp--custom--carousel-block--pagination-bullet-inactive-hover-opacity: 1 !important;
}

.breadcrumbs {
background-color:#f5f5f5;
font-size:14px;
line-height:20px;
border-radius:4px;
padding: 8px 15px;
margin-bottom:20px;}

body.page .breadcrumbs a:not(.home)  {
color:#333 !important;
pointer-events:none !important;
}
.breadcrumbs .current-item {color:#777;}
.breadcrumbs #text {color: #ccc;}


.nav-calendar caption {
text-align: left;
color: var(--wp--preset--color--custom-color-1);
font-size: 24px;}

.nav-calendar th:first-letter {
color: #6c6c6c;
font-size: 18px;}
.nav-calendar th {
font-size:0;
line-height:2;
font-weight: 700;
border-style: none;
border-bottom: 1px solid #dbdbdb;}

.nav-calendar td {
border-style: none;
}


.pagination .page-numbers, .pagination .wp-block-query-pagination-next,
.pagination .wp-block-query-pagination-previous {padding: 6px 12px;
border: 1px solid #ddd;
background-color:white;}
.pagination .current {background-color:#337ab7;
color:white; border-color:#337ab7;}
.pagination a:hover {
background-color:#eee !important;}

/* --- Особлива поведінка default контенту запису--- */
.wp-block-post-featured-image + p {
    margin-block-start: 0;
}
/* --- --- */


@media (max-width: 781px) {

.cb-hero-slider .swiper-button-next {display:none !important;}
.cb-hero-slider .swiper-button-prev {display:none !important;}

.sidebar-block {
border-top: 2px solid rgb(238,238, 238) !important;
border-left: 0 !important;
margin-top: 15px !important;
padding-top: 15px !important;}

.footer-nav ul.wp-block-navigation__container {
align-items:center;}
.mobile-center {justify-content:center !important;}
.mobile-center-text {text-align:center;}

}

/* --- Таблиця на сторінці Інформаційні послуги--- */
.inf-p-table table td:nth-child(1),
.inf-p-table table th:nth-child(1) {
  width: 5%;
}
.inf-p-table table td:nth-child(3),
.inf-p-table table th:nth-child(3) {
  width: 17%;
}
@media (max-width: 684px) {
.inf-p-table table td:nth-child(3),
.inf-p-table table th:nth-child(3) {
  width: 106px;
}
}
/* --- --- */


/* --- Утилітарні класи (зміна вигляду посилань всередині певного контейнера)--- */
.link-line-hover a, .link-line-none a {text-decoration: none;}

.link-line-hover a:hover {
text-decoration: underline;}

.nolink a { pointer-events:none;}
.nolink {cursor:text;}
