/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --primary:       #0ea5e9;
  --primary-hover: #0284c7;
  --primary-light: #f0f9ff;
  --dark:          #0f172a;
  --dark-mid:      #1e293b;
  --surface:       #ffffff;
  --bg:            #f8fafc;
  --text-main:     #334155;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:     0 20px 40px rgba(0,0,0,0.12);
  --radius:        16px;
  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

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

.container { width: 90%; max-width: 1200px; margin: auto; }
.section    { padding: 100px 0; }

/* ============================================================
   PAGE LOADER (SKELETON)
   ============================================================ */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
  overflow: hidden;
}

#page-loader.loaded {
  opacity: 0;
  pointer-events: none;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.sk-block {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.sk-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  border-bottom: 1px solid var(--border);
}
.sk-brand  { width: 160px; height: 32px; }
.sk-links  { width: 280px; height: 24px; }

.sk-hero {
  height: calc(100vh - 73px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 5%;
  gap: 20px;
  background: #0f172a;
}
.sk-hero-text { width: min(600px, 70%); height: 56px; opacity: 0.3; border-radius: 12px; }
.sk-hero-sub  { width: min(420px, 50%); height: 28px; opacity: 0.2; border-radius: 8px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), border-color var(--transition), padding var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  border-bottom-color: transparent;
  padding: 14px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
}
.brand-subtitle {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: 2px;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.btn-outline {
  border: 1.5px solid var(--border) !important;
  padding: 8px 22px !important;
  border-radius: 50px !important;
  transition: all var(--transition) !important;
}
.btn-outline::after { display: none !important; }
.btn-outline:hover {
  background: var(--dark) !important;
  color: white !important;
  border-color: var(--dark) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.active { opacity: 1; }

/* Mobile slide-in menu */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 80vw);
  height: 100vh;
  background: var(--surface);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 80px 30px 40px;
  gap: 8px;
  box-shadow: var(--shadow-lg);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.nav-mobile a:hover { background: var(--primary-light); color: var(--primary); }
.nav-mobile .btn-outline-mobile {
  margin-top: 16px;
  text-align: center;
  background: var(--primary);
  color: white !important;
  border-radius: 50px !important;
}
.nav-mobile .btn-outline-mobile:hover { background: var(--primary-hover) !important; }

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

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; z-index: 2; }

/* YouTube slides don't use parallax */
.slide.has-youtube { background-attachment: scroll; }

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(14,165,233,0.18) 100%);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 3;
  color: white;
  max-width: 780px;
  padding: 0 5%;
  text-align: center;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.9s ease 0.3s, opacity 0.9s ease 0.3s;
}
.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: pulse-badge 2.5s infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14,165,233,0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(14,165,233,0); }
}

.slide-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  color: white;
  margin-bottom: 22px;
  letter-spacing: -1px;
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-content p {
  font-size: 1rem;
  opacity: 0.88;
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.slide-cta:hover {
  background: transparent;
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: 100px;
  right: 5%;
  z-index: 10;
  display: flex;
  gap: 12px;
}

.slider-btn {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.slider-btn:hover { background: var(--primary); border-color: var(--primary); }

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* YouTube bg */
.youtube-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.youtube-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100%;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: none;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}
.section-accent {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 18px auto 0;
}

/* ============================================================
   SECTION LAYANAN
   ============================================================ */
#layanan {
  background: var(--bg);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.elegant-card {
  background: var(--surface);
  padding: 38px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-main);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.elegant-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
  border-radius: 0 2px 2px 0;
}
.elegant-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(14,165,233,0.12);
  border-color: transparent;
}
.elegant-card:hover::before { transform: scaleY(1); }

.icon-wrapper {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition);
}

.elegant-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.elegant-card p  { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   SECTION DARK (dipakai section Berita & Galeri)
   ============================================================ */
.section-dark {
  background: var(--dark);
}
.section-dark .section-header h2 { color: white; }
.section-dark .section-header p  { color: #94a3b8; }

/* Pemisah halus antar dua section gelap yang berurutan */
.section-dark + .section-dark {
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ============================================================
   SECTION GALERI
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.gallery-item,
.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  background: var(--dark-mid);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: all var(--transition);
}
.gallery-card { text-decoration: none; }

.gallery-item.reveal.revealed:hover,
.gallery-item:hover,
.gallery-card.reveal.revealed:hover,
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}
.gallery-item img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img,
.gallery-card:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
}
.gallery-item:hover .gallery-caption,
.gallery-card:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-count {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #cbd5e1;
}
.gallery-count i { font-size: 0.75rem; }

/* Detail galeri */
.gallery-detail-back { margin-bottom: 32px; }
.gallery-detail-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.gallery-detail-back a:hover { color: var(--primary); }

/* Caption tetap terlihat pada perangkat tanpa hover */
@media (hover: none) {
  .gallery-caption { opacity: 1; transform: translateY(0); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.9);
  padding: 60px 70px;
}
.lightbox.active { display: flex; }

.lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.lightbox-caption {
  color: #e2e8f0;
  font-size: 0.95rem;
  text-align: center;
}
.lightbox-caption:empty { display: none; }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.lightbox-close:hover,
.lightbox-nav:hover { background: var(--primary); transform: scale(1.06); }

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.06); }

/* ============================================================
   BERITA (halaman daftar & detail)
   ============================================================ */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.news-list-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.news-list-card.reveal.revealed:hover,
.news-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  border-color: var(--primary-light);
}

.news-list-thumb {
  position: relative;
  flex: none;
  width: 100%;
  height: 190px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-list-card:hover .news-list-thumb img { transform: scale(1.06); }

.news-list-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #cbd5e1;
  font-size: 1.4rem;
}

.news-list-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  background: rgba(15,23,42,0.35);
  transition: background var(--transition);
}
.news-list-play i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dc2626;
  padding-left: 3px;
}
.news-list-card:hover .news-list-play { background: rgba(15,23,42,0.18); }

.news-list-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.news-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.news-list-category {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  background: var(--primary);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.news-list-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.news-list-body h3 {
  color: var(--dark);
  font-size: 1.02rem;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list-body p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0;
}
.news-list-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
}
.news-list-card:hover .news-list-body h3 { color: var(--primary-hover); }
.news-list-more i { transition: transform var(--transition); }
.news-list-card:hover .news-list-more i { transform: translateX(4px); }

/* Tautan "lihat semua" di bawah section */
.section-footer {
  margin-top: 44px;
  text-align: center;
}
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  border-radius: 50px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(14,165,233,0.28);
}
.section-more:hover {
  background: var(--primary-hover, var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14,165,233,0.36);
}
.section-more i { transition: transform var(--transition); }
.section-more:hover i { transform: translateX(4px); }

/* ============================================================
   DETAIL BERITA (tema terang)
   ============================================================ */

/* Hero */
.news-hero {
  position: relative;
  overflow: hidden;
  color: white;
  padding: 76px 0 68px;
  background: var(--dark);
}
.news-hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(0.85);
}
.news-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(15,23,42,0.94) 0%, rgba(15,23,42,0.78) 45%, rgba(14,165,233,0.42) 100%);
}
.news-hero-inner { position: relative; z-index: 2; }

.news-hero-category {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 50px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(14,165,233,0.35);
}

.news-hero-title {
  color: white;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.8px;
  max-width: 900px;
  margin-bottom: 26px;
  text-wrap: balance;
}

.news-hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.85rem;
  color: #cbd5e1;
}
.news-hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.news-hero-meta i { color: var(--primary-light); font-size: 0.85rem; }

/* Kerangka artikel */
.news-detail { background: var(--bg); padding-top: 56px; }
.news-detail-container { max-width: 820px; }

.news-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  font-size: 0.82rem;
  color: #94a3b8;
}
.news-detail-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--transition);
}
.news-detail-breadcrumb a:hover { color: white; }
.news-detail-breadcrumb i { font-size: 0.6rem; color: #64748b; }
.news-detail-breadcrumb .current { color: var(--primary); }

.news-detail-article {
  background: var(--surface);
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.06);
}

/* Video */
.news-detail-video {
  margin: 0 0 34px;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.news-detail-video h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.news-detail-video h2 i { color: #dc2626; font-size: 1.2rem; }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 26px rgba(15,23,42,0.14);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.news-detail-video-link { margin: 14px 0 0; font-size: 0.82rem; }
.news-detail-video-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.news-detail-video-link a:hover { color: var(--primary); }

/* Isi artikel */
.news-detail-content {
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--text-main);
}
.news-detail-content > *:first-child { margin-top: 0; }
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
  color: var(--dark);
  line-height: 1.35;
  margin: 34px 0 14px;
  font-weight: 700;
}
.news-detail-content h2 { font-size: 1.4rem; }
.news-detail-content h3 { font-size: 1.18rem; }
.news-detail-content h4 { font-size: 1.04rem; }
.news-detail-content p { margin-bottom: 20px; }
.news-detail-content a { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.news-detail-content a:hover { color: var(--primary); }
.news-detail-content ul,
.news-detail-content ol { margin: 0 0 20px 24px; }
.news-detail-content li { margin-bottom: 8px; }
.news-detail-content img,
.news-detail-content iframe {
  max-width: 100%;
  border-radius: 14px;
  margin: 18px 0;
  box-shadow: 0 12px 30px rgba(15,23,42,0.1);
}
.news-detail-content blockquote {
  margin: 26px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 14px 14px 0;
  color: var(--text-main);
  font-style: italic;
}
.news-detail-content blockquote p:last-child { margin-bottom: 0; }
.news-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.92rem;
  overflow: hidden;
  border-radius: 12px;
}
.news-detail-content th,
.news-detail-content td {
  border: 1px solid var(--border);
  padding: 11px 14px;
  text-align: left;
}
.news-detail-content th { background: var(--bg); color: var(--dark); font-weight: 600; }

/* Footer artikel */
.news-detail-footer {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.news-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  color: var(--text-main) !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}
.news-detail-back:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  transform: translateX(-4px);
}

/* Berita lainnya */
.news-related { margin-top: 64px; }
.news-related-header { margin-bottom: 30px; }

/* Progress membaca */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1040;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: opacity var(--transition);
}
.reading-progress.is-visible { opacity: 1; }

@media (max-width: 768px) {
  .news-hero { padding: 52px 0 46px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-elegant {
  background: var(--dark);
  color: #cbd5e1;
  padding: 80px 0 0;
  border-top: 3px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 30px;
  padding-bottom: 60px;
}

.footer-brand .brand-logo {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.footer-brand .brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}
.footer-brand .brand-subtitle {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 4px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #94a3b8;
  max-width: 360px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: white; }

.footer-elegant h4 { color: white; font-size: 1rem; margin-bottom: 22px; font-weight: 600; }
.footer-links ul, .footer-contact ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact { min-width: 0; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; color: #94a3b8; font-size: 0.9rem; }
.footer-contact li p { margin: 0; color: inherit; font-size: inherit; line-height: 1.6; }
.footer-contact i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: #94a3b8; text-decoration: none; transition: color var(--transition); }
.footer-contact a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #475569;
}

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(14,165,233,0.4);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--primary-hover); transform: translateY(-3px); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 500ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

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

  .brand-name { font-size: 1.15rem; }
  .brand-subtitle { font-size: 0.62rem; }

  .hero-slider { height: 80vh; }
  .slide-content h1 { letter-spacing: -1px; }
  .slide-cta { padding: 12px 24px; }
  .slider-controls { bottom: 80px; }

  .section { padding: 60px 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand p { max-width: 100%; }

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

@media (max-width: 480px) {
  .slide-content h1 { letter-spacing: -0.5px; }
  .news-list-thumb { height: 160px; }
  .link-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
