/* Ensure Page Container & Footer are Full Width */
body.single-post #page,
body.single-post .site {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-post footer,
body.single-post .site-footer,
body.single-post #site-footer,
body.single-post .footer-inner,
body.single-post .dynamic-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Single Post Two-Column Layout Styles (Main Content Container Only) */
body.single-post .site-main.single-post-two-col-layout,
.single-post-two-col-layout {
    max-width: 1240px !important;
    width: 100% !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    box-sizing: border-box;
    overflow: visible !important;
}

.single-post-container {
    display: flex;
    gap: 40px;
    align-items: stretch !important;
    width: 100%;
    overflow: visible !important;
}

/* Left Column - Main Content */
.single-post-left-col {
    flex: 1;
    min-width: 0;
}

.single-post-featured-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.single-post-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    margin: 0 0 24px 0;
    font-family: inherit;
}

.single-post-body-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444444;
}

.single-post-body-content p {
    margin-bottom: 22px;
}

.single-post-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Right Column - Recent Posts Sidebar */
.single-post-right-col {
    width: 360px;
    flex-shrink: 0;
    position: relative !important;
    align-self: stretch !important;
    overflow: visible !important;
}

/* Recent Posts Card - Sticky Element */
.recent-posts-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 110px !important;
    z-index: 90 !important;
}

.recent-posts-heading {
    font-size: 24px;
    font-weight: 800;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px 0;
    position: relative;
    line-height: 1.2;
}

.recent-posts-accent-bar {
    display: block;
    width: 42px;
    height: 3px;
    background-color: #ff5722;
    margin-top: 8px;
    margin-bottom: 24px;
    border-radius: 2px;
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
}

.recent-post-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.recent-post-thumb-link {
    display: block;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f4f4f4;
}

.recent-post-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.recent-post-thumb-link:hover .recent-post-thumb-img {
    transform: scale(1.06);
}

.recent-post-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    background-color: #f0f2f5;
}

.recent-post-details {
    flex: 1;
    min-width: 0;
}

.recent-post-item-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px 0;
    text-transform: uppercase;
}

.recent-post-item-title a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-item-title a:hover {
    color: #ff5722;
}

.recent-post-item-date {
    font-size: 13px;
    color: #888888;
    display: block;
    font-weight: 400;
}

/* Responsive Layout */
@media (max-width: 991px) {
    .single-post-container {
        flex-direction: column;
        gap: 35px;
    }

    .single-post-right-col {
        width: 100%;
        position: static !important;
    }

    .recent-posts-card {
        position: static !important;
    }
}
