/* Sarkari Exam Blog & Educational Guides Stylesheet */

.blog-main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-top: 24px;
    align-items: start;
}

.blog-full-layout {
    margin-top: 24px;
}

/* Category Filter Bar */
.blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.blog-filter-pill {
    display: inline-block;
    padding: 7px 15px;
    border-radius: 20px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    transition: all .15s ease;
}

.blog-filter-pill:hover,
.blog-filter-pill.active {
    background: #8b0000;
    color: #fff;
    border-color: #8b0000;
}

.blog-filter-pill span {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-size: 11px;
}

.blog-filter-pill.active span {
    background: rgba(255, 255, 255, 0.25);
}

/* Blog Cards Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.blog-card-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 52.5%;
    background: #f1f5f9;
    overflow: hidden;
}

.blog-card-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

.blog-card:hover .blog-card-thumb {
    transform: scale(1.04);
}

.blog-card-placeholder-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b0000, #a31e25);
    color: #fff;
    text-align: center;
    padding: 15px;
}

.blog-card-placeholder-thumb svg {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
    opacity: 0.9;
}

.blog-card-placeholder-thumb span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.blog-badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #8b0000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.blog-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    color: #1e293b;
}

.blog-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color .15s ease;
}

.blog-card-title a:hover {
    color: #8b0000;
}

.blog-card-excerpt {
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #8392a5;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: #475569;
}

.blog-author-avatar-sm {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #8b0000;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
}

/* Single Blog Article Details */
.blog-detail-article {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 32px 36px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    max-width: 920px;
    margin: 18px auto 40px;
    box-sizing: border-box;
    width: 100%;
}

.blog-detail-breadcrumb {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.blog-detail-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.blog-detail-breadcrumb a:hover {
    color: #8b0000;
    text-decoration: underline;
}

.blog-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 14px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
}

.blog-detail-title {
    font-size: 29px;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 16px;
    font-weight: 800;
}

.blog-detail-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 24px;
    font-size: 13px;
    color: #64748b;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-reading-pill {
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    color: #475569;
}

.blog-featured-banner {
    width: 100%;
    max-width: 100%;
    margin: 0 0 26px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: center;
}

.blog-featured-banner img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.blog-excerpt-lead {
    background: #f8fafc;
    border-left: 4px solid #8b0000;
    padding: 16px 20px;
    margin: 0 0 28px;
    border-radius: 0 6px 6px 0;
    font-size: 16px;
    line-height: 1.65;
    color: #334155;
    font-weight: 500;
}

/* Article Typography for High-Value Content */
.blog-content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #1e293b;
}

.blog-content-body h2 {
    font-size: 22px;
    line-height: 1.4;
    color: #8b0000;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fee2e2;
    font-weight: 700;
}

.blog-content-body h3 {
    font-size: 18px;
    line-height: 1.45;
    color: #0f172a;
    margin: 24px 0 10px;
    font-weight: 700;
}

.blog-content-body h4 {
    font-size: 16px;
    color: #334155;
    margin: 18px 0 8px;
    font-weight: 700;
}

.blog-content-body p {
    margin: 0 0 18px;
}

.blog-content-body ul,
.blog-content-body ol {
    margin: 0 0 20px 22px;
    padding: 0;
}

.blog-content-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-content-body blockquote {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    margin: 24px 0;
    padding: 16px 20px;
    font-style: italic;
    color: #78350f;
    border-radius: 0 6px 6px 0;
}

.blog-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14.5px;
    overflow-x: auto;
    display: block;
}

.blog-content-body table thead tr {
    background: #f1f5f9;
}

.blog-content-body table th {
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    font-weight: 700;
    color: #1e293b;
    text-align: left;
}

.blog-content-body table td {
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.blog-content-body table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.blog-content-body img,
.rich-html img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Author Trust & E-E-A-T Box */
.blog-author-box {
    margin-top: 36px;
    padding: 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    gap: 18px;
    align-items: center;
}

.blog-author-avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #8b0000;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}

.blog-author-info h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #0f172a;
}

.blog-author-info p {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
}

/* Social Share Bar */
.blog-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.blog-share-label {
    font-weight: 700;
    font-size: 13px;
    color: #334155;
    margin-right: 6px;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: opacity .15s ease;
}

.blog-share-btn:hover {
    opacity: 0.9;
}

.blog-share-wa {
    background: #25d366;
}

.blog-share-tg {
    background: #0088cc;
}

.blog-share-fb {
    background: #1877f2;
}

/* Sidebar Widgets */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.blog-sidebar-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.blog-sidebar-widget h3 {
    margin: 0 0 14px;
    font-size: 16px;
    color: #8b0000;
    border-bottom: 2px solid #8b0000;
    padding-bottom: 8px;
    font-weight: 700;
}

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

.blog-sidebar-list li {
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
}

.blog-sidebar-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-sidebar-list a {
    color: #1e293b;
    text-decoration: none;
    line-height: 1.45;
    display: block;
    transition: color .15s ease;
}

.blog-sidebar-list a:hover {
    color: #8b0000;
}

.blog-sidebar-list time {
    font-size: 11.5px;
    color: #94a3b8;
    display: block;
    margin-top: 3px;
}

.blog-sidebar-cat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-sidebar-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: background .15s ease;
}

.blog-sidebar-cat-item:hover {
    background: #fee2e2;
    color: #8b0000;
}

.blog-sidebar-cat-item span {
    font-size: 11px;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Related Articles Block */
.blog-related-section {
    margin-top: 36px;
}

.blog-related-heading {
    font-size: 20px;
    color: #0f172a;
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #8b0000;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .blog-main-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        margin-top: 15px;
    }

    .blog-detail-article {
        padding: 22px 20px;
    }

    .blog-detail-title {
        font-size: 23px;
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-detail-article {
        padding: 16px 14px;
        margin: 10px auto 20px;
        border-radius: 6px;
    }

    .blog-featured-banner {
        margin: 0 0 16px;
        border-radius: 6px;
    }

    .blog-featured-banner img {
        width: 100%;
        height: auto;
    }

    .blog-detail-title {
        font-size: 20px;
    }

    .blog-share-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-share-btn {
        justify-content: center;
    }

    .blog-author-box {
        flex-direction: column;
        text-align: center;
    }
}

