/* =========================================
   BLOG DETAIL PAGE  —  blog-detail.css
   Matches screenshot exactly
   ========================================= */

:root {
    --bd-cyan:    #29C3D4;
    --bd-cyan-dk: #1FA8B8;
    --bd-dark:    #1a1a1a;
    --bd-text:    #333;
    --bd-muted:   #666;
    --bd-bg:      #f0f0f0;
    --bd-white:   #ffffff;
    --bd-border:  #e5e9f0;
    --bd-shadow:  0 2px 14px rgba(0,0,0,.07);
    --bd-radius:  8px;
}

/* ─── Page shell ─── */
.bd-page {
    background: var(--bd-bg);
    min-height: 100vh;
}

.bd-outer {
    max-width: 1060px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    box-sizing: border-box;
}

/* ─── Two-column layout ─── */
.bd-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 28px;
    align-items: start;
}

/* =========================================
   ARTICLE (LEFT)
   ========================================= */
.bd-article {
    background: var(--bd-white);
    border-radius: var(--bd-radius);
    overflow: hidden;
    box-shadow: var(--bd-shadow);
}

/* ── Featured image hero ── */
.bd-hero-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--bd-radius) var(--bd-radius) 0 0;
    line-height: 0;
}

.bd-hero-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
    border-radius: var(--bd-radius) var(--bd-radius) 0 0;
}

.bd-hero-img:hover img {
    transform: scale(1.02);
}

/* Bottom gradient — title readable */
.bd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.0) 40%,
        rgba(0,0,0,.65) 100%
    );
    border-radius: var(--bd-radius) var(--bd-radius) 0 0;
}

/* Title + badge pinned to BOTTOM LEFT */
.bd-hero-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px 18px;
    z-index: 2;
}

.bd-hero-title {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 8px;
    text-shadow: 0 1px 5px rgba(0,0,0,.45);
    font-family: 'Georgia', serif;
}

/* Teal category badge — below the title */
.bd-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bd-cyan);
    color: #fff;
    font-size: 15px !important;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 14px !important;
    border-radius: 20px;
}

/* Dot inside badge */
/* .bd-category-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
} */

.bd-hero-info {
    color: rgba(255,255,255,.8);
    font-size: 11px;
    margin: 6px 0 0;
    font-weight: 500;
    display: none; /* hidden per screenshot */
}

/* No-image fallback header */
.bd-no-img-header {
    padding: 24px 24px 0;
}

.bd-plain-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--bd-dark);
    margin: 10px 0 8px;
    font-family: 'Georgia', serif;
    line-height: 1.3;
}

/* ── Article body ── */
.bd-body {
    padding: 22px 24px 8px;
}

/* h2: dark text + cyan underline border — matches screenshot */
.bd-body h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--bd-dark);
    margin: 26px 0 12px;
    line-height: 1.3;
    border-bottom: 2px solid var(--bd-cyan);
    padding-bottom: 8px;
}

/* h3: cyan colored — matches screenshot */
.bd-body h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--bd-cyan);
    margin: 18px 0 8px;
}

.bd-body p {
    font-size: 14px;
    color: var(--bd-text);
    line-height: 1.85;
    margin-bottom: 14px;
}

/* Cyan bullet dots — matches screenshot */
.bd-body ul {
    margin: 0 0 16px 0;
    padding: 0;
    list-style: none;
}

.bd-body ul li {
    font-size: 14px;
    color: var(--bd-text);
    line-height: 1.75;
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
}

.bd-body ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 7px;
    width: 7px;
    height: 7px;
    background: var(--bd-cyan);
    border-radius: 50%;
}

.bd-body ol {
    margin: 0 0 16px 18px;
    padding: 0;
}

.bd-body ol li {
    font-size: 14px;
    color: var(--bd-text);
    line-height: 1.75;
    margin-bottom: 6px;
}

.bd-body strong,
.bd-body b {
    color: var(--bd-dark);
    font-weight: 700;
}

.bd-body a {
    color: var(--bd-cyan);
    text-decoration: underline;
}

.bd-body a:hover {
    text-decoration: none;
}

.bd-body blockquote {
    border-left: 4px solid var(--bd-cyan);
    background: #f0fbfc;
    margin: 16px 0;
    padding: 12px 16px;
    font-style: italic;
    color: var(--bd-muted);
    border-radius: 0 4px 4px 0;
}

/* ── FAQ ── */
.bd-faq {
    margin: 8px 24px 12px;
    background: #f9f9f9;
    border: 1px solid var(--bd-border);
    border-radius: 4px;
    padding: 20px 22px;
}

.bd-faq-heading {
    font-size: 16px;
    font-weight: 800;
    color: var(--bd-dark);
    margin: 0 0 14px;
    border-bottom: 2px solid var(--bd-cyan);
    padding-bottom: 8px;
}

.bd-faq-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--bd-border);
}

.bd-faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bd-faq-item strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--bd-dark);
    margin-bottom: 5px;
}

.bd-faq-answer {
    font-size: 14px;
    color: var(--bd-text);
    line-height: 1.7;
}

/* =========================================
   SIDEBAR (RIGHT)
   ========================================= */
.bd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 20px;
}

/* ── Related Blogs — NO border box, plain title ── */
.bd-widget {
    background: transparent;
}

.bd-widget-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--bd-dark);
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 14px;
    padding: 0;
    border: none;
    background: none;
}

/* Related list items */
.bd-related-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bd-related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--bd-border);
    transition: opacity .2s;
}

.bd-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bd-related-item:hover { opacity: .72; }

.bd-related-thumb {
    flex-shrink: 0;
    width: 58px;
    height: 42px;
    overflow: hidden;
    border-radius: 3px;
    background: #ddd;
    border: 1px solid var(--bd-border);
}

.bd-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bd-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #dde;
}

.bd-related-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--bd-dark);
    line-height: 1.4;
}

.bd-empty-note {
    font-size: 12px;
    color: var(--bd-muted);
    padding: 6px 0;
    margin: 0;
}

/* ── Share with your community ── */
.bd-share-box {
    background: var(--bd-cyan);
    border-radius: 6px;
    padding: 16px 16px 18px;
    box-shadow: var(--bd-shadow);
}

.bd-share-title {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: .3px;
}

.bd-share-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bd-share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
    flex-shrink: 0;
}

.bd-share-icon:hover {
    transform: translateY(-2px);
    opacity: .9;
}

.bd-share-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Brand colours matching screenshot (email=dark, fb=blue, insta=pink) */
.bd-share-email { background: #555; }
.bd-share-fb    { background: #1877F2; }
.bd-share-ig    { background: #E1306C; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 860px) {
    .bd-layout {
        grid-template-columns: 1fr;
    }

    .bd-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .bd-widget      { flex: 1 1 240px; }
    .bd-share-box   { flex: 1 1 200px; }
}

@media (max-width: 560px) {
    .bd-outer { padding: 14px 12px 40px; }

    .bd-hero-img img { height: 220px; }

    .bd-hero-title  { font-size: 16px; }

    .bd-body        { padding: 16px 16px 6px; }
    .bd-faq         { margin: 8px 16px 12px; }

    .bd-sidebar {
        flex-direction: column;
    }
}


/* ─── Two-column layout ─── */
.bd-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

/* =========================================
   ARTICLE (LEFT)
   ========================================= */
.bd-article {
    background: var(--bd-white);
    border-radius: var(--bd-radius);
    overflow: hidden;
    box-shadow: var(--bd-shadow);
}

/* ── Featured image hero ── */
.bd-hero-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-height: 380px;
    line-height: 0;
}

.bd-hero-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.bd-hero-img:hover img {
    transform: scale(1.02);
}

/* Gradient overlay so white text reads clearly */
.bd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.08) 0%,
        rgba(0,0,0,.55) 100%
    );
}

/* Text pinned to bottom of hero image */
.bd-hero-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px 22px;
    z-index: 2;
}

/* Teal category badge */
.bd-category-badge {
    display: inline-block;
    background: var(--bd-cyan);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.bd-hero-title {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 8px;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
    font-family: 'Georgia', serif;
}

.bd-hero-info {
    color: rgba(255,255,255,.85);
    font-size: 12px;
    margin: 0;
    font-weight: 500;
}

/* No-image fallback header */
.bd-no-img-header {
    padding: 28px 28px 0;
}

.bd-plain-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--bd-dark);
    margin: 10px 0 8px;
    font-family: 'Georgia', serif;
    line-height: 1.3;
}

/* ── Article body ── */
.bd-body {
    padding: 28px 28px 8px;
}

.bd-body h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--bd-dark);
    margin: 28px 0 12px;
    line-height: 1.3;
    border-bottom: 2px solid var(--bd-border);
    padding-bottom: 8px;
}

.bd-body h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--bd-dark);
    margin: 22px 0 10px;
}

.bd-body p {
    font-size: 14px;
    color: var(--bd-text);
    line-height: 1.85;
    margin-bottom: 16px;
}

.bd-body ul,
.bd-body ol {
    margin: 0 0 18px 18px;
    padding: 0;
}

.bd-body li {
    font-size: 14px;
    color: var(--bd-text);
    line-height: 1.75;
    margin-bottom: 6px;
}

.bd-body strong,
.bd-body b {
    color: var(--bd-dark);
    font-weight: 700;
}

.bd-body a {
    color: var(--bd-cyan);
    text-decoration: underline;
}

.bd-body a:hover {
    text-decoration: none;
}

/* Key Points / callout boxes inside body */
.bd-body blockquote {
    border-left: 4px solid var(--bd-cyan);
    background: #f0fbfc;
    margin: 16px 0;
    padding: 14px 18px;
    font-style: italic;
    color: var(--bd-muted);
    border-radius: 0 var(--bd-radius) var(--bd-radius) 0;
}

/* ── FAQ ── */
.bd-faq {
    margin: 8px 28px 12px;
    background: #f9f9f9;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 22px 24px;
}

.bd-faq-heading {
    font-size: 17px;
    font-weight: 800;
    color: var(--bd-dark);
    margin: 0 0 16px;
    border-bottom: 2px solid var(--bd-border);
    padding-bottom: 8px;
}

.bd-faq-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--bd-border);
}

.bd-faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bd-faq-item strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--bd-dark);
    margin-bottom: 6px;
}

.bd-faq-answer {
    font-size: 14px;
    color: var(--bd-text);
    line-height: 1.7;
}

/* =========================================
   SIDEBAR (RIGHT)
   ========================================= */
.bd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 20px;
}

/* ── Widget shell ── */
.bd-widget {
    background: var(--bd-white);
    border-radius: var(--bd-radius);
    box-shadow: var(--bd-shadow);
    overflow: hidden;
}

.bd-widget-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--bd-dark);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid var(--bd-border);
    background: #fafafa;
}

/* ── Related Blogs list ── */
.bd-related-list {
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bd-related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--bd-border);
    transition: opacity .2s;
}

.bd-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bd-related-item:hover {
    opacity: .75;
}

.bd-related-thumb {
    flex-shrink: 0;
    width: 62px;
    height: 44px;
    overflow: hidden;
    border-radius: 3px;
    background: #eee;
    border: 1px solid var(--bd-border);
}

.bd-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bd-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #dde;
}

.bd-related-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--bd-dark);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.bd-empty-note {
    font-size: 12px;
    color: var(--bd-muted);
    padding: 10px 0;
    margin: 0;
}

/* ── Share with your community ── */
.bd-share-box {
    background: var(--bd-cyan);
    border-radius: var(--bd-radius);
    padding: 20px 18px 22px;
    box-shadow: var(--bd-shadow);
}

.bd-share-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin: 0 0 16px;
}

.bd-share-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bd-share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
    flex-shrink: 0;
}

.bd-share-icon:hover {
    transform: translateY(-2px);
    opacity: .9;
}

.bd-share-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Individual brand colours */
.bd-share-fb { background: #1877F2; }
.bd-share-tw { background: #1DA1F2; }
.bd-share-li { background: #0A66C2; }
.bd-share-wa { background: #25D366; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .bd-layout {
        grid-template-columns: 1fr;
    }

    .bd-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .bd-share-box {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .bd-outer { padding: 20px 14px 40px; }

    .bd-hero-img,
    .bd-hero-img img { max-height: 240px; height: 240px; }

    .bd-hero-title { font-size: 17px; }

    .bd-body         { padding: 18px 16px 6px; }
    .bd-faq          { margin: 8px 16px 12px; }

    .bd-sidebar {
        grid-template-columns: 1fr;
    }

    .bd-share-box {
        grid-column: span 1;
    }
}