/*
Theme Name: Dmitri Wiebe
Author: Yana P.
Version: 1.0
License: GPL v2 or later
*/

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght,CRSV@100..900,0&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
	--primary-color: #6600b0;
	--text-color:#121212;
	--gray-color:#5b5b5b;
	--dark-gray:#332d2d;
	
	
	--bs-nav-link-font-size:1rem;
	--bs-nav-link-color: #332d2d;
	--bs-navbar-active-color: #852cc6;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

body, html, p, span, div, a, li, button, input, select, textarea, .navbar, .nav-link, .btn {
    font-family: 'Inter', sans-serif;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Geologica', sans-serif;
    font-weight: 600; 
	color: var(--primary-color);
}
a {
	color: var(--primary-color);
	transition: all 0.3s ease-in-out;
}
a:hover {
	color:#852cc6;
}
.btn {
	background: var(--primary-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
	transition: background 0.3s ease-in-out;
	border-color: var(--primary-color);
	font-size: 16px;
}
.btn:hover {
	color: #fff;
	    background: #852cc6;
		border-color:  #852cc6;
}
.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
	background:  #852cc6;
	border-color:  #852cc6;
}
.custom-logo {
            max-width: 200px;
            max-height: 50px;
            width: auto;
            height: auto;
            object-fit: contain;
        }
        
        .navbar-brand {
            padding: 0;
            display: flex;
            align-items: center;
        }
        
        .navbar-brand .custom-logo-link {
            display: inline-block;
            line-height: 1;
        }
      
.form-control:focus {
	box-shadow: none;
	border-color: var(--dark-gray);
}

.text-bold {
	font-weight: 700; 
}


footer {
	background: var(--dark-gray);
    color: #fff;
}
.footer-menu a{
	color: #fff;
    text-decoration: none;
}

.footer-menu a:hover{
	color: #cfb0e5;
}
.nav-link {
	color: var(--dark-gray);
}

.nav-link:hover, .navbar-nav .nav-link.active:hover, .navbar-nav .nav-link.show:hover{
	color:#852cc6;
}

.dropdown-toggle::after {
	vertical-align: middle;
}
.dropdown-item:focus, .dropdown-item:hover {
	color:#852cc6;
}
.dropdown-item.active, .dropdown-item:active {
	color: #852cc6;
    background: inherit;
}
header {
	border-bottom: 1px solid #ccc;
}
.dropdown-item  {
	padding: 0.5rem 1rem;
}

.navbar-toggler.collapsed .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28102, 0, 176, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28102, 0, 176, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M8 8L22 22M22 8L8 22'/%3e%3c/svg%3e") !important;
}

 .navbar-toggler{
border: 1px solid #ccc;
}
.navbar-toggler:focus {
	box-shadow: none;
}

.wp-block-table thead {
	       border-bottom-color: #852cc6;
    background: #852cc6;
    color: #fff;
}
.wp-block-table thead tr {
	border: 1px solid #852cc6;
}
 .wp-block-table thead th:last-child {
            border-right: none;
        }
		
		
		 .wp-block-table thead th:first-child {
            border-left: none;
        }
ul.wp-block-list {
    list-style: none;
    padding-left: 0;
}

ul.wp-block-list li {

    padding-left: 1.5em;

}

ul.wp-block-list li::before {
content: "•";
    color: var(--primary-color);
    margin-right: 0.5rem;

    font-size: 1.2rem;
}


ol.wp-block-list {
    list-style: none;
    padding-left: 0;
    counter-reset: item;
}

ol.wp-block-list li {
    counter-increment: item;
      padding-bottom: 0.5rem;
    padding-left: 1.5em;
  
}

ol.wp-block-list li::before {
    content: counter(item) ".";
    color: #6600b0;
    margin-right: 0.5rem;
	text-align: center;
    display: inline-block;
    
}

.wp-block-quote {
    border-left: .25em solid;
    margin: 0 0 1.75em;
    padding: 0.5rem 0 0.3rem 1rem;
	border-color: var(--primary-color);
}

.search-form {
	max-width: 450px;
}

.image-404 img{
	border-radius:24px;
	    max-height: 600px;
}
.error404 h1 {
	color: #6600b0;

}

.single-thumbnail{
	border-radius: 24px;
    overflow: hidden;
}
.breadcrumbs a {
	text-decoration: none;
}

.breadcrumb_last {
	color: var(--bs-secondary-color);
}

.post-card  .wp-post-image{
	    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
	
}
.post-card {
	border-radius: 24px;
}
.post-card .card-title a{
	color: var(--text-color);
}
.post-card .card-title a:hover {
	color: #852cc6;
}
.post-card .img-link {
	    border-radius: 24px;
    overflow: hidden;
}
.post-card .wp-post-image {
    transition: transform 0.3s ease-in-out;
}

.post-card:hover .wp-post-image{
    transform: scale(1.05);
}
.page-item a {
	color:var(--primary-color);
	transition: all 0.3s ease-in-out;
}
.page-item a:hover {
	color: #852cc6;
	background-color: #f8f9fa;
	font-weight: 600;
    
}
.active>.page-link, .page-link.active {
	background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link:focus {
	    box-shadow: none;
background-color: transparent;
}

.preview-block {
	background: var(--dark-gray);
	
}
.preview-block-image img{
	    border-radius: 24px;
    overflow: hidden;
}
.preview-block-image-source a.text-light:hover {
	color: #cfb0e5!important;
}
.swiper-pagination-bullet-active {
	background: var(--primary-color);
}
.quote-block {
	
    border: 1px solid #0000002d;
    border-radius: 24px;
    overflow: hidden;
    margin: 2rem 0;
}
.quote-block  .wp-block-group__inner-container {
	padding: 2rem;
}
/*adaptive*/
@media (max-width: 1201px) {
.navbar-collapse {
    position: absolute;
	max-width:460px;
    top: 100%;
    /*left: 0;*/
    right: 0;
    background: white; /* Цвет фона меню */
    z-index: 1050; 
    max-height: calc(100vh - 100px); 
    overflow-y: auto; 
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Тень для выделения */
}
.navbar-nav .dropdown-menu {
	border:none;
}
    .wp-block-media-text.quote-block {
        display: block; 
    }
	
	.wp-block-media-text.quote-block>.wp-block-media-text__content {
		padding: 0 2rem;
	}

}
@media (min-width: 1201px) {
  
    .dropdown .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: opacity 0.25s ease, 
                    visibility 0.25s ease, 
                    transform 0.5s ease;
        pointer-events: none;
        margin-top: 0;
    }
    
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .dropdown .dropdown-toggle:active {
        pointer-events: none;
    }
    
    .dropdown-menu .dropdown .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateX(15px);
        transition: opacity 0.25s ease, 
                    visibility 0.25s ease, 
                    transform 0.25s ease;
        pointer-events: none;
        left: 100%;
        top: 0;
        margin-top: 0;
        display: block;
    }
    
    .dropdown-menu .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }
    
    .dropdown-menu .dropdown .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown .dropdown-toggle::after {
        transition: transform 0.25s ease;
    }
    
    .dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        transition-delay: 0s;
    }
    
    .dropdown:hover .dropdown-menu {
        transition-delay: 0.05s;
    }

    .dropdown:not(:hover) .dropdown-menu {
        transition-delay: 0s;
    }
}


	   
        @media (max-width: 768px) {
            .custom-logo {
                max-width: 150px;
                max-height: 40px;
            }
			.error404 .search-form {
	margin:auto;
}
.image-404 img {
    border-radius: 16px;
    max-height: 400px;
}
.wp-post-image {
	border-radius:16px;
}
        }
		
		  @media (max-width: 580px) {
         
        }
		
		  @media (max-width: 480px) {
         .navbar-collapse {
			 width: 100%;
			 max-width: none;
		 }
        }