.rb-site-footer {
    width: 100%;
    padding: 56px 24px 22px;
    background: #0e1623;
    color: #ffffff;
}

.rb-site-footer *,
.rb-site-footer *::before,
.rb-site-footer *::after {
    box-sizing: border-box;
}

.rb-site-footer__inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(340px, 1.35fr) auto;
    gap: 56px;
    align-items: start;
}

.rb-site-footer__brand {
    min-width: 0;
}

.rb-site-footer__logo {
    display: inline-flex;
    align-items: center;
    max-width: 190px;
}

.rb-site-footer__logo-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
}

.rb-site-footer__brand-name {
    display: inline-block;
    color: #ffffff;
    font-size: 25px;
    font-weight: 750;
    text-decoration: none;
}

.rb-site-footer__tagline,
.rb-site-footer__newsletter-copy {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 14px;
    line-height: 1.6;
}

.rb-site-footer__heading {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.rb-footer-subscribe {
    margin-top: 17px;
}

.rb-footer-subscribe__row {
    display: flex;
    width: 100%;
    max-width: 520px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.rb-footer-subscribe__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    margin: 0;
    border: 0 !important;
    outline: 0;
    box-shadow: none !important;
    background: transparent !important;
    color: #ffffff !important;
    font: inherit;
}

.rb-footer-subscribe__input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.rb-footer-subscribe__input:focus {
    outline: none;
}

.rb-footer-subscribe__row:focus-within {
    border-color: rgba(255, 255, 255, 0.42);
}

.rb-footer-subscribe__button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 9px;
    background: #ffffff;
    color: #101722;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.rb-footer-subscribe__button:hover {
    transform: translateY(-1px);
}

.rb-footer-subscribe__button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.rb-footer-subscribe__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.rb-footer-subscribe__message {
    min-height: 19px;
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
}

.rb-footer-subscribe__message.is-success {
    color: #b9e8c6;
}

.rb-footer-subscribe__message.is-error {
    color: #ffb8b8;
}

.rb-site-footer__social {
    min-width: 205px;
}

.rb-site-footer__social-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.rb-site-footer__social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

a.rb-site-footer__social-link:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    transform: translateY(-2px);
}

.rb-site-footer__social-link svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rb-site-footer__social-link svg path {
    fill: currentColor;
    stroke: none;
}

.rb-site-footer__social-link svg .rb-social-icon-fill {
    fill: currentColor;
    stroke: none;
}

.rb-site-footer__social-link svg .rb-social-icon-cut {
    fill: #0e1623;
    stroke: none;
}

.rb-site-footer__social-link--disabled {
    opacity: 0.36;
    cursor: default;
}

.rb-site-footer__bottom {
    width: 100%;
    max-width: 1240px;
    margin: 44px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.rb-site-footer__bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.46);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 980px) {
    .rb-site-footer__inner {
        grid-template-columns: 1fr 1.4fr;
        gap: 38px;
    }

    .rb-site-footer__social {
        grid-column: 1 / -1;
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .rb-site-footer {
        padding: 44px 20px 20px;
    }

    .rb-site-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rb-site-footer__social {
        grid-column: auto;
    }

    .rb-footer-subscribe__row {
        max-width: none;
    }

    .rb-site-footer__bottom {
        margin-top: 36px;
    }
}

@media (max-width: 480px) {
    .rb-footer-subscribe__row {
        display: block;
        padding: 5px;
    }

    .rb-footer-subscribe__input {
        width: 100%;
    }

    .rb-footer-subscribe__button {
        width: 100%;
        margin-top: 4px;
    }
}

/* ==========================================================
   Ruang Bestari Footer — Brand Final Polish
   ========================================================== */

.rb-site-footer {
    position: relative;
    width: 100%;
    padding: 38px 24px 18px;
    background: #191C1F;
    color: #ffffff;
}

/* Accent kecil, tidak mengambil perhatian */
.rb-site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 110px;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 0 0 2px 2px;
    background: linear-gradient(
        90deg,
        #FDAA01 0%,
        #FEC703 100%
    );
}


/* ----------------------------------------------------------
   Main layout
   ---------------------------------------------------------- */

.rb-site-footer__inner {
    max-width: 1240px;
    grid-template-columns:
        minmax(210px, .95fr)
        minmax(360px, 1.45fr)
        minmax(190px, .65fr);
    gap: 44px;
    align-items: start;
}


/* ----------------------------------------------------------
   Brand
   ---------------------------------------------------------- */

.rb-site-footer__logo {
    max-width: 185px;
}

/* Gunakan logo yang memang sudah dipakai pada background gelap */
.rb-site-footer__logo-image {
    content: url("/wp-content/uploads/2026/08/Bestari-Literasi-Indonesia.png");
    width: auto;
    max-width: 100%;
    max-height: 52px;
}

.rb-site-footer__tagline {
    margin-top: 10px;
    color: rgba(255,255,255,.66);
    font-size: 13px;
    line-height: 1.55;
}


/* ----------------------------------------------------------
   Heading / copy
   ---------------------------------------------------------- */

.rb-site-footer__heading {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .01em;
}

.rb-site-footer__newsletter-copy {
    margin-top: 0;
    color: rgba(255,255,255,.63);
    font-size: 13px;
    line-height: 1.5;
}


/* ----------------------------------------------------------
   Newsletter
   ---------------------------------------------------------- */

.rb-footer-subscribe {
    margin-top: 13px;
}

.rb-footer-subscribe__row {
    max-width: 520px;
    padding: 3px;
    border-color: rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.055);
}

.rb-footer-subscribe__row:focus-within {
    border-color: rgba(255,117,31,.78);
    box-shadow: 0 0 0 2px rgba(255,117,31,.10);
}

.rb-footer-subscribe__input {
    height: 42px;
    padding: 0 13px;
    font-size: 13px;
}

.rb-footer-subscribe__input::placeholder {
    color: rgba(255,255,255,.40);
}

.rb-footer-subscribe__button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 9px;
    background: #FF751F;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    transition:
        background-color .18s ease,
        transform .18s ease,
        opacity .18s ease;
}

.rb-footer-subscribe__button:hover {
    background: #E96512;
    transform: translateY(-1px);
}

.rb-footer-subscribe__message {
    min-height: 17px;
    margin-top: 6px;
    font-size: 11.5px;
}


/* ----------------------------------------------------------
   Social
   ---------------------------------------------------------- */

.rb-site-footer__social {
    min-width: 190px;
}

.rb-site-footer__social-list {
    gap: 7px;
    margin-top: 12px;
}

.rb-site-footer__social-link {
    width: 36px;
    height: 36px;
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.74);
}

a.rb-site-footer__social-link:hover {
    border-color: rgba(15,149,153,.52);
    background: rgba(15,149,153,.13);
    color: #7DD9DC;
    transform: translateY(-2px);
}

.rb-site-footer__social-link svg {
    width: 17px;
    height: 17px;
}

/* Sesuaikan cutout YouTube dengan background charcoal baru */
.rb-site-footer__social-link svg .rb-social-icon-cut {
    fill: #191C1F;
}


/* ----------------------------------------------------------
   Copyright
   ---------------------------------------------------------- */

.rb-site-footer__bottom {
    max-width: 1240px;
    margin: 27px auto 0;
    padding-top: 14px;
    border-top-color: rgba(255,255,255,.08);
}

.rb-site-footer__bottom p {
    color: rgba(255,255,255,.43);
    font-size: 11.5px;
}


/* ----------------------------------------------------------
   Tablet
   ---------------------------------------------------------- */

@media (max-width: 980px) {

    .rb-site-footer {
        padding-top: 34px;
    }

    .rb-site-footer__inner {
        grid-template-columns: .9fr 1.35fr;
        gap: 32px 38px;
    }

    .rb-site-footer__social {
        grid-column: 1 / -1;
    }

    .rb-site-footer__bottom {
        margin-top: 26px;
    }
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 700px) {

    .rb-site-footer {
        padding: 32px 20px 16px;
    }

    .rb-site-footer__inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .rb-site-footer__bottom {
        margin-top: 25px;
        padding-top: 13px;
    }

    .rb-site-footer__social-list {
        margin-top: 10px;
    }
}


/* ----------------------------------------------------------
   Small mobile
   ---------------------------------------------------------- */

@media (max-width: 480px) {

    .rb-footer-subscribe__row {
        padding: 4px;
    }

    .rb-footer-subscribe__button {
        min-height: 40px;
    }
}


/* Ruang Bestari footer — final micro polish
-------------------------------------------------------------- */

/* Hilangkan aksen garis atas */
.rb-site-footer::before {
    display: none;
}

/* Sedikit lebih kompak secara vertikal */
.rb-site-footer {
    padding-top: 34px;
    padding-bottom: 15px;
}

.rb-site-footer__bottom {
    margin-top: 21px;
    padding-top: 13px;
    border-top-color: rgba(255,255,255,.065);
}

/* Social icon sedikit lebih terbaca */
.rb-site-footer__social-link {
    color: rgba(255,255,255,.80);
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
}

.rb-site-footer__bottom p {
    color: rgba(255,255,255,.46);
}

@media (max-width: 700px) {

    .rb-site-footer {
        padding-top: 26px;
        padding-bottom: 12px;
    }

    .rb-site-footer__inner {
        gap: 22px;
    }

    .rb-site-footer__bottom {
        margin-top: 18px;
    }

}


/* ==========================================================
 * RB FOOTER — HONEYPOT OVERFLOW FIX
 * Keep anti-spam field hidden without extending viewport.
 * ========================================================== */

.rb-footer-subscribe__hp {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;

    width: 1px !important;
    height: 1px !important;

    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;

    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;

    opacity: 0 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

