/* ================================================================
   ARTIKEL BLOG — Professional Blog Layout
   tikproads.biz.id | SEO-Friendly Article Page
   ================================================================ */

/* ===== BLOG HERO ===== */
.article-hero {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    margin-bottom: 0;
}

.article-hero img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.article-hero-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    color: #000000;
}

/* ===== BREADCRUMB ===== */
.blog-breadcrumb {
    padding: 16px 0 0;
    font-size: 13px;
    color: var(--text-muted, #888);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-breadcrumb a {
    color: var(--primary-color, #000000);
    text-decoration: none;
    transition: opacity 0.2s;
}

.blog-breadcrumb a:hover {
    opacity: 0.8;
}

.blog-breadcrumb .sep {
    color: #000000;
}

/* ===== LAYOUT UTAMA ===== */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    align-items: start;
    /* Cegah overflow horizontal dari konten */
    overflow-x: clip;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px 16px 48px;
        overflow-x: clip;
    }
}

/* ===== MAIN CONTENT ===== */
.blog-main {
    display: block;
    min-width: 0;
    max-width: 100%;
    /* JANGAN overflow:hidden — itu clip teks! Gunakan clip hanya horizontal */
    overflow-x: clip;
    word-break: break-word;
    overflow-wrap: anywhere;
}


/* ===== ARTICLE CARD WRAPPER ===== */
.article-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 36px 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .article-card {
        padding: 24px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .article-card {
        padding: 18px 16px;
        border-radius: 12px;
        background: transparent;
        border: none;
    }
}

/* Article Header */
.article-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-category-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.article-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-light, #f0f0f0);
    margin: 0 0 20px 0;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13.5px;
    color: var(--text-muted, #888);
    align-items: center;
}

.article-meta-row a {
    color: inherit;
    text-decoration: none;
}

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

.article-meta-item i {
    color: var(--primary-color, #000000);
    font-size: 12px;
}

.article-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 0 28px 0;
}

/* ===== Article Hero Image (inside layout) ===== */
.article-featured-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    max-height: 480px;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.article-featured-image:hover img {
    transform: scale(1.02);
}

/* ===== TOC (Table of Contents) — Mobile ===== */
.toc-mobile {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 32px;
}

.toc-mobile summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-color, #000000);
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    user-select: none;
}

.toc-mobile summary::-webkit-details-marker {
    display: none;
}

.toc-mobile summary i {
    font-size: 13px;
}

.toc-mobile summary .toc-arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

.toc-mobile[open] summary .toc-arrow {
    transform: rotate(180deg);
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-light, #e0e0e0);
    /* Anti-overflow — penting untuk konten TinyMCE */
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

/* Semua elemen dalam konten dibatasi max-width 100% */
.article-content * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Gambar selalu responsive */
.article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 8px;
}

/* Tabel — scroll horizontal jika terlalu lebar */
.article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

/* Kode/preformatted — scroll horizontal */
.article-content pre,
.article-content code {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: pre;
    word-break: normal;
    max-width: 100%;
    display: block;
}

.article-content code {
    display: inline;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Iframe / video embed — selalu 16:9 responsive */
.article-content iframe {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
}


.article-content h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin: 40px 0 16px !important;
    padding-top: 8px;
    border-left: 4px solid var(--primary-color, #000000) !important;
    padding-left: 14px !important;
    scroll-margin-top: 90px;
    background: none !important;
    text-shadow: none;
}

.article-content h3 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #222222 !important;
    margin: 28px 0 12px !important;
    scroll-margin-top: 90px;
    background: none !important;
}

.article-content h4 {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #333333 !important;
    margin: 20px 0 10px !important;
    background: none !important;
}

.article-content h5,
.article-content h6 {
    color: #444444 !important;
    background: none !important;
}

/* Dark mode — heading kembali terang */
:root[data-theme="dark"] .article-content h2 {
    color: #ffffff !important;
}

:root[data-theme="dark"] .article-content h3 {
    color: #f0f0f0 !important;
}

:root[data-theme="dark"] .article-content h4 {
    color: #dddddd !important;
}

:root[data-theme="dark"] .article-content h5,
:root[data-theme="dark"] .article-content h6 {
    color: #cccccc !important;
}

/* ===== TOC INLINE (di dalam konten, setelah paragraf pertama) ===== */
.toc-inline {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color, #000000);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 28px 0 32px;
}

:root[data-theme="dark"] .toc-inline {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary-color, #000000);
}

/* Hapus marker default browser pada <details> */
details.toc-inline {
    list-style: none;
}

details.toc-inline>summary {
    list-style: none;
}

details.toc-inline>summary::-webkit-details-marker {
    display: none;
}

/* Summary sebagai header yang bisa diklik */
summary.toc-inline-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color, #000000);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 2px 0;
    gap: 7px;
}

summary.toc-inline-header span {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Ikon panah — berputar saat open */
.toc-arrow {
    font-size: 11px;
    color: var(--primary-color, #000000);
    transition: transform 0.3s ease;
}

details.toc-inline[open] .toc-arrow {
    transform: rotate(180deg);
}

/* Padding list isi TOC */
.toc-list-collapsible {
    margin-top: 12px;
}

.toc-inline .toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 20px;
}

.toc-inline .toc-item {
    break-inside: avoid;
    margin-bottom: 4px;
}

.toc-inline .toc-link {
    font-size: 13.5px;
    color: #000000;
    text-decoration: none;
    line-height: 1.5;
    display: inline-block;
    transition: color 0.2s;
}

:root[data-theme="dark"] .toc-inline .toc-link {
    color: #000000;
}

.toc-inline .toc-link:hover {
    color: var(--primary-color, #000000);
}

@media (max-width: 600px) {
    .toc-inline .toc-list {
        columns: 1;
    }
}



.article-content p {
    margin: 0 0 20px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 20px 24px;
    padding: 0;
}

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

.article-content a {
    color: var(--primary-color, #000000);
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.3);
    transition: text-decoration-color 0.2s;
}

.article-content a:hover {
    text-decoration-color: var(--primary-color, #000000);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color, #000000);
    background: rgba(0, 0, 0, 0.04);
    margin: 24px 0;
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #bbb;
}

.article-content pre {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
}

.article-content code {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
    color: var(--primary-color, #000000);
}

.article-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #e0e0e0;
}

.article-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.article-content th {
    background: rgba(0, 0, 0, 0.08);
    color: var(--primary-color, #000000);
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.article-content td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.article-content tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.article-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 36px 0;
}

/* ===== TAGS ===== */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-tags-label {
    font-size: 13px;
    color: var(--text-muted, #888);
    font-weight: 600;
    margin-right: 4px;
    align-self: center;
}

.article-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: #000000;
    text-decoration: none;
    transition: all 0.2s;
}

.article-tag:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #000000);
    color: var(--primary-color, #000000);
}

/* ===== SHARE BUTTONS ===== */
.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

@media (max-width: 600px) {
    .article-share {
        flex-wrap: wrap;
        gap: 8px;
    }

    .share-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
        font-size: 12.5px;
        padding: 8px 10px;
    }

    .article-share-label {
        width: 100%;
        margin-bottom: 2px;
    }
}


.article-share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, #888);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.share-btn.fb {
    background: #1877f2;
    color: #ffffff;
}

.share-btn.wa {
    background: #25d366;
    color: #ffffff;
}

.share-btn.tw {
    background: #1da1f2;
    color: #ffffff;
}

.share-btn.copy {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ===== RELATED ARTICLES ===== */
.related-articles {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.related-articles h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.related-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    border-color: rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.related-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.related-card-img-placeholder {
    width: 100%;
    height: 160px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 32px;
}

.related-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color, #000000);
    letter-spacing: 0.5px;
}

.related-card-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #e0e0e0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.related-card-date {
    font-size: 11.5px;
    color: #666;
    margin-top: auto;
}

/* ===== SIDEBAR ===== */
.blog-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 1024px) {
    .blog-sidebar {
        position: static;
        order: 2;
        gap: 16px;
    }

    .blog-main {
        order: 1;
    }
}

/* Sidebar Widget */
.sidebar-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
}

.sw-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-color, #000000);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.04);
}

.sw-header i {
    font-size: 13px;
}

.sw-body {
    padding: 16px 20px;
}

/* ===== ARTIKEL POPULER ===== */
.pop-title {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.2s;
}

:root[data-theme="light"] .pop-title {
    color: #000000 !important;
}

.pop-title:hover {
    color: var(--primary-color, #00ff41) !important;
}

/* ===== TOC SIDEBAR ===== */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-link {
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #000000;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    line-height: 1.4;
}

.toc-link:hover,
.toc-link.active {
    color: var(--primary-color, #000000);
    background: rgba(0, 0, 0, 0.06);
    border-left-color: var(--primary-color, #000000);
}

.toc-sublist {
    list-style: none;
    padding: 0 0 0 14px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-sublist .toc-link {
    font-size: 12px;
    padding: 5px 10px;
    color: #000000;
}

/* ===== PRODUCT WIDGET ===== */
.product-widget-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-widget-item {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.product-widget-item:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

.product-widget-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.product-widget-info {
    flex: 1;
    min-width: 0;
}

.product-widget-name {
    font-size: 13px;
    font-weight: 600;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.product-widget-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color, #000000);
}

.product-widget-price .original {
    font-size: 11px;
    color: #666;
    text-decoration: line-through;
    margin-left: 5px;
    font-weight: 400;
}

/* ===== Author Box ===== */
.author-box {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    margin-top: 40px;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.author-avatar-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color, #000000);
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 15px;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 4px;
}

.author-role {
    font-size: 12px;
    color: var(--primary-color, #000000);
    margin: 0 0 8px;
}

.author-bio {
    font-size: 13px;
    color: #000000;
    margin: 0;
    line-height: 1.5;
}

/* ===== READING PROGRESS BAR ===== */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #000000), #00aaff);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ===== BACK TO TOP ===== */
#back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary-color, #000000);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ===== ARTICLE LIST PAGE (Daftar Artikel) ===== */
.blog-index-hero {
    padding: 60px 24px 40px;
    text-align: center;
    background: radial-gradient(ellipse at center top, rgba(0, 0, 0, 0.06) 0%, transparent 70%);
}

.blog-index-hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    color: #000000;
    margin: 0 0 12px;
}

.blog-index-hero p {
    font-size: 16px;
    color: #000000;
    max-width: 560px;
    margin: 0 auto;
}

.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

@media (max-width: 768px) {
    .blog-list-grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 16px 48px;
        gap: 20px;
    }
}

/* Blog Card */
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.025);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.04);
}

.blog-card-img-wrap {
    overflow: hidden;
    position: relative;
}

.blog-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 40px;
}

.blog-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color, #000000);
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e8e8e8;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
    color: #000000;
}

.blog-card-excerpt {
    font-size: 13.5px;
    color: #000000;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #666;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card-footer i {
    color: var(--primary-color, #000000);
    font-size: 11px;
}

.blog-card-read-more {
    margin-left: auto;
    color: var(--primary-color, #000000);
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== NO ARTICLES ===== */
.blog-empty {
    text-align: center;
    padding: 80px 24px;
    color: #666;
}

.blog-empty i {
    font-size: 56px;
    margin-bottom: 20px;
    color: #000000;
    display: block;
}

.blog-empty h3 {
    font-size: 20px;
    color: #000000;
    margin: 0 0 8px;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    .blog-layout {
        gap: 28px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-hero-meta {
        padding: 20px;
    }

    .article-content h2 {
        font-size: 1.25rem;
    }

    .article-content h3 {
        font-size: 1.1rem;
    }

    .related-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .article-share {
        justify-content: center;
    }

    .bottom-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== BOTTOM PRODUCTS SECTION ===== */
.bottom-products-section {
    margin-top: 52px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-products-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.bottom-products-header i {
    color: var(--primary-color, #000000);
    font-size: 18px;
}

.bottom-products-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    flex: 1;
}

.see-all-link {
    font-size: 12.5px;
    color: var(--primary-color, #000000);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.see-all-link:hover {
    opacity: 0.75;
}

.bottom-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.bottom-product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bottom-product-card:hover {
    border-color: rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.bottom-product-img-wrap {
    position: relative;
    overflow: hidden;
    height: 150px;
}

.bottom-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.bottom-product-card:hover .bottom-product-img-wrap img {
    transform: scale(1.05);
}

.bottom-product-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: #444;
    font-size: 32px;
}

.bottom-product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bottom-product-info {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bottom-product-info h3 {
    font-size: 13.5px;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.bottom-product-price {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.price-now {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color, #000000);
}

.price-original {
    font-size: 12px;
    color: #666;
    text-decoration: line-through;
}

.bottom-product-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color, #000000);
    margin-top: auto;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s;
}

.bottom-product-card:hover .bottom-product-cta {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .bottom-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .bottom-product-img-wrap {
        height: 120px;
    }
}

/* ========================================================
   COMPREHENSIVE MOBILE RESPONSIVE — All Elements
   ======================================================== */

/* --- 1024px: Tablet / Small Desktop --- */
@media (max-width: 1024px) {
    /* Blog layout sudah di atas: grid-template-columns 1fr, padding kecil */

    .article-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .blog-index-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* --- 768px: Tablet Portrait / Large Phone --- */
@media (max-width: 768px) {
    .blog-layout {
        gap: 24px;
    }

    /* Breadcrumb — wrap agar tidak overflow */
    .blog-breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 4px;
        padding: 10px 0;
    }

    /* Article header */
    .article-header {
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    .article-title {
        font-size: clamp(1.3rem, 5vw, 1.75rem);
        margin-bottom: 14px;
        line-height: 1.35;
    }

    .article-meta-row {
        gap: 10px;
        font-size: 12.5px;
    }

    /* Featured image */
    .article-featured-image {
        border-radius: 12px;
        margin-bottom: 24px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .article-featured-image img {
        width: 100% !important;
        height: auto !important;
    }

    /* Article content */
    .article-content {
        font-size: 15px;
        line-height: 1.75;
    }

    .article-content p,
    .article-content span,
    .article-content div {
        max-width: 100% !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    .article-content h2 {
        font-size: 1.15rem !important;
        margin: 28px 0 12px !important;
    }

    .article-content h3 {
        font-size: 1.05rem !important;
        margin: 20px 0 10px !important;
    }

    .article-content h4 {
        font-size: 0.95rem !important;
    }

    /* Images in content */
    .article-content img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }

    /* Tables — horizontal scroll */
    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        max-width: 100%;
    }

    /* Code blocks */
    .article-content pre {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 13px;
        padding: 14px;
    }

    /* TOC inline — sudah 1 col via rules di atas */
    .toc-inline {
        padding: 14px 16px;
    }

    /* Article hero meta (featured image overlay) */
    .article-hero-meta {
        padding: 16px;
    }

    /* Share buttons */
    .article-share {
        gap: 8px;
        margin-top: 20px;
    }

    /* Author box */
    .author-box {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 18px;
    }

    /* Related articles */
    .related-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    /* Bottom products */
    .bottom-products-section {
        margin-top: 36px;
        padding-top: 24px;
    }

    .bottom-products-header h2 {
        font-size: 1.1rem;
    }

    .bottom-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Sidebar widgets */
    .sidebar-widget {
        border-radius: 12px;
    }

    .sw-header {
        padding: 14px 16px;
        font-size: 13px;
    }

    /* Blog index grid */
    .blog-index-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 0;
    }
}

/* --- 480px: Small Phones (iPhone SE, etc) --- */
@media (max-width: 480px) {
    .blog-layout {
        padding: 14px 12px 40px;
        gap: 20px;
    }

    .article-title {
        font-size: clamp(1.1rem, 5vw, 1.35rem);
    }

    .article-content {
        font-size: 14px;
        line-height: 1.7;
    }

    .article-content h2 {
        font-size: 1.05rem !important;
        padding-left: 10px !important;
        border-left-width: 3px !important;
    }

    .article-content h3 {
        font-size: 1rem !important;
    }

    /* Breadcrumb */
    .blog-breadcrumb {
        font-size: 11.5px;
    }

    /* Article meta */
    .article-meta-row {
        gap: 8px;
        font-size: 12px;
    }

    .meta-item {
        font-size: 11.5px;
    }

    /* Tags */
    .article-tags {
        gap: 6px;
    }

    .article-tag {
        font-size: 11px;
        padding: 3px 10px;
    }

    /* TOC inline — compact */
    .toc-inline {
        padding: 12px 14px;
        margin: 20px 0 24px;
    }

    .toc-inline .toc-link {
        font-size: 13px;
    }

    /* Share buttons */
    .article-share-label {
        font-size: 12px;
    }

    .share-btn {
        font-size: 12px;
        padding: 7px 10px;
        border-radius: 8px;
        gap: 5px;
    }

    /* Author box */
    .author-box {
        padding: 14px;
    }

    .author-avatar {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .author-name {
        font-size: 14px;
    }

    /* Related articles — kecil compact */
    .related-card-img {
        height: 140px;
    }

    .related-card-title {
        font-size: 13.5px;
    }

    /* Bottom products — full width 1 kolom */
    .bottom-products-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .bottom-product-img-wrap {
        height: 160px;
    }

    .bottom-products-header h2 {
        font-size: 1rem;
    }

    /* Sidebar product widget */
    .product-widget-item {
        padding: 10px 12px;
    }

    .product-widget-img {
        width: 52px;
        height: 52px;
    }

    .product-widget-name {
        font-size: 12.5px;
    }

    .product-widget-price {
        font-size: 12px;
    }

    /* Blog index cards */
    .blog-card-img-wrap {
        height: 160px;
    }

    .blog-card-title {
        font-size: 15px;
    }

    .blog-card-excerpt {
        font-size: 13px;
    }
}

/* --- 360px: Very Small (older Androids) --- */
@media (max-width: 360px) {
    .blog-layout {
        padding: 10px 10px 32px;
    }

    .article-title {
        font-size: 1.1rem;
    }

    .article-content {
        font-size: 0.9rem;
    }

    .bottom-products-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .share-btn {
        font-size: 11px;
        padding: 6px 8px;
    }
}

/* ===== Gambar & Media selalu responsive ===== */
.article-content img,
.article-content video,
.article-content iframe {
    max-width: 100% !important;
    height: auto;
}

.article-content iframe {
    aspect-ratio: 16/9;
    width: 100% !important;
}

/* ========================================
   DARK MODE TEXT OVERRIDES - artikel-blog
   ======================================== */
:root:not([data-theme="light"]) .blog-breadcrumb,
:root:not([data-theme="light"]) .blog-breadcrumb a,
:root:not([data-theme="light"]) .blog-breadcrumb .sep {
    color: var(--text-secondary);
}

:root:not([data-theme="light"]) .blog-hero-content {
    color: var(--text-light);
}

:root:not([data-theme="light"]) .blog-card-excerpt {
    color: var(--text-secondary);
}

:root:not([data-theme="light"]) .blog-card:hover .blog-card-title {
    color: var(--text-light);
}

:root:not([data-theme="light"]) .blog-empty h2 {
    color: var(--text-secondary);
}

:root:not([data-theme="light"]) .toc-inline .toc-link,
:root:not([data-theme="light"]) .toc-link,
:root:not([data-theme="light"]) .toc-sublist .toc-link {
    color: var(--text-secondary);
}

:root:not([data-theme="light"]) .author-bio {
    color: var(--text-secondary);
}

:root:not([data-theme="light"]) .related-articles h2 {
    color: var(--text-light);
}

:root:not([data-theme="light"]) .bottom-products-header h2 {
    color: var(--text-light);
}

:root:not([data-theme="light"]) .article-tag {
    color: var(--text-secondary);
}

:root:not([data-theme="light"]) .price-original {
    color: var(--text-muted);
}

:root:not([data-theme="light"]) .bottom-product-no-img {
    color: var(--text-muted);
}