/* ==========================================================================
   SMK Negeri 1 Rawamerta - Style Utama Website
   --------------------------------------------------------------------------
   Daftar isi:
   1.  Variabel
   2.  Dasar
   3.  Tombol
   4.  Tombol pill
   5.  Header & navigasi
   6.  Judul section
   7.  Berita & filter kategori
   8.  Galeri & lightbox
   9.  Halaman artikel / detail (post)
   10. Sidebar & widget
   11. Kartu profil (quote / testimonial)
   12. Accordion, card & tabel
   13. Kartu layanan (halaman kontak)
   14. Lowongan kerja
   15. Footer & tombol kembali ke atas
   16. Utilitas kecil
   17. Responsif
   ========================================================================== */


/* 1. VARIABEL
   ========================================================================== */
:root {
  --primary: #0b1f3a;        /* biru navy tua - warna utama sekolah */
  --primary-light: #183a66;
  --accent: #c8a24a;         /* emas - aksen elegan */
  --accent-dark: #a07f2c;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;        /* abu lembut untuk section selang-seling */
  --text: #2b2f36;
  --text-muted: #6b7280;
  --border: #e6e9ef;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(11, 31, 58, .06);
  --shadow-hover: 0 10px 30px rgba(11, 31, 58, .10);
  --transition: .25s ease;
  --header-height: 80px;
}


/* 2. DASAR
   ========================================================================== */
html { scroll-behavior: smooth; }

/* agar tujuan link #anchor tidak tertutup header yang sticky */
[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

/* animasi muncul saat di-scroll: elemen [data-reveal] diberi .is-revealed oleh app.js */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-dark); }

img { max-width: 100%; }

p { margin-bottom: 1rem; }

blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}

blockquote p:last-child { margin-bottom: 0; }

.site-main { min-height: 50vh; }

.main-container { padding: 64px 0; }

/* beri jarak jika halaman langsung diawali .container (tanpa section) */
.site-main > .container:first-child { padding-top: 32px; }


/* 3. TOMBOL
   ========================================================================== */
.btn {
  border-radius: 999px;
  padding: .55rem 1.4rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-primary,
.btn-info {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover,
.btn-info:hover,
.btn-primary:focus,
.btn-info:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* .btn-block sudah dihapus di Bootstrap 5, jadi dibuat ulang di sini */
.btn-block {
  display: block;
  width: 100%;
}


/* 4. TOMBOL PILL
   ========================================================================== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.6rem;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  transition: all var(--transition);
}

.btn-pill i { font-size: 12px; transition: transform var(--transition); }

.btn-pill:hover { color: #fff; background: var(--primary-light); border-color: var(--primary-light); }
.btn-pill:hover i { transform: translateX(3px); }

.btn-pill--gold { color: var(--primary); background: var(--accent); border-color: var(--accent); }
.btn-pill--gold:hover { color: var(--primary); background: #d9b866; border-color: #d9b866; }

.btn-pill--ghost { color: var(--primary); background: transparent; border-color: rgba(11, 31, 58, .2); }
.btn-pill--ghost:hover { color: var(--primary); background: #fff; border-color: var(--primary); }


/* 5. HEADER & NAVIGASI
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 31, 58, .08);
  transition: box-shadow var(--transition), background var(--transition);
}

/* class .is-scrolled ditambahkan oleh app.js saat halaman di-scroll */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 30px rgba(11, 31, 58, .08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

/* logo: emblem + nama sekolah (teks HTML, lebih tajam & ringan dari gambar) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--primary);
}

.brand:hover { color: var(--primary); }

.brand img { height: 48px; width: auto; flex-shrink: 0; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__text strong {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.brand__text small {
  margin-top: .15rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .02em;
}

/* versi terang untuk latar gelap (footer) */
.brand--light { margin-bottom: 1.25rem; color: #fff; }
.brand--light .brand__text small { color: rgba(255, 255, 255, .65); }
.brand--light img {
  padding: 4px;
  background: #fff;
  border-radius: 50%;
}

/* --- Menu desktop --- */
.menu,
.submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: .1rem;
}

.menu li { position: relative; }

.menu > li > a {
  position: relative;
  display: block;
  padding: .55rem .75rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

.menu > li > a:hover { background: var(--bg-soft); color: var(--primary); }

/* menu aktif: titik emas kecil di bawah teks */
.menu > li.is-active > a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
}

/* tanda panah kecil untuk menu yang punya submenu */
.has-sub > a::after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: .35rem;
  font-size: 10px;
  opacity: .6;
}

.submenu .has-sub > a::after {
  content: "\f105";
  float: right;
  margin-top: .2rem;
}

.menu__item--cta > a {
  margin-left: .75rem;
  padding: .7rem 1.35rem !important;
  color: #fff !important;
  background: var(--primary);
}

.menu__item--cta > a:hover { background: var(--accent) !important; color: var(--primary) !important; }

/* --- Submenu (dropdown) --- */
.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  padding: .5rem;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, .08);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(11, 31, 58, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

/* jembatan tak terlihat agar submenu tidak tertutup saat kursor turun */
.submenu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.submenu .submenu { top: -.5rem; left: calc(100% + 8px); }
.submenu .submenu::before { top: 0; left: -10px; width: 10px; height: 100%; right: auto; }

/* Program Kerja ada di ujung kanan, jadi submenu-nya dibuka ke kiri */
.submenu--right { left: auto; right: 0; }
.submenu--right .submenu { left: auto; right: calc(100% + 8px); }

.submenu a {
  display: block;
  padding: .55rem .9rem;
  font-size: 14px;
  color: var(--text);
  border-radius: 8px;
}

.submenu a:hover { background: var(--bg-soft); color: var(--primary); }

/* teks menu tidak boleh turun ke baris kedua */
.menu > li > a { white-space: nowrap; }

/* laptop (1200px - 1399px): menu dirapatkan agar muat satu baris */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .brand img { height: 42px; }
  .brand__text strong { font-size: 15.5px; }
  .menu > li > a { padding: .5rem .5rem; font-size: 13.5px; }
  .menu__item--cta > a { margin-left: .4rem; padding: .6rem 1.1rem !important; }
}

/* tampilkan submenu saat kursor di atas menu (desktop) */
@media (min-width: 1200px) {
  .has-sub:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* --- Tombol hamburger (mobile) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 12px;
  background: var(--bg-soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* 6. JUDUL SECTION
   ========================================================================== */
.section-title,
.border-title {
  position: relative;
  margin-bottom: .5rem;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: .15em;
}

.section-sub-title {
  margin-bottom: 2.5rem;
  font-size: 32px;
}

.border-title {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--primary);
  letter-spacing: 0;
  text-transform: none;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

/* garis emas di bawah judul */
.border-title::after,
.column-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: .75rem;
  background: var(--accent);
  border-radius: 3px;
}

.border-center::after,
.text-center > .column-title::after,
.column-title.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

.column-title {
  margin-bottom: 1.5rem;
  font-size: 26px;
}


/* 7. BERITA & FILTER KATEGORI
   ========================================================================== */
.news { padding: 64px 0; background: var(--bg-soft); }

.shuffle-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2rem;
}

.shuffle-btn-group label {
  padding: .45rem 1.1rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.shuffle-btn-group label:hover,
.shuffle-btn-group label.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* radio button disembunyikan, cukup label-nya yang terlihat */
.shuffle-btn-group input { display: none; }

/* item yang tidak cocok dengan filter (diatur oleh app.js) */
.shuffle-item.is-hidden { display: none; }

.latest-post {
  height: calc(100% - 20px);
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.latest-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.latest-post-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.latest-post .post-body { padding: 1.25rem 1.4rem 1.5rem; }

.post-title {
  margin-bottom: .6rem;
  font-size: 19px;
}

.post-title a { color: var(--primary); }
.post-title a:hover { color: var(--accent-dark); }

/* potong ringkasan berita menjadi 3 baris */
.latest-post .post-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14px;
}

.latest-post-meta,
.post-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.post-meta span { margin-right: 1rem; }
.post-meta i,
.latest-post-meta i { color: var(--accent); margin-right: .25rem; }


/* 8. GALERI & LIGHTBOX
   ========================================================================== */
.project-img-container {
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: var(--radius);
}

.project-img-container img {
  width: 100% !important;
  height: 254px !important;
  object-fit: cover;
  transition: transform .5s ease;
}

.project-img-container:hover img { transform: scale(1.06); }

.gallery-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  background: rgba(15, 42, 74, .55);
  opacity: 0;
  transition: opacity var(--transition);
}

.project-img-container:hover .gallery-icon { opacity: 1; }

/* --- Lightbox sederhana (dibuat oleh app.js) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 20, 35, .92);
  cursor: zoom-out;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.project-item-info {
  padding: 1rem 0;
}

.project-item-title { font-size: 18px; }
.project-cat { font-size: 13px; color: var(--text-muted); }


/* 9. HALAMAN ARTIKEL / DETAIL (POST)
   ========================================================================== */
.post-single,
.content-inner-page {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.content-inner-page { margin-bottom: 1.5rem; }

.post-single { padding: 0; overflow: hidden; }
.post-single .post-body { padding: 2rem; }

.post-media img { width: 100%; }

.entry-header { margin-bottom: 1.25rem; }

.entry-title {
  margin: .5rem 0 0;
  font-size: 30px;
}

.entry-content { color: var(--text); }

.post-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }


/* 10. SIDEBAR & WIDGET
   ========================================================================== */
.sidebar .widget {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.widget-title {
  position: relative;
  margin-bottom: 1.25rem;
  padding-left: .85rem;
  font-size: 19px;
  border-left: 3px solid var(--accent);
}

.recent-posts li { margin-bottom: 1rem; }
.recent-posts li:last-child { margin-bottom: 0; }

.recent-posts img {
  width: 100% !important;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.posts-thumb img {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.post-info { padding-left: 1rem; }


/* 11. KARTU PROFIL (QUOTE / TESTIMONIAL)
   ========================================================================== */
.quote-item {
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition);
}

.quote-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.quote-item-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.quote-item .testimonial-thumb {
  width: 120px;
  height: 120px !important;
  object-fit: cover;
  border: 4px solid var(--bg-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent);
}

.quote-author {
  margin: 0;
  font-size: 16px;
}

.quote-subtext {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

.testimonial-thumb { border-radius: var(--radius-sm); }


/* 12. ACCORDION, CARD & TABEL
   ========================================================================== */
.card {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  overflow: hidden;
}

.card-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

/* card-header lama memakai float, ini agar tingginya tetap benar */
.card-header::after { content: ""; display: table; clear: both; }

.accordion-group .card-header button {
  position: relative;
  padding: 1rem 3rem 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  border-radius: 0;
}

.accordion-group .card-header button::after {
  content: "\f068";
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 1.25rem;
  top: 50%;
  font-size: 13px;
  color: var(--accent-dark);
  transform: translateY(-50%);
}

.accordion-group .card-header button.collapsed::after { content: "\f067"; }

.table { font-size: 14px; }

.table thead th {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

/* tampilan DataTables (pencarian & paging) */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

.page-link { color: var(--primary); }

.form-control,
.form-select {
  border-color: var(--border);
  border-radius: var(--radius-sm);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(201, 161, 74, .2);
}


/* 13. KARTU LAYANAN (HALAMAN KONTAK)
   ========================================================================== */
.ts-service-box-bg {
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.ts-service-box-bg:hover { box-shadow: var(--shadow); }

.icon-round {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  font-size: 22px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(201, 161, 74, .25);
}

.ts-service-box-content h4 { font-size: 19px; }
.ts-service-box-content p { margin: 0; color: var(--text-muted); }

.mapouter iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
}


/* 14. LOWONGAN KERJA
   ========================================================================== */
.post {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.post:hover { box-shadow: var(--shadow); }

.post .company_logo { max-height: 120px; object-fit: contain; }

.post .position h3 { font-size: 20px; margin-bottom: .25rem; }

.post .meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
}

.job-type {
  padding: .15rem .75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(201, 161, 74, .2);
  border-radius: 999px;
}


/* 15. FOOTER & TOMBOL KEMBALI KE ATAS
   ========================================================================== */
.site-footer {
  position: relative;
  padding-top: 72px;
  color: rgba(255, 255, 255, .68);
  background: var(--primary);
  font-size: 14.5px;
  overflow: hidden;
}

/* cahaya emas lembut di pojok footer */
.site-footer::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 162, 74, .18), transparent 70%);
  pointer-events: none;
}

.site-footer .container { position: relative; }

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.site-footer__tagline {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}

.site-footer__tagline em { color: var(--accent); font-style: normal; }

.site-footer__title {
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .16em;
}

.site-footer ul { margin: 0; padding: 0; list-style: none; }

.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }

.site-footer__links li { margin-bottom: .7rem; }

.site-footer__contact li {
  display: flex;
  gap: .8rem;
  margin-bottom: .9rem;
}

.site-footer__contact i { width: 14px; margin-top: .4rem; color: var(--accent); font-size: 13px; }

.site-footer__social { display: flex; gap: .6rem; margin-top: 1.5rem !important; }

.site-footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  transition: all var(--transition);
}

.site-footer__social a:hover {
  color: var(--primary);
  background: var(--accent);
  border-color: var(--accent);
}

.site-footer__bottom {
  margin-top: 56px;
  padding: 1.4rem 0;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  color: var(--primary);
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(11, 31, 58, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
}

.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; background: var(--primary); }


/* 16. UTILITAS KECIL
   ========================================================================== */
.gap-40 { height: 40px; }
.gap-60 { height: 60px; }
.mrt-0 { margin-top: 0 !important; }
.mr-0 { margin-right: 0 !important; }


/* 17. RESPONSIF
   ========================================================================== */

/* Tablet & HP: menu berubah jadi panel geser yang dibuka lewat hamburger */
@media (max-width: 1199.98px) {
  :root { --header-height: 72px; }

  .brand img { height: 42px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
    display: none;
  }

  .main-nav.is-open { display: block; }

  .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1rem 1rem;
  }

  .menu > li > a {
    padding: .8rem .25rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .menu > li.is-active > a { color: var(--accent-dark); }
  .menu > li.is-active > a::before { display: none; }
  .menu > li > a:hover { background: none; }
  .submenu::before { display: none; }

  .has-sub > a::after { float: right; }

  /* submenu di HP tampil bertingkat (accordion), dibuka lewat klik */
  .submenu,
  .submenu .submenu {
    position: static;
    min-width: 0;
    padding: 0 0 0 1rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .has-sub.is-open > .submenu { display: block; }
  .has-sub.is-open > a::after { transform: rotate(180deg); }

  .submenu a { padding: .6rem .25rem; border-bottom: 1px dashed var(--border); }

  .menu__item--cta > a {
    margin: 1rem 0 0;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .main-container,
  .news { padding: 44px 0; }

  .section-sub-title { font-size: 26px; }
  .border-title { font-size: 24px; }

  .post-single .post-body,
  .content-inner-page { padding: 1.25rem; }

  .entry-title { font-size: 24px; }

  .table-responsive-auto,
  .card-body { overflow-x: auto; }
}
