/* ===== BLOG DETAILS PAGE ===== */

:root {
    --bd-navy: var(--trippal-dark, #0A1556);
    --bd-orange: var(--trippal-primary, #FF7F14);
    --bd-text: #1E1E2B;
    --bd-text-light: #5A5768;
    --bd-cream: #FAF7F2;
    --bd-border: #E8E5DE;
}

/* ===== HERO ===== */
.bd-hero {
    position: relative;
    background: var(--bd-navy);
    padding: 60px 0 90px 0;
    overflow: hidden;
}

.bd-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 127, 20, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(255, 127, 20, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.bd-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 12% 90%, rgba(255,127,20,0.3) 50%, transparent 51%),
        radial-gradient(2px 2px at 28% 85%, rgba(255,127,20,0.2) 50%, transparent 51%),
        radial-gradient(2px 2px at 45% 92%, rgba(255,127,20,0.3) 50%, transparent 51%),
        radial-gradient(2px 2px at 62% 87%, rgba(255,127,20,0.25) 50%, transparent 51%),
        radial-gradient(2px 2px at 78% 90%, rgba(255,127,20,0.3) 50%, transparent 51%),
        radial-gradient(2px 2px at 90% 84%, rgba(255,127,20,0.2) 50%, transparent 51%);
    opacity: 0.7;
}

.bd-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.bd-container-sm {
    max-width: 860px;
}

.bd-hero-inner {
    max-width: 860px;
}

/* Breadcrumbs */
.bd-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(255, 251, 248, 0.6);
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.bd-breadcrumbs a {
    color: rgba(255, 251, 248, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.bd-breadcrumbs a:hover {
    color: #fff;
}

.bd-sep {
    opacity: 0.4;
}

/* Category badge */
.bd-category {
    display: inline-block;
    margin-bottom: 18px;
}

.bd-category.category-badge {
    background: rgba(255, 127, 20, 0.16);
    color: var(--bd-orange);
    border: 1px solid rgba(255, 127, 20, 0.35);
}

/* Title */
.bd-title {
    color: #FFFBF8;
    font-family: 'Sora', sans-serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 18px 0;
}

.bd-excerpt {
    color: rgba(255, 251, 248, 0.78);
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    max-width: 720px;
}

/* Meta */
.bd-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.bd-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bd-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bd-orange), #FFB84D);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Sora', sans-serif;
}

.bd-author-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bd-author-name {
    color: #FFFBF8;
    font-weight: 600;
    font-size: 14px;
}

.bd-author-sub {
    color: rgba(255, 251, 248, 0.62);
    font-size: 12.5px;
}

.bd-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bd-share-label {
    color: rgba(255, 251, 248, 0.72);
    font-size: 13px;
    font-weight: 500;
}

.bd-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 251, 248, 0.2);
    background: rgba(255, 251, 248, 0.06);
    color: rgba(255, 251, 248, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.bd-share-btn:hover {
    background: rgba(255, 251, 248, 0.12);
    color: #fff;
}

/* ===== FEATURED IMAGE ===== */
.bd-feat-image-section {
    margin-top: -50px;
    padding-bottom: 40px;
    position: relative;
    z-index: 2;
}

.bd-feat-image-wrap {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(10, 21, 86, 0.18);
    background: var(--bd-cream);
}

.bd-feat-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 460px;
    object-fit: cover;
}

/* ===== CONTENT LAYOUT ===== */
.bd-content-section {
    padding: 20px 0 70px 0;
    background: #fff;
}

.bd-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
    align-items: start;
}

.bd-main {
    min-width: 0;
}

/* ===== ARTICLE BODY ===== */
.bd-article {
    position: relative;
}

.bd-body {
    color: var(--bd-text);
    font-size: 16px;
    line-height: 1.75;
}

.bd-body p {
    margin: 0 0 22px 0;
    color: #2B2A35;
}

.bd-body h2,
.bd-body h3,
.bd-body h4 {
    font-family: 'Sora', sans-serif;
    color: var(--bd-navy);
    margin: 36px 0 16px 0;
    line-height: 1.3;
}

.bd-body h2 { font-size: 26px; font-weight: 700; }
.bd-body h3 { font-size: 21px; font-weight: 700; }
.bd-body h4 { font-size: 18px; font-weight: 600; }

.bd-body ul,
.bd-body ol {
    margin: 0 0 22px 0;
    padding-left: 26px;
}

.bd-body li {
    margin: 0 0 10px 0;
    color: #2B2A35;
}

.bd-body a {
    color: var(--bd-orange);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 127, 20, 0.3);
    transition: border-color 0.2s;
}

.bd-body a:hover {
    border-bottom-color: var(--bd-orange);
}

.bd-body blockquote {
    margin: 30px 0;
    padding: 18px 26px;
    border-left: 4px solid var(--bd-orange);
    background: #FFF7ED;
    color: #5A3820;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.bd-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 24px rgba(10, 21, 86, 0.08);
}

.bd-body code {
    background: var(--bd-cream);
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 14px;
    color: #8A3B00;
    font-family: 'Consolas', monospace;
}

.bd-body hr {
    border: none;
    border-top: 1px solid var(--bd-border);
    margin: 36px 0;
}

/* Tags */
.bd-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 42px 0 30px 0;
    padding-top: 24px;
    border-top: 1px solid var(--bd-border);
    flex-wrap: wrap;
}

.bd-tags-label {
    color: var(--bd-text-light);
    font-size: 13px;
    font-weight: 500;
}

.bd-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bd-cream);
    color: var(--bd-navy);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    border: 1px solid var(--bd-border);
}

.bd-tag:hover {
    background: var(--bd-orange);
    color: #fff;
    border-color: var(--bd-orange);
}

/* Author box */
.bd-author-box {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 26px;
    background: var(--bd-cream);
    border: 1px solid var(--bd-border);
    border-radius: 14px;
}

.bd-author-box-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bd-orange), #FFB84D);
    color: #fff;
    font-weight: 700;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Sora', sans-serif;
}

.bd-author-box-name {
    color: var(--bd-navy);
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 6px 0;
    font-family: 'Sora', sans-serif;
}

.bd-author-box-bio {
    color: var(--bd-text-light);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

/* ===== RELATED POSTS ===== */
.bd-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--bd-cream);
}

.bd-related-title {
    color: var(--bd-navy);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
    font-family: 'Sora', sans-serif;
}

.bd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.bd-related-card {
    background: #fff;
    border: 1px solid var(--bd-border);
    border-radius: 14px;
    padding: 22px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(10, 21, 86, 0.04);
    min-height: 240px;
}

.bd-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(10, 21, 86, 0.1);
    border-color: rgba(255, 127, 20, 0.3);
}

.bd-related-cat {
    align-self: flex-start;
    font-size: 11px !important;
    padding: 4px 10px !important;
    margin-bottom: 2px !important;
}

.bd-related-card-title {
    color: var(--bd-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    font-family: 'Sora', sans-serif;
    transition: color 0.2s;
}

.bd-related-card:hover .bd-related-card-title {
    color: var(--bd-orange);
}

.bd-related-card-excerpt {
    color: var(--bd-text-light);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bd-related-card-meta {
    color: #8A8494;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-weight: 500;
}

/* ===== SIDEBAR ===== */
.bd-sidebar {
    position: sticky;
    top: 80px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .bd-title {
        font-size: 36px;
    }

    .bd-layout {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .bd-sidebar {
        position: static;
    }

    .bd-related-grid {
        grid-template-columns: 1fr;
    }

    .bd-hero {
        padding: 50px 0 76px 0;
    }
}

@media (max-width: 767px) {
    .bd-hero {
        padding: 40px 0 64px 0;
    }

    .bd-container {
        padding: 0 18px;
    }

    .bd-title {
        font-size: 28px;
    }

    .bd-excerpt {
        font-size: 15px;
    }

    .bd-body {
        font-size: 15px;
    }

    .bd-body h2 { font-size: 22px; }
    .bd-body h3 { font-size: 18px; }

    .bd-feat-image-section {
        margin-top: -36px;
        padding-bottom: 24px;
    }

    .bd-author-box {
        flex-direction: column;
        padding: 20px;
    }

    .bd-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .bd-title {
        font-size: 24px;
    }

    .bd-share {
        align-self: flex-end;
    }
}
