/* =============================================================
   BLOG DETAIL PAGE — FULL CSS
============================================================= */

/* ---------- Reading Progress Bar ---------- */

.reading_progress_bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #eab308, #f59e0b, #eab308);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

/* ---------- Hero Section ---------- */

.blog_detail_hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
}

.blog_detail_hero_img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.blog_detail_hero_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.blog_detail_hero_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.blog_detail_hero_content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Breadcrumb */

.blog_breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
}

.blog_breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.blog_breadcrumb a:hover {
    color: #eab308;
}

.blog_breadcrumb svg {
    color: #4b5563;
}

.blog_breadcrumb span {
    color: #eab308;
}

/* Badge */

.blog_detail_badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.08));
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.25);
    margin-bottom: 24px;
}

/* Title */

.blog_detail_title {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* Excerpt */

.blog_detail_excerpt {
    font-size: 18px;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 700px;
}

/* Meta Row */

.blog_detail_meta_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.blog_detail_author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.blog_detail_author_avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #eab308, #ca8a04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(234, 179, 8, 0.3);
}

.blog_detail_author_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog_detail_author_avatar span {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.blog_detail_author_info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog_detail_author_info strong {
    font-size: 15px;
    color: #fff;
}

.blog_detail_author_info span {
    font-size: 13px;
    color: #6b7280;
}

.blog_detail_stats {
    display: flex;
    gap: 24px;
}

.blog_detail_stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.blog_detail_stat svg {
    color: #4b5563;
}

/* ---------- Body Layout ---------- */

.blog_detail_body {
    background: #000;
}

.blog_detail_layout {
    display: grid;
    grid-template-columns: 60px 1fr 240px;
    gap: 40px;
    align-items: start;
}

/* ---------- Share Sidebar (Left) ---------- */

.blog_share_sidebar {
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.blog_share_sidebar.visible {
    opacity: 1;
    transform: translateX(0);
}

.blog_share_sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.blog_share_label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6b7280;
    margin-bottom: 4px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.blog_share_btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog_share_btn:hover {
    transform: translateY(-2px);
    border-color: rgba(234, 179, 8, 0.3);
}

.share_twitter:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.share_linkedin:hover {
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.1);
    border-color: rgba(10, 102, 194, 0.3);
}

.share_facebook:hover {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
    border-color: rgba(24, 119, 242, 0.3);
}

.share_whatsapp:hover {
    color: #25d366;
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
}

.share_copy:hover {
    color: #eab308;
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.3);
}

.share_bookmark:hover,
.share_bookmark.bookmarked {
    color: #eab308;
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.3);
}

.share_bookmark.bookmarked svg {
    fill: #eab308;
}

.blog_share_divider {
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

/* ---------- Article Content ---------- */

/* =============================================================
   BLOG ARTICLE — AUTO FORMAT ENGINE
   Automatically styles ALL content from rich text editors
============================================================= */

.blog_detail_content {
    font-size: 17px;
    line-height: 1.9;
    color: #d1d5db;
    letter-spacing: 0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ---------- First Paragraph = Lead ---------- */

.blog_detail_content > p:first-of-type {
    font-size: 20px;
    line-height: 1.8;
    color: #e5e7eb;
    font-weight: 400;
    border-left: 3px solid #eab308;
    padding-left: 20px;
    margin-bottom: 32px;
}

/* ---------- Paragraphs ---------- */

.blog_detail_content p {
    margin-bottom: 22px;
    color: #d1d5db;
}

.blog_detail_content p:last-child {
    margin-bottom: 0;
}

/* ---------- Headings with Auto Anchor ---------- */

.blog_detail_content h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 56px 0 24px;
    line-height: 1.25;
    scroll-margin-top: 90px;
    position: relative;
}

.blog_detail_content h2 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin: 52px 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.3;
    scroll-margin-top: 90px;
    position: relative;
}

.blog_detail_content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 40px 0 16px;
    line-height: 1.35;
    scroll-margin-top: 90px;
    position: relative;
}

.blog_detail_content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #f3f4f6;
    margin: 32px 0 14px;
    scroll-margin-top: 90px;
}

.blog_detail_content h5 {
    font-size: 17px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 28px 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog_detail_content h6 {
    font-size: 14px;
    font-weight: 700;
    color: #eab308;
    margin: 24px 0 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Heading Anchor Icon on Hover */

.blog_detail_content .heading-anchor {
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
    color: #eab308;
    opacity: 0;
    text-decoration: none;
    font-size: 18px;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.blog_detail_content h1:hover .heading-anchor,
.blog_detail_content h2:hover .heading-anchor,
.blog_detail_content h3:hover .heading-anchor,
.blog_detail_content h4:hover .heading-anchor {
    opacity: 1;
}

/* First heading no top margin */

.blog_detail_content > h1:first-child,
.blog_detail_content > h2:first-child,
.blog_detail_content > h3:first-child {
    margin-top: 0;
}

/* ---------- Links ---------- */

.blog_detail_content a {
    color: #eab308;
    text-decoration: none;
    border-bottom: 1px solid rgba(234, 179, 8, 0.3);
    padding-bottom: 1px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.blog_detail_content a:hover {
    color: #f59e0b;
    border-bottom-color: #f59e0b;
}

/* External link icon */

.blog_detail_content a[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23eab308' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* ---------- Bold / Italic / Underline ---------- */

.blog_detail_content strong,
.blog_detail_content b {
    color: #fff;
    font-weight: 600;
}

.blog_detail_content em,
.blog_detail_content i {
    color: #e5e7eb;
    font-style: italic;
}

.blog_detail_content u {
    text-decoration-color: #eab308;
    text-underline-offset: 4px;
}

.blog_detail_content mark,
.blog_detail_content .highlight {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    padding: 2px 6px;
    border-radius: 4px;
}

.blog_detail_content s,
.blog_detail_content del {
    color: #6b7280;
    text-decoration-color: #4b5563;
}

.blog_detail_content sup {
    color: #eab308;
    font-size: 0.75em;
}

.blog_detail_content sub {
    color: #9ca3af;
    font-size: 0.75em;
}

.blog_detail_content abbr {
    text-decoration: underline dotted #eab308;
    cursor: help;
}

/* ---------- Unordered Lists ---------- */

.blog_detail_content ul {
    margin: 24px 0;
    padding-left: 0;
    list-style: none;
}

.blog_detail_content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    color: #d1d5db;
    line-height: 1.7;
}

.blog_detail_content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eab308, #ca8a04);
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.3);
}

/* Nested List */

.blog_detail_content ul ul {
    margin: 10px 0 6px;
}

.blog_detail_content ul ul li::before {
    width: 6px;
    height: 6px;
    background: transparent;
    border: 2px solid #eab308;
    box-shadow: none;
    top: 11px;
}

.blog_detail_content ul ul ul li::before {
    border-radius: 0;
    width: 6px;
    height: 6px;
    border: none;
    background: #6b7280;
}

/* ---------- Ordered Lists ---------- */

.blog_detail_content ol {
    margin: 24px 0;
    padding-left: 0;
    list-style: none;
    counter-reset: article-counter;
}

.blog_detail_content ol li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    color: #d1d5db;
    line-height: 1.7;
    counter-increment: article-counter;
}

.blog_detail_content ol li::before {
    content: counter(article-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 14px;
    font-weight: 700;
    color: #eab308;
    background: rgba(234, 179, 8, 0.08);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(234, 179, 8, 0.15);
}

/* Nested OL */

.blog_detail_content ol ol {
    margin: 10px 0 6px;
    counter-reset: nested-counter;
}

.blog_detail_content ol ol li {
    counter-increment: nested-counter;
    padding-left: 32px;
}

.blog_detail_content ol ol li::before {
    content: counter(nested-counter, lower-alpha);
    font-size: 12px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

/* ---------- Blockquote ---------- */

.blog_detail_content blockquote {
    margin: 36px 0;
    padding: 28px 32px 28px 28px;
    border-left: 4px solid #eab308;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.06), rgba(234, 179, 8, 0.02));
    border-radius: 0 16px 16px 0;
    font-size: 18px;
    font-style: italic;
    color: #e5e7eb;
    line-height: 1.7;
    position: relative;
    overflow: hidden;
}

.blog_detail_content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 18px;
    font-size: 72px;
    color: rgba(234, 179, 8, 0.15);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    pointer-events: none;
}

.blog_detail_content blockquote::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.03));
    pointer-events: none;
}

.blog_detail_content blockquote p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    color: #e5e7eb;
}

.blog_detail_content blockquote p:last-child {
    margin-bottom: 0;
}

.blog_detail_content blockquote cite,
.blog_detail_content blockquote footer {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    color: #eab308;
}

.blog_detail_content blockquote cite::before,
.blog_detail_content blockquote footer::before {
    content: '— ';
}

/* Nested Blockquote */

.blog_detail_content blockquote blockquote {
    margin: 18px 0 10px;
    border-left-color: #ca8a04;
    background: rgba(234, 179, 8, 0.04);
    font-size: 16px;
}

.blog_detail_content blockquote blockquote::before {
    display: none;
}

/* ---------- Images ---------- */

.blog_detail_content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 36px 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
    cursor: zoom-in;
    transition: all 0.4s ease;
}

.blog_detail_content img:hover {
    border-color: rgba(234, 179, 8, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: scale(1.01);
}

/* Auto Figure Wrapper (added by JS) */

.blog_detail_content .auto-figure {
    margin: 40px 0;
    text-align: center;
    position: relative;
}

.blog_detail_content .auto-figure img {
    margin: 0 auto 12px;
}

.blog_detail_content .auto-figure .auto-caption {
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.blog_detail_content .auto-figure .auto-caption::before {
    content: '';
    width: 20px;
    height: 1px;
    background: #4b5563;
}

.blog_detail_content .auto-figure .auto-caption::after {
    content: '';
    width: 20px;
    height: 1px;
    background: #4b5563;
}

/* Native figure/figcaption */

.blog_detail_content figure {
    margin: 40px 0;
    text-align: center;
}

.blog_detail_content figure img {
    margin: 0 auto 12px;
}

.blog_detail_content figcaption {
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
    margin-top: 10px;
}

/* ---------- Image Lightbox (added by JS) ---------- */

.blog_lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 40px;
}

.blog_lightbox.active {
    opacity: 1;
    visibility: visible;
}

.blog_lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.blog_lightbox.active img {
    transform: scale(1);
}

.blog_lightbox_close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog_lightbox_close:hover {
    background: #eab308;
    color: #000;
    border-color: #eab308;
}

/* ---------- Inline Code ---------- */

.blog_detail_content code {
    font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.85em;
    color: #eab308;
    background: rgba(234, 179, 8, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(234, 179, 8, 0.1);
    white-space: nowrap;
}

/* ---------- Code Block ---------- */

.blog_detail_content pre {
    margin: 32px 0;
    padding: 0;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.blog_detail_content pre code {
    display: block;
    padding: 24px 28px;
    background: none;
    border: none;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.8;
    overflow-x: auto;
    white-space: pre;
    border-radius: 0;
}

/* Code Block Header (added by JS) */

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-block-lang {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-block-lang::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #eab308;
}

.code-block-copy {
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
}

.code-block-copy:hover {
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.3);
}

.code-block-copy.copied {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}

/* Line Numbers (added by JS) */

.code-with-lines {
    display: grid;
    grid-template-columns: auto 1fr;
}

.code-line-numbers {
    padding: 24px 0 24px 18px;
    text-align: right;
    user-select: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    margin-right: 18px;
}

.code-line-numbers span {
    display: block;
    font-size: 12px;
    line-height: 1.8;
    color: #374151;
    padding-right: 14px;
    font-family: 'Fira Code', monospace;
}

/* ---------- Tables ---------- */

.blog_detail_content .table-wrapper {
    margin: 32px 0;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-overflow-scrolling: touch;
}

.blog_detail_content .table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.blog_detail_content .table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.blog_detail_content .table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(234, 179, 8, 0.3);
    border-radius: 3px;
}

.blog_detail_content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.blog_detail_content thead {
    background: rgba(234, 179, 8, 0.08);
}

.blog_detail_content th {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #eab308;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(234, 179, 8, 0.15);
    white-space: nowrap;
}

.blog_detail_content td {
    padding: 14px 20px;
    font-size: 15px;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
}

.blog_detail_content tbody tr {
    transition: background 0.2s ease;
}

.blog_detail_content tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.blog_detail_content tbody tr:last-child td {
    border-bottom: none;
}

/* Striped rows */

.blog_detail_content tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.blog_detail_content tbody tr:nth-child(even):hover {
    background: rgba(255, 255, 255, 0.04);
}

/* ---------- Horizontal Rule ---------- */

.blog_detail_content hr {
    border: none;
    height: 1px;
    margin: 56px 0;
    background: transparent;
    position: relative;
    overflow: visible;
}

.blog_detail_content hr::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.3), transparent);
}

.blog_detail_content hr::after {
    content: '✦';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    padding: 0 16px;
    color: rgba(234, 179, 8, 0.4);
    font-size: 14px;
}

/* ---------- Video / iFrame Wrapper ---------- */

.blog_detail_content .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 36px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog_detail_content .video-wrapper iframe,
.blog_detail_content .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.blog_detail_content iframe {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.blog_detail_content video {
    max-width: 100%;
    border-radius: 16px;
    margin: 32px 0;
}

/* ---------- Details / Accordion ---------- */

.blog_detail_content details {
    margin: 24px 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.blog_detail_content details[open] {
    border-color: rgba(234, 179, 8, 0.2);
}

.blog_detail_content summary {
    padding: 18px 24px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog_detail_content summary::-webkit-details-marker {
    display: none;
}

.blog_detail_content summary::after {
    content: '+';
    font-size: 20px;
    color: #eab308;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.blog_detail_content details[open] summary::after {
    transform: rotate(45deg);
}

.blog_detail_content summary:hover {
    background: rgba(234, 179, 8, 0.04);
}

.blog_detail_content details > *:not(summary) {
    padding: 0 24px;
}

.blog_detail_content details > p:last-child {
    padding-bottom: 20px;
}

/* ---------- Callout / Alert Boxes (auto via class) ---------- */

.blog_detail_content .callout,
.blog_detail_content .alert,
.blog_detail_content .notice,
.blog_detail_content .note {
    margin: 28px 0;
    padding: 20px 24px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    background: rgba(59, 130, 246, 0.06);
    font-size: 15px;
    line-height: 1.7;
}

.blog_detail_content .callout-info,
.blog_detail_content .alert-info,
.blog_detail_content .note {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.06);
    color: #93c5fd;
}

.blog_detail_content .callout-warning,
.blog_detail_content .alert-warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.06);
    color: #fcd34d;
}

.blog_detail_content .callout-success,
.blog_detail_content .alert-success {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
    color: #86efac;
}

.blog_detail_content .callout-danger,
.blog_detail_content .alert-danger,
.blog_detail_content .callout-error {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
    color: #fca5a5;
}

.blog_detail_content .callout-tip {
    border-left-color: #eab308;
    background: rgba(234, 179, 8, 0.06);
    color: #fde68a;
}

/* ---------- Definition List ---------- */

.blog_detail_content dl {
    margin: 28px 0;
}

.blog_detail_content dt {
    font-weight: 700;
    color: #fff;
    font-size: 16px;
    margin-top: 18px;
    padding-left: 14px;
    border-left: 3px solid #eab308;
}

.blog_detail_content dd {
    color: #9ca3af;
    margin: 6px 0 0 14px;
    padding-left: 14px;
    line-height: 1.7;
}

/* ---------- Keyboard / Shortcuts ---------- */

.blog_detail_content kbd {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    font-family: 'Fira Code', monospace;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

/* ---------- Footnotes ---------- */

.blog_detail_content .footnote,
.blog_detail_content .footnotes {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
    color: #6b7280;
}

.blog_detail_content .footnotes ol li {
    padding-left: 30px;
}

.blog_detail_content .footnotes ol li::before {
    font-size: 11px;
    width: 22px;
    height: 22px;
}

/* ---------- Selection ---------- */

.blog_detail_content ::selection {
    background: rgba(234, 179, 8, 0.25);
    color: #fff;
}

/* ---------- Print Styles ---------- */

@media print {
    .blog_detail_content {
        color: #000;
        font-size: 14px;
    }

    .blog_detail_content h1,
    .blog_detail_content h2,
    .blog_detail_content h3,
    .blog_detail_content h4 {
        color: #000;
    }

    .blog_detail_content a {
        color: #000;
        text-decoration: underline;
    }

    .blog_detail_content a::after {
        content: ' (' attr(href) ')';
        font-size: 11px;
    }

    .blog_detail_content pre,
    .blog_detail_content blockquote {
        page-break-inside: avoid;
    }

    .blog_detail_content img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .blog_detail_content {
        font-size: 16px;
    }

    .blog_detail_content > p:first-of-type {
        font-size: 17px;
    }

    .blog_detail_content h1 { font-size: 28px; }
    .blog_detail_content h2 { font-size: 24px; margin-top: 40px; }
    .blog_detail_content h3 { font-size: 20px; margin-top: 32px; }
    .blog_detail_content h4 { font-size: 18px; }

    .blog_detail_content blockquote {
        padding: 20px 22px 20px 20px;
        font-size: 16px;
        margin: 28px 0;
    }

    .blog_detail_content blockquote::before {
        font-size: 52px;
    }

    .blog_detail_content pre code {
        font-size: 13px;
        padding: 18px;
    }

    .blog_detail_content .heading-anchor {
        display: none;
    }

    .blog_detail_content ol li {
        padding-left: 34px;
    }

    .blog_detail_content ol li::before {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .blog_detail_content {
        font-size: 15px;
        line-height: 1.85;
    }

    .blog_detail_content > p:first-of-type {
        font-size: 16px;
        padding-left: 16px;
    }

    .blog_detail_content h2 {
        font-size: 21px;
    }

    .blog_detail_content h3 {
        font-size: 18px;
    }

    .blog_detail_content img {
        border-radius: 12px;
        margin: 24px 0;
    }

    .blog_detail_content blockquote {
        padding: 16px 18px 16px 16px;
        font-size: 15px;
    }

    .blog_detail_content th,
    .blog_detail_content td {
        padding: 10px 14px;
        font-size: 13px;
    }

    .code-block-header {
        padding: 8px 14px;
    }
}

/* ---------- TOC Sidebar (Right) ---------- */

.blog_toc_sidebar {
    position: relative;
}

.blog_toc_sticky {
    position: sticky;
    top: 100px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.blog_toc_title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #eab308;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog_toc_nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog_toc_link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.blog_toc_link:hover {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.03);
}

.blog_toc_link.active {
    color: #eab308;
    background: rgba(234, 179, 8, 0.06);
    border-left-color: #eab308;
}

.blog_toc_sub {
    padding-left: 24px;
    font-size: 12px;
}

/* Progress Circle */

.blog_toc_progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.progress_ring {
    transform: rotate(-90deg);
}

.progress_ring_bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 3;
}

.progress_ring_fill {
    fill: none;
    stroke: #eab308;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 125.66;
    stroke-dashoffset: 125.66;
    transition: stroke-dashoffset 0.2s ease;
}

.progress_percent {
    font-size: 13px;
    font-weight: 700;
    color: #eab308;
    min-width: 35px;
}

/* ---------- Tags Section ---------- */

.blog_detail_tags_section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.blog_detail_tags_label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.blog_detail_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog_detail_tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog_detail_tag:hover {
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.3);
    background: rgba(234, 179, 8, 0.06);
}

/* ---------- Author Box ---------- */

.blog_author_box {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    padding: 36px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    align-items: center;
}

.blog_author_box_avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #eab308, #ca8a04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid rgba(234, 179, 8, 0.25);
}

.blog_author_box_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog_author_box_avatar span {
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

.blog_author_box_info {
    flex: 1;
}

.blog_author_box_label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #eab308;
    display: block;
    margin-bottom: 6px;
}

.blog_author_box_info h4 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.blog_author_box_info p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 12px;
}

.blog_author_socials {
    display: flex;
    gap: 10px;
}

.blog_author_socials a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog_author_socials a:hover {
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.3);
    transform: translateY(-2px);
}

/* ---------- Share Bottom Bar ---------- */

.blog_share_bottom {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(165deg, rgba(234, 179, 8, 0.06), rgba(234, 179, 8, 0.02));
    border: 1px solid rgba(234, 179, 8, 0.12);
    border-radius: 20px;
    text-align: center;
}

.blog_share_bottom > span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.blog_share_bottom_btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.blog_share_bottom_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.blog_share_bottom_btn:hover {
    transform: translateY(-2px);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.3);
    background: rgba(234, 179, 8, 0.08);
}

/* ---------- Post Navigation ---------- */

.blog_post_nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog_post_nav_link {
    padding: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog_post_nav_link:hover {
    border-color: rgba(234, 179, 8, 0.2);
    background: rgba(234, 179, 8, 0.03);
    transform: translateY(-3px);
}

.blog_post_nav_label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #eab308;
}

.blog_post_nav_title {
    font-size: 16px;
    font-weight: 600;
    color: #d1d5db;
    line-height: 1.4;
    transition: color 0.3s;
}

.blog_post_nav_link:hover .blog_post_nav_title {
    color: #fff;
}

.blog_post_next {
    text-align: right;
}

.blog_post_next .blog_post_nav_label {
    justify-content: flex-end;
}

/* ---------- Related Posts ---------- */

.blog_related {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.blog_related_header {
    text-align: center;
    margin-bottom: 48px;
}

.blog_related_label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #eab308;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.2);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.blog_related_title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

/* ---------- Back to Top ---------- */

.blog_back_top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(234, 179, 8, 0.3);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #eab308;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
}

.blog_back_top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.blog_back_top:hover {
    background: #eab308;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(234, 179, 8, 0.3);
}

/* ---------- Toast Notification ---------- */

.blog_toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111;
    color: #eab308;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    border: 1px solid rgba(234, 179, 8, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10000;
}

.blog_toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* =============================================================
   RESPONSIVE
============================================================= */

@media (max-width: 1100px) {
    .blog_detail_layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .blog_share_sidebar {
        display: none;
    }

    .blog_toc_sidebar {
        display: none;
    }

    .blog_detail_title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .blog_detail_hero {
        padding: 120px 0 50px;
        min-height: 420px;
    }

    .blog_detail_title {
        font-size: 30px;
    }

    .blog_detail_excerpt {
        font-size: 16px;
    }

    .blog_detail_meta_row {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog_detail_content {
        font-size: 16px;
    }

    .blog_detail_content h2 {
        font-size: 24px;
    }

    .blog_detail_content h3 {
        font-size: 20px;
    }

    .blog_author_box {
        flex-direction: column;
        text-align: center;
        padding: 28px;
    }

    .blog_post_nav {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog_post_next {
        text-align: left;
    }

    .blog_post_next .blog_post_nav_label {
        justify-content: flex-start;
    }

    .blog_share_bottom_btns {
        flex-direction: column;
    }

    .blog_share_bottom_btn {
        justify-content: center;
    }

    .blog_related_title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .blog_detail_hero {
        padding: 100px 0 40px;
        min-height: 360px;
    }

    .blog_detail_title {
        font-size: 24px;
    }

    .blog_detail_badge {
        font-size: 10px;
        padding: 5px 14px;
    }

    .blog_breadcrumb {
        font-size: 12px;
    }

    .blog_detail_content h2 {
        font-size: 22px;
        margin: 36px 0 16px;
    }

    .blog_detail_content blockquote {
        padding: 18px 20px;
        font-size: 16px;
    }

    .blog_author_box_avatar {
        width: 64px;
        height: 64px;
    }

    .blog_author_box_avatar span {
        font-size: 22px;
    }
}