.blog-detail-wrapper {
    background: #f8fafc;
    color: #1e293b;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
}

/* Hero Section */
.blog-hero-section {
    position: relative;
    min-height: 520px;
    background: #0f172a;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: brightness(0.85);
    transform: scale(1.02);
    transition: transform 10s ease-out;
}

.blog-hero-section:hover .blog-hero-bg {
    transform: scale(1.06);
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.85) 75%, #0f172a 100%);
    z-index: 1;
}

.blog-hero-container {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-bottom: 60px;
}

.blog-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--blog-badge-bg);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
}

.blog-hero-title {
    color: #ffffff;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    max-width: 100%;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.blog-hero-subtitle {
    color: rgba(241, 245, 249, 0.92);
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    line-height: 1.65;
    max-width: 100%;
    margin-bottom: 28px;
}

.blog-meta-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    font-weight: 600;
}

.blog-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Main Layout Shell */
.blog-content-shell {
    position: relative;
    z-index: 3;
    margin-top: -30px;
    padding-bottom: 80px;
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #ffffff;
    color: #1e293b;
    font-weight: 750;
    font-size: 0.92rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.blog-back-btn:hover {
    color: var(--blog-accent-color);
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.blog-main-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.07);
    padding: clamp(28px, 4vw, 54px);
}

.blog-grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 991px) {
    .blog-grid-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* Sidebar Elements */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-author-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.blog-author-avatar-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.blog-author-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-author-avatar-initial {
    width: 100%;
    height: 100%;
    background: var(--blog-badge-bg);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
}

.blog-author-name {
    font-size: 1.12rem;
    font-weight: 850;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 4px;
}

.blog-author-role {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blog-accent-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.blog-share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.blog-share-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.blog-share-icon:hover {
    background: var(--blog-accent-color);
    color: #ffffff;
    border-color: var(--blog-accent-color);
    transform: translateY(-2px);
}

/* Article Body Typography */
.blog-article-body {
    font-size: 1.12rem;
    line-height: 1.88;
    color: #334155;
}

.blog-article-body p {
    margin-bottom: 24px;
}

.blog-article-body p:first-of-type::first-letter {
    float: left;
    font-size: 3.8rem;
    line-height: 0.8;
    font-weight: 900;
    color: var(--blog-accent-color);
    margin-right: 12px;
    margin-top: 4px;
    font-family: Georgia, serif;
}

.blog-article-body h3 {
    font-size: 1.55rem;
    font-weight: 850;
    color: #0f172a;
    margin: 36px 0 16px;
    position: relative;
    padding-bottom: 8px;
}

.blog-article-body h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 3px;
    background: var(--blog-badge-bg);
    border-radius: 999px;
}

.blog-article-body blockquote {
    margin: 32px 0;
    padding: 24px 30px;
    border-left: 5px solid var(--blog-accent-color);
    background: #f8fafc;
    border-radius: 0 16px 16px 0;
    font-size: 1.22rem;
    font-style: italic;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.65;
}

.key-takeaways {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 18px;
    padding: 28px;
    margin: 36px 0;
}

.key-takeaways h4 {
    font-size: 1.2rem;
    font-weight: 850;
    color: #0f172a;
    margin-bottom: 14px;
}

.key-takeaways ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.key-takeaways li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Author Footer Card */
.blog-author-footer-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    margin-top: 48px;
}

.blog-author-footer-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Related Blogs Section */
.blog-related-section {
    margin-top: 60px;
}

.blog-related-heading {
    font-size: 1.8rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.blog-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    color: inherit;
}

.blog-related-img-wrap {
    height: 190px;
    position: relative;
    overflow: hidden;
}

.blog-related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-related-card:hover .blog-related-img-wrap img {
    transform: scale(1.06);
}

.blog-related-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.blog-related-title {
    font-size: 1.15rem;
    font-weight: 850;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.5rem;
}

.blog-related-link {
    margin-top: auto;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--blog-accent-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
