/* Single Blog Post Template Styles */

/* Main Container - Now using Astra's container class */
/* .single-blog-post {
    padding: 40px 20px;
} */

.single-blog-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 100%;
}

/* Main Content Column (60%) */
.single-blog-main {
    flex: 0 0 60%;
    max-width: 60%;
    margin-left: 50px;
}

/* Feed Banner Section - Specific to Single Blog Posts */
.single-blog-main .feed-banner-section {
    margin: 0 0 32px 0; /* Space below banner before navigation */
    width: 100%;
}

/* Navigation */
.single-blog-nav {
    margin-bottom: 32px;
}

.back-to-articles {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.back-to-articles:hover {
    color: #007cba;
    transform: translateX(-2px);
}

.back-to-articles:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Article Header */
.single-blog-header {
    margin-bottom: 40px;
}

.single-blog-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #212529;
    margin: 0 0 20px 0;
    max-width: 900px;
}

.single-blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 20px;
    max-width: 900px;
}

.meta-separator {
    opacity: 0.5;
}

.reading-time {
    font-weight: 500;
}

.single-blog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 900px;
}

.single-blog-chip {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.single-blog-chip:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-1px);
}

/* Featured Image */
.single-blog-featured-image {
    margin: 0 0 40px 0;
    width: 100%;
}

.single-blog-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.featured-image-caption {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* Article Content */
.single-blog-content {
    max-width: 800px;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.2rem;      /* 18px — sweet spot for long-form serif reading */
    font-weight: 500;
    line-height: 1.75;        /* serif body text needs slightly more air than sans */
    color: #2b2b2b;           /* softer than pure #212529 — less harsh on long reads */
}

.single-blog-content h1,
.single-blog-content h2,
.single-blog-content h3,
.single-blog-content h4,
.single-blog-content h5,
.single-blog-content h6 {
    font-weight: 700;
    color: #212529;
    margin: 2em 0 1em 0;
    line-height: 1.3;
}

.single-blog-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.single-blog-content h3 {
    font-size: 1.5rem;
}

.single-blog-content h4 {
    font-size: 1.25rem;
}

.single-blog-content p {
    margin: 0 0 1.6em 0;
}

.single-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.single-blog-content blockquote {
    border-left: 4px solid #007cba;
    margin: 2em 0;
    padding: 1em 2em;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 1.15em;
    line-height: 1.7;
}

.single-blog-content ul,
.single-blog-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.single-blog-content li {
    margin-bottom: 0.5em;
}

.single-blog-content a {
    color: #007cba;
    text-decoration: underline;
    font-weight: 500;
}

.single-blog-content a:hover {
    color: #0056b3;
}

.single-blog-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

.single-blog-content pre {
    background: #f8f9fa;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
}

/* Article Footer */
.single-blog-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
    max-width: 700px;
}

.author-info {
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: #6c757d;
}

.author-label {
    margin-right: 8px;
}

.author-name {
    font-weight: 600;
    color: #212529;
}

.social-sharing {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: #495057;
}

.share-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid #007cba;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.share-link:hover {
    background: #007cba;
    color: white;
}

.single-blog-tags {
    font-size: 0.9rem;
    color: #6c757d;
}

.tags-label {
    font-weight: 600;
    margin-right: 8px;
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
    max-width: 700px;
}

/* Sidebar Column (40%) */
.single-blog-sidebar {
    flex: 0 0 40%;
    max-width: 40%;
    position: sticky;
    top: 40px;
    height: fit-content;
}

.single-blog-sidebar > div {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.single-blog-sidebar h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #212529;
}

/* Newsletter Signup */
.newsletter-signup {
    text-align: center;
    background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
    color: white;
    border: none !important;
}

.newsletter-signup h3 {
    color: white;
    margin-bottom: 16px;
}

.newsletter-signup p {
    margin-bottom: 24px;
    opacity: 0.9;
    line-height: 1.6;
}

.newsletter-button {
    background: white;
    color: #007cba;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.newsletter-button:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.newsletter-description {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

/* Sidebar Items */
.sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-item-link {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.sidebar-item-link:hover {
    transform: translateY(-2px);
}

.sidebar-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-item-placeholder {
    font-size: 1.5rem;
    color: #adb5bd;
}

.sidebar-item-content {
    flex: 1;
    min-width: 0;
}

.sidebar-item-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #212529;
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-item-link:hover .sidebar-item-title {
    color: #007cba;
}

.sidebar-item-type {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .single-blog-container {
        gap: 40px;
    }
    
    .single-blog-sidebar > div {
        padding: 24px;
    }
}

@media (max-width: 992px) {
    .single-blog-container {
        flex-direction: column;
        gap: 60px;
    }
    
    .single-blog-main,
    .single-blog-sidebar {
        flex: none;
        max-width: none;
        width: 100%;
        margin-left: 0;
    }
    
    .single-blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 32px;
    }
    
    .single-blog-sidebar > div {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    /* .single-blog-post {
        padding: 20px 16px;
    } */
    
    .single-blog-title {
        font-size: 2.25rem;
    }
    
    .single-blog-content {
        font-size: 1.2rem;
        line-height: 1.7;
        max-width: none;
    }
    
    .single-blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .single-blog-sidebar > div {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .single-blog-title {
        font-size: 1.875rem;
    }
    
    .single-blog-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .single-blog-content {
        font-size: 1.3rem;
        line-height: 1.68;
    }
    
    .single-blog-chips {
        gap: 6px;
    }
    
    .single-blog-chip {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
    
    .social-sharing {
        gap: 12px;
    }
    
    .share-link {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .sidebar-item-image {
        width: 60px;
        height: 60px;
    }
    
    .sidebar-item-link {
        gap: 12px;
    }
}

/* Print styles */
@media print {
    .single-blog-sidebar,
    .single-blog-nav,
    .social-sharing {
        display: none;
    }
    
    .single-blog-container {
        flex-direction: column;
    }
    
    .single-blog-main {
        max-width: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .single-blog-chip {
        border: 2px solid currentColor;
    }
    
    .newsletter-button {
        border: 2px solid currentColor;
    }
    
    .share-link {
        border-width: 2px;
    }
}