/* ============================================
   ACTIVITIES PAGE STYLES
   ============================================ */

.activities-page {
  padding: 140px 0 60px;
  min-height: 100vh;
}

/* ============================================
   SECTION TITLE - PARAGRAF LEBAR
   ============================================ */
.activities-page .section-title {
  max-width: 100%;
  padding: 0 20px;
  margin-bottom: 40px;
}

.activities-page .section-title h1 {
  font-size: 2.8rem;
  color: #0c4a6e;
  margin-bottom: 10px;
}

.activities-page .section-title p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.8;
  padding: 0 20px;
}

/* ============================================
   ACTIVITIES FILTER
   ============================================ */
.activities-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 22px;
  border: 2px solid #e2e8f0;
  border-radius: 30px;
  background: #ffffff;
  color: #64748b;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
}

.filter-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

/* ============================================
   ACTIVITIES GRID
   ============================================ */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.activity-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   ACTIVITY IMAGE
   ============================================ */
.activity-image {
  position: relative;
  height: 200px;
  background: #e2e8f0;
  overflow: hidden;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-image .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: #94a3b8;
  font-size: 3rem;
}

.activity-date {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ============================================
   CATEGORY BADGE - WARNA PER KATEGORI
   ============================================ */
.category-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

/* Warna untuk kategori bawaan */
.category-badge.recruitment {
  background: #3b82f6;
}
.category-badge.event {
  background: #f59e0b;
}
.category-badge.achievement {
  background: #10b981;
}
.category-badge.social {
  background: #ec4899;
}

/* Warna tambahan untuk custom category (random) */
.category-badge.color-1 {
  background: #8b5cf6;
} /* Ungu */
.category-badge.color-2 {
  background: #06b6d4;
} /* Cyan */
.category-badge.color-3 {
  background: #f97316;
} /* Orange */
.category-badge.color-4 {
  background: #14b8a6;
} /* Teal */
.category-badge.color-5 {
  background: #6366f1;
} /* Indigo */
.category-badge.color-6 {
  background: #d946ef;
} /* Fuchsia */
.category-badge.color-7 {
  background: #22c55e;
} /* Hijau */
.category-badge.color-8 {
  background: #eab308;
} /* Kuning */
.category-badge.color-9 {
  background: #ef4444;
} /* Merah */
.category-badge.color-10 {
  background: #8b5cf6;
} /* Ungu */
.category-badge.color-11 {
  background: #0ea5e9;
} /* Sky Blue */
.category-badge.color-12 {
  background: #84cc16;
} /* Lime */
.category-badge.color-13 {
  background: #f43f5e;
} /* Rose */
.category-badge.color-14 {
  background: #8b5cf6;
} /* Violet */
.category-badge.color-15 {
  background: #06b6d4;
} /* Cyan */

/* Fallback jika tidak ada warna */
.category-badge.default {
  background: #64748b;
}

/* ============================================
   ACTIVITY CONTENT
   ============================================ */
.activity-content {
  padding: 18px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-content h3 {
  font-size: 1.1rem;
  color: #0c4a6e;
  margin-bottom: 8px;
}

.activity-content p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
  text-align: justify;
  text-justify: inter-word;
}

.activity-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.activity-stats span {
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.activity-stats i {
  color: #0284c7;
}

.btn-outline-small {
  display: inline-block;
  padding: 6px 18px;
  border: 1.5px solid #0284c7;
  color: #0284c7;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
  text-align: center;
  align-self: flex-start;
}

.btn-outline-small:hover {
  background: #0284c7;
  color: #fff;
}

/* ============================================
   LOAD MORE
   ============================================ */
.load-more {
  text-align: center;
  margin-top: 40px;
}

.load-more .btn-outline {
  padding: 12px 40px;
  border: 2px solid #0c4a6e;
  color: #0c4a6e;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more .btn-outline:hover {
  background: #0c4a6e;
  color: #fff;
}

.load-more .btn-outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   LOADING & NO DATA
   ============================================ */
.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: #94a3b8;
}

.loading-spinner i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
  color: #0284c7;
}

.no-data {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: #94a3b8;
}

.no-data i {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
  color: #cbd5e1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .activities-page .section-title p {
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .activities-page {
    padding: 120px 0 40px;
  }

  .activities-page .section-title h1 {
    font-size: 2rem;
  }

  .activities-page .section-title p {
    font-size: 0.95rem;
    padding: 0 10px;
    max-width: 100%;
  }

  .activities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .activity-image {
    height: 180px;
  }

  .filter-btn {
    padding: 6px 16px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .activities-page .section-title h1 {
    font-size: 1.6rem;
  }

  .activities-page .section-title p {
    font-size: 0.88rem;
    padding: 0 5px;
  }

  .activity-image {
    height: 160px;
  }

  .activity-content {
    padding: 14px 16px 18px;
  }

  .activity-content h3 {
    font-size: 0.95rem;
  }

  .activity-content p {
    font-size: 0.82rem;
  }

  .btn-outline-small {
    font-size: 0.7rem;
    padding: 5px 14px;
  }
}
