
/* =====================================================
   KUMPULAN SOAL
   ARTICLE CSS
   ===================================================== */

.ibp-article-page {
    min-height: 70vh;
    padding: 1px 0 45px;
    background: #f5f7f9;
    color: #263238;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.65;
}

.ibp-article-page * {
    box-sizing: border-box;
}

.ibp-article-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 20px 45px;
}

/* HEADER */

.ibp-article-header {
    max-width: 780px;
    margin: 0 auto 25px;
    text-align: center;
}

.ibp-article-header h1 {
    margin: 0;
    color: #263238;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 800;
}

.ibp-article-header p {
    margin: 9px auto 0;
    color: #71808a;
    font-size: 15px;
}

/* SEARCH */

.ibp-article-search {
    margin-bottom: 20px;
}

.ibp-article-search form {
    display: flex;
    gap: 8px;
}

.ibp-article-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 15px;
    border: 1px solid #d9e0e5;
    border-radius: 9px;
    background: #fff;
    color: #263238;
    font-size: 14px;
}

.ibp-article-search button {
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 9px;
    background: #34495e;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.ibp-article-search button:hover {
    background: #263746;
}

/* CATEGORY */

.ibp-article-category-panel {
    margin-bottom: 22px;
    padding: 17px 18px;
    border: 1px solid #e0e5e9;
    border-radius: 12px;
    background: #fff;
}

.ibp-article-category-panel > strong {
    display: block;
    margin-bottom: 10px;
    color: #34495e;
    font-size: 14px;
}

.ibp-article-category-list,
.ibp-article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ibp-article-category-list a,
.ibp-article-categories a {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border: 1px solid #dce3e8;
    border-radius: 20px;
    background: #f8fafb;
    color: #536572;
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
}

.ibp-article-category-list a:hover,
.ibp-article-category-list a.active,
.ibp-article-categories a:hover {
    border-color: #34495e;
    background: #34495e;
    color: #fff;
}

.ibp-article-category-description {
    margin-top: 8px;
    color: #71808a;
    font-size: 14px;
}

/* SECTION HEADING */

.ibp-article-section-heading {
    margin: 25px 0 12px;
}

.ibp-article-section-heading h2 {
    margin: 0;
    color: #263238;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 800;
}

/* ARTICLE LIST */

.ibp-article-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ibp-article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 18px;
    border: 1px solid #e0e5e9;
    border-radius: 11px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.ibp-article-item:hover {
    border-color: #ccd5dc;
    box-shadow: 0 4px 14px rgba(31, 41, 51, .06);
    transform: translateY(-1px);
    text-decoration: none;
}

.ibp-article-item-main {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
}

.ibp-article-item-main > strong {
    margin-bottom: 5px;
    color: #263238;
    font-size: 16px;
    line-height: 1.45;
}

.ibp-article-item-excerpt {
    color: #78848c;
    font-size: 13px;
    line-height: 1.6;
}

.ibp-article-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
}

.ibp-article-item-meta > span {
    padding: 4px 9px;
    border-radius: 15px;
    background: #eef2f5;
    color: #566774;
    font-size: 11px;
    font-weight: 700;
}

.ibp-article-item-meta small {
    color: #9aa3a9;
    font-size: 11px;
}

.ibp-article-item-arrow {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f3f5;
    color: #566774;
    font-size: 18px;
}

/* PAGINATION */

.ibp-article-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 25px;
}

.ibp-article-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #dce2e6;
    border-radius: 8px;
    background: #fff;
    color: #536572;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.ibp-article-pagination .page-numbers.current {
    border-color: #34495e;
    background: #34495e;
    color: #fff;
}

/* EMPTY STATE */

.ibp-article-empty {
    padding: 45px 20px;
    border: 1px dashed #d5dde2;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.ibp-article-empty h2 {
    margin: 0 0 7px;
    color: #34495e;
    font-size: 19px;
}

.ibp-article-empty p {
    margin: 0;
    color: #7d8991;
    font-size: 13px;
}

/* BACK LINK */

.ibp-article-back {
    margin-bottom: 14px;
}

.ibp-article-back a {
    color: #526a79;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

/* SINGLE ARTICLE */

.ibp-article-single-card {
    padding: 28px 30px;
    border: 1px solid #e0e5e9;
    border-radius: 13px;
    background: #fff;
}

.ibp-article-single-header {
    text-align: center;
}

.ibp-article-single-header > .ibp-article-categories {
    justify-content: center;
    margin-bottom: 14px;
}

.ibp-article-single-header h1 {
    margin: 0;
    color: #263238;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 800;
}

.ibp-article-byline {
    margin-top: 10px;
    color: #89949b;
    font-size: 12px;
}

.ibp-article-featured-image {
    margin: 22px auto 0;
}

.ibp-article-featured-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

.ibp-article-intro {
    max-width: 760px;
    margin: 20px auto 0;
    color: #586873;
    font-size: 17px;
    line-height: 1.75;
    text-align: left;
}

/* CONTENT */

.ibp-article-content {
    max-width: 800px;
    margin: 28px auto 0;
    color: #303b43;
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.ibp-article-content p {
    margin: 0 0 20px;
}

.ibp-article-content h2,
.ibp-article-content h3,
.ibp-article-content h4 {
    color: #34495e;
    line-height: 1.4;
}

.ibp-article-content h2 {
    margin: 34px 0 14px;
    font-size: 27px;
}

.ibp-article-content h3 {
    margin: 28px 0 12px;
    font-size: 22px;
}

.ibp-article-content h4 {
    margin: 23px 0 10px;
    font-size: 18px;
}

.ibp-article-content ul,
.ibp-article-content ol {
    margin: 0 0 22px;
    padding-left: 26px;
}

.ibp-article-content li {
    margin-bottom: 8px;
}

.ibp-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 22px auto;
    border-radius: 8px;
}

.ibp-article-content blockquote {
    margin: 24px 0;
    padding: 16px 19px;
    border-left: 4px solid #cbd5dc;
    border-radius: 0 8px 8px 0;
    background: #f6f8f9;
    color: #5d6b74;
}

.ibp-article-content a {
    color: #3e647b;
}

.ibp-article-content table {
    width: 100%;
    margin: 22px 0;
    border-collapse: collapse;
}

.ibp-article-content th,
.ibp-article-content td {
    padding: 10px 12px;
    border: 1px solid #dfe5e9;
    text-align: left;
}

.ibp-article-content th {
    background: #f3f6f8;
}

/* SINGLE FOOTER */

.ibp-article-single-footer {
    max-width: 800px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid #e6eaed;
}

.ibp-article-single-footer > span {
    display: block;
    margin-bottom: 9px;
    color: #89949b;
    font-size: 12px;
}

.ibp-article-single-footer .ibp-article-categories {
    margin-bottom: 20px;
}

.ibp-article-back-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #34495e;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.ibp-article-back-button:hover {
    background: #263746;
    color: #fff;
}

/* RESPONSIVE */

@media (max-width: 700px) {

    .ibp-article-container {
        padding: 22px 12px 35px;
    }

    .ibp-article-header h1 {
        font-size: 26px;
    }

    .ibp-article-search form {
        flex-direction: column;
    }

    .ibp-article-search input[type="search"],
    .ibp-article-search button {
        width: 100%;
    }

    .ibp-article-item {
        padding: 14px;
    }

    .ibp-article-item-main > strong {
        font-size: 15px;
    }

    .ibp-article-item-excerpt {
        font-size: 12px;
    }

    .ibp-article-single-card {
        padding: 21px 17px;
    }

    .ibp-article-single-header h1 {
        font-size: 25px;
    }

    .ibp-article-intro {
        font-size: 16px;
    }

    .ibp-article-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .ibp-article-content h2 {
        font-size: 23px;
    }

    .ibp-article-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 420px) {

    .ibp-article-container {
        padding-right: 9px;
        padding-left: 9px;
    }

    .ibp-article-header h1 {
        font-size: 23px;
    }

    .ibp-article-single-header h1 {
        font-size: 22px;
    }
}
