/* ==========================================================================
   Manohari - Single Blog Page Dedicated Stylesheet (blog-single.css)
   Handles typography (H1-H6), responsive layout, cards, and FAQ accordion
   ========================================================================== */

:root {
    --premium-blue: #2563eb;
    --soft-bg: #f8fafc;
    --blog-heading-color: #0f172a;
    --blog-body-color: #334155;
}

/* --------------------------------------------------------------------------
   Blog Container & Wrapper
   -------------------------------------------------------------------------- */
.blog-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .blog-content {
        padding: 22px 18px;
        border-radius: 12px;
    }
}

.blog-img {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.premium-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--premium-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.blog-short-description-lead {
    background-color: #f8fafc;
    border-left: 4px solid var(--premium-blue);
}

.blog-main-point-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--premium-blue) !important;
}

.hover-shadow {
    transition: all 0.2s ease;
}

.hover-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--premium-blue) !important;
    color: var(--premium-blue) !important;
}

/* --------------------------------------------------------------------------
   Blog Article Typography & Headings (H1 - H6)
   Overrides global typography to ensure elegant, balanced Bengali & English text
   -------------------------------------------------------------------------- */
.blog-text-content {
    font-family: 'Outfit', 'Segoe UI', Roboto, 'Hind Siliguri', 'SolaimanLipi', Arial, sans-serif !important;
    color: var(--blog-body-color) !important;
    font-size: 1.05rem;
    line-height: 1.85;
    word-wrap: break-word;
}

/* Reset top margin if heading is first child */
.blog-text-content > *:first-child,
.blog-text-content h1:first-child,
.blog-text-content h2:first-child,
.blog-text-content h3:first-child {
    margin-top: 0 !important;
}

/* Headings Base */
.blog-text-content h1,
.blog-text-content h2,
.blog-text-content h3,
.blog-text-content h4,
.blog-text-content h5,
.blog-text-content h6 {
    font-family: 'Outfit', 'Segoe UI', Roboto, 'Hind Siliguri', 'SolaimanLipi', Arial, sans-serif !important;
    color: var(--blog-heading-color) !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em;
}

/* H1 - Article Primary Heading */
.blog-text-content h1 {
    font-size: 1.85rem !important; /* ~30px */
    margin-top: 2.2rem !important;
    margin-bottom: 0.85rem !important;
}

/* H2 - Section Heading (e.g. উপকারিতা, ব্যবহারের নিয়ম) */
.blog-text-content h2 {
    font-size: 1.45rem !important; /* ~23px */
    margin-top: 1.85rem !important;
    margin-bottom: 0.75rem !important;
    position: relative;
    padding-bottom: 4px;
}

/* H3 - Sub-heading */
.blog-text-content h3 {
    font-size: 1.25rem !important; /* ~20px */
    margin-top: 1.5rem !important;
    margin-bottom: 0.6rem !important;
    font-weight: 600 !important;
}

/* H4 - Feature / Topic Item */
.blog-text-content h4 {
    font-size: 1.12rem !important; /* ~18px */
    margin-top: 1.3rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
}

/* H5 - Small Grouping Header */
.blog-text-content h5 {
    font-size: 1.02rem !important; /* ~16.5px */
    margin-top: 1.2rem !important;
    margin-bottom: 0.45rem !important;
    font-weight: 600 !important;
}

/* H6 - Minor Caption Header */
.blog-text-content h6 {
    font-size: 0.92rem !important; /* ~14.8px */
    margin-top: 1rem !important;
    margin-bottom: 0.4rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b !important;
}

/* Responsive Headings for Mobile Devices */
@media (max-width: 768px) {
    .blog-text-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .blog-text-content h1 {
        font-size: 1.55rem !important; /* ~25px */
        margin-top: 1.75rem !important;
        margin-bottom: 0.7rem !important;
    }

    .blog-text-content h2 {
        font-size: 1.30rem !important; /* ~21px */
        margin-top: 1.5rem !important;
        margin-bottom: 0.6rem !important;
    }

    .blog-text-content h3 {
        font-size: 1.15rem !important; /* ~18.5px */
        margin-top: 1.3rem !important;
        margin-bottom: 0.5rem !important;
    }

    .blog-text-content h4 {
        font-size: 1.05rem !important; /* ~17px */
        margin-top: 1.15rem !important;
        margin-bottom: 0.45rem !important;
    }

    .blog-text-content h5 {
        font-size: 0.98rem !important;
        margin-top: 1rem !important;
        margin-bottom: 0.4rem !important;
    }

    .blog-text-content h6 {
        font-size: 0.88rem !important;
        margin-top: 0.9rem !important;
        margin-bottom: 0.35rem !important;
    }
}

/* Body Elements within Blog Content */
.blog-text-content p {
    margin-bottom: 1.15rem;
    line-height: 1.85;
}

.blog-text-content ul,
.blog-text-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.4rem;
    line-height: 1.8;
}

.blog-text-content li {
    margin-bottom: 0.4rem;
}

.blog-text-content blockquote {
    background: #f8fafc;
    border-left: 4px solid var(--premium-blue);
    padding: 14px 20px;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #475569;
}

.blog-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.25rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.blog-text-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.blog-text-content table th,
.blog-text-content table td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
}

.blog-text-content table th {
    background: #f8fafc;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Gold Header Bar & FAQ Card Styles
   -------------------------------------------------------------------------- */
.header-bar-gold {
    background-color: var(--footer-header-color, #fce8a6) !important;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    padding: 14px 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    font-weight: 700;
    color: var(--text-heading, #1f2937) !important;
    font-size: 0.95rem;
    font-family: var(--font-heading, 'Outfit', sans-serif) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.card-content-bottom {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
}

#blogFaqAccordion .accordion-button:not(.collapsed) {
    background-color: #f8fafc;
    color: #1f2937;
    box-shadow: none;
}

#blogFaqAccordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}
