/* =========================================
   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;
}

.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: 25px 20px;
}

.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;
    white-space: nowrap;
}

.bd-breadcrumb a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

.bd-breadcrumb a:hover {
    color: var(--primary);
}

.bd-breadcrumb span {
    color: var(--primary);
}

/* --- Main Layout --- */
.bd-main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    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;
    border-radius: 4px;
}

/* 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);
}

.bd-article-body p {
    color: #000000;
    font-size: 15px;
    line-height: 1.8;
}

.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;
    color: var(--text-body);
}

.bd-article-body li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 15px;
}

.bd-article-body ul li::marker,
.bd-article-body ol li::marker {
    font-size: 25px;
}

.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: #000000;
    margin-bottom: 8px;
}

/* --- Right Column: Sidebar --- */
.bd-sidebar {
    background-color: var(--sidebar-bg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    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 */
.bd-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bd-category-list li {
    margin-bottom: -1px;
}

.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,
.bd-category-list a.is-active {
    color: #2AB0DD;
    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;
    flex-shrink: 0;
}

.bd-thumb-placeholder {
    width: 65px;
    height: 65px;
    background: #e9ecef;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.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: #2AB0DD;
    color: #ffffff;
    border-color: var(--primary);
}


/* =========================================
   RESPONSIVE — TABLET & iPAD
   ========================================= */

/* Large tablet / iPad Pro landscape (1024px) */
@media (max-width: 1024px) {
    .bd-main-layout {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }

    .bd-page-title {
        font-size: 26px;
    }

    .bd-sidebar {
        padding: 24px;
        gap: 30px;
    }
}

/* iPad Pro portrait + standard tablets landscape (991px) */
@media (max-width: 991px) {
    .section-padding {
        padding: 40px 0;
    }

    .bd-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .bd-breadcrumb {
        white-space: normal;
        font-size: 12px;
    }

    /* Stack into single column, sidebar moves below */
    .bd-main-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .bd-content-area {
        width: 100%;
    }

    /* Sidebar: horizontal 3-column grid on tablets */
    .bd-sidebar {
        order: 2;
        padding: 24px;
        gap: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        background-color: var(--sidebar-bg);
        border-top: 2px solid var(--border-color);
    }

    .bd-article-body h2 {
        font-size: 22px;
        margin: 30px 0 12px;
    }

    .bd-article-body h3 {
        font-size: 18px;
    }

    .bd-article-body p,
    .bd-article-body li {
        font-size: 15px;
    }

    .bd-faq-section {
        padding: 24px;
        margin: 30px 0;
    }

    .bd-faq-section h2 {
        font-size: 20px;
    }
}

/* iPad mini / standard tablet portrait (768px) */
@media (max-width: 768px) {
    .bd-header-banner {
        padding: 20px 16px;
    }

    .bd-page-title {
        font-size: 22px;
    }

    .bd-page-subtitle {
        font-size: 14px;
    }

    .section-padding {
        padding: 30px 0;
    }

    .bd-main-layout {
        padding-left: 16px;
        padding-right: 16px;
        gap: 30px;
    }

    /* Sidebar collapses to 2-column grid */
    .bd-sidebar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }

    /* Tags widget spans full width on 2-col grid */
    .bd-sidebar .bd-widget:last-child {
        grid-column: 1 / -1;
    }

    .bd-article-body h2 {
        font-size: 20px;
        margin: 25px 0 10px;
    }

    .bd-article-body h3 {
        font-size: 17px;
    }

    .bd-article-body p,
    .bd-article-body li {
        font-size: 14.5px;
        line-height: 1.75;
    }

    .bd-featured-image {
        margin-bottom: 24px;
    }

    .bd-faq-section {
        padding: 20px;
        margin: 24px 0;
    }

    .bd-recent-list img,
    .bd-thumb-placeholder {
        width: 55px;
        height: 55px;
    }

    .bd-category-list a {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Small phones (max 480px) */
@media (max-width: 480px) {
    .bd-page-title {
        font-size: 20px;
    }

    .bd-main-layout {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Full single-column sidebar on phones */
    .bd-sidebar {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .bd-sidebar .bd-widget:last-child {
        grid-column: auto;
    }

    .bd-article-body h2 {
        font-size: 18px;
    }

    .bd-article-body h3 {
        font-size: 16px;
    }

    .bd-article-body p,
    .bd-article-body li {
        font-size: 14px;
    }

    .bd-faq-section {
        padding: 16px;
    }

    .bd-faq-item strong {
        font-size: 15px;
    }

    .bd-tags-cloud a {
        font-size: 9px;
        padding: 6px 10px;
    }
}