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

body {
  font-family: 'Inter', sans-serif;
  background: #f5f6f8;
  color: #222;
}

/* ZOOM MODAL - FIXED */
#globalImageModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#globalImageModal.modal-show {
  opacity: 1;
}

#zoomModalContent {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  width: 420px;
  height: 320px;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  animation: zoomIn 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#zoomClose {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#zoomClose:hover {
  background: rgba(220,53,69,0.2);
  color: #dc3545;
}

#zoomImg, #zoomVideo {
  width: 360px;
  height: 240px;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

#zoomVideo {
  width: 100%;
  height: auto;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 1000;
  padding: 12px 20px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  align-items: center;
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 15px;
}

.nav-logo {
  height: 40px;
}

/* STATS GRID */
.stats-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0 5px;
}

.stat-card {
  flex: 1;
  background: #fff;
  padding: 18px 15px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e5e5e5;
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 4px;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
}

.stat-breakdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 11px;
  flex-wrap: wrap;
}

.stat-text { color: #28a745; }
.stat-media { color: #007bff; }

/* HERO - Rasio 16:4 (4:1) sesuai permintaan */
.hero {
  width: 100vw; /* Full lebar layar */
  height: 0; /* Tinggi diatur melalui padding-top untuk rasio */
  padding-top: 25%; /* 100% / 4 = 25% → rasio 16:4 (4:1) */
  border-radius: 0; /* Hapus border radius agar full layar */
  overflow: hidden;
  margin-bottom: 20px;
  background: #f0f0f0;
  position: relative;
  margin-left: calc(-50vw + 50%); /* Hapus margin container agar menempel ke pinggir layar */
}

/* HERO SLIDER */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
}

.hero-item.active {
  opacity: 1;
}

.hero-item img,
.hero-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* HERO CAPTION - Hanya satu versi, tidak ada duplikasi */
.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 10px 0;
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
}

.hero-caption-text {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  transform: translateX(100%);
}

/* Animasi dihandle oleh JS transition untuk reliability */

.loading-skeleton {
  position: relative;
  min-height: 200px;
}

.hero-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #666;
}

/* MAIN LAYOUT */
.main-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

/* Pastikan konten lain (stats, main content) tetap di dalam container, hanya hero yang full width */
.stats-grid, .main-content, .pagination {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 20px;
  box-sizing: border-box;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.text-column {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 15px;
  max-height: 800px;
  overflow-y: auto;
}

.text-column-header {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

/* NEWS CARD */
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
  border: 1px solid #eee;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.card-media {
  height: 150px;
  overflow: hidden;
}

.card-media-img, .zoomable-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 6px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  /* Hapus min-height agar tinggi menyesuaikan isi teks */
}

.card-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
}

.card-meta {
  font-size: 12px;
  color: #888;
  position: absolute;
  bottom: 8px;
  right: 12px;
  text-align: right;
  width: auto;
  white-space: nowrap;
}

/* TEXT CARDS */
.text-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 12px;
}

.text-card-content {
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.text-card-meta {
  font-size: 0.75rem;
  color: #888;
  margin-top: 8px;
  text-align: right;
}

.waktu-kirim {
  font-size: 0.7rem;
  color: #999;
  display: inline;
}


.news-card-meta {
  position: absolute !important;
  bottom: 4px !important;
  right: 10px !important;
  text-align: right !important;
  width: auto !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  color: #888 !important;
  line-height: 1.2 !important;
}

/* READ MORE */
.read-more {
  font-size: 12px;
  color: #007bff;
  font-weight: 600;
  cursor: pointer;
  margin-left: 5px;
}

.read-more:hover {
  color: #0056b3;
  text-decoration: underline;
}

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

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .hero {
    height: 220px;
  }
  .stats-grid {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    gap: 8px;
  }
  .stat-card {
    padding: 14px 8px;
    min-width: 80px;
  }
  .stat-value {
    font-size: 20px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-breakdown {
    font-size: 10px;
    gap: 6px;
  }
  .stat-icon {
    font-size: 20px;
  }
}