:root {
  --bg: #0c0c0c;
  --fg: #f5f5f5;
  --accent: #f2b705;
  --muted: #777;
  --card: #161616;
}

/* === FIX #1: anchor tidak tertutup navbar === */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* tinggi navbar desktop */
}
@media (max-width: 767px) {
  html { scroll-padding-top: 70px; } /* tinggi navbar mobile */
}

/* === DASAR === */
html, body {
  font-family: Poppins, Arial, sans-serif;
  color: var(--fg);
  background: #111;
}

/* === NAVBAR PERBAIKAN === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  border-radius: 0;
  margin-bottom: 0;
}

body {
  padding-top: 70px;
}

@media (max-width: 767px) {
  body { padding-top: 60px; }
}

h2 {
  font-weight: 700;
  margin: 24px 0 12px;
}

/* === JUDUL UTAMA === */
.title-china {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: clamp(20px, 3.5vw, 34px);
  letter-spacing: 0.5px;
  color: var(--accent);
  text-align: center;
  line-height: 1.2;
  margin: 16px auto;
}

@media (max-width: 480px) {
  .title-china {
    font-size: 22px;
  }
}

/* === NAVBAR === */
.navbar-inverse {
  background-color: #1b1b1b !important;
  border-color: #000;
}

.navbar-inverse .navbar-brand {
  color: #fff !important;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.navbar-inverse .navbar-nav > li > a {
  color: #ddd !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-inverse .navbar-nav > li > a:hover {
  color: var(--accent) !important;
}

.logo-navbar {
  height: 32px;
  margin-right: 8px;
  vertical-align: middle;
}

.navbar-collapse {
  background-color: #111;
  border-top: 1px solid #333;
}

.navbar-collapse ul li a {
  color: #f5f5f5 !important;
  padding: 10px 16px;
}

.navbar-collapse ul li a:hover {
  background: #222;
  color: var(--accent) !important;
}

@media (max-width:768px) {
  .navbar-inverse .navbar-brand { font-size:17px; }
  .logo-navbar { height:30px; }
}

/* === HERO SECTION === */
.hero {
  position: relative;
  background: url("../img/header-bg.jpg") center center/cover no-repeat;
  background-color: #000;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.hero-overlay {
  background: rgba(0, 0, 0, 0.55);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-text {
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}
.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 4px 10px rgba(0,0,0,.6);
}
.hero-text p {
  font-size: 1rem;
  font-weight: 400;
  margin-top: 1rem;
  text-shadow: 0 3px 8px rgba(0,0,0,.5);
}
@media (max-width: 600px) {
  .hero { height: 60vh; background-size: cover; }
  .hero-text h1 { font-size: 1.5rem; }
  .hero-text p { font-size: .9rem; }
}

/* === CARD & LAYOUT === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 10px 16px;
}

.card {
  background: var(--card);
  border: 1px solid #222;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  width: 280px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #333;
}

.card h4 {
  margin: 10px 0 6px;
  font-weight: 600;
  font-size: 1.05rem;
}

.card p {
  color: #bbb;
  margin: 0;
  font-size: 0.9rem;
}

/* === PENGURUS === */
#pengurus {
  text-align: center;
}

#pengurus h2 {
  color: var(--accent);
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 20px;
}

#pengurus h3 {
  color: var(--fg);
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 12px;
  text-align: center;
}

/* === PAGINATION === */
.pagination {
  text-align: center;
  margin: 12px 0 24px;
}

.pagination button {
  background: #1f1f1f;
  border: 1px solid #333;
  color: #fff;
  padding: 6px 10px;
  margin: 0 3px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.pagination button:hover {
  background: #333;
}

.pagination button.active {
  background: var(--accent);
  color: #000;
  border-color: #000;
}

/* === RANTING SECTION === */
.ranting-section {
  margin-top: 14px;
}

/* Judul Ranting (putih elegan) */
.ranting-section h2 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: clamp(18px, 3vw, 28px);
  color: #fff !important;
  text-align: center;
  margin: 24px 0 18px;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .ranting-section h2 {
    font-size: 20px;
  }
}

/* Tombol daftar ranting (seperti galeri filter) */
.ranting-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px auto 24px;
}

.ranting-btn {
  background: #1f1f1f;
  color: #fff;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ranting-btn:hover {
  background: #333;
  color: var(--accent);
}

.ranting-btn.active {
  background: var(--accent);
  color: #000;
  border-color: #000;
}

@media (max-width: 480px) {
  .ranting-btn {
    font-size: 0.9rem;
    padding: 7px 14px;
  }
}

/* Search Box */
.ranting-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.search-box {
  max-width: 280px;
  background: #1b1b1b;
  border: 1px solid #333;
  color: #eee;
}

/* === GALERI PUTIH === */
#galeri {
  background: #fff;
  color: #222;
  text-align: center;
  padding: 40px 0 60px;
}

#galeri h2 {
  color: #1a1a1a;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
}

#galeriFilter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

#galeriFilter button {
  background: #1f1f1f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#galeriFilter button:hover {
  background: #333;
}

#galeriFilter button.active {
  background: var(--accent);
  color: #000;
}

.galeri-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 12px;
}

.galeri-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,.1);
  flex: 0 0 auto;
  width: 280px;
  text-align: center;
  padding-bottom: 12px;
}

.galeri-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #000;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.galeri-item p {
  margin-top: 8px;
  color: #222;
  font-weight: 600;
  font-size: 0.95rem;
}

.galeri-info {
  text-align: center;
  color: #555;
  font-size: 13px;
  margin-top: 12px;
}

/* === CHAT WIDGET === */
#chat-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
}

#chat-toggle {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

#chat-box {
  display: none;
  position: absolute;
  right: 0;
  bottom: 56px;
  width: 220px;
  background: #181818;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}

#chat-box h4 {
  margin: 0 0 8px;
}

.chat-btn {
  display: block;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
}

.chat-btn.wa {
  background: #20c997;
  color: #000;
}

.chat-btn.ig {
  background: #e9ecef;
  color: #000;
}

/* === FOOTER === */
footer {
  padding: 24px;
  text-align: center;
  color: #aaa;
  border-top: 1px solid #222;
  margin-top: 24px;
  background: #111;
}

/* === HALAMAN SEJARAH === */
.panel {
  background: #1a1a1a;
  color: #f5f5f5;
  border: 1px solid #333;
  border-radius: 8px;
}

.panel-body p,
.panel-body ul,
.panel-body li,
.panel-body h3,
.panel-body blockquote {
  color: #f5f5f5;
  text-align: justify;
}

.panel-body li {
  margin-bottom: 8px;
}

.panel-body blockquote {
  margin-left: 20px;
  margin-right: 20px;
  font-style: italic;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

/* === PERBAIKAN JUDUL TERTUTUP NAVBAR (legacy padding) === */
main, section, .hero, #pengurus, #profil, #sejarah, #informasi {
  padding-top: 90px;
}

@media (max-width: 767px) {
  main, section, .hero, #pengurus, #profil, #sejarah, #informasi {
    padding-top: 70px;
  }
}

/* === MOBILE CENTER LOGO + TEXT (FIXED HAMBURGER) === */
@media (max-width: 767px) {
  .navbar-header {
    display: flex;
    align-items: center;
    justify-content: center !important;
    position: relative;
    width: 100%;
  }

  .navbar-brand {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .navbar-brand img {
    height: 28px;
    margin-right: 6px;
  }

  .navbar-toggle {
    position: absolute;
    right: 12px;
    top: 8px;
    transform: none;
    margin: 0;
  }
  /* === BLOKIR SELEKSI TEKS DAN SALINAN === */
body, html, img, p, h1, h2, h3, h4, h5, h6, a, span, div {
  user-select: none;          /* Tidak bisa diseleksi */
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  pointer-events: auto;
}

img {
  -webkit-user-drag: none;    /* Tidak bisa di-drag */
  user-drag: none;
}

/* === PERBAIKAN JARAK ATAS ANTARA NAVBAR DAN KONTEN === */
#anggota, #pengurus, #profil, #galeri, #lokasi {
  padding-top: 40px !important;  /* dari 90px -> 40px */
}

body {
  padding-top: 60px !important;  /* rapatkan sedikit di bawah navbar */
}

@media (max-width: 767px) {
  #anggota, #pengurus, #profil, #galeri, #lokasi {
    padding-top: 10px !important;
  }
  body {
    padding-top: 55px !important;
  }

  /* === HERO IMPROVEMENT - IKSPI MODERN EFFECT === */
.hero {
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

/* === Animasi teks muncul elegan === */
.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: heroFade 1.5s ease-out both;
}

.hero-text h1 {
  font-family: 'ZCOOL KuaiLe', cursive;
  color: var(--accent);
  text-shadow: 0 6px 18px rgba(0,0,0,0.8);
  letter-spacing: 1px;
  animation: heroFade 1.8s ease-out both;
}

.hero-text p {
  color: #fff;
  opacity: 0.9;
  font-size: 1.05rem;
  margin-top: 10px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);
  animation: heroFade 2.2s ease-out both;
}

/* === Tombol Hero === */
.hero-btn {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 22px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  animation: heroFade 2.6s ease-out both;
}

.hero-btn:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}

/* === Efek animasi fade-in === */
@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsif === */
@media (max-width: 600px) {
  .hero-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
  
  /* === HILANGKAN GARIS DAN BUAT FULL === */
.navbar,
.navbar-inverse {
  border: none !important;
  box-shadow: none !important;
  background-color: #111 !important;
}

.hero {
  margin-top: -1px !important; /* hilangkan celah kecil */
  border: none !important;
  padding-top: 0 !important;
}

/* === FIX TABEL DI HALAMAN INFORMASI (MENIMPA BOOTSTRAP) === */
#informasi .table,
#informasi table {
  width: 100%;
  border-collapse: collapse;
  background: #0f0f0f !important;   /* dasar gelap */
  color: #f5f5f5 !important;         /* teks terang */
}

/* header tabel */
#informasi thead th,
#informasi .table > thead > tr > th {
  background: var(--accent) !important;
  color: #000 !important;
  text-align: center;
  font-weight: 700;
  border-color: #333 !important;
}

/* sel data */
#informasi td,
#informasi th,
#informasi .table > tbody > tr > td,
#informasi .table > tbody > tr > th {
  border: 1px solid #333 !important;
  color: #f5f5f5 !important;
  padding: 8px 10px !important;
  text-align: left;
}

/* baris ganjil / genap — ini yang bikin "No. 1" gak putih lagi */
#informasi .table-striped > tbody > tr:nth-of-type(odd),
#informasi table tbody tr:nth-child(odd) {
  background-color: #1a1a1a !important;
}
#informasi .table-striped > tbody > tr:nth-of-type(even),
#informasi table tbody tr:nth-child(even) {
  background-color: #121212 !important;
}

/* efek hover (opsional) */
#informasi tbody tr:hover {
  background: #222 !important;
}

/* kolom NO biar jelas */
#informasi td:first-child {
  text-align: center;
  font-weight: 600;
  color: #fff !important;
}

/* === PERBAIKAN TABEL HALAMAN INFORMASI === */
#informasi table,
#informasi .table {
  background: #0f0f0f !important;
  color: #f5f5f5 !important;
  border-collapse: collapse;
}

#informasi th, 
#informasi td {
  border: 1px solid #333 !important;
  padding: 8px 10px !important;
}

#informasi thead th {
  background: var(--accent) !important;
  color: #000 !important;
  text-align: center;
  font-weight: 700;
}

#informasi tbody tr:nth-child(odd) {
  background-color: #1a1a1a !important;
}
#informasi tbody tr:nth-child(even) {
  background-color: #121212 !important;
}
#informasi tbody tr:hover {
  background-color: #222 !important;
}

#informasi td:first-child {
  text-align: center;
  font-weight: 600;
  color: #fff !important;
}

/* === FIX GLOBAL UNTUK TABEL DI HALAMAN INFORMASI === */
body.informasi-page table,
body.informasi-page .table {
  background: #0f0f0f !important;
  color: #f5f5f5 !important;
  border-collapse: collapse !important;
}

body.informasi-page th,
body.informasi-page td {
  border: 1px solid #333 !important;
  padding: 8px 10px !important;
}

body.informasi-page thead th {
  background: var(--accent) !important;
  color: #000 !important;
  text-align: center;
  font-weight: 700;
}

body.informasi-page tbody tr:nth-child(odd) {
  background: #1a1a1a !important;
}
body.informasi-page tbody tr:nth-child(even) {
  background: #151515 !important;
}
body.informasi-page tbody tr:hover {
  background: #222 !important;
}

body.informasi-page td:first-child {
  text-align: center;
  font-weight: 600;
  color: #fff !important;
}


/* === FIX KALIMAT BERJARAK DI HALAMAN INFORMASI === */
.informasi-page .panel-body h3 {
  display: block !important;
  text-align: center !important;   /* pastikan di tengah */
  word-spacing: normal !important; /* hilangkan jarak antar kata */
  letter-spacing: normal !important; /* hilangkan jarak antar huruf */
  white-space: normal !important;  /* biar teks bisa patah normal */
  line-height: 1.3 !important;
  margin: 8px 0 12px !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  text-transform: none !important; /* pastikan huruf normal */
}



/* ===== GALERI DJARUMSTYLE ===== */
.galeri-header{ position:sticky; top:0; background:#e30000; color:#fff; z-index:1000; padding:10px 0; box-shadow:0 8px 16px rgba(0,0,0,.18); }
.galeri-header .filters{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; }
.galeri-header .group{ display:flex; gap:8px; flex-wrap:wrap; }
.btn-filter{ background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.35); padding:8px 14px; border-radius:10px; font-weight:700; cursor:pointer; transition:.2s; }
.btn-filter:hover{ background:rgba(255,255,255,.2); }
.btn-filter.active{ background:#fff; color:#e30000; }
.galeri-main{ padding:18px 0 36px; }
.galeri-grid-df{ display:grid; gap:18px; grid-template-columns:repeat(2, minmax(0,1fr)); }
@media (max-width:768px){ .galeri-grid-df{ grid-template-columns:1fr; } }
.card-news{ background:#fff; color:#111; border-radius:16px; overflow:hidden; box-shadow:0 10px 24px rgba(0,0,0,.12); border:1px solid #eee; }
.card-news .thumb{ position:relative; width:100%; aspect-ratio:16/9; background:#000; overflow:hidden; }
.card-news img{ width:100%; height:100%; object-fit:cover; display:block; }
.card-news iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.card-news .badge{ position:absolute; top:10px; left:10px; background:rgba(0,0,0,.7); color:#fff; font-weight:700; padding:4px 8px; border-radius:8px; }
.card-news .meta{ padding:14px 16px; }
.card-news .title{ font-weight:800; font-size:1.05rem; line-height:1.35; }
.card-news .sub{ color:#777; font-size:.9rem; margin-top:6px; display:flex; justify-content:space-between; align-items:center; }
.lightbox{ position:fixed; inset:0; display:none; z-index:10000; }
.lightbox.show{ display:block; }
.lightbox__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.7); }
.lightbox__content{ position:relative; max-width:1100px; margin:4vh auto; background:#000; border-radius:12px; overflow:hidden; }
.lightbox__body{ position:relative; width:100%; aspect-ratio:16/9; }
.lightbox__body iframe, .lightbox__body img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; border:0; background:#000; }
.lightbox__close{ position:absolute; top:6px; right:10px; background:#fff; color:#000; border:0; border-radius:8px; padding:6px 10px; font-weight:800; z-index:2; }
