/**
* Dinkes Kabupaten Subang - Custom skin di atas template Dewi (BootstrapMade)
*
* TEMA EMAS — mengikuti logo (gradasi oranye-merah → kuning emas, tanpa biru).
*
*   Utama          : kuning #ffbe0b → emas #d9a209
*   Gradasi logo   : #ffd400 → #f7941e → #e8491d
*   Emas teks      : #8a6304  (dipakai bila emas harus jadi TEKS di atas putih;
*                              #d9a209 di atas putih hanya 2,3:1 — tidak terbaca)
*   Permukaan besar: KUNING #ffbe0b → #d9a209 (header saat scroll, judul
*                    halaman, footer, kepala tabel) — SELALU dengan teks gelap
*   Teks           : #1a1a1a judul, #514a3d isi
*   Netral         : #ffffff / #f8f9fa / #fdf9ef
*
* Aturan kontras yang dipegang:
*   teks gelap di atas kuning  = 10,5:1  (dipakai)
*   teks putih di atas kuning  =  1,8:1  (TIDAK dipakai)
*/

/*--------------------------------------------------------------
# Warna & Font
--------------------------------------------------------------*/
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Inter", sans-serif;

  --background-color: #ffffff;
  --default-color: #514a3d;
  --heading-color: #1a1a1a;
  --accent-color: #d9a209;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  /* --- Warna utama (dari logo) --- */
  --brand-yellow: #ffbe0b;
  --brand-gold: #d9a209;
  --brand-amber: #f7941e;
  --brand-ember: #e8491d;
  --brand-gradient: linear-gradient(135deg, #ffbe0b 0%, #d9a209 100%);
  --brand-gradient-logo: linear-gradient(135deg, #ffd400 0%, #f7941e 55%, #e8491d 100%);

  /* Emas yang aman dipakai sebagai teks/ikon di atas latar terang (5,4:1) */
  --brand-gold-text: #8a6304;

  /* --- Permukaan utama: KUNING, bukan gelap ---
     Footer, judul halaman, header saat scroll, dan header tabel memakai
     kuning/emas dengan teks GELAP di atasnya (rasio 10,5:1). Teks putih di
     atas kuning hanya 1,8:1, jadi tidak dipakai sama sekali. */
  --brand-surface: #ffbe0b;
  --brand-surface-2: #f0ad07;

  /* Cokelat-emas hanya untuk garis/bayangan tipis, bukan bidang besar */
  --brand-dark: #3a2a05;
  --brand-dark-deep: #241a02;

  /* --- Netral & kontras --- */
  --ink: #1a1a1a;
  --ink-soft: #212529;
  --ink-muted: #8a8271;
  --paper: #ffffff;
  --paper-soft: #f8f9fa;
  --line: rgba(58, 42, 5, 0.12);

  /* Tinggi hero: ubah satu baris ini kalau ingin hero tidak setinggi layar */
  --hero-height: 100vh;

  /* Alias nama lama → palet emas, supaya seluruh komponen ikut berubah */
  --brand-blue: var(--brand-gold-text);
  /* CATATAN: alias ini HANYA dipakai sebagai warna TEKS (14 tempat), jadi
     nilainya harus gelap. Latar kuning diatur langsung di komponennya
     masing-masing (.page-title, .footer, .table-modern thead, dst). */
  --brand-blue-dark: #1a1a1a;
  --brand-orange: var(--brand-yellow);
  --brand-green: var(--brand-gold);
  --brand-navy: var(--brand-gold-text);
  --brand-navy-deep: #1a1a1a;

  /* Navigasi: putih di atas hero, cokelat-emas di panel mobile/dropdown */
  --nav-color: #ffffff;
  --nav-hover-color: #ffbe0b;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #1a1a1a;
  --nav-dropdown-hover-color: #8a6304;
}

.light-background {
  /* Off-white kehangatan tipis agar menyatu dengan tema emas */
  --background-color: #fdf9ef;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #ffbe0b;
  --default-color: #1a1a1a;
  --heading-color: #1a1a1a;
  --surface-color: #ffd257;
  --contrast-color: #1a1a1a;
}

body {
  color: var(--default-color);
}

/* Catatan: header melayang (fixed) dan transparan di posisi paling atas,
   sehingga tidak ada padding-top pada body. Halaman dalam memberi ruang
   lewat padding .page-title, halaman beranda lewat hero setinggi layar. */

/*--------------------------------------------------------------
# Header
# - Di posisi paling atas : transparan, menumpuk di atas hero fullscreen
# - Saat di-scroll        : latar navy semi-transparan + blur, transisi mulus
--------------------------------------------------------------*/
.header {
  --background-color: transparent;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  display: block !important;
  padding: 0;
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.45s ease, box-shadow 0.45s ease, backdrop-filter 0.45s ease;
}

.header .topbar {
  background: rgba(26, 26, 26, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  height: 42px;
  padding: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  transition: height 0.45s ease, opacity 0.35s ease, visibility 0.45s, background-color 0.45s ease;
}

.header .topbar a,
.header .topbar span {
  color: rgba(255, 255, 255, 0.9);
  transition: 0.3s;
}

.header .topbar a:hover {
  color: var(--brand-yellow);
}

.header .topbar .contact-info i {
  font-style: normal;
  color: var(--brand-yellow);
}

.header .topbar .contact-info i span {
  padding-left: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.header .topbar .social-links a {
  font-size: 16px;
  padding-left: 16px;
  display: inline-block;
  line-height: 1;
}

.header .branding {
  background: transparent;
  padding: 16px 0;
  transition: padding 0.45s ease;
}

.header .logo img {
  max-height: 46px;
  margin-right: 0;
  /* Logo berlatar terang, diberi alas putih agar tetap jelas di atas foto */
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 5px 10px;
  transition: max-height 0.45s ease;
}

.header .logo h1 {
  font-size: 22px;
  color: #ffffff;
}

.header .cta-btn,
.header .cta-btn:focus {
  color: var(--ink);
  background: var(--brand-gradient);
  border: 0;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  margin-left: 20px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(217, 162, 9, 0.35);
}

.header .cta-btn:hover,
.header .cta-btn:focus:hover {
  color: #ffffff;
  background: #1a1a1a;
  box-shadow: 0 6px 20px rgba(36, 26, 2, 0.45);
}

/* --- Saat halaman di-scroll: transparan (kaca), bukan blok pekat ---
   Tidak dibuat 100% bening karena menu akan hilang di atas konten terang.
   Kuning tipis + blur = tembus pandang tapi tulisannya tetap kebaca. */
.scrolled .header {
  background-color: rgba(255, 190, 11, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 22px rgba(26, 26, 26, 0.12);
}

/* Topbar dilipat agar header jadi ramping */
.scrolled .header .topbar {
  height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  border-bottom-color: transparent;
}

.scrolled .header .branding {
  padding: 10px 0;
}

.scrolled .header .logo img {
  max-height: 40px;
}

/* --- Teks di atas permukaan kuning WAJIB gelap (10,5:1).
       Putih di atas kuning hanya 1,8:1, jadi tidak dipakai. --- */
.scrolled .header {
  --default-color: #1a1a1a;
  --heading-color: #1a1a1a;
}

.scrolled .navmenu > ul > li > a,
.scrolled .navmenu > ul > li > a:focus {
  color: #1a1a1a;
  text-shadow: none;
}

.scrolled .navmenu > ul > li > a:hover,
.scrolled .navmenu > ul > li > a.active {
  color: #6b4d03;
}

.scrolled .navmenu > ul > li > a:before {
  background-color: #1a1a1a;
}

.scrolled .mobile-nav-toggle {
  color: #1a1a1a;
}

.scrolled .header .logo img {
  background: transparent;
  padding: 0;
}

@media (max-width: 1199px) {
  .header .topbar {
    font-size: 13px;
  }

  .header .logo img {
    max-height: 40px;
  }

  .header .cta-btn {
    margin: 0 12px 0 0;
    padding: 8px 18px;
  }
}

/*--------------------------------------------------------------
# Navigasi
--------------------------------------------------------------*/
@media (min-width: 1200px) {
  .navmenu > ul > li > a {
    font-size: 14.5px;
    font-weight: 500;
    padding: 18px 11px;
    /* Bayangan tipis agar menu putih tetap terbaca di atas foto terang */
    text-shadow: 0 1px 8px rgba(26, 26, 26, 0.45);
  }

  .navmenu > ul > li > a:before {
    background-color: var(--brand-yellow);
    height: 3px;
    bottom: 8px;
  }

  .navmenu .dropdown ul {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.18);
    padding: 8px 0;
  }

  /* Dropdown berlatar putih, jadi teksnya tidak perlu bayangan */
  .navmenu .dropdown ul a {
    font-size: 14px;
    padding: 8px 16px;
    text-shadow: none;
  }
}

.mobile-nav-active .navmenu > ul {
  border-radius: 10px;
}

.mobile-nav-active .mobile-nav-toggle {
  color: #ffffff;
  opacity: 1;
}

/*--------------------------------------------------------------
# Judul section
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 40px;
}

/* h2 = label kecil di atas judul, p = judul besar (mengikuti pola template) */
.section-title h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  /* Teks kecil: pakai emas tua, bukan #d9a209 (di atas putih hanya 2,3:1) */
  color: var(--brand-gold-text);
}

.section-title h2::after {
  background: var(--brand-yellow);
  width: 90px;
  height: 3px;
  border-radius: 3px;
}

.section-title p {
  font-size: 34px;
  font-weight: 700;
  text-transform: none;
  color: var(--brand-dark-deep);
  line-height: 1.25;
}

@media (max-width: 768px) {
  .section-title p {
    font-size: 24px;
  }
}

/*--------------------------------------------------------------
# Page title (halaman dalam)
--------------------------------------------------------------*/
.page-title {
  padding: 190px 0 70px 0;
  background: var(--brand-gradient);
}

.page-title:before {
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.55) 0%, rgba(26, 26, 26, 0.12) 24%, rgba(26, 26, 26, 0) 44%);
}

.page-title h1 {
  font-size: 38px;
  color: #1a1a1a;
}

/* Garis aksen kuning di bawah judul halaman */
.page-title h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin: 14px auto 0 auto;
  border-radius: 4px;
  background: #1a1a1a;
}

.page-title p {
  color: rgba(26, 26, 26, 0.78);
  margin-bottom: 14px;
}

.page-title .breadcrumbs ol a {
  color: rgba(26, 26, 26, 0.7);
}

.page-title .breadcrumbs ol a:hover {
  color: #1a1a1a;
}

.page-title .breadcrumbs ol li.current {
  color: #1a1a1a;
  font-weight: 700;
}

@media (max-width: 1199px) {
  .page-title {
    padding: 160px 0 56px 0;
  }
}

@media (max-width: 767px) {
  .page-title {
    padding: 140px 0 44px 0;
  }

  .page-title h1 {
    font-size: 26px;
  }
}

/*--------------------------------------------------------------
# Hero carousel (slider dari database)
--------------------------------------------------------------*/
.hero-carousel {
  position: relative;
  padding: 0;
  margin: 0;
  background-color: var(--brand-dark-deep);
  overflow: hidden;
}

/* Setinggi & selebar layar penuh. Tinggi diatur lewat --hero-height di :root. */
.hero-carousel .carousel-item {
  position: relative;
  height: var(--hero-height);
  min-height: 520px;
  overflow: hidden;
}

/* svh = tinggi layar sebenarnya di ponsel (tanpa terpotong bar browser) */
@supports (height: 100svh) {
  .hero-carousel .carousel-item {
    height: min(var(--hero-height), 100svh);
  }
}

/* Dua lapis gambar:
   1. .hero-bg  → salinan gambar yang di-blur & digelapkan, tugasnya MENGISI layar
   2. .hero-img → gambar asli utuh (contain), jadi poster/banner tidak terpotong
   Cara ini membuat hero tetap full layar tanpa mengorbankan isi gambar. */
.hero-carousel .hero-bg,
.hero-carousel .hero-img {
  position: absolute;
  inset: 0;
  display: block;
  background-image: var(--slide-img);
  background-position: center;
  background-repeat: no-repeat;
}

.hero-carousel .hero-bg {
  z-index: 1;
  background-size: cover;
  filter: blur(28px) brightness(0.5) saturate(1.15);
  transform: scale(1.15);
}

.hero-carousel .hero-img {
  z-index: 2;
  background-size: contain;
}

/* Lapisan gelap: atas dipekatkan agar menu putih tetap terbaca,
   bawah dipekatkan sebagai alas teks caption. Bagian tengah dibiarkan
   bening supaya gambarnya tetap jelas. */
.hero-carousel .carousel-item:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(26, 26, 26, 0.72) 0%,
      rgba(26, 26, 26, 0.28) 20%,
      rgba(26, 26, 26, 0) 42%,
      rgba(36, 26, 2, 0.8) 100%);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 8%;
  opacity: 0;
  transition: 0.3s;
  z-index: 4;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
  opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  background: none;
  font-size: 34px;
  width: 52px;
  height: 52px;
  line-height: 52px;
  border-radius: 50%;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  transition: 0.3s;
}

.hero-carousel .carousel-control-prev-icon:hover,
.hero-carousel .carousel-control-next-icon:hover {
  background-color: var(--brand-orange);
}

.hero-carousel .carousel-indicators {
  margin-bottom: 24px;
  z-index: 4;
}

.hero-carousel .carousel-indicators li,
.hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background-color: transparent;
  opacity: 0.8;
  margin: 0 5px;
}

.hero-carousel .carousel-indicators .active {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  opacity: 1;
}

@media (max-width: 991px) {
  /* Gambar banner umumnya sangat lebar; di layar sempit ia jadi pendek,
     sehingga hero setinggi layar penuh menyisakan ruang kosong terlalu
     banyak. Tingginya dipangkas agar proporsinya wajar. */
  .hero-carousel {
    --hero-height: 62vh;
  }

  .hero-carousel .carousel-item {
    min-height: 380px;
  }

  .hero-carousel .hero-bg {
    filter: blur(20px) brightness(0.48) saturate(1.15);
  }
}

/*--------------------------------------------------------------
# Layanan cepat (kartu shortcut di bawah hero)
--------------------------------------------------------------*/
.quick-access {
  padding: 0;
  position: relative;
  z-index: 5;
  background: transparent;
}

.quick-access .quick-wrapper {
  background: #ffffff;
  border-radius: 16px;
  border-top: 4px solid transparent;
  border-image: var(--brand-gradient) 1;
  box-shadow: 0 18px 50px rgba(26, 26, 26, 0.18);
  margin-top: -70px;
  padding: 12px;
  overflow: hidden;
}

.quick-access .quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 10px;
  height: 100%;
  transition: 0.3s;
  color: var(--heading-color);
}

.quick-access .quick-item:hover {
  background: var(--paper-soft);
  transform: translateY(-3px);
}

.quick-access .quick-item i {
  font-size: 30px;
  line-height: 1;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--brand-gold-text);
  background: rgba(255, 190, 11, 0.22);
  transition: 0.3s;
}

.quick-access .quick-item:hover i {
  background: var(--brand-gradient);
  color: var(--ink);
}

.quick-access .quick-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 3px 0;
  color: var(--brand-blue-dark);
}

.quick-access .quick-item p {
  font-size: 13px;
  margin: 0;
  color: #6c7b8a;
}

@media (max-width: 991px) {
  .quick-access .quick-wrapper {
    margin-top: -30px;
  }
}

/*--------------------------------------------------------------
# Statistik (purecounter)
--------------------------------------------------------------*/
.stats .stats-item {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(58, 42, 5, 0.06);
  transition: 0.3s;
}

.stats .stats-item:hover {
  box-shadow: 0 10px 30px rgba(58, 42, 5, 0.12);
  transform: translateY(-4px);
}

.stats .stats-item i {
  font-size: 40px;
  padding-right: 18px;
  line-height: 0;
  color: var(--brand-blue);
}

.stats .stats-item span {
  font-size: 34px;
  display: block;
  font-weight: 700;
  color: var(--brand-blue-dark);
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-family: var(--heading-font);
}

.stats .stats-item i.color-blue {
  color: var(--brand-blue);
}

/* Ikon di atas kartu putih memakai emas, bukan kuning terang, demi kontras */
.stats .stats-item i.color-orange {
  color: var(--brand-gold);
}

.stats .stats-item i.color-green {
  color: var(--brand-ember);
}

.stats .stats-item i.color-pink {
  color: var(--brand-amber);
}

/*--------------------------------------------------------------
# Kartu profil / layanan berbasis ikon
--------------------------------------------------------------*/
.icon-card {
  background: var(--surface-color);
  border-radius: 14px;
  padding: 30px 26px;
  height: 100%;
  position: relative;
  border: 1px solid rgba(58, 42, 5, 0.08);
  box-shadow: 0 4px 20px rgba(58, 42, 5, 0.05);
  transition: 0.35s;
  overflow: hidden;
}

.icon-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.icon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(58, 42, 5, 0.14);
}

.icon-card:hover:before {
  transform: scaleX(1);
}

.icon-card .icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 162, 9, 0.1);
  color: var(--brand-blue);
  font-size: 28px;
  margin-bottom: 18px;
  transition: 0.35s;
}

.icon-card:hover .icon {
  background: var(--brand-blue);
  color: #ffffff;
}

.icon-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.icon-card h4 a {
  color: var(--brand-blue-dark);
  transition: 0.3s;
}

.icon-card h4 a:hover {
  color: var(--brand-blue);
}

.icon-card p {
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
  color: #6c7b8a;
}

.icon-card.icon-card-orange .icon {
  background: rgba(255, 190, 11, 0.22);
  color: var(--brand-gold-text);
}

.icon-card.icon-card-orange:hover .icon {
  background: var(--brand-gradient);
  color: var(--ink);
}

.icon-card.icon-card-green .icon {
  background: rgba(232, 73, 29, 0.12);
  color: var(--brand-ember);
}

.icon-card.icon-card-green:hover .icon {
  background: var(--brand-gradient-logo);
  color: #ffffff;
}

/*--------------------------------------------------------------
# Kartu berita
--------------------------------------------------------------*/
.post-card {
  background: var(--surface-color);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(58, 42, 5, 0.08);
  box-shadow: 0 4px 20px rgba(58, 42, 5, 0.05);
  transition: 0.35s;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(58, 42, 5, 0.14);
}

.post-card .post-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e9eff5;
}

.post-card .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.post-card:hover .post-img img {
  transform: scale(1.07);
}

.post-card .post-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-gradient);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.2);
  z-index: 2;
}

.post-card .post-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card .post-meta {
  font-size: 12.5px;
  color: #8895a3;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.post-card .post-meta i {
  color: var(--brand-blue);
  margin-right: 4px;
}

.post-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.post-card h3 a {
  color: var(--brand-blue-dark);
  transition: 0.3s;
}

.post-card h3 a:hover {
  color: var(--brand-blue);
}

.post-card .post-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: #6c7b8a;
  margin-bottom: 16px;
  flex-grow: 1;
}

.post-card .readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  align-self: flex-start;
}

.post-card .readmore i {
  font-size: 13px;
  transition: 0.3s;
}

.post-card .readmore:hover i {
  transform: translateX(4px);
}

/*--------------------------------------------------------------
# Tombol umum
--------------------------------------------------------------*/
.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-gradient);
  color: var(--ink);
  border: 0;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 50px;
  box-shadow: 0 8px 22px rgba(217, 162, 9, 0.32);
  transition: 0.3s;
}

.btn-brand:hover {
  background: #1a1a1a;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(26, 26, 26, 0.35);
}

.btn-brand-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 26px;
  border-radius: 50px;
  transition: 0.3s;
}

.btn-brand-outline:hover {
  background: var(--brand-blue);
  color: #ffffff;
}

/*--------------------------------------------------------------
# Artikel / isi berita
--------------------------------------------------------------*/
.article-card {
  background: var(--surface-color);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(58, 42, 5, 0.08);
  box-shadow: 0 4px 24px rgba(58, 42, 5, 0.06);
}

.article-card .article-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.article-body {
  padding: 30px;
}

.article-body h1,
.article-body > h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: #8895a3;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(58, 42, 5, 0.08);
}

.article-meta i {
  color: var(--brand-blue);
  margin-right: 5px;
}

.article-content {
  font-size: 16px;
  line-height: 1.85;
  color: #4a5766;
  overflow-wrap: break-word;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 12px 0;
}

.article-content table {
  max-width: 100%;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--brand-blue-dark);
  margin-top: 22px;
  margin-bottom: 12px;
}

.article-content iframe {
  max-width: 100%;
}

.article-content ul,
.article-content ol {
  padding-left: 20px;
}

@media (max-width: 767px) {
  .article-body {
    padding: 20px;
  }

  .article-body h1,
  .article-body > h2 {
    font-size: 22px;
  }
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar-widget {
  background: var(--surface-color);
  border-radius: 14px;
  border: 1px solid rgba(58, 42, 5, 0.08);
  box-shadow: 0 4px 24px rgba(58, 42, 5, 0.06);
  padding: 24px;
  margin-bottom: 26px;
}

.sidebar-widget .widget-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  padding-bottom: 12px;
  margin-bottom: 18px;
  position: relative;
}

.sidebar-widget .widget-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  background: var(--brand-orange);
  border-radius: 3px;
}

.sidebar-post {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed rgba(58, 42, 5, 0.12);
}

.sidebar-post:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sidebar-post img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.sidebar-post h4 {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 6px;
}

.sidebar-post h4 a {
  color: var(--brand-blue-dark);
}

.sidebar-post h4 a:hover {
  color: var(--brand-blue);
}

.sidebar-post small {
  color: #8895a3;
  font-size: 12.5px;
}

.sidebar-post small i {
  color: var(--brand-blue);
  margin-right: 4px;
}

/*--------------------------------------------------------------
# Galeri foto
--------------------------------------------------------------*/
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  aspect-ratio: 4 / 3;
  background: #e9eff5;
  box-shadow: 0 4px 20px rgba(58, 42, 5, 0.06);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .gallery-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, rgba(58, 42, 5, 0) 40%, rgba(58, 42, 5, 0.88) 100%);
  opacity: 0;
  transition: 0.35s;
}

.gallery-item:hover .gallery-info {
  opacity: 1;
}

.gallery-item .gallery-info h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.gallery-item .gallery-info span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.gallery-item .zoom-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-8px);
  transition: 0.35s;
}

.gallery-item:hover .zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

/* Filter isotope */
.portfolio-filters {
  padding: 0;
  margin: 0 auto 28px auto;
  list-style: none;
  text-align: center;
}

.portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 18px;
  margin: 0 4px 10px 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: 50px;
  color: var(--brand-blue-dark);
  background: #eaf1f7;
  transition: 0.3s;
}

.portfolio-filters li:hover,
.portfolio-filters li.filter-active {
  background: var(--brand-blue);
  color: #ffffff;
}

/*--------------------------------------------------------------
# Kartu video
--------------------------------------------------------------*/
.video-card {
  background: var(--surface-color);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(58, 42, 5, 0.08);
  box-shadow: 0 4px 20px rgba(58, 42, 5, 0.05);
  transition: 0.35s;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(58, 42, 5, 0.14);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #1a1a1a;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card .video-body {
  padding: 20px;
}

.video-card .video-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 8px;
}

.video-card .video-body p {
  font-size: 14.5px;
  color: #6c7b8a;
  margin: 0;
  line-height: 1.7;
}

/*--------------------------------------------------------------
# Tabel dokumen / DataTables
--------------------------------------------------------------*/
.table-card {
  background: var(--surface-color);
  border-radius: 14px;
  border: 1px solid rgba(58, 42, 5, 0.08);
  box-shadow: 0 4px 24px rgba(58, 42, 5, 0.06);
  padding: 24px;
}

.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 0;
}

.table-modern thead th {
  background: var(--brand-gradient);
  color: #1a1a1a;
  font-family: var(--heading-font);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
  border: 0;
  white-space: nowrap;
}

.table-modern thead th:first-child {
  border-top-left-radius: 10px;
}

.table-modern thead th:last-child {
  border-top-right-radius: 10px;
}

.table-modern tbody td {
  padding: 14px 16px;
  font-size: 14.5px;
  vertical-align: middle;
  border: 0;
  border-bottom: 1px solid rgba(58, 42, 5, 0.08);
  color: #4a5766;
}

.table-modern tbody tr:hover td {
  background: #f2f7fb;
}

.table-modern .badge-hits {
  display: inline-block;
  background: rgba(217, 162, 9, 0.1);
  color: var(--brand-blue);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-gradient);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  white-space: nowrap;
  transition: 0.3s;
}

.btn-download:hover {
  background: #1a1a1a;
  color: #ffffff;
}

/* Penyesuaian tampilan DataTables */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid rgba(58, 42, 5, 0.18);
  border-radius: 8px;
  padding: 6px 12px;
  outline: none;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--brand-blue);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--brand-blue) !important;
  border-color: var(--brand-blue) !important;
  color: #ffffff !important;
  border-radius: 6px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  font-size: 14px;
  color: #6c7b8a;
  margin-bottom: 12px;
}

/*--------------------------------------------------------------
# Staff / pegawai
--------------------------------------------------------------*/
.staff-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 26px 0;
  width: 100%;
}

.staff-group-title h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin: 0;
  white-space: nowrap;
}

.staff-group-title:after {
  content: "";
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-yellow), rgba(255, 190, 11, 0));
  border-radius: 2px;
}

.staff-card {
  background: var(--surface-color);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  text-align: center;
  border: 1px solid rgba(58, 42, 5, 0.08);
  box-shadow: 0 4px 20px rgba(58, 42, 5, 0.05);
  transition: 0.35s;
}

.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(58, 42, 5, 0.14);
}

.staff-card .staff-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e9eff5;
}

.staff-card .staff-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: 0.5s;
}

.staff-card:hover .staff-img img {
  transform: scale(1.06);
}

.staff-card .staff-info {
  padding: 18px 14px;
}

.staff-card .staff-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 5px;
}

.staff-card .staff-info span {
  display: block;
  font-size: 13.5px;
  color: #6c7b8a;
}

/*--------------------------------------------------------------
# Kontak
--------------------------------------------------------------*/
.contact .info-item {
  background: var(--surface-color);
  border-radius: 14px;
  padding: 28px 20px;
  border: 1px solid rgba(58, 42, 5, 0.08);
  box-shadow: 0 4px 20px rgba(58, 42, 5, 0.05);
  height: 100%;
  transition: 0.35s;
}

.contact .info-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(58, 42, 5, 0.12);
}

.contact .info-item i {
  font-size: 26px;
  color: var(--brand-blue);
  background: rgba(217, 162, 9, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  margin-bottom: 14px;
}

.contact .info-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 8px;
}

.contact .info-item p {
  font-size: 14.5px;
  margin: 0;
  color: #6c7b8a;
}

.map-frame {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(58, 42, 5, 0.1);
  line-height: 0;
}

.map-frame iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

.map-full iframe {
  width: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

/*--------------------------------------------------------------
# Bagian "Tentang"
--------------------------------------------------------------*/
.about-content {
  font-size: 16px;
  line-height: 1.85;
  color: #4a5766;
}

.about-content img {
  max-width: 100%;
  height: auto;
}

.about-visual {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(58, 42, 5, 0.14);
  background: #ffffff;
  padding: 20px;
}

.about-visual img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/*--------------------------------------------------------------
# CTA banner
--------------------------------------------------------------*/
.cta-banner {
  background: var(--brand-gradient);
  color: #1a1a1a;
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.cta-banner:before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.cta-banner h3 {
  color: #1a1a1a;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
}

.cta-banner p {
  color: rgba(26, 26, 26, 0.82);
  margin: 0;
  font-size: 15.5px;
  position: relative;
}

.cta-banner .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  color: #ffbe0b;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 32px;
  border-radius: 50px;
  position: relative;
  box-shadow: 0 10px 26px rgba(217, 162, 9, 0.35);
  transition: 0.3s;
  white-space: nowrap;
}

.cta-banner .btn-cta:hover {
  background: #ffffff;
  color: #1a1a1a;
}

@media (max-width: 767px) {
  .cta-banner {
    padding: 28px 22px;
    text-align: center;
  }

  .cta-banner h3 {
    font-size: 21px;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  --background-color: #ffbe0b;
  /* Teks gelap: footer sekarang kuning, putih di atasnya tidak terbaca */
  --default-color: #1a1a1a;
  --heading-color: #1a1a1a;
  --accent-color: #1a1a1a;
  background-image: linear-gradient(180deg, #ffc93a 0%, #f0ad07 100%);
  font-size: 14.5px;
}

.footer .footer-links ul a,
.footer .credits,
.footer .credits a {
  color: rgba(26, 26, 26, 0.82);
}

.footer .footer-links ul a:hover,
.footer .credits a:hover {
  color: #1a1a1a;
}

.footer .footer-about .logo img {
  max-height: 54px;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 10px;
}

.footer h4 {
  font-size: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a1a1a;
  display: inline-block;
}

.footer .footer-links ul i {
  color: #1a1a1a;
}

.footer .social-links a {
  background: rgba(26, 26, 26, 0.1);
  color: #1a1a1a;
  border: 0;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background: #1a1a1a;
  color: #ffbe0b;
}

.footer .footer-contact p {
  color: rgba(26, 26, 26, 0.8);
}

.footer .footer-map iframe {
  width: 100%;
  min-height: 190px;
  border: 0;
  border-radius: 10px;
  display: block;
}

.footer .copyright {
  border-top: 1px solid rgba(26, 26, 26, 0.15);
  padding-top: 24px;
}

.footer .copyright p {
  color: rgba(26, 26, 26, 0.8);
}

/*--------------------------------------------------------------
# Tombol scroll to top & preloader
--------------------------------------------------------------*/
.scroll-top {
  background-color: var(--brand-blue);
}

.scroll-top:hover {
  background-color: var(--brand-orange);
}

#preloader:before {
  border-color: var(--brand-blue) transparent var(--brand-blue) transparent;
}

/*--------------------------------------------------------------
# Empty state
--------------------------------------------------------------*/
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #8895a3;
}

.empty-state i {
  font-size: 46px;
  color: #c3d0dc;
  display: block;
  margin-bottom: 14px;
}

/*--------------------------------------------------------------
# Lebar konten
# Container bawaan Bootstrap berhenti di 1140px/1320px sehingga di layar
# lebar sisi kanan-kiri terasa kosong. Di sini dibuat mendekati penuh
# dengan jarak tepi secukupnya saja.
--------------------------------------------------------------*/
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  max-width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

/* Di layar sangat lebar tetap diberi batas agar baris teks tidak
   terlalu panjang untuk dibaca */
@media (min-width: 1800px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1720px;
  }
}

@media (max-width: 991px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 575px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Peta di footer & kontak ikut penuh mengisi kolomnya */
.footer .footer-map iframe,
.map-frame iframe,
.map-full iframe {
  width: 100%;
  display: block;
}

/*--------------------------------------------------------------
# Bagian Media Sosial
--------------------------------------------------------------*/
.sosial-section {
  background: var(--brand-gradient);
  position: relative;
  overflow: hidden;
}

.sosial-section:before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.sosial-section .section-title h2 {
  color: rgba(26, 26, 26, 0.65);
}

.sosial-section .section-title h2::after {
  background: #1a1a1a;
}

.sosial-section .section-title p {
  color: #1a1a1a;
}

.sosial-card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 6px 22px rgba(26, 26, 26, 0.1);
  transition: 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sosial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.2);
}

.sosial-card .sosial-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 26px;
  color: #ffffff;
  transition: 0.32s;
}

/* Warna khas tiap platform supaya mudah dikenali sekilas */
.sosial-card .sosial-instagram {
  background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
}

.sosial-card .sosial-tiktok {
  background: #1a1a1a;
}

.sosial-card .sosial-x {
  background: #1a1a1a;
}

.sosial-card .sosial-facebook {
  background: #1877f2;
}

.sosial-card .sosial-youtube {
  background: #ff0000;
}

.sosial-card .sosial-info {
  min-width: 0;
}

.sosial-card .sosial-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 3px 0;
}

.sosial-card .sosial-info span {
  display: block;
  font-size: 13.5px;
  color: #6f665a;
  overflow-wrap: anywhere;
}

.sosial-card .sosial-go {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 18px;
  color: #b9b0a2;
  transition: 0.3s;
}

.sosial-card:hover .sosial-go {
  color: #1a1a1a;
  transform: translateX(3px);
}

@media (max-width: 575px) {
  .sosial-card {
    padding: 16px;
    gap: 12px;
  }

  .sosial-card .sosial-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}

/*--------------------------------------------------------------
# Kartu umpan media sosial (iframe)
--------------------------------------------------------------*/
.sosial-feed {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 6px 22px rgba(26, 26, 26, 0.1);
}

.sosial-feed-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.sosial-feed-head .sosial-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 22px;
  color: #ffffff;
}

.sosial-feed-head .sosial-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 2px 0;
}

.sosial-feed-head .sosial-info span {
  display: block;
  font-size: 13px;
  color: #6f665a;
  overflow-wrap: anywhere;
}

.sosial-feed-head .sosial-go {
  margin-left: auto;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 15px;
  color: #1a1a1a;
  background: rgba(255, 190, 11, 0.22);
  transition: 0.3s;
}

.sosial-feed-head .sosial-go:hover {
  background: #1a1a1a;
  color: #ffbe0b;
}

.sosial-feed-body {
  flex-grow: 1;
  min-height: 520px;
  background: #fafafa;
  position: relative;
}

.sosial-feed-body iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  display: block;
}

/* Widget X membuat iframe-nya sendiri */
.sosial-feed-body iframe[id^="twitter-widget"] {
  min-height: 0;
}

.sosial-fallback {
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: #6f665a;
}

@media (max-width: 991px) {
  .sosial-feed-body,
  .sosial-feed-body iframe {
    min-height: 460px;
  }
}

/* Tampilan cadangan bila linimasa X gagal dimuat */
.sosial-x-wrap {
  height: 100%;
}

.sosial-x-cadangan {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 520px;
  padding: 30px 24px;
  gap: 16px;
}

.sosial-x-wrap.x-kosong .sosial-x-cadangan {
  display: flex;
}

.sosial-x-wrap.x-kosong .twitter-timeline,
.sosial-x-wrap.x-kosong iframe[id^="twitter-widget"] {
  display: none;
}

.sosial-x-cadangan i {
  font-size: 42px;
  color: #1a1a1a;
}

.sosial-x-cadangan p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #6f665a;
}

/*--------------------------------------------------------------
# Perbaikan tampilan layar kecil
--------------------------------------------------------------*/

/* PENYEBAB TUMPANG TINDIH: template Dewi memberi `line-height: 1px` pada
   label kecil di atas judul section. Selama teksnya muat satu baris tidak
   kelihatan, tapi begitu membungkus di layar sempit baris-barisnya saling
   menimpa. Diberi tinggi baris normal. */
.section-title h2 {
  line-height: 1.6;
  display: block;
}

/* Garis aksen dipisah ke baris sendiri supaya tidak menabrak teks */
.section-title h2::after {
  display: block;
  margin: 10px 0 0 0;
}

@media (max-width: 991px) {
  .section-title {
    padding-bottom: 28px;
  }

  .section-title h2 {
    font-size: 12.5px;
    letter-spacing: 1px;
  }

  .section-title h2::after {
    width: 60px;
    margin-top: 8px;
  }

  .section-title p {
    font-size: 26px;
    line-height: 1.3;
  }

  /* Jarak antar section dirapatkan agar tidak terlalu banyak ruang kosong */
  section,
  .section {
    padding: 44px 0;
  }
}

@media (max-width: 575px) {
  .section-title p {
    font-size: 22px;
  }

  section,
  .section {
    padding: 36px 0;
  }

  /* Kartu & tipografi */
  .icon-card,
  .post-card .post-body,
  .video-card .video-body,
  .table-card,
  .sidebar-widget,
  .article-body {
    padding: 20px 18px;
  }

  .icon-card h4,
  .post-card h3 {
    font-size: 16.5px;
  }

  .article-body h1,
  .article-body > h2 {
    font-size: 20px;
  }

  .cta-banner h3 {
    font-size: 19px;
  }
}

/* --- Header di layar kecil --- */
@media (max-width: 991px) {
  /* Topbar: email sering kepanjangan, dibuat bisa digulir mendatar
     daripada memaksa isinya terpotong */
  .header .topbar {
    height: 38px;
    font-size: 12px;
  }

  .header .topbar .container {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .header .topbar .container::-webkit-scrollbar {
    display: none;
  }

  .header .branding {
    padding: 10px 0;
  }

  .header .logo img {
    max-height: 36px;
    padding: 4px 8px;
  }

  .scrolled .header .branding {
    padding: 8px 0;
  }

  .scrolled .header .logo img {
    max-height: 32px;
  }
}

/* Tombol menu: beri area sentuh layak (minimal 44px) */
.mobile-nav-toggle {
  padding: 8px;
  margin-right: 0 !important;
}

/* --- Layanan cepat --- */
@media (max-width: 991px) {
  .quick-access .quick-wrapper {
    margin-top: -34px;
    padding: 8px;
  }

  .quick-access .quick-item {
    padding: 14px 12px;
    gap: 12px;
  }

  .quick-access .quick-item i {
    width: 46px;
    height: 46px;
    font-size: 24px;
  }
}

/* --- Kartu media sosial: iframe dipendekkan agar tidak memakan layar --- */
@media (max-width: 767px) {
  .sosial-feed-body,
  .sosial-feed-body iframe,
  .sosial-x-cadangan {
    min-height: 420px;
  }
}

/* --- Tabel dokumen: cegah lebar meluber --- */
@media (max-width: 767px) {
  .table-card {
    padding: 14px;
  }

  .table-modern thead th,
  .table-modern tbody td {
    padding: 10px 12px;
    font-size: 13.5px;
  }
}

/* --- Konten artikel dari editor sering memuat tabel/gambar lebar --- */
.article-content img,
.article-content iframe,
.article-content table {
  max-width: 100% !important;
  height: auto;
}

.article-content {
  overflow-x: auto;
}

/* Cegah seluruh halaman bergeser mendatar */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Tombol muat ulang bingkai media sosial */
.sosial-muat-ulang {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.sosial-muat-ulang:disabled {
  opacity: 0.55;
  cursor: wait;
}

.sosial-feed-head .sosial-muat-ulang + .sosial-go {
  margin-left: 6px;
}

@keyframes berputar {
  to { transform: rotate(360deg); }
}

.sosial-muat-ulang i.berputar {
  display: inline-block;
  animation: berputar 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sosial-muat-ulang i.berputar { animation: none; }
}
