/* =========================================
   BLOG DETAIL PAGE CUSTOM STYLES
   ========================================= */

:root {
    --primary: #059EFF;
    --secondary: #DEF3FF;
    --text-dark: #1a1a1a;
    --text-body: #444444;
    --bg-page: #ffffff;
    --border-color: #E5E9F0;
    --sidebar-bg: #F8F9FA; /* The distinct light gray sidebar background from the image */
}

.blog-detail-page {
    background-color: var(--bg-page);
    min-height: 100vh;
}

.section-padding { padding: 50px 0; }

/* --- Header Banner --- */
.bd-header-banner {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 35px 0;
}
.bd-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bd-page-title {
    margin: 0 0 5px;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
}
.bd-page-subtitle {
    margin: 0;
    color: #666;
    font-size: 15px;
}
.bd-breadcrumb {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}
.bd-breadcrumb a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}
.bd-breadcrumb a:hover {
    color: var(--primary);
}
.bd-breadcrumb span {
    color: #666;
}

/* --- Main Layout --- */
.bd-main-layout {
    display: grid;
    grid-template-columns: 1fr 340px; /* Right column specifically sized for the sidebar */
    gap: 50px;
    align-items: start;
}

/* --- Left Column: Content Area --- */
.bd-featured-image {
    width: 100%;
    margin-bottom: 35px;
}
.bd-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Typography Inside Post Body */
.bd-article-body h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 40px 0 15px;
    line-height: 1.3;
}
.bd-article-body h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.bd-article-body p {
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.bd-article-body strong, 
.bd-article-body b {
    color: var(--text-dark);
    font-weight: 700;
}

.bd-article-body ul, 
.bd-article-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-body);
}

.bd-article-body li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 15px;
}

.bd-article-body a {
    color: var(--primary);
    text-decoration: underline;
}
.bd-article-body a:hover {
    text-decoration: none;
}

/* --- FAQ Section inside Blog --- */
.bd-faq-section {
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    padding: 30px;
    margin: 40px 0;
}
.bd-faq-section h2 {
    margin-top: 0;
    font-size: 22px;
    margin-bottom: 20px;
}
.bd-faq-item {
    margin-bottom: 20px;
}
.bd-faq-item strong {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* --- Right Column: Sidebar (Matches Image 3 Exactly) --- */
.bd-sidebar {
    background-color: var(--sidebar-bg); /* Full sidebar height gets the gray bg */
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Optional: To make it stretch nicely if content is long */
    height: 100%; 
}

.bd-widget-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Categories List as white boxes */
.bd-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bd-category-list li {
    margin-bottom: -1px; /* Collapses borders so they don't double up */
}
.bd-category-list a {
    display: block;
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.bd-category-list a:hover {
    color: var(--primary);
    background-color: #fcfcfc;
}

/* Recent Posts List */
.bd-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.bd-recent-list li {
    display: flex;
    align-items: center;
    gap: 15px;
}
.bd-recent-list img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background-color: #fff;
    padding: 2px;
}
.bd-thumb-placeholder {
    width: 65px;
    height: 65px;
    background: #e9ecef;
    border: 1px solid var(--border-color);
}
.bd-recent-list a {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s;
}
.bd-recent-list a:hover {
    color: var(--primary);
}

/* Tags Cloud Widget */
.bd-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bd-tags-cloud a {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    color: #666;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
}
.bd-tags-cloud a:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* --- Responsive Queries --- */
@media (max-width: 1024px) {
    .bd-main-layout {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .bd-header-flex {
        flex-direction: column;
        text-align: left;
        gap: 15px;
    }
    .bd-main-layout {
        grid-template-columns: 1fr;
    }
    .bd-sidebar {
        order: 2;
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .bd-page-title {
        font-size: 24px;
    }
    .section-padding { padding: 40px 0; }
}