/* Blog Post Typography — Variant D: Geometric Clean
   Manrope headings with blue accent bar on H1
   ---------------------------------------------------- */

/* =============================================
   TEMPORARY: Remove white background from post body & sidebar
   To revert: delete this entire block (lines between TEMPORARY markers)
   ============================================= */
.kl-blog-post {
    background: transparent !important;
    padding-left: 0 !important;
    padding-right: 20px !important;
}
.zn_sidebar {
    background: transparent !important;
}
@media (min-width: 768px) {
    .zn_sidebar {
        background: #FFFFFF !important;
    }
}
/* =============================================
   END TEMPORARY
   ============================================= */

/* H1 — Post Title */
.kl-blog-post-title {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 700 !important;
    font-size: 30px !important;
    line-height: 1.3 !important;
    color: #3F4153 !important;
    padding-top: 28px !important;
    position: relative;
}

/* Blue accent bar above H1 */
.kl-blog-post-title::before {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: #3F4153;
    border-radius: 2px;
    margin-bottom: 16px;
}

/* H2 — Section Headings */
.kl-blog-post-body h2,
.kl-blog-post-body h2.wp-block-heading {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600 !important;
    font-size: 22px !important;
    line-height: 1.36 !important;
    color: #3F4153 !important;
    margin-top: 32px !important;
    margin-bottom: 12px !important;
}

/* H3 — Subsections */
.kl-blog-post-body h3,
.kl-blog-post-body h3.wp-block-heading {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 500 !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    color: #3F4153 !important;
    margin-top: 28px !important;
    margin-bottom: 10px !important;
}

/* H4 — Detail Headings */
.kl-blog-post-body h4,
.kl-blog-post-body h4.wp-block-heading {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 500 !important;
    font-size: 18px !important;
    line-height: 1.44 !important;
    color: #3F4153 !important;
    margin-top: 24px !important;
    margin-bottom: 8px !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .kl-blog-post-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
        padding-top: 24px !important;
    }

    .kl-blog-post-title::before {
        width: 40px;
        height: 3px;
        margin-bottom: 12px;
    }

    .kl-blog-post-body h2,
    .kl-blog-post-body h2.wp-block-heading {
        font-size: 19px !important;
        margin-top: 28px !important;
    }

    .kl-blog-post-body h3,
    .kl-blog-post-body h3.wp-block-heading {
        font-size: 16px !important;
        margin-top: 24px !important;
    }

    .kl-blog-post-body h4,
    .kl-blog-post-body h4.wp-block-heading {
        font-size: 17px !important;
        margin-top: 20px !important;
    }
}

/* =============================================
   CLS fix: reserve space for responsive images
   Uses HTML width/height attrs to compute ratio
   ============================================= */
.kl-blog-post-body img {
    aspect-ratio: auto;
    height: auto;
}

.kl-blog-post-body img.alignleft,
.kl-blog-post-body img.alignright {
    max-width: 50%;
}

@media (max-width: 767px) {
    .kl-blog-post-body img.alignleft,
    .kl-blog-post-body img.alignright {
        float: none;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* =============================================
   Article Byline (author, updated date, reviewer)
   ============================================= */

.cihos-byline-author {
    font-size: 13px;
    color: #8B8C8D;
    margin-bottom: 4px;
}

.cihos-byline-author a {
    font-size: 13px;
    color: #2B7ACC;
    text-decoration: underline;
}

.cihos-byline-author a:hover {
    color: #4A9FE5;
}

.cihos-byline-updated {
    font-size: 13px;
    color: #8B8C8D;
    margin-top: 24px;
    margin-bottom: 4px;
}

.cihos-byline-reviewer {
    font-size: 13px;
    color: #8B8C8D;
    margin-top: 4px;
    margin-bottom: 4px;
}

.cihos-byline-reviewer strong {
    color: #3F4153;
    font-weight: 600;
}

/* =============================================
   Artikel Listing Page
   ============================================= */

/* --- Page heading --- */
.latest_posts--style4 .m_title.latest_posts-elm-title {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #2B7ACC !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px !important;
}

/* --- Card grid --- */
.latest_posts--style4 .latest_posts-post {
    margin-bottom: 36px !important;
}

/* Card images — rounded corners */
.latest_posts--style4 .latest_posts-link {
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-bottom: 14px !important;
}
.latest_posts--style4 .latest_posts-img {
    border-radius: 8px !important;
    transition: transform 0.3s ease;
}
.latest_posts--style4 .latest_posts-link:hover .latest_posts-img {
    transform: scale(1.03);
}
/* Remove Kallyas hoverBorder box-shadow overlay */
.latest_posts--style4 .hoverBorder::after {
    display: none !important;
}

/* "Baca Selengkapnya" overlay — dark blue, rounded pill */
.latest_posts-readon.kl-main-bgcolor {
    background-color: #2B7ACC !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 10px 18px !important;
    letter-spacing: 0.2px;
}

/* Card titles — Manrope, tighter */
.latest_posts--style4 .latest_posts-title {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
}
.latest_posts--style4 .latest_posts-title a {
    color: #3F4153 !important;
    text-decoration: none !important;
}
.latest_posts--style4 .latest_posts-title a:hover {
    color: #2B7ACC !important;
}

/* Card meta — smaller, muted */
.latest_posts--style4 .latest_posts-details {
    font-size: 12px !important;
    color: #8B8C8D !important;
    margin-bottom: 6px !important;
}
.latest_posts--style4 .latest_posts-details a {
    color: #2B7ACC !important;
}

/* Card excerpts — truncated to 3 lines */
.latest_posts--style4 .latest_posts-desc {
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #111111 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* --- Style-2 widget (post list below main grid) --- */

/* Constrain thumbnails */
.latest_posts2 .latest_posts2-thumb {
    width: 72px !important;
    flex-shrink: 0;
    margin-bottom: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}
.latest_posts2 .latest_posts2-thumb img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    border-radius: 6px !important;
}
/* Remove hoverBorder on list thumbs */
.latest_posts2 .hoverBorder::after {
    display: none !important;
}

/* List item spacing */
.latest_posts2 .latest_posts2-post {
    padding: 12px 0 !important;
    border-bottom: 1px solid #EBEBEB !important;
}
/* Collapse Kallyas separator — our border-bottom replaces it */
.latest_posts2 .latest_posts2-itemSep {
    display: none !important;
}

/* List titles */
.latest_posts2 h4.latest_posts2-title {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
}
.latest_posts2 h4.latest_posts2-title a {
    color: #3F4153 !important;
    text-decoration: none !important;
}
.latest_posts2 h4.latest_posts2-title a:hover {
    color: #2B7ACC !important;
}

/* List excerpts — more prominent */
.latest_posts2 .latest_posts2-post-text {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #3F4153 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 4px !important;
}

/* List dates — subdued */
.latest_posts2 .latest_posts2-date {
    font-size: 11px !important;
    color: #B0B1B2 !important;
}

/* ---- Mobile adjustments for artikel listing ---- */
@media (max-width: 767px) {
    .latest_posts--style4 .latest_posts-post {
        margin-bottom: 28px !important;
    }

    .latest_posts--style4 .latest_posts-title {
        font-size: 16px !important;
    }

    .latest_posts--style4 .latest_posts-desc {
        -webkit-line-clamp: 2 !important;
        font-size: 13px !important;
    }

    .latest_posts--style4 .latest_posts-details {
        font-size: 11px !important;
    }

    /* Smaller thumbnails in list */
    .latest_posts2 .latest_posts2-thumb,
    .latest_posts2 .latest_posts2-thumb img {
        width: 60px !important;
        height: 60px !important;
    }

    .latest_posts2 .latest_posts2-post-text {
        -webkit-line-clamp: 1 !important;
    }
}

