/*
Theme Name: SNTNKV Theme
Theme URI: https://sntnkv.ru
Author: SNTNKV
Author URI: https://sntnkv.ru
Description: Тема SNTNKV для WordPress.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sntnkv-theme
*/

:root{
    --accent-color: #5f3d9d;
    --color-bg-page: #E9ECEF;
    --color-text-main: #212529;
    --color-nav-link: #535353;
}

body{
    background-color: var(--color-bg-page);
    color: var(--color-text-main);
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.main .container{
    background: #fff;
    border-radius: 24px;
    padding: 25px;
}

.main-img img{
    width: 100%;
    border-radius: 12px;
}

.header{
    background: #fff;
    margin: 20px 0;
    border-radius: 20px;
    padding: 20px 30px;
}

.header-navigation{
    flex-flow: row;
    flex: 1 0 0;
    place-content: center space-between;
    align-items: center;
    height: min-content;
    display: flex;
    position: relative;
    overflow: visible;
}

.header-navigation-links{
    display: flex;
    gap: 20px;
}

.header-navigation-links a{
    color: var(--color-nav-link);
    text-transform: uppercase;
    text-decoration: none;
}

.header-navigation-links a:hover{
    color: var(--accent-color);
}

.nav-link{
    color: var(--color-nav-link);
    text-transform: uppercase;
    text-decoration: none;
}

.nav-link:hover{
    color: var(--accent-color);
}

.nav-link.active, .nav-item.current-menu-item > .nav-link, .nav-item.current_page_item > .nav-link{
    color: var(--accent-color) !important;
    background-color: none;
 }

.logo a{
    text-decoration: none;
    font-weight: 500;
    font-size: 24px;
    color: #000;
}

.main-page a{
    font-weight: 500;
    color: var(--color-text-main);
}
/*
.main-page a:hover{
    color: #bfbebe;
}*/

p a:hover{
    color: var(--accent-color);
}

.main-category{
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    text-align: left;
}

.main-category p:last-child{
    margin-bottom: 0;
}

.main-category p a{
    color: var(--color-text-main);
}

.main-category p a:hover{
    color: var(--accent-color);
}

.main-category-description{
    color: var(--color-nav-link);
}

.main-post{
    
}

.main-post a{
    font-weight: 500;
    color: var(--color-text-main);
}

.main-post a:hover{
    color: var(--accent-color);
}

.main-post-header{
    background: #fff;
    border-radius: 20px;
    padding: 20px;
}

.main-post-header img{
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.main-post-header-category{
    gap: 15px;
    display: flex;
}

.main-post-header-category a{
    background: #f7f5f1;
    color: var(--color-nav-link);
    padding: 5px 10px;
    border-radius: 10px;
    text-decoration: none;
}

.main-post-header-category a:hover{
    color: var(--color-text-main);
}

.main-post-container{
    margin: 20px 0;
}

.main-post-content{
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
}

.main-post-sidebar{
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.main-page{

}

.main-page-header{
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.main-page-container{
    margin: 20px 0;
}

.main-page-content{
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
}

.main-page-sidebar{
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.posts-list{
    margin: 20px 0;
}

.posts-list a{
    background: #fff;
    display: block;
    padding: 20px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.posts-list a:hover{
    /*background: #f7f5f1;*/
    transform: translateY(-4px);
}

.posts-list a span{
    display: block;
    font-size: 18px;
}

.posts-list img{
    width: 100%;
    border-radius: 15px;
    margin-bottom: 10px;
}

.footer{
    background: #131313;
    margin: 20px 0;
    border-radius: 20px;
    padding: 30px;
    color: #fff;
}

.footer span{
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.68px;
    line-height: 20.02px;
    color: #d4af37;
}

.footer-links{
    margin-bottom: 20px;
}

.footer-links a{
    color: #aaa;
    text-decoration: none;
    display: flex;
}

.footer-links a:hover{
    color: #fff;
}

.main-hero{
    /*background: #7A7B76;
    background: linear-gradient(90deg, rgba(122, 123, 118, 1) 0%, rgba(160, 160, 157, 1) 49%, rgba(103, 101, 90, 1) 100%);
    border-radius: 20px;
    padding: 25px;
    color: #fff;*/
    background-color: #ffffff;
    border: 3px solid #dee2e6;
    border-bottom: 3px solid var(--accent-color);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: left;
}

.main-hero a{
    color: var(--color-text-main);
}

..main-hero a:hover{
    color: var(--accent-color);
}

.wp-block-image img{
    border-radius: 15px;
}

blockquote{
    /*background: #7A7B76;
    background: linear-gradient(90deg, rgba(122, 123, 118, 1) 0%, rgba(160, 160, 157, 1) 49%, rgba(103, 101, 90, 1) 100%);
    border-radius: 20px;
    padding: 25px;
    color: #fff;*/
    background-color: #f8f9fa;
    /*border: 2px solid #dee2e6;*/
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 25px;
}

blockquote p:last-child{
    margin-bottom: 0;
}

.site-logo img {
	display: block;
    max-width: 200px;
    height: auto;
}

.burger-menu {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 30px;
	height: 25px;
	cursor: pointer;
	margin-left: auto;
}

.burger-line {
	display: block;
	width: 100%;
	height: 5px;
	background-color: var(--color-text-main);
	border-radius: 2px;
	transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
	.burger-menu {
		display: flex;
	}

	.navbar-nav {
		padding-top: 1rem;
		/*padding-bottom: 1rem;*/
		gap: 0.75rem;
	}
}

.burger-menu.active .burger-line:nth-child(1) {
	transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active .burger-line:nth-child(2) {
	opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -7px);
}

.dropdown-submenu {
	position: relative;
}

.dropdown-submenu .dropdown-menu {
	top: 0;
	left: 100%;
	margin-top: -6px;
	border-radius: 0 0.375rem 0.375rem 0.375rem;
}

.nav-link.active,
.nav-item.current-menu-item > .nav-link,
.nav-item.current_page_item > .nav-link {
	
}

@media (max-width: 991.98px) {
	.dropdown-submenu .dropdown-menu {
		position: static;
		float: none;
		width: auto;
		margin-top: 0;
		background-color: transparent;
		border: none;
		box-shadow: none;
		padding-left: 1.5rem;
	}

	.dropdown-submenu .dropdown-menu .nav-link {
		padding: 0.25rem 1rem;
		color: var(--color-text-main);
	}

    .dropdown-menu.show{
        padding: 0 15px;
        border: 2px solid #dee2e6;
        border-radius: 10px;
    }
}



.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  color: #000000;
}

.wp-block-table table th,
.wp-block-table table td {
  padding: 10px 12px;
  border: 3px solid #dfdfdf;
  text-align: left;
}

.wp-block-table table th {
  font-weight: bold;
}


input{
    border-radius: 10px;
    padding: 5px;
    border: 3px solid #bfbebe;
    margin-bottom: 15px;
}

#sidebar ul{
    list-style: none;
    padding: 0;
}

.post-tags a{
    background: #f7f5f1;
    color: var(--color-nav-link);
    padding: 5px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
}

.post-tags a:hover{
    color: var(--color-text-main);
}

.wp-block-latest-posts__post-title{
    display: block;
    width: 100%;
    text-decoration: none;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    border: 2px solid #dee2e6;
}

.wp-block-latest-posts__post-title:hover{
    background: #dee2e6;
}

.main-post .wp-block-latest-posts__post-title:hover{
    color: #000;
}



/*Diagnostika Theme*/
.main-links a{
    background: #fff;
    display: block;
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    font-size: 22px;
    text-decoration: none;
    color: #000;
    border: 3px solid #dee2e6;
    margin-bottom: 20px;    
    transition: transform 0.2s ease;
}

.main-links a:hover{
    transform: translateY(-4px);
}

/* Плавная прокрутка */
html {
	scroll-behavior: smooth;
}

/* Оглавление */
.post-toc {
	padding: 20px;
    border-radius: 20px;
    background: #dee2e6;
    margin-bottom: 15px;
}

.post-toc span {
	display: block;
}

.post-toc ul {
	padding-left: 0;
}

.post-toc li {
	margin-bottom: 0.25rem;
}

.post-toc a {
	text-decoration: none;
}

.post-toc a:hover {
	color: var(--accent-color);
}


@media (min-width: 768px) {
    .post-toc .row {
		gap: 1.5rem; /* отступ только на md+ */
	}
	.post-toc .col-md-6 {
		flex: 0 0 calc(50% - 0.75rem); /* компенсация gap */
		max-width: calc(50% - 0.75rem);
	}
}

/* Оглавление: gap только на планшетах и выше */
.post-toc .row {
	gap: 0; /* по умолчанию — без отступа */
}