/*
 * Rumah Pena Foundation
 * Frontend CSS
 */


/* =========================================================
   SITE TITLE FALLBACK
========================================================= */

.rp-site-title {
    display: inline-block;

    color: #111111;

    font-family: var(
        --rp-heading-font,
        Arial,
        sans-serif
    );

    font-size: 22px;
    font-weight: 700;

    line-height: 1.2;
}


/* =========================================================
   MOBILE MENU
========================================================= */

@media (max-width: 768px) {

    .rp-menu-toggle {
        display: flex;

        position: relative;
        z-index: 1001;

        flex: 0 0 auto;
    }


    .rp-navigation {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        display: none;

        width: 100%;

        padding: 15px;

        background: #ffffff;

        border-top: 1px solid #eeeeee;
        border-bottom: 1px solid #eeeeee;

        z-index: 1000;
    }


    .rp-navigation.rp-navigation-open {
        display: block;
    }


    .rp-navigation ul {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;
    }


    .rp-navigation li {
        width: 100%;
    }


    .rp-navigation a {
        display: block;

        width: 100%;

        padding: 13px 5px;

        border-bottom: 1px solid #eeeeee;

        font-size: var(
            --rp-menu-mobile-size,
            13px
        );
    }


    .rp-navigation li:last-child a {
        border-bottom: 0;
    }


    /* =============================================
       MENU ICON → X
    ============================================== */

    .rp-menu-toggle[aria-expanded="true"]
    span:nth-child(1) {

        transform:
            translateY(7px)
            rotate(45deg);
    }


    .rp-menu-toggle[aria-expanded="true"]
    span:nth-child(2) {

        opacity: 0;
    }


    .rp-menu-toggle[aria-expanded="true"]
    span:nth-child(3) {

        transform:
            translateY(-7px)
            rotate(-45deg);
    }


    /* =============================================
       LOCK BODY SCROLL
    ============================================== */

    body.rp-menu-open {
        overflow: hidden;
    }

}


/* =========================================================
   GUTENBERG
========================================================= */

.rp-page-body,
.rp-single-body {

    overflow-wrap: break-word;
}


/* Images */

.rp-page-body img,
.rp-single-body img {

    max-width: 100%;
    height: auto;
}


/* Figure */

.rp-page-body figure,
.rp-single-body figure {

    max-width: 100%;

    margin-top: 30px;
    margin-bottom: 30px;
}


/* Caption */

.rp-page-body figcaption,
.rp-single-body figcaption {

    margin-top: 8px;

    color: #777777;

    font-size: 13px;

    line-height: 1.5;

    text-align: center;
}


/* Blockquote */

.rp-page-body blockquote,
.rp-single-body blockquote {

    margin: 30px 0;

    padding: 5px 0 5px 20px;

    border-left: 4px solid #111111;

    color: #555555;

    font-style: italic;
}


/* Tables */

.rp-page-body table,
.rp-single-body table {

    width: 100%;

    margin: 30px 0;

    border-collapse: collapse;
}

.rp-page-body th,
.rp-page-body td,
.rp-single-body th,
.rp-single-body td {

    padding: 10px;

    border: 1px solid #dddddd;

    text-align: left;
}


/* Buttons */

.rp-page-body .wp-block-button,
.rp-single-body .wp-block-button {

    margin-top: 20px;
    margin-bottom: 20px;
}

.rp-page-body .wp-block-button__link,
.rp-single-body .wp-block-button__link {

    border-radius: 0;
}


/* Separator */

.rp-page-body .wp-block-separator,
.rp-single-body .wp-block-separator {

    margin-top: 40px;
    margin-bottom: 40px;
}


/* Gallery */

.rp-page-body .wp-block-gallery,
.rp-single-body .wp-block-gallery {

    margin-top: 30px;
    margin-bottom: 30px;
}


/* =========================================================
   FOOTER
========================================================= */

.rp-footer {

    background: #000000 !important;

    color: #ffffff;
}

.rp-footer a {

    transition:
        opacity 0.2s ease,
        color 0.2s ease;
}

.rp-footer a:hover {

    opacity: 0.7;
}

.rp-footer-site-title {

    display: inline-block;

    margin-bottom: 18px;

    color: #ffffff;

    font-size: 22px;
    font-weight: 700;
}

.rp-footer-logo .custom-logo {

    background: transparent;
}


/* =========================================================
   MOBILE FOOTER
========================================================= */

@media (max-width: 768px) {

    .rp-footer-content {

        gap: 30px;
    }

}

/* =========================================================
   CATEGORY ARCHIVE - MOBILE SPACING
========================================================= */

@media (max-width: 768px) {

    /* Jarak header kategori ke artikel pertama */
    .rp-category-header {
        margin-bottom: 35px;
    }


    /* Setiap artikel dibuat lebih rapat */
    .rp-category-post {
        margin-bottom: 35px;
        padding-bottom: 35px;
    }


    /* Gambar */
    .rp-category-image {
        margin-bottom: 22px;
    }


    /* Area isi artikel */
    .rp-category-content {
        margin: 0;
        padding: 0;
    }


    /* Judul artikel */
    .rp-category-post-title {
        margin: 0;
        line-height: 1.35;
    }


    /* Hilangkan margin bawaan paragraf/elemen kosong */
    .rp-category-content > * {
        margin-top: 0;
    }


    /* Pagination */
    .rp-category-pagination {
        margin-top: 35px;
    }

}

/* =========================================================
   CATEGORY ARCHIVE - BACKGROUND
========================================================= */

.rp-category {
    background: rgba(0, 0, 0, 0.15);
}

/* =========================================================
   IMAGE PENGURUS
   NAMA - JABATAN - BIO
========================================================= */

.rp-image-pengurus-name {
    margin: 8px 0 1px;
    padding: 0;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.25;

    text-align: center;
}


.rp-image-pengurus-position {
    margin: 0;
    padding: 0;

    color: #ffffff;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.25;

    text-align: center;
}


.rp-image-pengurus-bio {
    margin: 8px 0 0;
    padding: 0;

    color: #ffffff;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.4;

    text-align: center;
}