/* Основные стили для single.php */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Хлебные крошки */
.breadcrumb-wrapper {
    margin-bottom: 25px;
    padding-top: 10px;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.breadcrumb-link:hover {
    color: #333;
    background: #ffd952;
    border-color: #ffd952;
    transform: translateX(-3px);
}

.breadcrumb-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.breadcrumb-link:hover .breadcrumb-icon {
    transform: translateX(-3px);
}

/* Упрощенный заголовок */
.post-header-simple {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.post-title-main {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.post-title-main:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffd952, #ffed99);
    border-radius: 2px;
}
	
	.blog-single {
		padding: 120px 0 0 0;
	}

.post-meta-simple {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
    font-size: 1rem;
    flex-wrap: wrap;
}

.post-date {
    font-weight: 500;
}

.post-separator {
    color: #ccc;
}

.post-views {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #555;
}

.eye-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Обложка с закругленными краями */
.featured-image-container {
    margin: 40px 0 30px 0;
    text-align: center;
}

.featured-image-rounded {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
height: 400px;
    object-fit: cover;
}

/* Блок автора */
.author-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0 0 40px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px solid #e9ecef;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.author-block:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.author-avatar {
    flex-shrink: 0;
}

.author-image-rounded {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffd952;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    background: #ffd952;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-name {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 700;
}

.author-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Блок консультации */
.consultation-section {
    position: relative;
    margin: 50px 0;
    padding: 50px 30px;
    background-color: #FFD952;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 217, 82, 0.3);
}

.content-wrapper {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 30px;
    line-height: 1.5;
}

.consult-btn {
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    color: #242424;
    text-decoration: none;
    border: 2px solid #242424;
    border-radius: 50px;
    display: block;
    width: 320px;
    margin: 26px auto 0px auto;
    padding: 15px 0px;
    background-color: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.consult-btn:hover {
    background-color: #242424;
    color: #FFD952;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Декоративные элементы консультации */
.decoration-child {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    height: 90%;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

.decoration-child img {
    height: 100%;
    max-height: 250px;
    object-fit: contain;
}

/* Анимация */
@keyframes float {
    0% { transform: translateY(-50%); }
    50% { transform: translateY(-55%); }
    100% { transform: translateY(-50%); }
}

/* Контент статьи с увеличенным шрифтом и отступами */
.entry-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    margin: 40px 0;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 25px 0;
    color: #333;
    padding-left: 15px;
    border-left: 4px solid #ffd952;
}

.entry-content h3 {
    font-size: 1.5rem;
    margin: 35px 0 20px 0;
    color: #444;
}

.entry-content ul,
.entry-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 12px;
}

.entry-content a {
    text-decoration: none;
    color: #2c5282;
    border-bottom: 2px solid #ffd952;
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: #1a365d;
    border-bottom-color: #2c5282;
}

/* Стили для EZ-TOC - Модернизированная версия */
.post-toc-wrapper {
    margin: 40px 0 50px 0;
    padding: 0;
    background: transparent !important;
}

.ez-toc-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: 2px solid #e9ecef !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

.ez-toc-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-3px) !important;
}

.ez-toc-title-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #ffd952 !important;
}

.ez-toc-title {
    font-size: 1.7rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: inherit !important;
    position: relative !important;
    padding-left: 20px !important;
}

.ez-toc-title-toggle {
    display: none !important;
}

/* Стили для списка оглавления */
.ez-toc-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.ez-toc-list-level-1 {
    counter-reset: toc-counter !important;
}

.ez-toc-heading-level-2 {
    position: relative !important;
    margin-bottom: 15px !important;
    padding-left: 0 !important;
    counter-increment: toc-counter !important;
}

.ez-toc-link {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #444 !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    padding: 10px 15px 10px 20px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    position: relative !important;
    margin-left: 0 !important;
}

.ez-toc-link:hover {
    color: #333 !important;
    background: rgba(255, 217, 82, 0.15) !important;
    border-color: #ffd952 !important;
    padding-left: 50px !important;
}

/* Стили для активного пункта при прокрутке */
.ez-toc-link.active {
    color: #333 !important;
    background: rgba(255, 217, 82, 0.25) !important;
    border-color: #ffd952 !important;
    font-weight: 600 !important;
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .post-title-main {
        font-size: 2.2rem;
    }
    
    .post-title-main:after {
        height: 2px;
    }
    
    /* Блок автора адаптивность */
    .author-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        margin: 30px 0 40px 0;
    }
    
    .author-image-rounded {
        width: 100px;
        height: 100px;
    }
    
    .author-name {
        font-size: 1.3rem;
    }
    
    .author-description p {
        font-size: 1rem;
    }
    
    /* Блок консультации адаптивность */
    .consultation-section {
        padding: 40px 20px;
        margin: 40px 0;
        text-align: center;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .consult-btn {
        width: 280px;
        padding: 12px 0;
        font-size: 18px;
        margin: 20px auto 0;
    }
    
    .decoration-child {
        display: none;
    }
    
    .breadcrumb-link {
        font-size: 0.95rem;
        padding: 6px 12px;
    }
    
    .post-meta-simple {
        gap: 10px;
        font-size: 0.95rem;
    }
    
    .post-views {
        padding: 5px 12px;
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .eye-icon {
        width: 14px;
        height: 14px;
    }
    
    .entry-content {
        font-size: 1.15rem;
        line-height: 1.7;
    }
    
    .featured-image-rounded {
        border-radius: 15px;
    }
    
    /* EZ-TOC адаптивность */
    .ez-toc-container {
        padding: 20px !important;
        border-radius: 12px !important;
    }
    
    .ez-toc-title {
        font-size: 1.2rem !important;
        padding-left: 30px !important;
    }
    
    .ez-toc-title:before {
        font-size: 1.3rem !important;
    }
    
    .ez-toc-link {
        font-size: 1rem !important;
        padding: 8px 12px 8px 40px !important;
    }
    
    .ez-toc-heading-level-2:before {
        width: 28px !important;
        height: 28px !important;
        font-size: 1rem !important;
    }
}

@media screen and (max-width: 576px) {
    .post-title-main:before {
        width: 200px;
        top: 10px;
    }
    
    .breadcrumb-wrapper {
        margin-bottom: 20px;
    }
    
    /* Блок консультации для маленьких экранов */
    .consultation-section {
        padding: 30px 15px;
        margin: 30px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .consult-btn {
        width: 250px;
        padding: 10px 0;
        font-size: 16px;
        margin: 15px auto 0;
    }
}
	
@media screen and (max-width: 480px) {
    .post-title-main {
        font-size: 1.8rem;
    }
	
    .post-meta-simple {
        gap: 15px;
    }
    
    .post-separator {
        display: none;
    }
    
    .post-views {
        font-size: 0.85rem;
        padding: 4px 10px;
        gap: 5px;
    }
    
    .eye-icon {
        width: 12px;
        height: 12px;
    }
    
    /* Блок автора адаптивность для мобильных */
    .author-block {
        padding: 15px;
        margin: 25px 0 35px 0;
    }
    
    .author-image-rounded {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    .author-name {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .author-description p {
        font-size: 0.95rem;
    }
    
    .breadcrumb-link {
        font-size: 0.9rem;
        padding: 5px 10px;
        gap: 6px;
    }
    
    .breadcrumb-icon {
        width: 14px;
        height: 14px;
    }
    
    .entry-content {
        font-size: 1.1rem;
    }
    
    .entry-content h2 {
        font-size: 1.6rem;
        padding-left: 10px;
        margin: 30px 0 20px 0;
    }
    
    /* EZ-TOC адаптивность */
    .ez-toc-container {
        padding: 15px !important;
    }
    
    .ez-toc-title {
        font-size: 1.1rem !important;
        padding-left: 25px !important;
    }
    
    .ez-toc-link {
        font-size: 0.95rem !important;
        padding: 6px 10px 6px 35px !important;
    }
}