/* ============================================
   PANDUAN SITE — Public CSS
   Theme: Dark, Gold, Red
============================================ */

:root {
  --primary: #8b0000;
  --primary-light: #a00000;
  --gold: #c8a400;
  --gold-light: #f0c800;
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: #888888;
  --radius: 8px;
  --font-display: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
}

/* ---- HEADER ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid var(--gold);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap { display: flex; align-items: center; gap: 10px; }

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 2px;
}

.nav { display: flex; gap: 4px; }

.nav a {
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.nav a:hover { color: var(--gold); background: rgba(200,164,0,0.08); }

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 20px;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 8px 16px 16px;
}

.mobile-nav a {
  color: #bbb;
  text-decoration: none;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open { display: flex; }

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: block; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(139,0,0,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 30%, rgba(200,164,0,0.08) 0%, transparent 60%),
    var(--bg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(139,0,0,0.3);
  border: 1px solid var(--primary);
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(200,164,0,0.2);
}

.hero-sub {
  font-size: 17px;
  color: #aaa;
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.hero-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,0,0,0.4);
}

.hero-deco { position: absolute; inset: 0; pointer-events: none; }

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200,164,0,0.08);
}

.ring1 { width: 400px; height: 400px; right: -100px; top: -100px; }
.ring2 { width: 600px; height: 600px; right: -200px; top: -200px; }
.ring3 { width: 800px; height: 800px; right: -300px; top: -300px; }

/* ---- SECTIONS ---- */
.section { padding: 60px 24px; }
.section-dark { background: var(--bg2); }

.container { max-width: 1200px; margin: 0 auto; }

.sec-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.sec-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  white-space: nowrap;
  font-weight: 600;
}

.sec-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* ---- TABS ---- */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tab-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: #aaa;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  border-color: var(--gold);
  color: var(--gold);
}

/* ---- GUIDES GRID ---- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.guide-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.guide-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.guide-thumb {
  height: 100px;
  background: linear-gradient(135deg, var(--primary), #2d1a00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
  overflow: hidden;
}

.guide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-num {
  position: absolute;
  top: 6px;
  left: 8px;
  background: var(--primary);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--gold);
}

.guide-info { padding: 12px 14px; }

.guide-info h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.guide-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- STEPS ---- */
.steps-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.step-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.step-num {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 28px;
  color: rgba(200,164,0,0.15);
  font-weight: 700;
  line-height: 1;
}

.step-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- FAQ ---- */
.faq-wrap { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open { border-color: var(--primary); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}

.faq-item.open .faq-q { color: var(--gold); }

.faq-icon {
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s;
  font-style: normal;
}

.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--gold); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a-inner {
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.faq-item.open .faq-a { max-height: 300px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--gold);
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 20px;
  padding-right: 40px;
}

.modal-body {
  font-size: 14px;
  color: #bbb;
  line-height: 1.8;
}

.modal-body h1, .modal-body h2, .modal-body h3 {
  color: var(--gold);
  margin: 16px 0 8px;
  font-family: var(--font-display);
}

.modal-body p { margin-bottom: 12px; }

.modal-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 12px 0;
  border: 1px solid var(--border);
}

.modal-body ul, .modal-body ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.modal-body li { margin-bottom: 4px; }

.modal-body strong { color: #fff; }

.modal-body a { color: var(--gold); }

/* ---- UTILITY ---- */
.loading { color: var(--text-muted); font-size: 14px; padding: 20px 0; }
.empty { color: var(--text-muted); font-size: 14px; padding: 20px 0; }
