/* ==========================================================================
   SINGLE POST LAYOUT & TYPOGRAPHY
   ========================================================================== */
.single-post-wrapper {
    background-color: #ffffff;
    padding: 60px 0 100px;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
}

.single-post-main-content {
    display: flex;
    flex-direction: column;
    max-width: 960px;
    margin: 0 auto;
}

/* Pages without a sidebar should keep filling the full container width
   instead of being capped and left-aligned at 960px. */
.single-post-main-content--full {
    max-width: 100%;
}

.single-post-article {
    display: flex;
    flex-direction: column;
}

/* Metadata at the top */
.post-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.post-meta-top .post-category {
    color: #b38332;
    font-weight: 800;
}

.post-meta-top .post-date-sep {
    color: #dddddd;
}

.post-meta-top .post-date {
    color: #777777;
    font-weight: 500;
}

/* Post Title */
.single-post-article .post-title {
    font-size: 44px;
    font-weight: 800;
    color: #095627;
    line-height: 1.25;
    margin: 0 0 30px 0;
    letter-spacing: -0.02em;
}

/* Featured Image */
.post-featured-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(9, 86, 39, 0.06);
}

.post-featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Entry Content Styles */
.post-entry-content {
    font-size: 18px;
    line-height: 1.85;
    color: #333333;
    font-weight: 400;
}

.post-entry-content p {
    margin-top: 0;
    margin-bottom: 24px;
    text-align: justify;
}

.post-entry-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: #095627;
    margin: 45px 0 20px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.post-entry-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #095627;
    margin: 35px 0 15px;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.post-entry-content ul, 
.post-entry-content ol {
    padding-left: 24px;
    margin-top: 0;
    margin-bottom: 24px;
}

.post-entry-content ul li {
    list-style-type: disc;
    margin-bottom: 10px;
}

.post-entry-content ol li {
    list-style-type: decimal;
    margin-bottom: 10px;
}

.post-entry-content li {
    font-size: 18px;
    color: #333333;
    line-height: 1.8;
}

.post-entry-content li strong {
    color: #111111;
}

.post-entry-content blockquote {
    border-left: 4px solid #b38332;
    padding: 20px 30px;
    margin: 35px 0;
    background-color: #fcf9f4;
    font-style: italic;
    font-size: 20px;
    color: #555555;
    border-radius: 0 8px 8px 0;
}

.post-entry-content blockquote p {
    margin: 0;
}

.post-entry-content strong, 
.post-entry-content b {
    color: #111111;
    font-weight: 700;
}

.post-entry-content a {
    color: #b38332;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px solid rgba(179, 131, 50, 0.2);
    transition: all 0.2s ease;
}

.post-entry-content a:hover {
    color: #095627;
    border-color: rgba(9, 86, 39, 0.4);
}

.post-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
}

/* Post Footer / Actions (Share & Back) */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 36px;
    margin-top: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f7faf8 100%);
    border: 1px solid rgba(9, 86, 39, 0.08);
    border-radius: 20px;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(9, 86, 39, 0.03);
}

.post-share-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-title {
    font-size: 13px;
    font-weight: 700;
    color: #095627;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #095627;
    background-color: #f0f5f2;
    border: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.share-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(9, 86, 39, 0.15);
}

.share-btn:hover svg {
    transform: scale(1.1);
}

.share-fb:hover {
    background-color: #3b5998;
}

.share-tw:hover {
    background-color: #1da1f2;
}

.share-mail:hover {
    background-color: #b38332;
}

.post-back-to-archive .back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: #095627;
    border: 1px solid #095627;
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(9, 86, 39, 0.15);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.post-back-to-archive .back-link svg {
    width: 18px;
    height: 14px;
    transition: transform 0.3s ease;
}

.post-back-to-archive .back-link:hover {
    background-color: #b38332;
    border-color: #b38332;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(179, 131, 50, 0.3);
    transform: translateY(-2px);
}

.post-back-to-archive .back-link:hover svg {
    transform: translateX(-4px);
}

/* Post Navigation (Prev/Next) */
.post-navigation-siblings {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
    padding: 0;
}

.nav-card {
    flex: 1 1 300px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #ffffff 0%, #fafcfa 100%);
    border: 1px solid rgba(9, 86, 39, 0.08);
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(9, 86, 39, 0.02);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-prev-card {
    justify-content: flex-start;
}

.nav-next-card {
    justify-content: flex-end;
    text-align: right;
}

.nav-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.nav-card-label {
    font-size: 11px;
    font-weight: 800;
    color: #b38332;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
}

.nav-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #095627;
    line-height: 1.4;
    transition: color 0.3s ease;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nav-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f5f2;
    color: #095627;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-card-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Hover States */
.nav-card:hover {
    background: #ffffff;
    border-color: rgba(9, 86, 39, 0.15);
    box-shadow: 0 20px 40px rgba(9, 86, 39, 0.08);
    transform: translateY(-4px);
}

.nav-card:hover .nav-card-title {
    color: #b38332;
}

.nav-card:hover .nav-card-arrow {
    background-color: #095627;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(9, 86, 39, 0.2);
}

.nav-prev-card:hover .nav-card-arrow svg {
    transform: translateX(-4px);
}

.nav-next-card:hover .nav-card-arrow svg {
    transform: translateX(4px);
}

/* Page Links */
.page-links {
    margin-top: 30px;
    font-size: 16px;
    font-weight: 700;
    color: #777777;
}

/* Responsive CSS */
@media (max-width: 1024px) {
    .single-post-main-content {
        order: 1;
        max-width: 100%;
    }
    
    .tin-tuc-sidebar {
        order: 2;
    }
    
    .single-post-article .post-title {
        font-size: 36px;
    }
    
    .post-entry-content {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .single-post-wrapper {
        padding: 40px 0 60px;
    }
    
    .single-post-article .post-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .post-meta-top {
        margin-bottom: 10px;
    }
    
    .post-featured-image-wrapper {
        margin-bottom: 25px;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 20px;
    }
    
    .post-share-section {
        justify-content: space-between;
        width: 100%;
    }
    
    .post-back-to-archive {
        width: 100%;
    }
    
    .post-back-to-archive .back-link {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .post-navigation-siblings {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-card {
        padding: 24px 20px;
    }
    
    .nav-next-card {
        text-align: left;
        flex-direction: row-reverse;
    }
    
    .nav-next-card .nav-card-body {
        align-items: flex-start;
    }
}
