/* ==========================================================
   GLOBAL STYLES
========================================================== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4;
}

/* ==========================================================
   NAVBAR
========================================================== */
.shadow-nav {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.shadow-nav.scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.navbar-space {
   height: 50px; /* sesuaikan tinggi navbar */
}

/* ==========================================================
   BUTTONS
========================================================== */
.btn-warning {
  background-color: #f9d65c !important;
  border: none !important;
  color: #2C3E50 !important;
  transition: 0.3s ease;
}

.btn-warning:hover {
  background-color: #f1b02a !important;
  color: #fff !important;
}

/* Button Orange (SATU KALI SAJA) */
.btn-orange {
  background-color: #ff8a34;
  color: #fff;
  border-radius: 50px;
  padding: 10px 18px;
  transition: 0.3s ease;
}

.btn-orange:hover {
  background-color: #e6731f;
  color: #fff;
}

/* ==========================================================
   HERO SECTION (GLOBAL)
========================================================== */
.hero-section {
  background: linear-gradient(135deg, #2C3E50, #34495E);
  padding: 75px 0 50px;
  color: #fff;
  overflow: hidden;
}

.hero-section h1 {
  font-size: 2.4rem;
  line-height: 1.4;
}

.hero-section p {
  font-size: 1.1rem;
  color: #e0e0e0;
}

.hero-img {
  animation: floatImg 4s ease-in-out infinite;
}

@keyframes floatImg {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Search bar hero */
.search-bar input {
  border-radius: 50px;
  padding: 12px 20px;
  border: none;
}

.search-bar .btn {
  border-radius: 50px;
  padding: 12px 25px;
}

/* ==========================================================
   HERO ACARA (KHUSUS)
========================================================== */
.hero-acara {
  background: linear-gradient(135deg, #2c4f6e, #355f7d);
  padding: 100px 0;
}

.search-acara {
  max-width: 520px;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
}

.search-acara input {
  border: none;
  padding: 14px 20px;
}

.search-acara input:focus {
  box-shadow: none;
}

.btn-search {
  background: #3b82f6;
  color: #fff;
  padding: 0 22px;
}

.btn-search:hover {
  background: #2563eb;
}

/* ==========================================================
   SECTION & KATEGORI
========================================================== */
.section-title {
  font-size: 32px;
  font-weight: 600;
  margin: 30px 0 30px;
  text-align: center;
}

.category-icon {
  font-size: 48px;
  color: #2C3E50;
}

/* ==========================================================
   CARD & HOVER
========================================================== */
.card-hover,
.acara-card {
  transition: all 0.3s ease;
}

.card-hover:hover,
.acara-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Card Acara Image */
.acara-img-wrapper {
  height: 200px;
  overflow: hidden;
}

.acara-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text Clamp (standard) */
.acara-title {
  overflow: hidden;
  line-height: 1.4;
  max-height: calc(1.4em * 2);
}

.acara-desc,
.desc-clamp {
  overflow: hidden;
  line-height: 1.6;
  max-height: calc(1.6em * 3);
}

/* ==========================================================
   BADGE
========================================================== */
.badge {
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s ease;
}

.badge.populer {
  border: 2px solid #e74c3c;
  color: #e74c3c;
}

.badge.trending {
  border: 2px solid #27ae60;
  color: #27ae60;
}

.badge:hover {
  color: #fff;
}

/* ==========================================================
   SIDEBAR & FOOTER
========================================================== */
.list-group-item {
  border-radius: 8px;
  transition: 0.3s;
}

.list-group-item:hover {
  background-color: #f8f9fa;
  color: #ff9800;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 991px) {
  .hero-section {
    text-align: center;
  }

  .hero-section h1 {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .section-title {
    font-size: 26px;
  }

  .badge {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* =========================
   DETAIL BERITA MODERN
========================= */

.news-detail {
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Judul */
.news-title {
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: #1f2937;
  max-width: 920px;
  margin: 0 auto;
}

/* Meta */
.news-meta {
  font-size: 14px;
  color: #6b7280;
}

.news-meta i {
  margin-right: 4px;
}

/* Gambar */
.news-image img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

/* Isi */
.news-content {
  font-size: 16.5px;
  line-height: 1.85;
  color: #374151;
}

.news-content p {
  margin-bottom: 1.2rem;
}

/* Komentar */
.comments-section h3 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.comments-section textarea {
  border-radius: 14px;
  resize: none;
}

.comments-list .comment {
  background: #f9fafb;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 12px;
}

/* Tombol back */
.btn-back {
  padding: 10px 28px;
  border: 1px solid #d1d5db;
  color: #374151;
  transition: all .25s ease;
}

.btn-back:hover {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
