/* ============================================================
   Portal Kebudayaan Kalimantan Selatan — Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #8B1A1A;   /* deep maroon — Banjar merah */
  --primary-dark:  #5C0F0F;
  --primary-light: #C0392B;
  --gold:          #C9A84C;
  --gold-light:    #F0C96A;
  --cream:         #FDF6EC;
  --brown-light:   #F5E6D3;
  --text-dark:     #1A0A00;
  --text-mid:      #4A3728;
  --text-muted:    #7A6555;
  --white:         #FFFFFF;
  --border:        #E8D8C4;
  --shadow:        0 4px 24px rgba(139,26,26,.10);
  --shadow-md:     0 8px 40px rgba(139,26,26,.15);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --transition:    .3s ease;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--primary-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.40);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

.btn-primary-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-primary-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-tag {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  background: rgba(139,26,26,.08);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-footer-action {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 20px 0;
}

.navbar.scrolled {
  background: rgba(255, 251, 245, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(139,26,26,.10);
  padding: 12px 0;
}

.navbar.scrolled .nav-title-main,
.navbar.scrolled .nav-title-sub { color: var(--text-dark); }
.navbar.scrolled .nav-links a { color: var(--text-mid); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }
.navbar.scrolled .nav-hamburger span { background: var(--text-dark); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo {
  /* width: 44px; */
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  /* background: var(--primary); */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  /* padding: 5px; */
}

.nav-logo img { height: 100%; width: auto; object-fit: contain; }
.nav-logo-fallback { display: none; }

.nav-title { display: flex; flex-direction: column; }

.nav-title-main {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  transition: color var(--transition);
}

.nav-title-sub {
  font-size: .7rem;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover { background: rgba(255,255,255,.12); color: var(--white); }

.btn-nav-masuk {
  background: var(--gold) !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
}

.btn-nav-masuk:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201,168,76,.40);
}

.nav-links a.active {
  background: rgba(255,255,255,.18);
  color: var(--white);
}

.navbar.scrolled .nav-links a.active {
  background: rgba(139,26,26,.10);
  color: var(--primary);
}

/* Dropdown Jelajahi */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.nav-dropdown-btn:hover,
.nav-dropdown.active .nav-dropdown-btn { background: rgba(255,255,255,.12); color: var(--white); }
.nav-dropdown-btn i { font-size: .65rem; transition: transform var(--transition); }
.nav-dropdown:hover .nav-dropdown-btn i,
.nav-dropdown:focus-within .nav-dropdown-btn i { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s ease;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-mid);
  background: transparent;
  transition: all var(--transition);
}
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--primary); }
.nav-dropdown-menu a i { width: 14px; color: var(--primary); font-size: .8rem; }

/* Scrolled state */
.navbar.scrolled .nav-dropdown-btn { color: var(--text-mid); }
.navbar.scrolled .nav-dropdown-btn:hover,
.navbar.scrolled .nav-dropdown.active .nav-dropdown-btn { background: rgba(139,26,26,.10); color: var(--primary); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(92,15,15,.85) 0%,
    rgba(139,26,26,.70) 0%,
    rgba(28,10,0,.50) 50%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(201,168,76,.20);
  border: 1px solid rgba(201,168,76,.40);
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: 20px;
  animation: fadeInDown .8s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInDown .9s ease .1s both;
}

.hero-title-accent { color: var(--gold-light); }

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
  animation: fadeInDown 1s ease .2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInDown 1.1s ease .3s both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-dot {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 14px;
  position: relative;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold-light);
  border-radius: 2px;
  animation: scrollBounce 1.8s infinite;
}

/* ============================================================
   STATS BANNER
   ============================================================ */
.stats-banner {
  background: var(--primary);
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,.12);
  transition: background var(--transition);
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,.06); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(201,168,76,.20);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-value span { color: var(--gold); }

.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  text-align: center;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.section-video {
  padding: 96px 0;
  background: var(--cream);
}

.video-wrapper { max-width: 840px; margin: 0 auto; }
.video-iframe-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-md); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.video-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-thumbnail {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--text-dark);
  aspect-ratio: 16/9;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.video-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .7;
  transition: opacity var(--transition);
}

.video-thumbnail:hover img { opacity: .5; }

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, transparent 60%);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(201,168,76,.90);
  border: none;
  color: var(--primary-dark);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 0 0 0 rgba(201,168,76,.4);
  animation: pulse 2s infinite;
  padding-left: 4px;
}

.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.1); background: var(--gold); }

.video-info {
  align-self: flex-start;
  color: var(--white);
}

.video-duration {
  font-size: .8rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.video-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.video-info p { font-size: .9rem; color: rgba(255,255,255,.8); }

/* ============================================================
   CARDS / OBJEK BUDAYA
   ============================================================ */
.section-cards {
  padding: 96px 0;
  background: var(--brown-light);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.card-wide { grid-column: 1 / 3; }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--primary);
}

.card-wide .card-img { aspect-ratio: 16/7; }

.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(92,15,15,.3) 0%, transparent 60%);
}

.card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(139,26,26,.08);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-desc {
  font-size: .9rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition);
}

.card-link:hover { gap: 10px; color: var(--primary-light); }

/* ============================================================
   GALLERY
   ============================================================ */
.section-gallery {
  padding: 96px 0;
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 16px;
}

.gallery-item-tall { grid-row: 1 / 3; }

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--primary);
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(92,15,15,.75) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.gallery-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 4px;
}

.gallery-overlay p { font-size: .85rem; color: rgba(255,255,255,.85); }

.gallery-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.stars { color: var(--gold); font-size: 1.1rem; display: flex; gap: 2px; }

.rating-score {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

.rating-count { font-size: .9rem; color: var(--text-muted); }

/* ============================================================
   CAGAR BUDAYA LIST
   ============================================================ */
.section-cagar {
  padding: 96px 0;
  background: var(--brown-light);
}

.cagar-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cagar-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border-left: 4px solid transparent;
}

.cagar-img {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary);
}
.cagar-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.cagar-item:hover .cagar-img img { transform: scale(1.08); }

.cagar-item:hover {
  border-left-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.cagar-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(139,26,26,.15);
  min-width: 48px;
  line-height: 1;
}

.cagar-info { flex: 1; }

.cagar-info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.cagar-info p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.cagar-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cagar-meta span {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cagar-meta .fa-map-marker-alt { color: var(--primary); }
.cagar-meta .fa-tag { color: var(--gold); }

.cagar-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(139,26,26,.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.cagar-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}

/* ============================================================
   KOMUNITAS
   ============================================================ */
.section-komunitas {
  padding: 96px 0;
  background: var(--cream);
}

.komunitas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.komunitas-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  overflow: hidden;
}

.komunitas-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* Image header */
.komunitas-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.komunitas-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.komunitas-card:hover .komunitas-card-img img { transform: scale(1.07); }

/* Icon separator — sits between image and text, centered */
.komunitas-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(139,26,26,.25);
  /* pull up to overlap bottom of image */
  margin: -26px auto 0;
  position: relative;
  z-index: 1;
  transition: transform var(--transition), background var(--transition);
}
.komunitas-card:hover .komunitas-icon {
  transform: scale(1.12);
  background: var(--primary-light);
}

/* Content below icon */
.komunitas-card-body {
  padding: 14px 20px 24px;
  text-align: center;
}

.komunitas-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.komunitas-card p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.komunitas-count {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(139,26,26,.08);
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   TOKOH
   ============================================================ */
.section-tokoh {
  padding: 96px 0;
  background: var(--brown-light);
}

.tokoh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tokoh-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.tokoh-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.tokoh-avatar {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  overflow: hidden;
}

.tokoh-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.tokoh-avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(201,168,76,.4);
}

.tokoh-info { padding: 24px; flex: 1; }

.tokoh-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.tokoh-bidang {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .07em;
  display: block;
  margin-bottom: 12px;
}

.tokoh-info p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   BERITA
   ============================================================ */
.section-berita {
  padding: 96px 0;
  background: var(--cream);
}

.berita-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.berita-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.berita-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.berita-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--primary);
}

.berita-featured .berita-img { aspect-ratio: 16/8; }

.berita-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.berita-card:hover .berita-img img { transform: scale(1.05); }

.berita-category {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--primary-dark);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.berita-content { padding: 20px; }

.berita-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.berita-meta span {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.berita-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.berita-featured .berita-content h3 { font-size: 1.2rem; }

.berita-content p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

/* ============================================================
   PETA
   ============================================================ */
.section-peta {
  padding: 96px 0;
  background: var(--brown-light);
}

.peta-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.peta-placeholder {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--white);
}

.peta-placeholder > i {
  font-size: 5rem;
  color: rgba(201,168,76,.4);
}

.peta-placeholder > p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.peta-placeholder > span {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  padding: 4px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
}

.peta-legend {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-dark);
}

.legend-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-situs { background: var(--gold); }
.dot-komunitas { background: #4CAF50; }
.dot-event { background: #2196F3; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.section-cta {
  padding: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #A0220F 100%);
  position: relative;
  overflow: hidden;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 80px 24px;
}

.cta-content { flex: 1; max-width: 600px; }

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-content p {
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.cta-decoration {
  position: relative;
  flex-shrink: 0;
  width: 180px; height: 180px;
}

.cta-deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,.25);
}

.c1 { width: 180px; height: 180px; top: 0; left: 0; }
.c2 { width: 120px; height: 120px; top: 30px; left: 30px; }

.cta-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  color: rgba(201,168,76,.5);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--text-dark);
  padding: 72px 0 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand-sub {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col > p {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}

.footer-contact li .fas {
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 48px;
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-inner > span {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--gold); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80%       { transform: translateX(-50%) translateY(18px); opacity: 0; }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,168,76,.5); }
  70%  { box-shadow: 0 0 0 16px rgba(201,168,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.12); }
  .stat-item:nth-child(4) { border-right: none; }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-wide { grid-column: 1 / 3; }

  .komunitas-grid { grid-template-columns: repeat(2, 1fr); }
  .tokoh-grid { grid-template-columns: repeat(2, 1fr); }
  .berita-grid { grid-template-columns: 1fr 1fr; }
  .berita-featured { grid-column: 1 / 3; }

  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -280px;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    background: var(--cream);
    padding: 80px 24px 32px;
    gap: 4px;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    transition: right var(--transition);
    z-index: 999;
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    color: var(--text-mid);
    width: 100%;
    font-size: 1rem;
    padding: 10px 12px;
  }

  .nav-hamburger { display: flex; }

  /* Dropdown mobile */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-btn { color: var(--text-mid); width: 100%; font-size: 1rem; padding: 10px 12px; justify-content: space-between; }
  .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: rgba(139,26,26,.05); border-radius: var(--radius-sm); padding: 4px 0 4px 12px; margin-top: 4px; display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; flex-direction: column; }
  .nav-dropdown.open .nav-dropdown-btn i { transform: rotate(180deg); }

  .hero-content { max-width: 100%; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .cards-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 220px 220px;
  }
  .gallery-item-tall { grid-row: auto; }

  .komunitas-grid { grid-template-columns: 1fr 1fr; }
  .tokoh-grid { grid-template-columns: 1fr; }

  .berita-grid { grid-template-columns: 1fr; }
  .berita-featured { grid-column: auto; }

  .ctar-inner { flex-direction: column; }
  .cta-decoration { display: none; }

  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .cagar-item { padding: 16px; gap: 12px; }
  .cagar-img  { width: 68px; height: 68px; }
  .cagar-number { font-size: 1.4rem; min-width: 32px; }

  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .komunitas-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; }
}
