@import url('jl-update-base.css');

/* ============================================================
   HALAMAN INFO EVENT & DESTINASI (COMPACT PREMIUM UI)
   ============================================================ */
.event-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 15px;
  background: #f8fafc;
}

.section-title {
  text-align: center;
  color: var(--primary);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.events-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 0;
}

.event-card, .blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px -2px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.event-card:hover, .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -4px rgba(0, 74, 173, 0.12);
}

.event-img, .blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #f1f5f9;
}

.event-card-content, .blog-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-card-content h3, .blog-card-content h3 {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.4;
}

.event-date {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.event-desc {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.primary-button {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.primary-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 74, 173, 0.2);
}

.events-fallback {
  text-align: center;
  padding: 40px;
  color: #64748b;
  font-size: 1rem;
}

/* For Blog/Tips Page (Optional) */
.blog-hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 12px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}
.blog-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

/* =========================================================
   SINGLE EVENT PAGE STYLING (event.html)
   ========================================================= */
.event-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px -2px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-top: -60px;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
  border: 1px solid #e2e8f0;
}

.event-banner {
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: #f1f5f9;
}

#event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-details {
  padding: 35px 40px;
}

#event-title {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.event-meta {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #cbd5e1;
  display: flex;
  gap: 15px;
}
.event-meta i { color: var(--accent); }

#event-description {
  color: #334155;
  font-size: 1rem;
  line-height: 1.7;
}

#event-description p { margin-bottom: 15px; }
#event-description ul { margin-bottom: 15px; padding-left: 20px; }
#event-description li { margin-bottom: 8px; }

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .event-list { padding: 30px 15px; }
  .section-title { font-size: 1.6rem; }
  .events-grid { grid-template-columns: 1fr; gap: 20px; }
  .event-banner { height: 200px; }
  .event-details { padding: 25px 20px; }
  #event-title { font-size: 1.4rem; }
  .event-content { margin-top: -30px; }
  .primary-button { width: 100%; }
}
