/**
 * Artikel Detail Page - Modern & Professional Design
 * Selaras dengan desain spare parts detail page
 */

/* ============================================
   PAGE LAYOUT
   ============================================ */
.artikel-single {
    padding-top: 80px;
    background: #ffffff;
    min-height: 100vh;
}

/* ============================================
   HERO SECTION - Modern Design
   ============================================ */
.artikel-hero-single {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 50px 0;
    margin-bottom: 0;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: block !important;
    line-height: 0;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 655px !important;
    max-height: 655px !important;
    min-height: 655px !important;
    margin: 0 auto 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: block !important;
    line-height: 0;
    background: #ffffff;
}

.hero-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: 655px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-overlay {
    display: none;
}

.hero-content-single {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content-single h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
}

.hero-content-single h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--inviro-primary-light, #75C6F1) 0%, var(--inviro-primary, #2F80ED) 100%);
    border-radius: 2px;
}

.artikel-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(47, 128, 237, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(47, 128, 237, 0.1);
}

.meta-item::before {
    font-size: 1.1rem;
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.artikel-content-section {
    padding: 60px 0;
    background: #ffffff;
}

.artikel-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.artikel-main {
    min-width: 0;
}

.artikel-content-full {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #334155;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Wrapper untuk semua gambar agar ukuran sama */
.artikel-content-full figure,
.artikel-content-full .wp-block-image {
    margin: 30px 0;
    width: 100%;
    height: 400px !important;
    max-height: 400px !important;
    min-height: 400px !important;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    display: block;
    line-height: 0;
    padding: 0;
}

/* Semua gambar harus memiliki ukuran yang sama persis - 400px tinggi */
/* CSS dengan specificity sangat tinggi untuk override semua style lain */
.artikel-single .artikel-content-section .artikel-layout .artikel-main .artikel-content-full img,
.artikel-single .artikel-content-section .artikel-layout .artikel-main .artikel-content-full figure img,
.artikel-single .artikel-content-section .artikel-layout .artikel-main .artikel-content-full .wp-block-image img,
.artikel-single .artikel-content-section .artikel-layout .artikel-main .artikel-content-full p img,
.artikel-single .artikel-content-section .artikel-layout .artikel-main .artikel-content-full p figure img,
.artikel-single .artikel-content-section .artikel-layout .artikel-main .artikel-content-full a img,
.artikel-single .artikel-content-section .artikel-layout .artikel-main .artikel-content-full div img,
.artikel-content-full img,
.artikel-content-full figure img,
.artikel-content-full .wp-block-image img,
.artikel-content-full p img,
.artikel-content-full p figure img,
.artikel-content-full a img,
.artikel-content-full div img,
.artikel-content-full * img {
    width: 100% !important;
    height: 400px !important;
    max-width: 100% !important;
    max-height: 400px !important;
    min-height: 400px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 12px;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.artikel-content-full p {
    margin-bottom: 24px;
    color: #475569;
    position: relative;
}

/* Wrapper untuk gambar yang langsung di dalam p */
.artikel-content-full p img {
    margin: 30px 0 !important;
}

/* Pastikan gambar di figure tidak ada margin tambahan */
.artikel-content-full figure img,
.artikel-content-full .wp-block-image img {
    margin: 0 !important;
}

.artikel-content-full h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.4;
    position: relative;
    padding-bottom: 15px;
}

.artikel-content-full h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--inviro-primary-light, #75C6F1) 0%, var(--inviro-primary, #2F80ED) 100%);
    border-radius: 2px;
}

.artikel-content-full h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 35px;
    margin-bottom: 18px;
    line-height: 1.4;
}

.artikel-content-full h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 30px;
    margin-bottom: 15px;
}


.artikel-content-full ul,
.artikel-content-full ol {
    margin-bottom: 24px;
    padding-left: 30px;
    color: #475569;
}

.artikel-content-full li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.artikel-content-full a {
    color: var(--inviro-primary, #2F80ED);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.artikel-content-full a:hover {
    color: var(--inviro-primary-light, #75C6F1);
    border-bottom-color: var(--inviro-primary-light, #75C6F1);
}

.artikel-content-full blockquote {
    border-left: 4px solid var(--inviro-primary, #2F80ED);
    padding-left: 24px;
    margin: 30px 0;
    font-style: italic;
    color: #64748b;
    background: rgba(47, 128, 237, 0.05);
    padding: 20px 24px;
    border-radius: 8px;
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.artikel-share {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.05) 0%, rgba(117, 198, 241, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(47, 128, 237, 0.1);
}

.artikel-share h4 {
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #3b5998 0%, #4c70ba 100%);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #4ab3f4 100%);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20ba5a 100%);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 0.95;
}

/* ============================================
   AUTHOR BIO
   ============================================ */
.author-bio {
    display: flex;
    gap: 25px;
    padding: 35px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    margin-top: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.author-bio:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--inviro-primary-light, #75C6F1);
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.2);
}

.author-info h4 {
    margin-bottom: 8px;
    color: var(--inviro-primary, #2F80ED);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-info h5 {
    margin-bottom: 12px;
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 700;
}

.author-info p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.artikel-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 60px;
}

.nav-previous,
.nav-next {
    background: #ffffff;
    border: 2px solid rgba(47, 128, 237, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-previous:hover,
.nav-next:hover {
    border-color: var(--inviro-primary, #2F80ED);
    box-shadow: 0 6px 20px rgba(47, 128, 237, 0.2);
    transform: translateY(-3px);
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 25px;
    text-decoration: none;
    color: #334155;
}

.nav-next a {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: var(--inviro-primary, #2F80ED);
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    display: block;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-previous:hover .nav-title,
.nav-next:hover .nav-title {
    color: var(--inviro-primary, #2F80ED);
}

/* ============================================
   SIDEBAR
   ============================================ */
.artikel-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    margin-bottom: 25px;
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 3px solid var(--inviro-primary, #2F80ED);
    padding-bottom: 12px;
    position: relative;
}

.related-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-item:hover {
    transform: translateX(5px);
}

.related-thumb {
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block !important;
    line-height: 0;
    width: 90px;
    height: 90px;
    position: relative;
}

.related-item:hover .related-thumb {
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.3);
}

.related-thumb img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.related-content a {
    display: block;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.related-content a:hover {
    color: var(--inviro-primary, #2F80ED);
}

.related-date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.cta-widget {
    background: linear-gradient(135deg, var(--inviro-primary, #2F80ED) 0%, var(--inviro-primary-medium, #4FB3E8) 100%);
    color: #ffffff;
    border: none;
}

.cta-widget h3 {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-widget p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}

.btn-wa {
    display: inline-block;
    width: 100%;
    padding: 16px 24px;
    background: #25D366;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    border: none;
}

.btn-wa:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}

/* ============================================
   COMMENTS
   ============================================ */
.artikel-comments {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 2px solid rgba(47, 128, 237, 0.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .artikel-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .artikel-sidebar {
        position: static;
    }
    
    .hero-content-single h1 {
        font-size: 2rem;
    }
    
    .artikel-content-full {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .artikel-single {
        padding-top: 70px;
    }
    
    .artikel-hero-single {
        padding: 30px 0;
    }
    
    .hero-image {
        border-radius: 12px;
        margin-bottom: 25px;
    }
    
    .hero-content-single {
        padding: 0 15px;
    }
    
    .hero-content-single h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .artikel-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .meta-item {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
    
    .artikel-content-section {
        padding: 40px 0;
    }
    
    .artikel-layout {
        padding: 0 15px;
        gap: 30px;
    }
    
    .artikel-content-full {
        padding: 25px 20px;
        font-size: 1rem;
    }
    
    .artikel-content-full h2 {
        font-size: 1.5rem;
        margin-top: 30px;
    }
    
    .artikel-content-full h3 {
        font-size: 1.3rem;
    }
    
    .artikel-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nav-next a {
        text-align: left;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .artikel-share {
        padding: 25px 20px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
    }
    
    .sidebar-widget {
        padding: 25px 20px;
    }
    
    .artikel-content-full figure,
    .artikel-content-full .wp-block-image {
        height: 300px;
        max-height: 300px;
        min-height: 300px;
        margin: 20px 0;
    }
    
    .artikel-content-full img,
    .artikel-content-full figure img,
    .artikel-content-full .wp-block-image img,
    .artikel-content-full p img,
    .artikel-content-full p figure img,
    .artikel-content-full a img,
    .artikel-content-full div img,
    .artikel-content-full * img {
        width: 100% !important;
        height: 300px !important;
        max-width: 100% !important;
        max-height: 300px !important;
        min-height: 300px !important;
        object-fit: cover !important;
        object-position: center !important;
        margin: 0 !important;
    }
    
    .artikel-content-full figure,
    .artikel-content-full .wp-block-image {
        height: 300px !important;
        max-height: 300px !important;
        min-height: 300px !important;
    }
    
    .hero-image {
        max-width: 100%;
        height: 400px !important;
        max-height: 400px !important;
        min-height: 400px !important;
    }
    
    .hero-image img {
        height: 100% !important;
        max-height: 400px !important;
    }
    
    .artikel-content-full p img {
        margin: 20px 0 !important;
    }
    
    .artikel-content-full figure img,
    .artikel-content-full .wp-block-image img {
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-content-single h1 {
        font-size: 1.5rem;
    }
    
    .artikel-content-full {
        padding: 20px 15px;
        font-size: 0.95rem;
    }
    
    .artikel-content-full h2 {
        font-size: 1.3rem;
    }
    
    .artikel-content-full h3 {
        font-size: 1.15rem;
    }
    
    .artikel-content-full figure,
    .artikel-content-full .wp-block-image {
        height: 250px;
        max-height: 250px;
        min-height: 250px;
        margin: 15px 0;
    }
    
    .artikel-content-full img,
    .artikel-content-full figure img,
    .artikel-content-full .wp-block-image img,
    .artikel-content-full p img,
    .artikel-content-full p figure img,
    .artikel-content-full a img,
    .artikel-content-full div img,
    .artikel-content-full * img {
        width: 100% !important;
        height: 250px !important;
        max-width: 100% !important;
        max-height: 250px !important;
        min-height: 250px !important;
        object-fit: cover !important;
        object-position: center !important;
        margin: 0 !important;
    }
    
    .artikel-content-full figure,
    .artikel-content-full .wp-block-image {
        height: 250px !important;
        max-height: 250px !important;
        min-height: 250px !important;
    }
    
    .artikel-content-full p img {
        margin: 15px 0 !important;
    }
    
    .artikel-content-full figure img,
    .artikel-content-full .wp-block-image img {
        margin: 0 !important;
    }
    
    .hero-image {
        max-width: 100%;
        height: 400px !important;
        max-height: 400px !important;
        min-height: 400px !important;
    }
    
    .hero-image img {
        height: 100% !important;
        max-height: 400px !important;
    }
}

