body {
  font-family: 'Inter', sans-serif;
  background-color: #f4f8ff !important;
  color: #000000;
  margin: 0;
  padding: 0;
}

/* Grid Wrapper */
.training-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem auto 5rem; 
  padding: 0 1rem;
  max-width: 1200px;
  padding: 0 1rem 8rem;
}

.event-empty {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  text-align: left;
  min-height: 50vh;
  width: 100%;
  color: #6b7280;
}

footer {
  margin-top: 3rem;
}

.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .training-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 640px) {
  .training-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.75rem;
  }
  .training-date-location {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .training-date-location span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

/* Card */
article {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

article:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

article img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Konten */
.card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Judul Produk */
.training-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: #111827;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  min-height: 2.8rem;
}

 #scrollToTopBtn { opacity: 1 !important; pointer-events: auto !important; }

@media (min-width: 1024px) {
  .training-title {
    font-size: 0.95rem;
  }
}

/* Harga */
.training-price {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1f2937;
  margin-bottom: 0.3rem;
}

/* Lokasi */
.training-location {
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  justify-content: flex-end;
}

.training-location i {
  color: #9ca3af;
  font-size: 0.8rem;
}

article:hover .training-title {
  color: #f97316; 
  transition: color 0.3s ease;
}

.training-grid {
  margin: 2rem auto;
  padding: 0 1rem 8rem; 
  max-width: 1200px;
}

#eventGrid:empty::before {
  content: "No event found.";
  color: #9ca3af;
  display: block;
  text-align: left;
  padding-left: 0.5rem;
}

#eventGrid:empty {
  min-height: 200px;
}