/**
 * Blog Single Post Styles
 * Extracted from single.php template
 *
 * @package TravelerChildTheme
 * @since 2.0.0
 */

/* Override global body color for blog pages */
body.single-post {
    color: #212529!important;
}

/* Post Hero */
#primary.site-main .post-hero {
    background: #ffffff;
    padding: 40px 0 24px;
    border-bottom: 1px solid #e9ecef;
}

/* Medium-style constrained containers */
#primary.site-main .post-hero .container,
#primary.site-main .post-content-area .container,
#primary.site-main .related-posts-section .container {
    max-width: 760px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Hero container - single column, no author card */
#primary.site-main .post-hero-left {
    max-width: 100%;
}

#primary.site-main .post-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
    margin-bottom: 20px;
}

#primary.site-main .post-subtitle {
    font-size: 20px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 24px;
}

#primary.site-main .post-meta-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6c757d;
}

#primary.site-main .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

#primary.site-main .meta-item strong {
    font-weight: 500;
    color: #6c757d;
}

#primary.site-main .meta-category-link {
    color: #324fbe;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

#primary.site-main .meta-category-link:hover {
    color: #2a3f9e;
    text-decoration: underline;
}

/* Medium-Style CTA Banner */
#primary.site-main .blog-top-cta {
    max-width: 760px;
    margin: 24px auto 32px;
    padding: 0 24px;
}

#primary.site-main .blog-top-cta__link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    padding: 16px 20px;
    color: #333333;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#primary.site-main .blog-top-cta__icon {
    margin-top: 2px;
    color: #f4b000;
    font-size: 18px;
    flex-shrink: 0;
}

#primary.site-main .blog-top-cta__text {
    font-size: 15px;
    line-height: 1.5;
}

#primary.site-main .blog-top-cta__highlight {
    color: #2d7a2d;
    font-weight: 600;
}

#primary.site-main .blog-top-cta__link:hover {
    background: #e9ecef;
    border-color: #dddddd;
    box-shadow: none;
}

#primary.site-main .blog-top-cta__link:focus-visible {
    outline: 2px solid #324fbe;
    outline-offset: 3px;
}

/* Featured Image */
#primary.site-main .featured-image-container {
    padding: 24px 0 40px;
    background: #ffffff;
}

#primary.site-main .featured-image-wrapper {
    max-width: 680px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
}

#primary.site-main .featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Content Area */
#primary.site-main .post-content-area {
    padding: 60px 0;
}

/* UPDATED: single centered column instead of 2-col grid */
#primary.site-main .content-layout {
    max-width: 680px;
    margin: 0 auto;
}

/* Article Content */
#primary.site-main .article-content {
    max-width: 100%;
}

#primary.site-main .article-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.3;
}

#primary.site-main .article-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #212529;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

#primary.site-main .article-content p {
    font-size: 17px;
    line-height: 1.7;
    color: #212529;
    margin-bottom: 24px;
}

#primary.site-main .article-content ul,
#primary.site-main .article-content ol {
    font-size: 17px;
    line-height: 1.7;
    color: #212529;
    margin-bottom: 24px;
    padding-left: 28px;
}

#primary.site-main .article-content li {
    margin-bottom: 12px;
}

#primary.site-main .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
}

#primary.site-main .article-content blockquote {
    border-left: 4px solid #324fbe;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: #495057;
    font-size: 19px;
}

/* Table of Contents - Collapsible card above article */
#primary.site-main .toc-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 40px;
}

#primary.site-main .toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

#primary.site-main .toc-header:hover {
    background-color: #f8f9fa;
}

#primary.site-main .toc-header:focus {
    outline: 2px solid #324fbe;
    outline-offset: -2px;
}

#primary.site-main .toc-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

#primary.site-main .toc-caret {
    color: #6c757d;
    font-size: 14px;
    transition: transform 0.2s ease;
}

#primary.site-main .toc-header[aria-expanded="true"] .toc-caret {
    transform: rotate(180deg);
}

#primary.site-main .toc-list {
    list-style: none;
    padding: 0 24px 24px 24px;
    margin: 0;
}

#primary.site-main .toc-list li {
    margin-bottom: 10px;
}

#primary.site-main .toc-list li:last-child {
    margin-bottom: 0;
}

#primary.site-main .toc-list a {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: block;
}

#primary.site-main .toc-list a:hover {
    color: #324fbe;
}

/* Related Posts Section */
#primary.site-main .related-posts-section {
    padding: 60px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

#primary.site-main .related-posts-title {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 32px;
    text-align: center;
}

#primary.site-main .related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

#primary.site-main .related-post-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

#primary.site-main .related-post-card:hover {
    border-color: #324fbe;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(50, 79, 190, 0.15);
}

#primary.site-main .related-post-thumb {
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
}

#primary.site-main .related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#primary.site-main .related-post-content {
    padding: 20px;
}

#primary.site-main .related-post-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    line-height: 1.4;
    margin-bottom: 8px;
}

#primary.site-main .related-post-date {
    font-size: 12px;
    color: #6c757d;
}

#primary.site-main .view-all-category {
    text-align: center;
}

#primary.site-main .btn-view-category {
    display: inline-block;
    padding: 12px 28px;
    background: #324fbe;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

#primary.site-main .btn-view-category:hover {
    background: #2a3f9e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 79, 190, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    #primary.site-main .blog-top-cta {
        margin: 16px 0 24px;
        padding: 0 16px;
    }

    #primary.site-main .blog-top-cta__text {
        font-size: 14px;
    }

    #primary.site-main .post-hero h1 {
        font-size: 32px;
    }

    #primary.site-main .post-subtitle {
        font-size: 18px;
    }

    #primary.site-main .article-content h2 {
        font-size: 28px;
    }

    #primary.site-main .article-content h3 {
        font-size: 20px;
    }

    #primary.site-main .article-content p,
    #primary.site-main .article-content ul,
    #primary.site-main .article-content ol {
        font-size: 16px;
    }

    #primary.site-main .related-posts-grid {
        grid-template-columns: 1fr;
    }

    #primary.site-main .post-content-area {
        padding: 40px 0;
    }

    #primary.site-main .related-posts-section {
        padding: 40px 0;
    }
}

/* Hide parent theme clutter */
.st-breadcrumb,
.st-blog--banner,
.st-banner-solo {
    display: none !important;
}
