/*
 * Gaya bersama halaman dalam situs publik: berita, galeri, kartu pelajar,
 * dan kontak.
 *
 * SELURUH aturan dikurung di bawah `body.pub`. Situs publik memakai satu
 * style.css bersama, jadi tanpa pengurungan itu halaman lain ikut berubah.
 *
 * Dibuat satu berkas untuk enam halaman supaya kepala halaman, kartu, dan
 * tipografi tidak ditulis ulang di tiap berkas.
 *
 * Tidak lewat Laravel Mix — tampilan publik memuat CSS statis langsung dari
 * /public/css, jadi ubah berkas ini secara langsung.
 */

body.pub {
    --pb-biru:      #037abc;
    --pb-biru-tua:  #024f79;
    --pb-biru-muda: #e8f4fb;
    --pb-tinta:     #0f1a24;
    --pb-redup:     #55677a;
    --pb-garis:     #e4eaf0;
    --pb-latar:     #f6f9fc;

    --pb-lengkung: 16px;
    --pb-bayang:      0 1px 2px rgba(15, 26, 36, .05), 0 12px 28px rgba(15, 26, 36, .07);
    --pb-bayang-kuat: 0 2px 4px rgba(15, 26, 36, .06), 0 22px 46px rgba(15, 26, 36, .12);

    background: #fff;
    color: var(--pb-tinta);
    font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.pub .pb-wadah {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ------------------------------------------------------------------ kepala */

body.pub .pb-kepala {
    position: relative;
    background: linear-gradient(135deg, #06263a 0%, var(--pb-biru-tua) 55%, var(--pb-biru) 130%);
    color: #fff;
    /* Ruang atas dilebihkan karena menu mengambang di atasnya; tanpa itu
       jejak navigasi tertutup menu. */
    padding: 132px 0 58px;
    overflow: hidden;
}

body.pub .pb-kepala::before {
    content: '';
    position: absolute;
    top: -140px;
    right: -90px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}

body.pub .pb-kepala > * {
    position: relative;
    z-index: 2;
}

body.pub .pb-remah {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .72);
    margin-bottom: 14px;
}

body.pub .pb-remah a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
}

body.pub .pb-remah a:hover {
    color: #fff;
    text-decoration: underline;
}

body.pub .pb-remah .fa {
    font-size: 11px;
    opacity: .6;
}

body.pub .pb-kepala h1 {
    font-size: clamp(26px, 3.8vw, 39px);
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.2;
    color: #fff;
    margin: 0;
    max-width: 24ch;
}

body.pub .pb-kepala--lebar h1 {
    max-width: 32ch;
}

body.pub .pb-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, .82);
    margin: 10px 0 0;
    max-width: 60ch;
}

body.pub .pb-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 16px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .8);
}

body.pub .pb-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ------------------------------------------------------------------- badan */

body.pub .pb-badan {
    padding: 52px 0 78px;
}

body.pub .pb-kisi {
    display: grid;
    gap: 24px;
}

body.pub .pb-kisi--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
body.pub .pb-kisi--2 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

/* Isi utama dengan kolom samping. */
body.pub .pb-dua-kolom {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

/* -------------------------------------------------------------------- kartu */

body.pub .pb-kartu {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--pb-garis);
    border-radius: var(--pb-lengkung);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .18s, box-shadow .22s, border-color .18s;
}

body.pub .pb-kartu:hover {
    transform: translateY(-5px);
    border-color: #cfe3f1;
    box-shadow: var(--pb-bayang-kuat);
    text-decoration: none;
    color: inherit;
}

body.pub .pb-gambar {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--pb-biru-muda);
    overflow: hidden;
}

body.pub .pb-gambar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

body.pub .pb-kartu:hover .pb-gambar img {
    transform: scale(1.06);
}

/* Lencana kecil di atas gambar, misalnya jumlah foto album. */
body.pub .pb-lencana {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(9, 26, 38, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

body.pub .pb-isi {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.pub .pb-tanggal {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--pb-biru);
    margin-bottom: 9px;
}

body.pub .pb-judul {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--pb-tinta);
    margin: 0 0 9px;
}

body.pub .pb-cuplikan {
    font-size: 14px;
    line-height: 1.65;
    color: var(--pb-redup);
    margin: 0;
}

/* ---------------------------------------------------------------- tipografi */

/*
 * Isi berita berasal dari editor Quill, jadi gayanya dipasang lewat pemilih
 * turunan — kita tidak mengendalikan markup yang diketik admin.
 */
body.pub .pb-artikel {
    max-width: 74ch;
    font-size: 16.5px;
    line-height: 1.85;
    color: #33475b;
}

body.pub .pb-artikel > *:first-child { margin-top: 0; }
body.pub .pb-artikel p { margin: 0 0 22px; }

/* Editor menyisipkan <p><br></p> tiap kali Enter ditekan di baris kosong.
   Paragraf itu kosong tapi tetap memakan tinggi satu baris. */
body.pub .pb-artikel p:empty,
body.pub .pb-artikel p:has(> br:only-child) {
    display: none;
}

body.pub .pb-artikel h1,
body.pub .pb-artikel h2,
body.pub .pb-artikel h3,
body.pub .pb-artikel h4 {
    color: var(--pb-tinta);
    font-weight: 700;
    line-height: 1.3;
    margin: 38px 0 14px;
}

body.pub .pb-artikel h1 { font-size: 24px; }
body.pub .pb-artikel h2 { font-size: 21px; }
body.pub .pb-artikel h3 { font-size: 18.5px; }
body.pub .pb-artikel h4 { font-size: 17px; }

body.pub .pb-artikel strong { color: var(--pb-tinta); font-weight: 700; }

body.pub .pb-artikel a {
    color: var(--pb-biru);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.pub .pb-artikel ul,
body.pub .pb-artikel ol { margin: 0 0 22px; padding-left: 22px; }
body.pub .pb-artikel li { margin-bottom: 9px; }
body.pub .pb-artikel li::marker { color: var(--pb-biru); }

body.pub .pb-artikel img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 14px 0;
}

body.pub .pb-artikel blockquote {
    margin: 26px 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--pb-biru);
    font-size: 18px;
    font-weight: 600;
    color: var(--pb-tinta);
}

/* Tabel dari editor bisa lebih lebar dari kolom; digulir sendiri agar
   halamannya tidak ikut melebar ke samping. */
body.pub .pb-artikel table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 15px;
    display: block;
    overflow-x: auto;
}

body.pub .pb-artikel th,
body.pub .pb-artikel td {
    border: 1px solid var(--pb-garis);
    padding: 10px 14px;
    text-align: left;
}

body.pub .pb-artikel th {
    background: var(--pb-latar);
    font-weight: 700;
    color: var(--pb-tinta);
}

/* ------------------------------------------------------------- kotak samping */

body.pub .pb-samping { position: sticky; top: 24px; }

body.pub .pb-kotak {
    background: var(--pb-latar);
    border: 1px solid var(--pb-garis);
    border-radius: var(--pb-lengkung);
    padding: 22px;
}

body.pub .pb-kotak + .pb-kotak { margin-top: 18px; }

body.pub .pb-kotak h2 {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--pb-redup);
    margin: 0 0 14px;
}

body.pub .pb-kotak p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--pb-redup);
    margin: 0 0 14px;
}

/* Daftar ringkas bergambar, dipakai "berita lainnya" dan "album lainnya". */
body.pub .pb-mini {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.pub .pb-mini li + li {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--pb-garis);
}

body.pub .pb-mini a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

body.pub .pb-mini img {
    flex: none;
    width: 68px;
    height: 52px;
    object-fit: cover;
    border-radius: 9px;
    background: var(--pb-biru-muda);
}

body.pub .pb-mini strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--pb-tinta);
    transition: color .18s;
}

body.pub .pb-mini a:hover strong { color: var(--pb-biru); }

body.pub .pb-mini span {
    font-size: 12.5px;
    color: var(--pb-redup);
}

/* ------------------------------------------------------------------ tombol */

body.pub .pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, transform .15s, box-shadow .2s, border-color .2s;
}

body.pub .pb-btn:hover,
body.pub .pb-btn:focus { text-decoration: none; transform: translateY(-2px); }

body.pub .pb-btn--utama {
    background: var(--pb-biru);
    color: #fff;
    box-shadow: 0 8px 22px rgba(3, 122, 188, .32);
}

body.pub .pb-btn--utama:hover,
body.pub .pb-btn--utama:focus { background: #0289d1; color: #fff; }

body.pub .pb-btn--garis {
    background: #fff;
    border-color: var(--pb-garis);
    color: var(--pb-biru);
    box-shadow: var(--pb-bayang);
}

body.pub .pb-btn--garis:hover,
body.pub .pb-btn--garis:focus { border-color: var(--pb-biru); color: var(--pb-biru-tua); }

body.pub .pb-btn--penuh { width: 100%; }

/* -------------------------------------------------------------------- form */

body.pub .pb-kolom { margin-bottom: 20px; }

body.pub .pb-kolom label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--pb-redup);
    margin-bottom: 7px;
}

body.pub .pb-input {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 15.5px;
    color: var(--pb-tinta);
    background: #fbfcfd;
    border: 1px solid var(--pb-garis);
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

body.pub textarea.pb-input { min-height: 150px; resize: vertical; }

body.pub .pb-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--pb-biru);
    box-shadow: 0 0 0 3px rgba(3, 122, 188, .14);
}

body.pub .pb-petunjuk {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--pb-redup);
}

/* Honeypot: keluar dari viewport, tetap "ada" bagi bot yang mengabaikan CSS. */
body.pub .pb-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ------------------------------------------------------------------ pesan */

body.pub .pb-pesan {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 22px;
}

body.pub .pb-pesan .fa { flex: none; margin-top: 2px; font-size: 16px; }
body.pub .pb-pesan ul { margin: 0; padding-left: 18px; }

body.pub .pb-pesan--galat  { background: #fdf2f4; border-color: #f3ccd4; color: #8f1128; }
body.pub .pb-pesan--sukses { background: #f0f9f2; border-color: #c6e6cf; color: #1d6b35; }
body.pub .pb-pesan--ingat  { background: #fff8ec; border-color: #f2ddb6; color: #855a12; }

/* ----------------------------------------------------------------- kosong */

body.pub .pb-kosong {
    text-align: center;
    padding: 60px 20px;
    color: var(--pb-redup);
}

body.pub .pb-kosong .fa {
    font-size: 40px;
    color: #cbd8e3;
    margin-bottom: 14px;
}

/* ---------------------------------------------------------------- bagikan */

body.pub .pb-bagikan {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--pb-garis);
}

body.pub .pb-bagikan__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--pb-redup);
}

body.pub .pb-bagikan__tombol {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

body.pub .pb-bagikan__tombol > * {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--pb-garis);
    color: var(--pb-redup);
    font-size: 17px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}

body.pub .pb-bagikan__tombol > *:hover,
body.pub .pb-bagikan__tombol > *:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
}

/* Warna resmi tiap layanan supaya langsung dikenali. */
body.pub .pb-bagikan .is-fb:hover,
body.pub .pb-bagikan .is-fb:focus   { background: #1877f2; border-color: #1877f2; }
body.pub .pb-bagikan .is-wa:hover,
body.pub .pb-bagikan .is-wa:focus   { background: #25d366; border-color: #25d366; }
body.pub .pb-bagikan .is-x:hover,
body.pub .pb-bagikan .is-x:focus    { background: #0f1419; border-color: #0f1419; }
body.pub .pb-bagikan .is-mail:hover,
body.pub .pb-bagikan .is-mail:focus { background: var(--pb-redup); border-color: var(--pb-redup); }

body.pub .pb-salin:hover,
body.pub .pb-salin:focus { background: var(--pb-biru); border-color: var(--pb-biru); }

/* Setelah tautan tersalin, tombolnya berubah hijau sebentar sebagai penanda. */
body.pub .pb-salin.tersalin,
body.pub .pb-salin.tersalin:hover {
    background: #0e9f6e;
    border-color: #0e9f6e;
    color: #fff;
}

/* ------------------------------------------------------------ galeri foto */

body.pub .pb-foto-kisi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

body.pub .pb-foto {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: var(--pb-biru-muda);
    border: 0;
    padding: 0;
    cursor: pointer;
    box-shadow: var(--pb-bayang);
    transition: transform .18s, box-shadow .22s;
}

body.pub .pb-foto:hover {
    transform: translateY(-4px);
    box-shadow: var(--pb-bayang-kuat);
}

body.pub .pb-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

body.pub .pb-foto:hover img { transform: scale(1.07); }

body.pub .pb-foto__kaca {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(9, 26, 38, .62);
    color: #fff;
    font-size: 14px;
    line-height: 34px;
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s;
}

body.pub .pb-foto:hover .pb-foto__kaca { opacity: 1; transform: none; }

/* --------------------------------------------------------------- lightbox */

body.pub .pb-lb .modal-dialog {
    width: auto;
    max-width: 1020px;
    margin: 30px auto;
}

body.pub .pb-lb .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #0d1c28;
    box-shadow: 0 24px 60px rgba(9, 26, 38, .45);
}

body.pub .pb-lb .modal-body {
    padding: 0;
    position: relative;
    text-align: center;
}

body.pub .pb-lb img {
    max-width: 100%;
    max-height: 76vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

body.pub .pb-lb__kaki {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    color: #cbd8e3;
    font-size: 14px;
}

body.pub .pb-lb__tutup {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(9, 26, 38, .6);
    color: #fff;
    font-size: 18px;
}

body.pub .pb-lb__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(9, 26, 38, .55);
    color: #fff;
    font-size: 22px;
    transition: background .2s;
}

body.pub .pb-lb__nav:hover { background: rgba(9, 26, 38, .85); }
body.pub .pb-lb__nav--kiri  { left: 14px; }
body.pub .pb-lb__nav--kanan { right: 14px; }

@media (max-width: 600px) {
    body.pub .pb-foto-kisi { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    body.pub .pb-lb__nav { width: 36px; height: 36px; font-size: 18px; }
}

/* --------------------------------------------------------------- paginasi */

body.pub .pb-paginasi {
    margin-top: 48px;
    text-align: center;
}

body.pub .pagination {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.pub .pagination > li {
    display: inline-block;
}

body.pub .pagination > li > a,
body.pub .pagination > li > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--pb-garis);
    border-radius: 12px;
    background: #fff;
    color: var(--pb-redup);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: border-color .18s, color .18s, background .18s, transform .15s, box-shadow .18s;
}

body.pub .pagination > li > a:hover,
body.pub .pagination > li > a:focus {
    border-color: var(--pb-biru);
    color: var(--pb-biru);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(3, 122, 188, .14);
}

/* Halaman yang sedang dibuka. */
body.pub .pagination > .active > span {
    background: var(--pb-biru);
    border-color: var(--pb-biru);
    color: #fff;
    box-shadow: 0 6px 18px rgba(3, 122, 188, .32);
}

/*
 * Panah di ujung dan tanda titik-titik. Keduanya memakai kelas `disabled`,
 * tapi hanya panah yang perlu tampak sebagai tombol mati; titik-titik cukup
 * tampil polos tanpa kotak.
 */
body.pub .pagination > .disabled > span {
    color: #c3cfdb;
    background: var(--pb-latar);
    border-color: var(--pb-garis);
    cursor: default;
}

body.pub .pagination .fa {
    font-size: 17px;
}

body.pub .pb-paginasi__info {
    margin: 16px 0 0;
    font-size: 13.5px;
    color: var(--pb-redup);
}

/* -------------------------------------------------------------- fokus tautan */

body.pub a:focus:not(:focus-visible),
body.pub button:focus:not(:focus-visible) { outline: none; }

body.pub a:focus-visible,
body.pub button:focus-visible {
    outline: 2px solid var(--pb-biru);
    outline-offset: 3px;
    border-radius: 8px;
}

body.pub .pb-kepala a:focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------- responsif */

@media (max-width: 900px) {
    body.pub .pb-dua-kolom { grid-template-columns: 1fr; gap: 36px; }
    body.pub .pb-samping { position: static; }
    body.pub .pb-artikel { max-width: none; }
}

@media (max-width: 600px) {
    body.pub .pb-kepala { padding: 112px 0 40px; }
    body.pub .pb-badan { padding: 34px 0 54px; }
    body.pub .pb-kisi--3,
    body.pub .pb-kisi--2 { grid-template-columns: 1fr; }
}
