/* Блок мета-информации */
.article-meta-info-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 10px 0 20px 0;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.meta-info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 120px;
    flex: 1;
}

.meta-info-icon {
    color: #1e3a8a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.meta-info-label {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 500;
}

.meta-info-value {
    font-size: 16px;
    color: #111827;
    font-weight: 600;
    line-height: 1.4;
}

.meta-info-value .update-date {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
    display: block;
    margin-top: 4px;
}

.meta-info-value .author-link {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.meta-info-value .author-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Блок информации об авторе */
.article-author-block {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img,
.author-avatar .author-custom-photo {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
}

.author-info {
    flex: 1;
}

.author-name {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.author-name a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-name a:hover {
    color: #1e40af;
}

.author-bio {
    margin-bottom: 15px;
    color: #4b5563;
    line-height: 1.6;
    font-size: 15px;
}

.author-bio p {
    margin: 0 0 10px 0;
}

.author-bio p:last-child {
    margin-bottom: 0;
}

.author-link-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #1e40af;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.author-link-btn:hover {
    background-color: #1e3a8a;
    color: #ffffff;
}

/* Блок "Зміст" */
.article-toc-block {
    margin: 30px 0;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    overflow: hidden;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    background-color: #f0f9ff;
    transition: background-color 0.2s ease;
}

.toc-header:hover {
    background-color: #e0f2fe;
}

.toc-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.toc-toggle {
    font-size: 14px;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.article-toc-block.collapsed .toc-toggle {
    transform: rotate(-90deg);
}

.toc-content {
    padding: 0 20px 16px 20px;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.article-toc-block.collapsed .toc-content {
    max-height: 0;
    padding: 0 20px;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin: 8px 0;
    line-height: 1.6;
}

.toc-item a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    padding: 4px 0;
}

.toc-item a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.toc-level-h2 {
    font-weight: 600;
    padding-left: 0;
}

.toc-level-h3 {
    font-weight: 400;
    padding-left: 20px;
    font-size: 0.95em;
}

/* Адаптивность */
@media (max-width: 768px) {
    .article-meta-info-block {
        flex-direction: column;
        gap: 16px;
    }
    
    .meta-info-item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        min-width: auto;
    }
    
    .meta-info-icon {
        margin-bottom: 0;
    }
    
    .meta-info-label {
        margin-bottom: 0;
        margin-right: auto;
    }
    
    .meta-info-value {
        margin-left: auto;
        text-align: right;
    }
    
    .article-author-block {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .author-info {
        text-align: left;
    }
}

