/* ============================================================
   Roconal Static Pages (rcsp) - Scoped Styles
   File: public/css/rcsp-static-pages.css
   NOTE:
   - Semua class diawali rcsp__ agar aman dari conflict
   - Tidak override class bootstrap/global
   ============================================================ */

.rcsp * {
    box-sizing: border-box;
}

/* ============================================================
   FORCE HANKEN GROTESK FOR ALL TEXT ELEMENTS
   Override Font Awesome and other icon fonts
   ============================================================ */
/* ============================================================
   FORCE TEXT FONT (tanpa merusak icon font)
   ============================================================ */

/* JANGAN override icon font */
/* .rcsp i.ti,
.rcsp [class^="ti-"],
.rcsp [class*=" ti-"] {
    font-family: "tabler-icons" !important;
    font-style: normal;
    font-weight: normal;
} */

/* Exception: Allow Font Awesome icons to use their font */

.rcsp__container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 12px 44px;
}
@media (min-width: 992px) {
    .rcsp__container {
        padding: 22px 12px 56px;
    }
}

/* =========================
   Page Header
   ========================= */
.rcsp__header {
    margin-bottom: 20px;
}

/* =========================
   Breadcrumbs (FIX NAMA)
   ========================= */
.rcsp__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text, #666);
    margin-bottom: 10px;
}
.rcsp__breadcrumbs a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text, #666);
}
.rcsp__breadcrumbs a:hover {
    color: var(--primary, #1b3c53);
    text-decoration: underline;
}
.rcsp__breadcrumbs span {
    opacity: 0.8;
    font-weight: 800;
    /* color: var(--text, #000000); */
    font-size: 13px;
    text-decoration: none;
    color: #111827;
}

/* =========================
   Hero (FIX NAMA)
   ========================= */
.rcsp__hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--rc-r12, 12px);
    background: linear-gradient(
        180deg,
        var(--background-3, #f3f9fb),
        var(--white, #fff)
    );
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    padding: 16px;
    margin-bottom: 14px;
}
@media (min-width: 992px) {
    .rcsp__hero {
        padding: 18px;
    }
}
@media (max-width: 767.98px) {
    .rcsp__hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

.rcsp__hero-left {
    min-width: 0;
    flex: 1;
}

/* Ini yang bikin judul gak meledak */
.rcsp__title {
    margin: 0;
    font-weight: 900;
    color: var(--heading, #222);
    letter-spacing: -0.6px;
    line-height: 1.05;

    /* ukuran aman, tidak akan jadi raksasa */
    font-size: clamp(28px, 3.6vw, 56px);
}

.rcsp__subtitle {
    margin: 10px 0 0;
    color: var(--text, #666);
    font-size: 14px;
    line-height: 1.7;
    max-width: 78ch;
}

/* Link di hero (contoh: “Lanjut: Nilai Kami”) */
.rcsp__hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    color: var(--primary, #1b3c53);
}
.rcsp__hero-link:hover {
    text-decoration: underline;
}

/* =========================
   Layout: Content + Sidebar
   ========================= */
.rcsp__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 992px) {
    .rcsp__layout {
        grid-template-columns: 1fr 300px;
        align-items: start;
    }
}

/* =========================
   Content Card
   ========================= */
.rcsp__card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--rc-r12, 12px);
    background: var(--white, #fff);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 14px;
}
@media (min-width: 992px) {
    .rcsp__card {
        padding: 18px;
    }
}
.rcsp__card-inner {
    padding: 14px 14px 18px;
}
@media (min-width: 992px) {
    .rcsp__card-inner {
        padding: 18px 18px 24px;
    }
}

/* =========================
   Typography
   ========================= */
.rcsp__h2 {
    margin: 0 0 10px;
    font-weight: 900;
    color: var(--heading, #222);
    font-size: 18px;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rcsp__h2 i {
    color: var(--primary, #1b3c53);
    font-size: 18px;
}
.rcsp__p {
    margin: 0 0 10px;
    color: var(--text, #666);
    font-size: 14px;
    line-height: 1.75;
}
.rcsp__p:last-child {
    margin-bottom: 0;
}

.rcsp__ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--text, #666);
    font-size: 14px;
    line-height: 1.75;
}
.rcsp__ul li {
    margin: 6px 0;
}

/* =========================
   Sidebar / TOC
   ========================= */
.rcsp__sidecard {
    background: var(--white, #fff);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--rc-r12, 12px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: sticky;
    top: 92px;
}
@media (max-width: 991.98px) {
    .rcsp__sidecard {
        position: relative;
        top: auto;
    }
}

.rcsp__sidehead {
    padding: 12px 14px;
    font-weight: 900;
    color: var(--heading, #222);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 10px;
    align-items: center;
    background: linear-gradient(
        180deg,
        var(--background-3, #f3f9fb),
        var(--white, #fff)
    );
}
.rcsp__sidebody {
    padding: 10px;
    display: grid;
    gap: 6px;
}
.rcsp__sidelink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--heading, #222);
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: 14px;
    transition: all 0.15s ease;
}
.rcsp__sidelink i {
    color: var(--primary, #1b3c53);
    font-size: 18px;
}
.rcsp__sidelink:hover {
    background: rgba(27, 60, 83, 0.06);
    border-color: rgba(27, 60, 83, 0.16);
}
.rcsp__sidelink.is-active {
    background: rgba(27, 60, 83, 0.1);
    border-color: rgba(27, 60, 83, 0.22);
}

/* =========================
   Tile Grid (Nilai Kami) - FIX: beda nama, tidak pakai rcsp__grid
   ========================= */
.rcsp__tilegrid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .rcsp__tilegrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1200px) {
    .rcsp__tilegrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.rcsp__tile {
    background: var(--white, #fff);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--rc-r12, 12px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    padding: 14px;
}
.rcsp__tileicon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(27, 60, 83, 0.1);
    color: var(--primary, #1b3c53);
    margin-bottom: 10px;
}
.rcsp__tile h3 {
    margin: 0 0 6px;
    font-weight: 900;
    color: var(--heading, #222);
    font-size: 15px;
}
.rcsp__tile p {
    margin: 0;
    color: var(--text, #666);
    font-size: 13px;
    line-height: 1.6;
}

/* =========================
   Steps (Cara Kerja)
   ========================= */
.rcsp__steps {
    display: grid;
    gap: 10px;
}
.rcsp__step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--rc-r12, 12px);
    background: var(--white, #fff);
}
.rcsp__stepnum {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(27, 60, 83, 0.12);
    color: var(--primary, #1b3c53);
    font-weight: 900;
}
.rcsp__stepbody strong {
    display: block;
    font-weight: 900;
    color: var(--heading, #222);
    margin-bottom: 2px;
}
.rcsp__stepbody p {
    margin: 0;
    color: var(--text, #666);
    font-size: 13px;
    line-height: 1.6;
}

/* =========================
   Contact grid
   ========================= */
.rcsp__contactgrid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .rcsp__contactgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.rcsp__contactitem {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--rc-r12, 12px);
    background: var(--white, #fff);
}
.rcsp__contacticon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(27, 60, 83, 0.1);
    color: var(--primary, #1b3c53);
    flex: 0 0 auto;
}
.rcsp__contactlabel {
    font-size: 12px;
    color: var(--rc-muted, #777);
    font-weight: 800;
}
.rcsp__contactvalue {
    font-size: 13px;
    color: var(--heading, #222);
    font-weight: 900;
}

/* Print helpers */
@media print {
    .rcsp__sidecard {
        display: none !important;
    }
    .rcsp__hero,
    .rcsp__card {
        box-shadow: none !important;
    }
}
/* =========================
   Hero layout & CTA
   ========================= */
.rcsp__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(27, 60, 83, 0.25);
    background: rgba(27, 60, 83, 0.08);
    color: var(--primary, #1b3c53);
    transition: all 0.15s ease;
    flex: 0 0 auto;
}
.rcsp__cta:hover {
    background: rgba(27, 60, 83, 0.12);
    border-color: rgba(27, 60, 83, 0.35);
    transform: translateY(-1px);
}

/* =========================
   Content column helpers
   ========================= */
.rcsp__content {
    display: grid;
    gap: 12px;
}

/* =========================
   Card padding (penting)
   ========================= */
/* =========================
   List (rcsp__list)
   ========================= */
.rcsp__list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--text, #666);
    font-size: 14px;
    line-height: 1.75;
}
.rcsp__list li {
    margin: 6px 0;
}

/* =========================
   Note card
   ========================= */
.rcsp__card--note {
    border-color: rgba(27, 60, 83, 0.18);
    background: rgba(27, 60, 83, 0.05);
}

.rcsp__note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.rcsp__note i {
    color: var(--primary, #1b3c53);
    font-size: 18px;
    margin-top: 2px;
}
.rcsp__note strong {
    font-weight: 900;
    color: var(--heading, #222);
}
/* =========================
   FAQ add-on (still rcsp scoped)
   ========================= */
.rcsp__faqbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.rcsp__faqsearch {
    position: relative;
    flex: 1 1 320px;
}

.rcsp__faqsearch i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text, #666);
    font-size: 16px;
    pointer-events: none;
}

.rcsp__faqsearch .form-control {
    padding-left: 40px;
    border-radius: 12px;
    height: 42px;
}

.rcsp__faqgroup {
    margin-top: 12px;
}

.rcsp__faqgroup-head {
    margin: 12px 0 10px;
    display: flex;
    justify-content: flex-start;
}

.rcsp__faqbadge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    color: var(--primary, #1b3c53);
    background: rgba(27, 60, 83, 0.08);
    border: 1px solid rgba(27, 60, 83, 0.18);
}

.rcsp__faqbadge i {
    font-size: 16px;
}
/* ============================================================
   RCSP Accordion (scoped)
   ============================================================ */
.rcsp .accordion {
    --bs-accordion-border-radius: 12px;
    --bs-accordion-inner-border-radius: 12px;
    --bs-accordion-border-color: rgba(0, 0, 0, 0.06);
    --bs-accordion-btn-padding-x: 14px;
    --bs-accordion-btn-padding-y: 12px;
    --bs-accordion-body-padding-x: 14px;
    --bs-accordion-body-padding-y: 12px;
}

.rcsp .accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
}

.rcsp .accordion-button {
    font-family: inherit;
    font-weight: 900;
    font-size: 15px; /* naikin sedikit biar lebih “title” */
    color: var(--heading, #222);
    background: var(--white, #fff);
    line-height: 1.35;
}

.rcsp .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(27, 60, 83, 0.18);
}

.rcsp .accordion-button:not(.collapsed) {
    background: rgba(27, 60, 83, 0.06);
    color: var(--heading, #222);
}

.rcsp .accordion-body {
    font-family: inherit;
    color: var(--text, #666);
    font-size: 14px;
    line-height: 1.75;
}
