/* --- BLOG DETAILS PAGE CSS --- */

/* Header Typography */
.article-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #0c0e1b;
    line-height: 1.2;
    letter-spacing: -1px;
}

/* Featured Image — keep full 16:9 thumbnail visible */
.article-featured-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background-color: #f8fafc;
}

.article-featured-img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* --- ARTICLE CONTENT TYPOGRAPHY --- */
.article-content {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    color: #4a4a52;
    line-height: 1.8;
}

/* Headings inside the blog post */
.article-content h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #0c0e1b;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0c0e1b;
    margin-top: 32px;
    margin-bottom: 16px;
}

/* Paragraphs and Lists */
.article-content p {
    margin-bottom: 24px;
}

.article-content ul {
    margin-bottom: 32px;
    padding-left: 20px;
}

.article-content iframe,
.article-content video {
    max-width: 100%;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.article-content table td,
.article-content table th {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
}

.article-content figure {
    margin: 24px 0;
}

/* Premium Blockquote styling */
.article-content blockquote {
    background-color: rgba(32, 176, 56, 0.05); /* Very soft green */
    border-left: 4px solid #20b038; /* Vanguard Green */
    padding: 24px 32px;
    border-radius: 0 12px 12px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    color: #15803d; /* Dark green text */
    margin: 40px 0;
}

/* Make sure the related blogs grid inherits the 100% width correctly */
#mainBlogGrid .blog-grid-item .blog-card {
    width: 100%;
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .article-title {
        font-size: 32px;
    }
}

@media (max-width: 767.98px) {
    .article-title {
        font-size: 26px;
    }
    .article-featured-img-wrapper {
        border-radius: 12px !important;
    }
    .article-content {
        font-size: 15px; /* Slightly smaller reading text for phones */
    }
    .article-content h2 {
        font-size: 22px;
        margin-top: 30px;
    }
    .article-content blockquote {
        font-size: 16px;
        padding: 16px 20px;
    }
}










/* --- ARTICLE META BAR --- */
.article-meta-wrapper {
    border-color: #e2e8f0 !important; /* Soft premium border color */
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 767.98px) {
    .article-meta-wrapper {
        /* On mobile, center everything and add vertical spacing between the wrapped rows */
        row-gap: 16px !important;
        padding: 16px 0 !important;
    }
    .author-avatar {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
}