/* =====================================================================
   RSAB PAGES V1 — css/rsab-pages.css
   Gaya untuk halaman turunan (tentang-kami, layanan-unggulan, fasilitas*, informasi).
   Mandiri (tanpa Bootstrap), warna & font mengikuti halaman utama:
   hijau #88b44e / #52752b, teks #1a2a3a, font Poppins. Mobile-first.
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; overflow-x: hidden; }
/* [V2] overflow-x:hidden di html DAN body menjadikan body wadah gulir, sehingga .rp-nav (position:sticky) tidak pernah
   menempel. "clip" memotong luapan yang sama tanpa membuat wadah gulir; browser lama tetap memakai hidden di atas. */
body { overflow-x: clip; }
body {
  font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.7; color: #33423a; background: #f6faf3;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #52752b; }
a:hover { color: #3f6323; }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; }
h1, h2 { color: #1a2a3a; line-height: 1.25; margin: 0 0 12px; }
p { margin: 0 0 14px; }
section { scroll-margin-top: 96px; }
[id] { scroll-margin-top: 96px; }

.rp-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.rp-skip { position: absolute; left: -9999px; top: 0; background: #52752b; color: #fff; padding: 10px 14px; z-index: 2000; }
.rp-skip:focus { left: 8px; top: 8px; }

/* ---------- Bar atas ---------- */
.rp-topbar { background: #fff; border-bottom: 1px solid #eef1ea; font-size: 13px; color: #5b6b60; }
.rp-topbar .rp-wrap { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.rp-topbar-info { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.rp-topbar a { color: inherit; text-decoration: none; display: inline-block; padding: 4px 0; }
.rp-topbar a:hover { color: #52752b; }

/* ---------- Navigasi ---------- */
.rp-nav { background: #fff; position: -webkit-sticky; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.rp-nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; position: relative; }
.rp-brand img { height: 56px; width: auto; }
.rp-burger { display: none; background: none; border: 1px solid #dfe6d8; border-radius: 8px; width: 46px; height: 46px; padding: 11px 10px; cursor: pointer; }
.rp-burger span { display: block; height: 2px; background: #33423a; margin: 5px 0; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.rp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.rp-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.rp-menu > li { position: relative; }
.rp-menu > li > a, .rp-menu .sub-toggle {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 10px 14px;
  font: inherit; font-size: 15px; font-weight: 500; color: #33423a; text-decoration: none;
  background: none; border: 0; cursor: pointer; border-radius: 6px;
}
.rp-menu > li > a:hover, .rp-menu .sub-toggle:hover, .rp-menu > li.is-active > a, .rp-menu > li.is-active > .sub-toggle { color: #52752b; }
.rp-menu > li.is-active > a, .rp-menu > li.is-active > .sub-toggle { font-weight: 600; }
.rp-menu .rp-cta a { background: #88b44e; color: #fff; padding: 10px 22px; margin-left: 6px; }
.rp-menu .rp-cta a:hover { background: #52752b; color: #fff; }
.rp-menu .sub {
  list-style: none; margin: 0; padding: 8px; display: none; position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid #e6ece0; border-radius: 10px; box-shadow: 0 12px 28px rgba(20, 40, 10, .14);
}
.rp-menu .has-sub:hover > .sub, .rp-menu .has-sub:focus-within > .sub, .rp-menu .has-sub.is-open > .sub { display: block; }
.rp-menu .sub a { display: block; padding: 10px 12px; font-size: 14px; color: #1a2a3a; text-decoration: none; border-radius: 6px; }
.rp-menu .sub a:hover { background: #f3f8ef; color: #52752b; }

/* ---------- Hero halaman ---------- */
.rp-hero { background: linear-gradient(135deg, #52752b 0%, #6f9a3c 60%, #88b44e 100%); color: #fff; padding: 34px 0 40px; }
.rp-hero h1 { color: #fff; font-size: clamp(1.6rem, 4.2vw, 2.5rem); margin-bottom: 10px; }
.rp-lead { font-size: clamp(.95rem, 2.2vw, 1.1rem); max-width: 760px; margin: 0; opacity: .96; }
.rp-lead a { color: #fff; font-weight: 600; }
.rp-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 14px; padding: 0; font-size: 13px; }
.rp-crumbs li + li::before { content: "\203A"; margin-right: 8px; opacity: .7; }
.rp-crumbs a { color: #fff; opacity: .9; }

/* ---------- Isi ---------- */
.rp-body { padding-top: 34px; padding-bottom: 44px; }
.rp-body > section { margin-bottom: 34px; }
.rp-body h2 { font-size: clamp(1.15rem, 2.8vw, 1.45rem); }
.rp-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.rp-split img { border-radius: 16px; box-shadow: 0 20px 45px -18px rgba(10, 30, 15, .35); }
.rp-cards { display: grid; gap: 18px; }
.rp-cards-2 { grid-template-columns: repeat(2, 1fr); }
.rp-cards-3 { grid-template-columns: repeat(3, 1fr); }
.rp-card { position: relative; background: #fff; border: 1px solid #e2eeea; border-radius: 16px; padding: 20px 22px; transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease; }

/* [V2] YANG BISA DIKLIK HARUS TERLIHAT BEDA.
   Dulu semua .rp-card terangkat saat disorot, termasuk kartu yang tidak punya tautan, dan butir daftar bertautan
   tampil sama dengan butir biasa. Sekarang:
   - kartu TANPA tautan : diam (tidak terangkat, kursor biasa)
   - kartu DENGAN tautan: garis hijau di atas + lencana panah di pojok kanan atas, seluruh kartu bisa diklik, terangkat saat disorot
   - butir daftar bertautan: panah di kanan yang bergeser saat disorot
   Panah "↗" = membuka situs lain di tab baru, "→" = halaman di situs ini.
   Browser lama tanpa :has() tetap aman: kartu tampil polos dan tautan teksnya tetap berfungsi. */
.rp-card:has(a) { padding-right: 62px; border-top: 3px solid #88b44e; cursor: pointer; }
.rp-card:has(a)::after {
  content: "\2192"; position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #eef6e6; color: #52752b;
  font-size: 17px; font-weight: 700; line-height: 1; pointer-events: none;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.rp-card:has(a[target="_blank"])::after { content: "\2197"; }
.rp-card:has(a):hover, .rp-card:has(a):focus-within { transform: translateY(-4px); border-color: #88b44e; box-shadow: 0 12px 26px rgba(20, 40, 10, .13); }
.rp-card:has(a):hover::after, .rp-card:has(a):focus-within::after { background: #52752b; color: #fff; transform: translateX(3px); }
.rp-card:has(a[target="_blank"]):hover::after { transform: translate(2px, -2px); }
/* seluruh permukaan kartu ikut menjadi tautan (tautan di judul, atau "Lihat ..." bila judul tidak bertautan) */
.rp-card h2 a::before, .rp-card:not(:has(h2 a)) .rp-more::before { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.rp-card h2 { font-size: 1.08rem; margin-bottom: 8px; }
.rp-card h2 a { color: inherit; text-decoration: none; }
.rp-card h2 a:hover { color: #52752b; }
.rp-card p:last-child { margin-bottom: 0; }
.rp-card-icon img { width: 56px; height: 56px; margin-bottom: 12px; }
.rp-badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .3px; background: #0f6b62; color: #fff; padding: 2px 10px; border-radius: 20px; vertical-align: middle; }
.rp-more { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; display: inline-block; padding: 6px 0; }

.rp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.rp-list li { background: #fff; border: 1px solid #e2eeea; border-left: 4px solid #88b44e; border-radius: 10px; padding: 12px 14px; font-weight: 500; color: #1a2a3a; }
.rp-list-muted li { border-left-color: #c4c9c0; color: #7a847c; background: #f7f8f6; font-weight: 400; }
.rp-list-links li { padding: 0; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease; }
.rp-list-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 12px 14px; text-decoration: none; font-weight: 600; }
/* [V2] panah di kanan menandai butir yang bisa diklik; butir .rp-list biasa tidak punya panah */
.rp-list-links a::after {
  content: "\2192"; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #eef6e6; color: #52752b; font-size: 15px; font-weight: 700; line-height: 1;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.rp-list-links a[target="_blank"]::after { content: "\2197"; }
.rp-list-links li:hover, .rp-list-links li:focus-within { transform: translateY(-2px); border-color: #88b44e; background: #f7fbf2; box-shadow: 0 8px 18px rgba(20, 40, 10, .1); }
.rp-list-links li:hover a::after, .rp-list-links li:focus-within a::after { background: #52752b; color: #fff; transform: translateX(3px); }

.rp-contact { background: #fff; border: 1px solid #e2eeea; border-radius: 18px; padding: 24px; margin-top: 10px; }
.rp-contact h2 { font-size: 1.2rem; }
.rp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.rp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 8px; background: #88b44e; color: #fff; font-weight: 600; text-decoration: none; border: 2px solid #88b44e; }
.rp-btn:hover { background: #52752b; border-color: #52752b; color: #fff; }
.rp-btn-ghost { background: #fff; color: #52752b; }
.rp-btn-ghost:hover { background: #f3f8ef; color: #3f6323; border-color: #52752b; }

/* ---------- Footer ---------- */
.rp-footer { background: #fff; border-top: 1px solid #e6ece0; padding: 34px 0 18px; font-size: 14.5px; color: #4a5a50; }
.rp-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.rp-footer h2 { font-size: 1rem; margin-bottom: 10px; }
.rp-footer a { text-decoration: none; }
.rp-footer a:hover { text-decoration: underline; }
.rp-footer-links { list-style: none; margin: 0; padding: 0; }
.rp-footer-links a { display: inline-block; padding: 6px 0; }
.rp-copy { text-align: center; color: #8a948c; font-size: 13.5px; border-top: 1px solid #eef1ea; margin: 24px 18px 0; padding-top: 16px; }

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  .rp-cards-3 { grid-template-columns: repeat(2, 1fr); }
  .rp-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .rp-menu > li > a, .rp-menu .sub-toggle { padding: 10px 9px; font-size: 14px; }
}

/* ---------- HP ---------- */
@media (max-width: 767px) {
  .rp-burger { display: block; }
  .rp-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid #ececec; box-shadow: 0 14px 28px rgba(0, 0, 0, .14);
    padding: 6px 14px 18px; max-height: calc(100vh - 90px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .rp-menu.is-open { display: flex; }
  .rp-menu > li { border-bottom: 1px solid #f1f1f1; }
  .rp-menu > li > a, .rp-menu .sub-toggle { width: 100%; justify-content: space-between; min-height: 48px; padding: 12px 6px; font-size: 16px; }
  .rp-menu .rp-cta { border-bottom: 0; margin-top: 14px; }
  .rp-menu .rp-cta a { margin: 0; justify-content: center; border-radius: 8px; }
  .rp-menu .sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .rp-menu .has-sub:hover > .sub, .rp-menu .has-sub:focus-within > .sub { display: none; }   /* di HP hanya lewat ketuk */
  .rp-menu .has-sub.is-open > .sub { display: block; }
  .rp-menu .sub a { min-height: 44px; display: flex; align-items: center; }
  .rp-burger { margin-left: auto; }                     /* hamburger rata kanan */
  /* Bar atas ringkas di HP: hanya telepon & email dalam satu baris (salam & jam ada di footer) */
  .rp-topbar .rp-wrap > span:first-child, .rp-topbar-info > span { display: none; }
  .rp-topbar-info { flex-direction: row; justify-content: space-between; width: 100%; gap: 4px 14px; font-size: 12.5px; }
  .rp-split, .rp-cards-2, .rp-cards-3 { grid-template-columns: 1fr; }
  .rp-footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .rp-actions .rp-btn { width: 100%; }
  .rp-footer a, .rp-topbar a { min-height: 40px; display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
