/*
Theme Name: InformasiSultra Lite
Author: InformasiSultra
Description: Tema mandiri ringan berdasarkan tampilan InformasiSultra.
Version: 0.1.0
Text Domain: informasisultra-lite
*/

* { box-sizing: border-box; }
body {
    margin: 0;
    background: #fff;
    color: #212121;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #1e73be; }
img { max-width: 100%; height: auto; }
.isl-site { max-width: 1230px; margin: 0 auto; }
.isl-container { width: calc(100% - 90px); margin: 0 auto; }
.isl-header, .isl-nav-bar { background: #ffcb44; }
.isl-topbar { background: #212121; color: #fff; }
.isl-top-menu, .isl-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}
.isl-top-menu { gap: 14px; }
.isl-top-menu a { display: block; font-size: 12px; line-height: 34px; }
.isl-brand { min-height: 140px; display: flex; align-items: center; }
.isl-brand .custom-logo-link { display: inline-flex; }
.isl-brand img { width: 190px; max-height: 100px; object-fit: contain; }
.isl-site-name { font-size: 26px; font-weight: 700; }
.isl-nav-bar { position: sticky; top: 0; z-index: 100; }
.admin-bar .isl-nav-bar { top: 32px; }
.isl-nav-inner { display: flex; align-items: center; gap: 20px; }
.isl-navigation { flex: 1; min-width: 0; }
.isl-menu { gap: 24px; }
.isl-menu > li > a {
    display: block;
    padding: 14px 0;
    font-weight: 700;
    text-transform: uppercase;
}
.isl-menu li { position: relative; }
.isl-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: #fff;
    box-shadow: 0 3px 12px #0002;
}
.isl-menu li:hover > .sub-menu,
.isl-menu li:focus-within > .sub-menu { display: block; }
.isl-menu .sub-menu a { display: block; padding: 8px; }
.isl-search { position: relative; }
.isl-search summary { cursor: pointer; list-style: none; padding: 10px 0; }
.isl-search summary::-webkit-details-marker { display: none; }
.isl-search svg { display: block; }
.isl-search-panel {
    position: absolute;
    right: 0;
    top: 100%;
    width: min(320px, 85vw);
    padding: 16px;
    background: #fff;
    box-shadow: 0 3px 12px #0002;
}
.isl-search-panel input { max-width: 100%; padding: 8px; }

.isl-layout {
    display: grid;
    grid-template-columns: minmax(0, 750fr) minmax(0, 345fr);
    gap: 45px;
    padding-top: 30px;
    padding-bottom: 40px;
}
.isl-layout:not(:has(> .isl-sidebar)) { grid-template-columns: minmax(0, 1fr); }
.isl-main, .isl-sidebar { min-width: 0; }
.isl-post { display: flex; gap: 30px; margin-bottom: 30px; }
.isl-thumb { flex: 0 0 260px; align-self: flex-start; }
.isl-thumb img, .isl-thumb-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 350 / 250;
    object-fit: cover;
}
.isl-thumb-placeholder { background: #f5f5f5; }
.isl-post-content { flex: 1; min-width: 0; }
.isl-post-title {
    margin: 0 0 5px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}
.isl-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
}
.isl-author a { color: #1e73be; font-weight: 700; }
.isl-post-excerpt { color: #555; }
.isl-post-excerpt p { margin: 16px 0 0; }
.isl-widget { margin-bottom: 40px; }
.isl-widget-title {
    position: relative;
    margin: 5px 0 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-size: 16px;
    line-height: 1.4;
}
.isl-widget-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #1e73be;
}
.isl-widget img { display: block; }
.isl-widget figure { margin: 0; }
.pagination { margin: 35px 0; text-align: center; }
.pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.pagination .page-numbers {
    padding: 5px 10px;
    border: 1px solid #eee;
    font-size: 12px;
}
.pagination .current { background: #1e73be; border-color: #1e73be; color: #fff; }
.isl-footer { padding: 100px 0 40px; background: #efbf21; color: #000; }
.isl-footer-copyright { border-top: 1px solid #333; padding-top: 20px; }
.isl-footer-copyright p { margin: 10px 0; font-size: 12px; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link:focus {
    width: auto;
    height: auto;
    margin: 0;
    clip-path: none;
    padding: 12px;
    background: #fff;
    color: #000;
    z-index: 1000;
}

@media (max-width: 1199px) {
    .isl-container { width: calc(100% - 40px); }
    .isl-layout {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 30px;
    }
    .isl-thumb { flex-basis: 200px; }
    .isl-post { gap: 20px; }
    .isl-menu { gap: 16px; }
}

@media (max-width: 991px) {
    .isl-layout { grid-template-columns: minmax(0, 1fr); }
    .isl-brand { min-height: 90px; }
    .isl-post-title { font-size: 20px; }
    .isl-sidebar { margin-top: 20px; }
    .isl-widget img { max-width: 100%; }
    .isl-menu { gap: 0 18px; }
    .isl-menu > li > a { padding: 10px 0; font-size: 12px; }
    .isl-footer { padding-top: 60px; }
}

@media (max-width: 782px) {
    .admin-bar .isl-nav-bar { top: 46px; }
}

@media (max-width: 600px) {
    .admin-bar .isl-nav-bar { position: static; }
    .isl-container { width: calc(100% - 30px); }
    .isl-top-menu { gap: 0 12px; }
    .isl-top-menu a { font-size: 11px; line-height: 30px; }
    .isl-brand { min-height: 80px; }
    .isl-brand img { width: 180px; max-height: 65px; }
    .isl-layout { padding-top: 20px; }
    .isl-post { gap: 15px; margin-bottom: 24px; }
    .isl-thumb { flex-basis: 110px; }
    .isl-post-title { font-size: 16px; line-height: 1.4; }
    .isl-post-meta { font-size: 10px; gap: 4px 8px; }
    .isl-post-excerpt { display: none; }
    .isl-menu .sub-menu {
        position: static;
        min-width: 0;
        box-shadow: none;
    }
    .isl-footer { padding: 45px 0 30px; }
}

@media (max-width: 360px) {
    .isl-thumb { flex-basis: 90px; }
    .isl-post { gap: 10px; }
}

/* Batasi gambar dan caption widget ke lebar kolom. */
.isl-sidebar .widget,
.isl-sidebar .isl-widget,
.isl-sidebar .wp-caption,
.isl-sidebar figure {
    max-width: 100%;
    min-width: 0;
}
.isl-sidebar img {
    max-width: 100% !important;
    height: auto !important;
}
.isl-sidebar .wp-caption {
    width: auto !important;
}
.isl-sidebar iframe {
    max-width: 100%;
}

.isl-single-title {
    margin: 0 0 15px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}
.isl-single-image { margin: 25px 0; }
.isl-single-image img { display: block; width: 100%; height: auto; }
.isl-entry-content {
    margin-top: 25px;
    font-size: 17px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.isl-entry-content p { margin: 0 0 1.4em; }
.isl-entry-content a { color: #1e73be; text-decoration: underline; }
.isl-entry-content figure,
.isl-entry-content .wp-caption { max-width: 100%; margin-inline: 0; }
.isl-entry-content iframe { max-width: 100%; }
.isl-entry-content pre { overflow-x: auto; }

/* Penyelarasan halaman artikel dengan referensi. */
.isl-breadcrumb {
    margin: 0 0 24px;
    color: #999;
    font-size: 12px;
}
.single .isl-single-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -1.2px;
    margin: 0 0 20px;
}
.isl-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    font-size: 12px;
    color: #999;
}
.single .isl-single-image { margin: 32px 0 24px; }
.isl-single-image figcaption {
    padding-top: 5px;
    text-align: center;
    font-size: 11px;
    font-style: italic;
    line-height: 1.4;
    color: #999;
}
.isl-share {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 24px 0 32px;
}
.isl-share a {
    flex: 1 1 140px;
    padding: 9px 12px;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    border-radius: 2px;
}
.isl-share-wa { background: #315e53; }
.isl-share-fb { background: #45619d; }
.isl-share-x { background: #111; }
.isl-share a:hover { filter: brightness(1.12); }
.single .isl-entry-content {
    font-size: 16px;
    line-height: 1.65;
}
.single .isl-entry-content p { margin-bottom: 1.5em; }
.isl-tags { margin: 30px 0; font-size: 12px; }
.isl-tags a {
    display: inline-block;
    margin: 3px;
    padding: 2px 8px;
    background: #f5f5f5;
    color: #777;
}
.post-navigation {
    margin: 30px 0;
    padding: 25px 0;
    border-block: 1px solid #eee;
}
.post-navigation .nav-links { display: flex; gap: 25px; }
.post-navigation .nav-links > div { flex: 1; min-width: 0; }
.post-navigation a { font-size: 14px; font-weight: 700; }
.isl-nav-label {
    display: block;
    margin-bottom: 10px;
    color: #999;
    font-weight: 400;
}
.isl-comments { border-top: 2px solid #eee; padding-top: 20px; }
.isl-comments h3 { font-size: 24px; margin: 0 0 15px; }
.isl-comments label { display: block; margin-bottom: 5px; }
.isl-comments textarea,
.isl-comments input:not([type="submit"]):not([type="checkbox"]) {
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px;
    font: inherit;
}
.isl-comments textarea { min-height: 200px; }
.isl-comments .submit {
    border: 0;
    padding: 12px 20px;
    background: #1e73be;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
}
.isl-comment-list { padding-left: 20px; }
.isl-comment-list .comment-body { margin-bottom: 25px; }
.isl-comment-list .children { padding-left: 20px; }
@media (max-width: 600px) {
    .single .isl-single-title { font-size: 28px; letter-spacing: -.5px; }
    .isl-single-meta { font-size: 11px; }
    .isl-share a { flex-basis: 100px; }
}

.isl-share { align-items: center; }
.isl-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 16px;
    margin-right: 6px;
    border-right: 1px solid #ddd;
    flex: 0 0 auto;
}
.isl-stat { text-align: center; }
.isl-stat strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    color: #555;
}
.isl-stat-shares strong { color: #1e73be; }
.isl-stat span {
    display: block;
    font-size: 10px;
    line-height: 1.6;
    color: #999;
}
@media (max-width: 600px) {
    .isl-stats {
        flex-basis: 100%;
        justify-content: flex-start;
        border-right: 0;
        margin-bottom: 8px;
    }
}

.isl-entry-content::after {
    content: "";
    display: table;
    clear: both;
}
.isl-entry-content .isl-related {
    float: left;
    width: 43%;
    margin: 8px 25px 22px 0;
    padding: 0;
}
.isl-entry-content .isl-related h2 {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
}
.isl-related h2 span {
    color: #1e73be;
    font-weight: 700;
}
.isl-related h2::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #1e73be;
}
.isl-entry-content .isl-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.isl-entry-content .isl-related li {
    margin: 0 0 14px;
    padding: 0;
}
.isl-entry-content .isl-related a {
    display: block;
    color: #212121;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}
.isl-entry-content .isl-related a:hover {
    color: #1e73be;
}
@media (max-width: 600px) {
    .isl-entry-content .isl-related {
        float: none;
        width: 100%;
        margin: 24px 0;
    }
}
