/* ============================================
   BLOG DETAIL PAGE — Opportunity-Style Design
   ============================================ */

:root {
    --bd-primary: #00568f;
    --bd-primary-hover: #004a7e;
    --bd-accent: #549ac9;
    --bd-light-bg: #f8f9fa;
    --bd-border: #dfe2e5;
    --bd-text-muted: #6c757d;
    --bd-text-dark: #1E1E1E;
    --bd-radius: 12px;
    --bd-radius-lg: 16px;
    --bd-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --bd-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* --- Top Action Bar --- */
.bd-top-bar {
    background: #fff;
    border-bottom: 1px solid var(--bd-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.bd-top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.bd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bd-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid var(--bd-border);
    background: #fff;
    transition: all 0.3s ease;
}

.bd-back-btn:hover {
    background: var(--bd-primary);
    color: #fff;
    border-color: var(--bd-primary);
    text-decoration: none;
}

.bd-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bd-text-dark);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid var(--bd-border);
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bd-share-btn:hover {
    border-color: var(--bd-accent);
    color: var(--bd-primary);
}

/* --- Hero Banner --- */
.bd-hero {
    position: relative;
    width: 100%;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.bd-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.bd-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.bd-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 15px 40px;
    color: #fff;
}

.bd-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.bd-hero-tag {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s;
}

.bd-hero-tag:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
}

.bd-hero-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bd-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.bd-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bd-hero-meta-item i {
    font-size: 13px;
    opacity: 0.8;
}

/* --- Main Layout --- */
.bd-main {
    background: var(--bd-light-bg);
    padding: 40px 0 60px;
}

.bd-main-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.bd-three-col {
    display: flex;
    gap: 24px;
}

.bd-col-left {
    flex: 0 0 260px;
    min-width: 260px;
}

.bd-col-center {
    flex: 1 1 auto;
    min-width: 0;
}

.bd-col-right {
    flex: 0 0 260px;
    min-width: 260px;
}

/* --- Cards --- */
.bd-card {
    background: #fff;
    border-radius: var(--bd-radius);
    border: 2px solid var(--bd-border);
    box-shadow: var(--bd-shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.bd-card-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8fafb 0, #fff 100%);
    border-bottom: 1px solid var(--bd-border);
    font-size: 14px;
    font-weight: 700;
    color: var(--bd-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bd-card-header i {
    color: var(--bd-primary);
}

.bd-card-body {
    padding: 18px;
}

/* --- Quick Info --- */
.bd-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
}

.bd-info-item:last-child {
    margin-bottom: 0;
}

.bd-info-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e6f2ff 0, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bd-primary);
    font-size: 13px;
}

.bd-info-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--bd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.bd-info-value {
    font-weight: 600;
    color: var(--bd-text-dark);
}

.bd-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.bd-info-tag {
    font-size: 11px;
    background: #f0f0f5;
    color: #555;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
}

.bd-info-tag:hover {
    background: var(--bd-primary);
    color: #fff;
    text-decoration: none;
}

/* --- Sticky Nav --- */
.bd-sticky-nav-wrap {
    position: sticky;
    top: 80px;
}

.bd-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bd-nav-list li {
    margin-bottom: 2px;
}

.bd-nav-link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--bd-text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.bd-nav-link:hover {
    background: #f8f9fa;
    color: var(--bd-primary);
}

.bd-nav-link.active {
    background: linear-gradient(135deg, #e6f2ff 0, #fff 100%);
    color: var(--bd-primary);
    border-left-color: var(--bd-primary);
    font-weight: 600;
}

/* --- Article Content --- */
.bd-article {
    background: #fff;
    border-radius: var(--bd-radius-lg);
    border: 2px solid var(--bd-border);
    box-shadow: var(--bd-shadow);
    padding: 40px;
}

.bd-article-content {
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}

.bd-article-content h2,
.bd-article-content h3,
.bd-article-content h4 {
    color: var(--bd-text-dark);
    margin-top: 36px;
    margin-bottom: 16px;
    font-weight: 700;
}

.bd-article-content h2 {
    font-size: 26px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bd-border);
}

.bd-article-content h3 {
    font-size: 22px;
}

.bd-article-content p {
    margin-bottom: 18px;
}

.bd-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.bd-article-content ul,
.bd-article-content ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.bd-article-content li {
    margin-bottom: 8px;
}

.bd-article-content a {
    color: var(--bd-primary);
    text-decoration: none;
    font-weight: 600;
}

.bd-article-content a:hover {
    text-decoration: underline;
}

.bd-article-content blockquote {
    border-left: 4px solid var(--bd-primary);
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--bd-light-bg);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* --- Share Block --- */
.bd-share-block {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--bd-border);
}

.bd-share-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--bd-text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bd-share-title i {
    color: var(--bd-primary);
}

.bd-share-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bd-share-btn-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--bd-border);
    background: #fff;
    transition: all 0.3s;
    color: var(--bd-text-dark);
}

.bd-share-btn-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.bd-share-btn-item.bd-share-fb:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.bd-share-btn-item.bd-share-tw:hover {
    background: #1da1f2;
    color: #fff;
    border-color: #1da1f2;
}

.bd-share-btn-item.bd-share-li:hover {
    background: #0077b5;
    color: #fff;
    border-color: #0077b5;
}

.bd-share-btn-item.bd-share-em:hover {
    background: var(--bd-primary);
    color: #fff;
    border-color: var(--bd-primary);
}

/* --- Sidebar --- */
.bd-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bd-sidebar-tag {
    font-size: 12px;
    background: #f0f0f5;
    color: #555;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.bd-sidebar-tag:hover {
    background: var(--bd-primary);
    color: #fff;
    text-decoration: none;
}

.bd-author-card {
    text-align: center;
    padding: 20px;
}

.bd-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bd-primary) 0, var(--bd-accent) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.bd-author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--bd-text-dark);
    margin-bottom: 4px;
}

.bd-author-role {
    font-size: 12px;
    color: var(--bd-text-muted);
}

/* --- Also Read Section --- */
.bd-also-read {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--bd-border);
}

.bd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.bd-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--bd-text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bd-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--bd-primary) 0, var(--bd-accent) 100%);
    border-radius: 2px;
    margin-left: 4px;
}

.bd-section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bd-section-link:hover {
    color: var(--bd-primary-hover);
}

/* --- Responsive --- */
@media (max-width: 1199px) {
    .bd-col-right {
        display: none;
    }
}

@media (max-width: 991px) {
    .bd-three-col {
        flex-direction: column;
    }

    .bd-col-left {
        flex: 0 0 auto;
        min-width: auto;
        width: 100%;
        order: 2;
    }

    .bd-col-center {
        order: 1;
        width: 100%;
    }

    .bd-sticky-nav-wrap {
        position: static;
    }

    .bd-hero-title {
        font-size: 28px;
    }

    .bd-article {
        padding: 24px;
    }
}

@media (max-width: 575px) {
    .bd-hero {
        min-height: 300px;
    }

    .bd-hero-title {
        font-size: 22px;
    }

    .bd-hero-meta {
        gap: 12px;
        font-size: 12px;
    }

    .bd-article {
        padding: 20px;
    }

    .bd-article-content {
        font-size: 15px;
    }

    .bd-share-btns {
        justify-content: center;
    }

    .bd-top-bar-inner {
        padding: 0 10px;
    }
}
