/* ===== BLOG DETAILS PAGE ===== */

/* --- Hero --- */
.bd-hero {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.bd-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.15) 100%);
}

.bd-hero-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem clamp(1.5rem, 5vw, 5rem);
    z-index: 2;
    color: #fff;
}

.bd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

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

.bd-hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    max-width: 780px;
    margin-bottom: 0.9rem;
}

.bd-hero-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.85rem;
    opacity: 0.82;
}

.bd-hero-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Layout --- */
.bd-section {
    padding: 3.5rem 0 5rem;
    background: #f8f9fb;
}

.bd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: flex-start;
}

/* --- Article --- */
.bd-article {
    background: #fff;
    border-radius: 20px;
    border: 1.5px solid #eaecf0;
    padding: 2.5rem;
}

/* Article content typography */
.bd-content {
    font-size: 1rem;
    line-height: 1.85;
    color: #2d3748;
    margin-bottom: 2.5rem;
}

.bd-content h1,
.bd-content h2,
.bd-content h3,
.bd-content h4 {
    font-weight: 700;
    color: #1a2035;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.bd-content h2 { font-size: 1.5rem; }
.bd-content h3 { font-size: 1.25rem; }
.bd-content h4 { font-size: 1.05rem; }

.bd-content p { margin-bottom: 1.1rem; }

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

.bd-content ul,
.bd-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.1rem;
}

.bd-content li { margin-bottom: 0.4rem; }

.bd-content blockquote {
    border-left: 4px solid var(--brand-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--brand-primary-soft, rgba(242,166,90,0.08));
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4a5568;
}

.bd-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1rem 0;
}

.bd-content code {
    background: #f0f4ff;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.88em;
    color: #c7254e;
}

/* --- Share Row --- */
.bd-share-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1.5px solid #eaecf0;
    flex-wrap: wrap;
}

.bd-share-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #5a6478;
}

.bd-share-icons {
    display: flex;
    gap: 0.5rem;
}

.bd-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s, transform 0.2s;
}

.bd-share-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.bd-share-fb { background: #1877f2; }
.bd-share-tw { background: #000; }
.bd-share-li { background: #0a66c2; }
.bd-share-pi { background: #e60023; }

/* --- Sidebar --- */
.bd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 90px;
}

/* CTA box */
.bd-cta-box {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d50 100%);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    text-align: center;
    color: #fff;
}

.bd-cta-icon {
    font-size: 2.5rem;
    color: var(--brand-primary);
    display: block;
    margin-bottom: 0.75rem;
}

.bd-cta-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bd-cta-box p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.bd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.bd-cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Sidebar card */
.bd-sidebar-card {
    background: #fff;
    border-radius: 18px;
    border: 1.5px solid #eaecf0;
    padding: 1.5rem;
}

.bd-sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a2035;
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid #f0f2f7;
}

.bd-recent-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bd-recent-item {
    display: flex;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.bd-recent-item:hover .bd-recent-title {
    color: var(--brand-primary);
}

.bd-recent-img {
    width: 72px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.bd-recent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.bd-recent-item:hover .bd-recent-img img {
    transform: scale(1.05);
}

.bd-recent-info {
    flex: 1;
    min-width: 0;
}

.bd-recent-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #8a94a6;
    margin-bottom: 4px;
}

.bd-recent-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a2035;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .bd-container {
        grid-template-columns: 1fr;
    }
    .bd-sidebar {
        position: static;
    }
    .bd-hero {
        height: 380px;
    }
}

@media (max-width: 600px) {
    .bd-hero {
        height: 300px;
    }
    .bd-article {
        padding: 1.5rem 1.25rem;
    }
    .bd-hero-meta {
        padding: 1.5rem;
    }
}
