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

.activities-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 30px;
}

/* Header */
.activities-header {
  margin-bottom: 48px;
  text-align: start;
}

.activities-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.activities-header span {
  font-size: 1rem;
  color: #666;
  max-width: 800px;
  display: inline-block;
  line-height: 1.5;
}

/* Activities Grid */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 40px;
}

/* Activity Card */
.activity-card {
  background: #eef0eda8;
  border: 1px solid #c7c7c7;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.activity-card:hover {
  transform: translateY(-3px);
}

/* Past activity card style */
.past-activity {
  opacity: 0.7;
  cursor: default;
}

.past-activity:hover {
  transform: none;
}

/* Activity image placeholder */
.activity-prev {
  width: 100%;
  height: 220px;
  background: #e9e9e9;
  background-image:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%);
  background-size: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

/* Admin menu (three dots) */
.activity-menu-trigger {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.486);
  color: white;
  width: 30px;
  height: 30px;
  font-size: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.activity-menu-trigger:hover {
  background: rgba(0, 0, 0, 0.8);
}

.activity-menu-dropdown {
  position: absolute;
  top: 35px;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 20;
  min-width: 100px;
}

.activity-menu-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  color: #333;
}

.activity-menu-dropdown button:hover {
  background: #f5f5f5;
}

.activity-menu-dropdown button:first-child {
  border-radius: 8px 8px 0 0;
}

.activity-menu-dropdown button:last-child {
  border-radius: 0 0 8px 8px;
}

/* Card content */
.activity-card .card-content {
  padding: 20px;
}

/* Badges */
.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.activity-badge {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.activity-badge.primary {
  background: #d5eed7;
  color: #2e7d32;
}

.activity-badge.closed {
  background: #9e9e9e;
  color: white;
}

/* Title */
.activity-card h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 20px 0px;
}

/* Description */
.activity-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta row (date & participants) */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.bottom-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 0.85rem;
}

.bottom-content i,
.bottom-content .material-symbols-rounded {
  font-size: 18px;
  color: #666;
}

.bottom-content .fa-regular {
  margin-bottom: 2px;
}

.bottom-content .material-symbols-rounded {
  font-size: 20px;
}

/* Search & Filter Bar (matching application_activity) */
.search-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #888888c0;
  border-radius: 25px;
  padding: 4px 18px;
  gap: 12px;
  flex: 1;
  max-width: 320px;
}

.search-bar i {
  color: #9ca3af;
}

.search-bar input {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  font-family: "Inter", sans-serif;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sort-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 25px;
  padding: 3px 16px;
}

.sort-bar label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  padding-top: 4px;
}

.custom-select {
  position: relative;
  display: inline-block;
}

.custom-select select {
  appearance: none;
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding-right: 24px;
  cursor: pointer;
  outline: none;
}

.custom-select i {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: #94a3b8;
}

/* Section headers */
.section-header {
  margin: 2rem 0 1rem;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* Add Activity Card */
.activity-card.add-activity-card {
  background: transparent;
  border: 2px dashed #70707086;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 424px;
  padding: 20px;
  transition: all 0.2s ease;
}

.activity-card.add-activity-card .add-activity-inner {
  text-align: center;
  color: #707070;
}

.activity-card.add-activity-card .add-activity-icon {
  font-size: 32px;
  color: #707070ab;
  display: block;
  margin-bottom: 24px;
  transition: all 0.3s ease-in;
}

.activity-card.add-activity-card .add-activity-guidetext {
  color: #70707086;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  transition: all 0.2s ease;
}

.activity-card.add-activity-card:hover {
  border: 2px dashed #2e7d32;
}


/* Responsive */
@media (max-width: 768px) {
  .activities-page {
    padding: 20px 16px;
  }

  .activities-header h1 {
    font-size: 1.8rem;
  }

  .activities-header span {
    font-size: 0.9rem;
  }

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

  .activity-prev {
    height: 180px;
  }

  .activity-card h3 {
    font-size: 1.2rem;
  }

  .search-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar {
    max-width: 100%;
  }

  .filter-actions {
    justify-content: space-between;
  }

  .sort-bar {
    flex: 1;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .activities-header h1 {
    font-size: 1.5rem;
  }

  .activity-card .card-content {
    padding: 16px;
  }

  .activity-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .meta-row {
    flex-direction: column;
    gap: 8px;
  }
}
