.single-layout {
    display: grid;
    grid-template-columns: 70% 1fr;
    gap: 30px;
    align-items: start;
}

.single-article {
    background-color: #f5f5f5;
}

.single-body {
    padding: 20px;
}

.single-sidebar {
    background-color: #f5f5f5;
    padding: 20px;
    min-height: 200px;
    position: sticky;
    top: 20px;
}

.single-image__img {
    width: 100%;
    height: auto;
    display: block;
}

.single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    margin-bottom: 16px;
}

.single-meta__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-color);
}

.single-meta__item svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.single-meta__item + .single-meta__item::before {
    content: '|';
    color: #ccc;
    margin: 0 10px;
}

.single-meta__author,
.single-meta__categories a {
    color: var(--text-color);
    transition: color 200ms ease;
}

.single-meta__author:hover,
.single-meta__categories a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.single-title {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.25;
    margin: 0 0 32px;
}

.single-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
    margin: 36px 0 16px;
}

.single-content h1 {
    font-size: 32px;
}

.single-content h2 {
    font-size: 26px;
}

.single-content h3 {
    font-size: 22px;
}

.single-content h4 {
    font-size: 18px;
}

.single-content h5 {
    font-size: 16px;
}

.single-content h6 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.single-content p {
    margin: 0 0 20px;
    line-height: 1.8;
}

.single-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 200ms ease;
}

.single-content a:hover {
    color: var(--secondary-color);
}

.single-content strong,
.single-content b {
    font-weight: 700;
    color: var(--secondary-color);
}

.single-content em,
.single-content i {
    font-style: italic;
}

.single-content ul,
.single-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.single-content ul {
    list-style: none;
    padding-left: 0;
}

.single-content ul li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 8px;
}

.single-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
}

.single-content ol {
    list-style: decimal;
}

.single-content ol li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.single-content ol li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

.single-content blockquote {
    margin: 30px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--primary-color);
    background-color: #f5f5f5;
    font-size: 17px;
    font-style: italic;
    color: var(--secondary-color);
}

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

.single-content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 36px 0;
}

.single-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px auto;
}

.single-content figure {
    margin: 24px 0;
}

.single-content figcaption {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 4px;
}

.single-content .wp-caption {
    max-width: 100%;
    margin: 24px auto;
    display: block;
}

.single-content .wp-caption img {
    display: block;
    margin: 0;
}

.single-content .wp-caption-text {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin: 4px 0 0;
    padding: 0;
    line-height: 1.5;
    font-style: italic;
}

.single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.single-content table th,
.single-content table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.single-content table th {
    background-color: var(--secondary-color);
    color: var(--white-color);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.single-content table tbody tr:nth-child(even) {
    background-color: #f5f5f5;
}

.single-content table tbody tr:hover {
    background-color: #ebebeb;
}

.single-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    background-color: #f0f0f0;
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 0;
}

.single-content pre {
    background-color: var(--secondary-color);
    color: #f0f0f0;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 13px;
    line-height: 1.7;
}

.single-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.author-profile {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 30px;
    background-color: #f5f5f5;
    margin-bottom: 10px;
}

.author-profile__avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.author-profile__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-profile__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.author-profile__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--primary-color);
}

.author-profile__name {
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.author-profile__bio {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

.author-box {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 24px;
    padding-top: 40px;
    background-color: var(--white-color);
    border-top: 3px solid #e0e0e0;
}

.author-box__img {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    display: block;
}

.author-box__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.author-box__header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-box__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--primary-color);
}

.author-box__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
}

.author-box__bio {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

.author-box__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    transition: gap 200ms ease, color 200ms ease;
}

.author-box__link:hover {
    color: var(--secondary-color);
    gap: 10px;
    text-decoration: none;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--secondary-color);
    margin: 0 0 16px;
    padding-bottom: 10px;
    position: relative;
    width: fit-content;
}

.sidebar-widget__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-post {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    transition: opacity 200ms ease;
}

.sidebar-post:hover {
    opacity: 0.8;
    text-decoration: none;
}

.sidebar-post__image {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    overflow: hidden;
}

.sidebar-post__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease;
}

.sidebar-post:hover .sidebar-post__img {
    transform: scale(1.05);
}

.sidebar-post__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.sidebar-post__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.4;
}

.sidebar-post__date {
    font-size: 11px;
    color: var(--text-color);
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sidebar-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: transparent;
    color: var(--secondary-color);
    border: 1.5px solid var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 200ms ease, color 200ms ease;
}

.sidebar-tag:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
}

@media (max-width: 992px) {
    .single-layout {
        grid-template-columns: 1fr;
    }

    .single-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        padding-top: 30px;
    }

    .author-profile {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .author-profile__name {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .single-body {
        padding: 16px;
    }

    .single-content h1 { font-size: 24px; }
    .single-content h2 { font-size: 20px; }
    .single-content h3 { font-size: 18px; }

    .single-content table {
        font-size: 13px;
    }

    .single-content table th,
    .single-content table td {
        padding: 8px 10px;
    }

    .author-box {
        padding: 16px;
        padding-top: 24px;
    }
}
