/* ============================================
   InfoSetu - Blog Master Styles
   Applies to all individual blog post pages
   ============================================ */

/* ==========================================
   Blog Post Container
   ========================================== */
.blog-post {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    line-height: 1.8;
}

/* ==========================================
   Blog Post Typography
   ========================================== */
.blog-post h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.3;
}

.blog-post h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.blog-post h3 {
    font-size: 1.25rem;
    color: #34495e;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.blog-post h4 {
    font-size: 1.1rem;
    color: #495057;
    margin-top: 1.25rem;
    font-weight: 600;
}

.blog-post p {
    color: #333;
    margin-bottom: 1rem;
}

.blog-post .lead {
    font-size: 1.15rem;
    color: #2c3e50;
    line-height: 1.9;
}

/* ==========================================
   Content Body Styling
   ========================================== */
.content-body ul,
.content-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.content-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.content-body strong {
    color: #1a1a2e;
}

.content-body a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-body a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* ==========================================
   Alert Boxes
   ========================================== */
.blog-post .alert {
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.blog-post .alert-heading {
    font-size: 1.1rem;
}

/* ==========================================
   Cards & Tables
   ========================================== */
.blog-post .card {
    border-radius: 12px;
    overflow: hidden;
}

.blog-post .card-header {
    font-weight: 600;
}

.blog-post .table {
    font-size: 0.95rem;
}

.blog-post .table th {
    font-weight: 600;
    white-space: nowrap;
}

.blog-post .table td {
    vertical-align: middle;
}

/* ==========================================
   FAQ Accordion
   ========================================== */
.blog-post .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: #2c3e50;
}

.blog-post .accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.blog-post .accordion-body {
    background-color: #f8f9fa;
    line-height: 1.8;
}

/* ==========================================
   Quick Answer Box
   ========================================== */
#quick-answer mark {
    background-color: #fff3cd;
    padding: 0.1em 0.3em;
    border-radius: 4px;
}

#quick-answer p {
    margin-bottom: 0.5rem;
}

/* ==========================================
   Key Facts Table
   ========================================== */
#key-facts .table th {
    width: 45%;
    padding: 0.75rem 1rem;
}

#key-facts .table td {
    padding: 0.75rem 1rem;
}

/* ==========================================
   Statistics Boxes
   ========================================== */
.blog-post .p-3.border.rounded {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post .p-3.border.rounded:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================
   Sidebar Styles
   ========================================== */
.sidebar {
    position: sticky;
    top: 100px;
    z-index: 10;
}

/* Table of Contents Links */
.toc-link {
    transition: all 0.3s ease;
    display: block;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}

.toc-link:hover {
    color: #0d6efd !important;
    padding-left: 10px;
    background-color: rgba(13, 110, 253, 0.08);
}

/* Utility Helpers */
.hover-primary:hover {
    color: #0d6efd !important;
}

/* Sidebar Cards */
.sidebar .card {
    border-radius: 16px;
}

/* ==========================================
   Featured Image
   ========================================== */
.blog-post header .position-relative img {
    object-fit: cover;
    border-radius: 16px;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */
@media (max-width: 991.98px) {
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .blog-post h1 {
        font-size: 1.75rem;
    }
    
    .blog-post h2 {
        font-size: 1.35rem;
    }
    
    .blog-post h3 {
        font-size: 1.15rem;
    }
}

@media (max-width: 575.98px) {
    .blog-post h1 {
        font-size: 1.5rem;
    }
    
    .blog-post .lead {
        font-size: 1rem;
    }
    
    #key-facts .table th,
    #key-facts .table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .blog-post .table {
        font-size: 0.85rem;
    }
}