/* =====================================================================
   Halaman konten publik: bagian "Tentang Rama Sakti" di beranda, /about, /contact,
   /jadwal (daftar rute), /paket, /kebijakan-privasi, berita, cara pesan, S&K.
   Dimuat per view lewat $this->Html->css(..., ['block' => true]) — DI LUAR bundel
   frontend-bundle.min.css (tidak perlu menjalankan build_frontend_css_bundle.php).

   montserrat-override.css (di bundel) memaksa font-weight 400 !important pada
   span/div/a/p/li (h2 600, h3 500), jadi setiap bobot huruf di sini wajib !important.
   ===================================================================== */

.rs-ct {
    --rs-red: #dc2626;
    --rs-red-deep: #b91c1c;
    --rs-red-soft: #fdf1f1;
    --rs-ink: #1d2433;
    --rs-muted: #5f6675;
    --rs-line: #ebe7e8;
    --rs-mist: #f5f6f8;
    color: var(--rs-ink);
    font-size: 16px;
    line-height: 1.65;
}

.rs-ct-page {
    background: var(--rs-mist);
    padding: 40px 0 56px;
}

.rs-ct-sec {
    padding: 48px 0;
}

.rs-ct-sec + .rs-ct-sec {
    padding-top: 0;
}

.rs-ct .rs-ct-h2 {
    margin: 0 0 14px;
    color: var(--rs-ink);
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

.rs-ct .rs-ct-h3 {
    margin: 0 0 8px;
    color: var(--rs-ink);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700 !important;
}

.rs-ct p {
    margin: 0 0 14px;
    color: var(--rs-ink);
}

.rs-ct .rs-ct-muted,
.rs-ct .rs-ct-muted p {
    color: var(--rs-muted);
    font-size: 14.5px;
}

.rs-ct a:not(.rs-ct-btn):not(.rs-ct-chip) {
    color: var(--rs-red-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rs-ct a:focus-visible {
    outline: 3px solid rgba(220, 38, 38, 0.4);
    outline-offset: 3px;
}

.rs-ct strong,
.rs-ct b {
    font-weight: 700 !important;
}

/* ---------- Kartu & grid ---------- */
.rs-ct-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(29, 36, 51, 0.06), 0 0 0 1px var(--rs-line);
    padding: 24px;
    margin-bottom: 20px;
}

.rs-ct-card > :last-child {
    margin-bottom: 0;
}

.rs-ct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.rs-ct-grid > li,
.rs-ct-grid > div {
    margin: 0;
}

.rs-ct-grid .rs-ct-card {
    height: 100%;
    margin-bottom: 0;
}

/* ---------- Angka fakta ---------- */
.rs-ct-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.rs-ct-facts li {
    margin: 0;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--rs-line);
}

.rs-ct .rs-ct-fact-num {
    display: block;
    color: var(--rs-red-deep);
    font-size: 26px;
    line-height: 1.15;
    font-weight: 800 !important;
}

.rs-ct .rs-ct-fact-label {
    display: block;
    margin-top: 4px;
    color: var(--rs-muted);
    font-size: 14px;
    line-height: 1.4;
}

/* ---------- Langkah bernomor ---------- */
.rs-ct-steps {
    counter-reset: rs-step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.rs-ct-steps > li {
    counter-increment: rs-step;
    position: relative;
    margin: 0;
    padding: 18px 18px 18px 64px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--rs-line);
}

.rs-ct-steps > li::before {
    content: counter(rs-step);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rs-red-soft);
    color: var(--rs-red);
    font-weight: 800;
    font-size: 15px;
    line-height: 32px;
    text-align: center;
}

.rs-ct-steps p {
    margin: 0;
}

/* ---------- Daftar tautan (rute, kota) ---------- */
.rs-ct-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.rs-ct-chips li {
    margin: 0;
}

.rs-ct .rs-ct-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--rs-line);
    color: var(--rs-ink);
    font-size: 14.5px;
    line-height: 1.3;
    text-decoration: none;
}

.rs-ct a.rs-ct-chip:hover,
.rs-ct a.rs-ct-chip:focus-visible {
    box-shadow: 0 0 0 1px var(--rs-red);
    color: var(--rs-red-deep);
    text-decoration: none;
}

.rs-ct .rs-ct-chip small {
    color: var(--rs-muted);
    font-size: 12.5px;
}

/* ---------- Tombol ---------- */
.rs-ct-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 0;
}

.rs-ct .rs-ct-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--rs-red);
    color: #fff;
    font-size: 15px;
    font-weight: 600 !important;
    text-decoration: none;
}

.rs-ct .rs-ct-btn:hover,
.rs-ct .rs-ct-btn:focus-visible {
    background: var(--rs-red-deep);
    color: #fff;
    text-decoration: none;
}

.rs-ct .rs-ct-btn--ghost {
    background: #fff;
    color: var(--rs-red-deep);
    box-shadow: inset 0 0 0 1px var(--rs-red);
}

.rs-ct .rs-ct-btn--ghost:hover,
.rs-ct .rs-ct-btn--ghost:focus-visible {
    background: var(--rs-red-soft);
    color: var(--rs-red-deep);
}

/* ---------- Teks panjang (privasi, S&K, cara pesan, berita) ---------- */
.rs-ct-prose {
    max-width: 820px;
}

.rs-ct-prose h2 {
    margin: 32px 0 12px;
    color: var(--rs-ink);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700 !important;
}

.rs-ct-prose h3 {
    margin: 22px 0 8px;
    color: var(--rs-ink);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700 !important;
}

.rs-ct-prose ul,
.rs-ct-prose ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.rs-ct-prose li {
    margin: 0 0 8px;
    color: var(--rs-ink);
    line-height: 1.6;
}

.rs-ct-prose > :first-child {
    margin-top: 0;
}

/* ---------- Tabel kecil ---------- */
.rs-ct-table-wrap {
    overflow-x: auto;
    margin: 0 0 16px;
}

.rs-ct-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;
}

.rs-ct-table th,
.rs-ct-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--rs-line);
    text-align: left;
    vertical-align: top;
}

.rs-ct-table th {
    font-weight: 700 !important;
    background: var(--rs-mist);
}

/* ---------- FAQ (HTML biasa, tanpa JSON-LD FAQPage) ---------- */
.rs-ct-faq {
    margin: 0 0 20px;
}

.rs-ct-faq details {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--rs-line);
    margin: 0 0 10px;
}

.rs-ct-faq summary {
    cursor: pointer;
    padding: 16px 44px 16px 18px;
    position: relative;
    list-style: none;
    font-weight: 600 !important;
}

.rs-ct-faq summary::-webkit-details-marker {
    display: none;
}

.rs-ct-faq summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rs-red);
    font-size: 22px;
    line-height: 1;
}

.rs-ct-faq details[open] summary::after {
    content: "\2212";
}

.rs-ct-faq .rs-ct-faq-body {
    padding: 0 18px 16px;
}

.rs-ct-faq .rs-ct-faq-body > :last-child {
    margin-bottom: 0;
}

/* ---------- Kontak ---------- */
.rs-ct-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-ct-contact-list li {
    display: flex;
    gap: 12px;
    margin: 0 0 12px;
}

.rs-ct-contact-list i {
    flex: 0 0 20px;
    margin-top: 5px;
    color: var(--rs-red);
    text-align: center;
}

.rs-ct .rs-ct-label {
    display: block;
    color: var(--rs-muted);
    font-size: 13.5px;
    line-height: 1.4;
}

.rs-ct-map {
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
    margin: 0 0 20px;
    box-shadow: 0 0 0 1px var(--rs-line);
}

/* ---------- Kartu judul S&K / cara pesan (h1 dalam kartu lama) ---------- */
.rs-ct-doc-title {
    margin: 0;
    color: var(--rs-ink);
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700 !important;
    text-align: center;
}

.rs-ct-updated {
    color: var(--rs-muted);
    font-size: 14px;
}

/* Judul berita (satu h1, dulu dua h4 hidden-xs/hidden-lg) */
.rs-news-title {
    margin: 0 0 8px;
    color: #1d2433;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700 !important;
}

@media (max-width: 767px) {
    .rs-ct-page {
        padding: 24px 0 40px;
    }

    .rs-ct-sec {
        padding: 36px 0;
    }

    .rs-ct .rs-ct-h2 {
        font-size: 22px;
    }

    .rs-ct-card {
        padding: 18px;
    }

    .rs-ct-doc-title {
        font-size: 21px;
    }

    .rs-news-title {
        font-size: 22px;
    }
}
