/* ── BLOG DETAIL HERO – scoped under .bdh-section ───
   Requires: Bootstrap Icons, Manrope + Source Sans 3
   and your existing :root CSS variables.
   ─────────────────────────────────────────────────── */

.bdh-section {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

/* ── Feature image ───────────────────────────────── */
.bdh-section .bdh-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bdh-section .bdh-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Multi-layer gradient overlay for readability */
.bdh-section .bdh-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(0, 15, 40, .35) 0%,
            rgba(0, 20, 55, .65) 40%,
            rgba(0, 20, 55, .92) 100%);
}

/* ── Content ─────────────────────────────────────── */
.bdh-section .bdh-content-wrap {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 120px 0 56px;
}

.bdh-section .bdh-content {
    max-width: 820px;
}

/* Category tag */
.bdh-section .bdh-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--blue);
    color: #fff;
    border-radius: 100px;
    padding: 5px 14px;
    text-decoration: none;
    margin-bottom: 22px;
    transition: background .2s;
}

.bdh-section .bdh-cat:hover {
    background: var(--blue-mid);
    color: #fff;
}

.bdh-section .bdh-cat i {
    font-size: .7rem;
}

/* Heading */
.bdh-section .bdh-heading {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 32px;
}

/* Meta row */
.bdh-section .bdh-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* Author block */
.bdh-section .bdh-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bdh-section .bdh-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-mid));
    border: 2px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: .78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bdh-section .bdh-author-info strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.bdh-section .bdh-author-info span {
    font-size: .75rem;
    color: rgba(255, 255, 255, .6);
}

/* Vertical divider between meta items */
.bdh-section .bdh-meta-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, .25);
    flex-shrink: 0;
}

/* Date / read time */
.bdh-section .bdh-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Manrope', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
}

.bdh-section .bdh-meta-item i {
    font-size: .82rem;
    color: rgba(255, 255, 255, .5);
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 991px) {
    .bdh-section {
        min-height: 500px;
    }

    .bdh-section .bdh-content-wrap {
        padding: 100px 0 48px;
    }
}

@media (max-width: 767px) {
    .bdh-section {
        min-height: 460px;
    }

    .bdh-section .bdh-content-wrap {
        padding: 90px 0 40px;
    }

    .bdh-section .bdh-meta {
        gap: 12px;
    }

    .bdh-section .bdh-meta-divider {
        display: none;
    }

    .bdh-section .bdh-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .bdh-section {
        min-height: 420px;
    }

    .bdh-section .bdh-content-wrap {
        padding: 80px 0 36px;
    }
}





/* ── BLOG DETAIL CONTENT – scoped under .bdc-section
   Requires: Bootstrap Icons, Manrope + Source Sans 3
   and your existing :root CSS variables.
   ─────────────────────────────────────────────────── */

.bdc-section {
    padding: 72px 0 88px;
    background: var(--white);
}

/* Two-column layout */
.bdc-section .bdc-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* ══════════════════════════════════════════════════
     LEFT: ARTICLE CONTENT
     ══════════════════════════════════════════════════ */
.bdc-section .bdc-content {
    min-width: 0;
}

/* Lead paragraph */
.bdc-section .bdc-lead {
    font-size: 1.08rem;
    color: var(--mid);
    line-height: 1.85;
    font-weight: 400;
    border-left: 3px solid var(--blue);
    padding-left: 20px;
    margin-bottom: 36px;
}

/* Headings inside article */
.bdc-section .bdc-content h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    margin: 36px 0 14px;
    line-height: 1.3;
}

/* Body paragraphs */
.bdc-section .bdc-content p {
    font-size: .95rem;
    color: var(--mid);
    line-height: 1.85;
    margin-bottom: 16px;
}

/* Image inside content */
.bdc-section .bdc-img-wrap {
    margin: 30px 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.bdc-section .bdc-img-wrap img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

.bdc-section .bdc-img-caption {
    display: block;
    font-size: .78rem;
    color: var(--muted);
    font-style: italic;
    text-align: center;
    padding: 10px 16px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

/* Styled list */
.bdc-section .bdc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bdc-section .bdc-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .93rem;
    color: var(--mid);
    line-height: 1.65;
}

.bdc-section .bdc-list-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(22, 163, 74, .12);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.bdc-section .bdc-list li strong {
    color: var(--dark);
}

/* Blockquote */
.bdc-section .bdc-quote {
    background: var(--blue-pale);
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--r) var(--r) 0;
    padding: 24px 28px;
    margin: 32px 0;
}

.bdc-section .bdc-quote p {
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.65;
    margin-bottom: 10px;
    font-style: italic;
}

.bdc-section .bdc-quote cite {
    font-size: .8rem;
    color: var(--blue);
    font-weight: 700;
    font-style: normal;
    font-family: 'Manrope', sans-serif;
}

/* Tags */
.bdc-section .bdc-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 36px 0 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.bdc-section .bdc-tag-label {
    font-family: 'Manrope', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.bdc-section .bdc-tag {
    font-family: 'Manrope', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 100px;
    padding: 4px 12px;
    text-decoration: none;
    transition: background .18s, color .18s;
}

.bdc-section .bdc-tag:hover {
    background: var(--blue);
    color: #fff;
}

/* Share row */
.bdc-section .bdc-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.bdc-section .bdc-share-label {
    font-family: 'Manrope', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.bdc-section .bdc-share-links {
    display: flex;
    gap: 8px;
}

.bdc-section .bdc-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    text-decoration: none;
    transition: background .18s, color .18s, border-color .18s, transform .18s;
}

.bdc-section .bdc-share-btn:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    transform: translateY(-2px);
}

/* Author card */
.bdc-section .bdc-author-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 26px;
}

.bdc-section .bdc-author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-mid));
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: .9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bdc-section .bdc-author-body {
    flex: 1;
    min-width: 0;
}

.bdc-section .bdc-author-role {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.bdc-section .bdc-author-name {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.bdc-section .bdc-author-body p {
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}





/* ── BLOG CONTENT AREA STYLING ── */

.bdc-content {

    line-height: 1.8;
    color: #475569;
    max-width: 850px;
    margin: 0 auto;
}

/* Headings */
.bdc-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #00143c;
    /* Odiware Dark Blue */
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.bdc-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #00143c;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    border-left: 5px solid #004a99;
    padding-left: 20px;
}

.bdc-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00143c;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Paragraphs & Text */
.bdc-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.bdc-content strong {
    color: #00143c;
    font-weight: 700;
}

/* Links */
.bdc-content a {
    color: #004a99;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 74, 153, 0.1);
    transition: all 0.3s ease;
}

.bdc-content a:hover {
    color: #00143c;
    border-bottom-color: #00143c;
    background-color: #f0f7ff;
}

/* Images */
.bdc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: block;
}

/* Captions (if you use <figcaption> or similar) */
.bdc-content figure {
    margin: 2rem 0;
    text-align: center;
}

.bdc-content figcaption {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 10px;
    font-style: italic;
}

/* Lists */
.bdc-content ul,
.bdc-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.bdc-content li {
    margin-bottom: 0.8rem;
}

/* Blockquotes */
.bdc-content blockquote {
    background: #f8fafc;
    border-left: 4px solid #004a99;
    padding: 30px;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #334155;
}

/* Responsive Tweak */
@media (max-width: 767px) {
    .bdc-content h1 {
        font-size: 2.2rem;
    }

    .bdc-content h2 {
        font-size: 1.6rem;
    }

    .bdc-content p {
        font-size: 1rem;
    }
}

/* ══════════════════════════════════════════════════
     RIGHT: SIDEBAR
     ══════════════════════════════════════════════════ */
.bdc-section .bdc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 88px;
}

/* Widget wrapper */
.bdc-section .bdc-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px 22px;
}

.bdc-section .bdc-widget-title {
    font-family: 'Manrope', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Search widget */
.bdc-section .bdc-search-wrap {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
    transition: border-color .2s;
}

.bdc-section .bdc-search-wrap:focus-within {
    border-color: var(--blue);
}

.bdc-section .bdc-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: .875rem;
    color: var(--dark);
    background: var(--bg);
    min-width: 0;
}

.bdc-section .bdc-search-input::placeholder {
    color: #b0b8c4;
}

.bdc-section .bdc-search-btn {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 0 16px;
    font-size: .9rem;
    cursor: pointer;
    transition: background .18s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bdc-section .bdc-search-btn:hover {
    background: var(--blue-mid);
}

/* Suggestion cards */
.bdc-section .bdc-suggestions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bdc-section .bdc-suggest-card {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity .18s;
}

.bdc-section .bdc-suggest-card:hover {
    opacity: .85;
}

.bdc-section .bdc-suggest-img {
    width: 72px;
    height: 62px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.bdc-section .bdc-suggest-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.bdc-section .bdc-suggest-card:hover .bdc-suggest-img img {
    transform: scale(1.07);
}

.bdc-section .bdc-suggest-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bdc-section .bdc-suggest-cat {
    font-family: 'Manrope', sans-serif;
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 100px;
    padding: 2px 8px;
    display: inline-block;
    width: fit-content;
}

.bdc-section .bdc-suggest-body h6 {
    font-family: 'Manrope', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bdc-section .bdc-suggest-date {
    font-size: .72rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Manrope', sans-serif;
}

.bdc-section .bdc-suggest-date i {
    font-size: .68rem;
}

/* Separator between suggestions */
.bdc-section .bdc-suggest-card+.bdc-suggest-card {
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* Categories list */
.bdc-section .bdc-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bdc-section .bdc-cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    color: var(--mid);
    text-decoration: none;
    transition: background .18s, color .18s;
    gap: 8px;
}

.bdc-section .bdc-cat-list li a:hover {
    background: var(--blue-pale);
    color: var(--blue);
}

.bdc-section .bdc-cat-list li a i {
    font-size: .65rem;
    color: var(--muted);
    flex-shrink: 0;
}

.bdc-section .bdc-cat-list li a span {
    margin-left: auto;
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 1px 8px;
    flex-shrink: 0;
}

/* CTA widget */
.bdc-section .bdc-cta-widget {
    background: linear-gradient(140deg, #001e4a 0%, #004a99 60%, #0061c2 100%);
    border-color: transparent;
    position: relative;
    overflow: hidden;
}

.bdc-section .bdc-cta-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
}

.bdc-section .bdc-cta-widget .bdc-widget-title {
    color: rgba(255, 255, 255, .4);
    border-bottom-color: rgba(255, 255, 255, .1);
}

.bdc-section .bdc-cta-widget-inner {
    position: relative;
    z-index: 2;
}

.bdc-section .bdc-cta-widget-ico {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, .3);
    display: block;
    margin-bottom: 12px;
}

.bdc-section .bdc-cta-widget-inner h6 {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.bdc-section .bdc-cta-widget-inner p {
    font-size: .84rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.65;
    margin-bottom: 18px;
}

.bdc-section .bdc-cta-widget-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: var(--blue);
    border-radius: 8px;
    padding: 10px 20px;
    font-family: 'Manrope', sans-serif;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s, box-shadow .18s;
    width: 100%;
    justify-content: center;
}

.bdc-section .bdc-cta-widget-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    color: var(--blue);
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1199px) {
    .bdc-section .bdc-layout {
        grid-template-columns: 1fr 280px;
        gap: 36px;
    }
}

@media (max-width: 991px) {
    .bdc-section .bdc-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .bdc-section .bdc-sidebar {
        position: static;
    }

    /* Suggestions go horizontal on tablet */
    .bdc-section .bdc-suggestions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .bdc-section .bdc-suggest-card+.bdc-suggest-card {
        padding-top: 0;
        border-top: none;
    }
}

@media (max-width: 767px) {
    .bdc-section {
        padding: 48px 0 64px;
    }

    .bdc-section .bdc-img-wrap img {
        height: 220px;
    }
}

@media (max-width: 575px) {
    .bdc-section .bdc-suggestions {
        grid-template-columns: 1fr;
    }

    .bdc-section .bdc-suggest-card+.bdc-suggest-card {
        padding-top: 14px;
        border-top: 1px solid var(--border);
    }

    .bdc-section .bdc-author-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .bdc-section .bdc-share {
        flex-direction: column;
        align-items: flex-start;
    }
}




/* ── CODE BLOCK STYLING ── */
.bdc-code-block {
    position: relative;
    background: #0f172a;
    /* Deep dark slate */
    border-radius: 8px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bdc-code-block pre {
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.bdc-code-block code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.5;
    background: transparent;
    padding: 0;
}

/* Inline code highlight */
code {
    background: #f1f5f9;
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Copy Button Styling */
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--blue);
    color: #fff;
}

/* Horizontal Rule Styling */
hr {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}





/* ── ENHANCED RESPONSIVE SYSTEM ── */

/* 1. Global fix for containers */
.container {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

/* 2. Responsive Article Content */
.bdc-content {
    width: 100%;
    max-width: 100%; /* Ensures it never exceeds the screen width */
    overflow-wrap: break-word; /* Prevents long URLs from breaking layout */
}

/* 3. Code Block Mobile Optimization */
.bdc-code-block {
    width: 100%;
    max-width: calc(100vw - 40px); /* Forces block to stay within mobile viewport */
    overflow-x: auto; /* Adds internal scrollbar for long commands */
}

/* 4. Desktop/Large Screens (Reset/Fix) */
@media (min-width: 992px) {
    .bdc-section .bdc-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 48px;
    }
}

/* 5. Tablets & Small Laptops */
@media (max-width: 991px) {
    .bdc-section .bdc-layout {
        grid-template-columns: 1fr; /* Stack sidebar below content */
        gap: 40px;
    }

    .bdc-section .bdc-sidebar {
        position: static; /* Remove sticky on mobile for better flow */
        width: 100%;
    }

    .bdc-section .bdh-heading {
        font-size: 2.2rem;
    }
}

/* 6. Mobile Phones */
@media (max-width: 767px) {
    .bdh-section {
        min-height: auto;
    }

    .bdh-section .bdh-content-wrap {
        padding: 80px 0 40px;
    }

    /* Stack Meta Data (Author, Date) vertically on tiny screens */
    .bdh-section .bdh-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .bdh-section .bdh-meta-divider {
        display: none;
    }

    /* Content Typography */
    .bdc-content h1 {
        font-size: 1.8rem;
    }

    .bdc-content h2 {
        font-size: 1.5rem;
        padding-left: 15px;
    }

    /* Make images responsive */
    .bdc-section .bdc-img-wrap img {
        height: auto;
        aspect-ratio: 16/9;
    }

    /* Author Card adjustment */
    .bdc-section .bdc-author-card {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        align-items: center;
    }
    
    .bdc-section .bdc-author-body {
        margin-top: 15px;
    }
}

/* 7. Extra Small Devices (Under 400px) */
@media (max-width: 480px) {
    .bdh-section .bdh-heading {
        font-size: 1.5rem;
    }
    
    .bdc-code-block {
        padding: 15px;
        font-size: 0.8rem;
    }
    
    .bdc-section .bdc-lead {
        font-size: 1rem;
        padding-left: 15px;
    }
}