/* ==========================================================================
   Article Detail Page Styles
   ========================================================================== */

.article-detail-page {
    background-color: #f8fafc;
    min-height: 100vh;
}

/* Hide legacy page-title-holder blue slant ribbon that clashes on single article page */
.article-detail-page .page-title-holder {
    display: none !important;
}

/* Catatan layout: header fixed dibungkus jquery.sticky menjadi .sticky-wrapper
   dengan tinggi 77px (lihat style.css), sehingga alur dokumen sudah menyisakan
   ruang persis setinggi header. Karena itu padding-top = 0 → konten menempel
   langsung di bawah header tanpa celah vertikal, dan tidak tertutup header. */
.article-detail-page .section-wrapper {
    padding-top: 0;
    padding-bottom: 90px;
}

.article-detail-container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    /* padding-top 0: breadcrumb/judul/gambar mulai tepat di bawah header menu */
    padding: 0 56px 48px;
    box-sizing: border-box;
}

.article-header {
    margin-bottom: 36px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
}

.article-breadcrumb a {
    color: #0078d4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
    color: #0c96ff;
    text-decoration: underline;
}

.article-badge {
    display: inline-block;
    background: rgba(0, 120, 212, 0.1);
    color: #0078d4;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-badge:hover {
    background: #0078d4;
    color: #ffffff !important;
}

.article-title-main {
    font-size: 38px;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
    word-break: break-word;
}

/* Sub judul service (mis. "Jasa INSTALASI GAME") di atas judul besar */
.article-service-subtitle {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0078d4;
    margin: 0 0 8px 0;
    word-break: break-word;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-meta-item i,
.article-meta-item span.fa {
    color: #0078d4;
    font-size: 14px;
}

.article-hero-image {
    width: 100%;
    margin-bottom: 36px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.article-hero-image img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* Override legacy single .entry-info:after and width bounds */
.single .entry-info:after {
    display: none !important;
}

.article-detail-page .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    font-size: 17px;
    line-height: 1.85;
    color: #334155;
    word-break: break-word;
}

.article-detail-page .entry-content p {
    margin: 0 0 22px 0;
    font-size: 17px;
    line-height: 1.85;
    color: #334155;
}

.article-detail-page .entry-content h2 {
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    color: #0f172a;
    margin: 36px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.article-detail-page .entry-content h3 {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    color: #0f172a;
    margin: 28px 0 14px 0;
}

.article-detail-page .entry-content h4 {
    font-size: 19px;
    font-weight: 600;
    color: #1e293b;
    margin: 24px 0 12px 0;
}

.article-detail-page .entry-content ul,
.article-detail-page .entry-content ol {
    margin: 0 0 24px 24px;
    padding: 0;
    color: #334155;
    line-height: 1.85;
}

.article-detail-page .entry-content li {
    margin-bottom: 8px;
}
.article-detail-page .entry-content blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    border-left: 4px solid #0078d4;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
    font-size: 18px;
    line-height: 1.7;
}

.article-detail-page .entry-content blockquote:before {
    display: none !important;
}

.article-detail-page .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    display: block;
}

.article-detail-page .entry-content a {
    color: #0078d4;
    text-decoration: underline;
    font-weight: 500;
}

.article-detail-page .entry-content a:hover {
    color: #0c96ff;
}

.article-detail-page .entry-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #e11d48;
}

.article-detail-page .entry-content pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    margin: 24px 0;
}

.article-detail-page .entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Article Share & Footer CTA */
.article-bottom-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.article-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #f1f5f9;
    color: #334155 !important;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-back-btn:hover {
    background: #0078d4;
    color: #ffffff !important;
}

.article-share-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.article-share-links span {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-right: 4px;
}

.article-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569 !important;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.article-share-btn.share-wa:hover {
    background: #25d366;
    color: #ffffff !important;
}

.article-share-btn.share-fb:hover {
    background: #1877f2;
    color: #ffffff !important;
}

.article-share-btn.share-tw:hover {
    background: #1da1f2;
    color: #ffffff !important;
}

/* Prev/Next navigation — selebar konten detail (margin kanan/kiri = 0) */
.article-detail-page .article-pagination-wrapper {
    max-width: 100% !important;
    margin: 32px 0 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    clear: both !important;
    position: static !important;
    transform: none !important;
}

.article-detail-page .article-nav-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px 24px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    border: 1px solid #e2e8f0 !important;
    color: inherit !important;
    box-sizing: border-box !important;
}

.article-detail-page .article-nav-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(0, 120, 212, 0.12) !important;
    border-color: #0078d4 !important;
    background: #ffffff !important;
}

.article-detail-page .article-nav-card.nav-next-card {
    text-align: right !important;
    align-items: flex-end !important;
}

.article-detail-page .article-nav-card.nav-prev-card {
    text-align: left !important;
    align-items: flex-start !important;
}

/* Spacer tak terlihat agar kartu next tetap rata kanan saat prev kosong */
.article-detail-page .article-nav-placeholder {
    display: block !important;
    visibility: hidden;
}

/* Hanya ada satu artikel: kartu arsip melebar penuh */
.article-detail-page .article-nav-card.nav-standalone {
    grid-column: 1 / -1 !important;
}

.article-detail-page .article-nav-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #0078d4 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}

.article-detail-page .article-nav-title {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #1e293b !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.article-detail-page .article-nav-card:hover .article-nav-title {
    color: #0078d4 !important;
}

@media screen and (max-width: 900px) {
    .article-detail-container {
        padding: 0 28px 36px;
        border-radius: 12px;
    }
    .article-title-main {
        font-size: 30px;
    }
}

@media screen and (max-width: 680px) {
    .article-detail-page .section-wrapper {
        padding-top: 0;
        padding-bottom: 50px;
    }
    .article-detail-container {
        padding: 0 18px 24px;
        border-radius: 8px;
    }
    .article-title-main {
        font-size: 24px;
        line-height: 1.3;
    }
    .article-detail-page .article-pagination-wrapper {
        grid-template-columns: 1fr !important;
    }
    .article-detail-page .article-nav-placeholder {
        display: none !important;
    }
    .article-detail-page .article-nav-card.nav-next-card {
        text-align: left !important;
        align-items: flex-start !important;
    }
    .article-bottom-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .article-back-btn {
        justify-content: center;
    }
    .article-share-links {
        justify-content: center;
    }
}
