/* Single Post Styles */

.single-post-content {
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section with Dark Background */
.post-hero-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a7b 100%);
    padding: 40px 0 60px;
}

/* Breadcrumb Styles */
.post-breadcrumb {
    padding-bottom: 30px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    justify-content: center;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #ffffff;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-current {
    color: #ffffff;
    font-weight: 500;
}

/* Post Header Styles */
.post-header {
    padding-bottom: 0;
}

.post-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 30px 0;
    font-family: 'Montserrat';
    text-align: center;
}

/* Post Meta Styles */
.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Montserrat';
}

.meta-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.post-meta-item span {
    font-weight: 400;
}

.post-read-time {
    background-color: #343b70;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

.post-read-time .meta-icon {
    width: 16px;
    height: 16px;
}

/* Featured Image Styles */
.post-featured-image {
    margin-bottom: 0;
    background-color: #f3f4f6;
    padding: 60px 0;
}

.featured-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

/* Post Content Styles */
.post-content-wrapper {
    padding: 60px 0;
    background-color: #ffffff;
}

.post-content-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 50px;
    align-items: start;
}

/* Single column layout when no TOC */
.post-content-layout.no-toc {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

/* Table of Contents Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
}

/* Hide sidebar by default if no TOC */
.post-sidebar.no-toc {
    display: none;
}

.table-of-contents {
    background-color: #ffffff;
    padding: 0;
    border-radius: 0;
}

.toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #9ca3af;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    font-family: 'Montserrat';
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.toc-link {
    font-size: 14px;
    line-height: 1.6;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    font-family: 'Montserrat';
}

.toc-link:hover,
.toc-link.active {
    color: #1e3a5f;
}

/* Share Section */
.post-share {
    margin-top: 30px;
}

.share-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #9ca3af;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    font-family: 'Montserrat';
}

.share-icons {
    display: flex;
    gap: 12px;
}

.share-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border-radius: 50%;
    color: #6b7280;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-icon:hover {
    background-color: #1e3a5f;
    color: #ffffff;
}

.share-icon svg {
    width: 18px;
    height: 18px;
}

/* Main Content Area */
.post-main-content {
    min-width: 0;
}

/* Featured Image Inline */
.post-featured-image-inline {
    margin-bottom: 30px;
    /* background-color: #fef2f2; */
    /* padding: 40px; */
    border-radius: 12px;
}

.post-featured-image-inline .featured-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #6b7280;
    font-family: 'Montserrat';
}

.entry-content p {
    margin-bottom: 1.5em;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 1em;
    color: #1f2937;
    scroll-margin-top: 100px;
    font-family: 'Montserrat';
}

.entry-content h2:first-child {
    margin-top: 0;
}

.entry-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 0.75em;
    color: #1f2937;
    font-family: 'Montserrat';
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 0;
}

.entry-content ul {
    list-style-type: none;
}

.entry-content li {
    margin-bottom: 0.75em;
    color: #6b7280;
    line-height: 1.8;
    font-size: 16px;
    padding-left: 1.5em;
    position: relative;
}

.entry-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #9ca3af;
    font-weight: bold;
}

.entry-content a {
    color: #2563eb;
    text-decoration: none;
}

.entry-content a:hover {
    text-decoration: underline;
}

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

.entry-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: #6b7280;
}

.entry-content strong {
    font-weight: 600;
    color: #1f2937;
}

/* Hide anchor links visually but keep them accessible */
.entry-content .tableofcontent-link {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}

/* Author Bio Section */
.post-author-bio {
    display: flex;
    gap: 20px;
    padding: 30px;
    background-color: #f9fafb;
    border-radius: 12px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
    font-family: 'Montserrat';
}

.author-title {
    font-size: 14px;
    color: #3b82f6;
    margin: 0 0 8px 0;
    font-weight: 500;
    font-family: 'Montserrat';
}

.author-bio {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
    font-family: 'Montserrat';
}

/* Comments Section */
#comments {
    margin-top: 50px;
    margin-bottom: 50px;
}

.comments-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 30px 0;
    font-family: 'Montserrat';
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    background-color: #f9fafb;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    font-style: normal;
}

.comment-metadata {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.comment-metadata a {
    color: #9ca3af;
    text-decoration: none;
}

.comment-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

.comment-respond {
    background-color: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

.comment-reply-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
    font-family: 'Montserrat';
}

.comment-form p {
    margin-bottom: 16px;
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Montserrat';
    transition: border-color 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #1e3a5f;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .submit {
    background-color: #bb2025;
    color: #ffffff;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Montserrat';
}

.comment-form .submit:hover {
    background-color: #9a1a1e;
}

/* Related Articles Section */
.related-articles-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e5e7eb;
}

.related-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 30px 0;
    font-family: 'Montserrat';
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-article-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-article-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #fef2f2;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-content {
    padding: 20px;
}

.related-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #bb2025;
    margin-bottom: 10px;
    font-family: 'Montserrat';
}

.related-article-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    font-family: 'Montserrat';
}

.related-article-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article-title a:hover {
    color: #1e3a5f;
}

.related-article-date {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
    font-family: 'Montserrat';
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .post-content-layout {
        grid-template-columns: 220px 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 32px;
    }
    
    .post-hero-section {
        padding: 30px 0 40px;
    }
    
    .post-meta {
        gap: 16px;
    }
    
    .post-meta-item {
        font-size: 13px;
    }
    
    .post-content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .post-sidebar {
        position: static;
        order: -1;
    }
    
    .table-of-contents {
        max-width: 100%;
    }
    
    .toc-nav {
        margin-bottom: 20px;
    }
    
    .share-icons {
        justify-content: flex-start;
    }
    
    .entry-content {
        font-size: 16px;
    }
    
    .entry-content h2 {
        font-size: 22px;
    }
    
    .entry-content h3 {
        font-size: 18px;
    }
    
    .post-featured-image-inline {
        padding: 30px;
    }
    
    .post-author-bio {
        flex-direction: column;
        padding: 24px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-title {
        font-size: 24px;
    }
    
    .comments-title {
        font-size: 24px;
    }
    
    .comment-respond {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 26px;
    }
    
    .post-hero-section {
        padding: 25px 0 35px;
    }
    
    .post-breadcrumb {
        padding-bottom: 20px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .post-content-wrapper {
        padding: 40px 0;
    }
    
    .post-featured-image-inline {
        padding: 20px;
    }
    
    .post-author-bio {
        padding: 20px;
    }
    
    .author-name {
        font-size: 18px;
    }
    
    .related-title {
        font-size: 22px;
    }
    
    .related-article-title {
        font-size: 16px;
    }
    
    .comments-title {
        font-size: 22px;
    }
    
    .comment-respond {
        padding: 20px;
    }
    
    .comment-reply-title {
        font-size: 20px;
    }
}
