/* ================ 활동 =================*/
.activity-section {
  padding: 120px 60px;
}

.activity-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.activity-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

/* ⭐ 기본 버튼 상태 */
.activity-filter button {
  padding: 10px 18px;
  border: 1px solid #ddd;
  border-radius: 9px;
  background: white;
  color: black;
  /* ⭐ 추가 (글씨 안보이는 문제 해결) */
  cursor: pointer;
  transition: 0.2s;
}

/* ⭐ hover */
.activity-filter button:hover {
  background: #B22222;
  color: white;
  border-color: #B22222;
}

/* ⭐ 선택된 상태 */
.activity-filter button.active {
  background: #B22222;
  color: white;
  border-color: #B22222;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.activity-card {
  overflow: hidden;
  text-decoration: none;
  color: black;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: white;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.activity-card:hover {
  transform: translateY(-5px);
  border-color: #d2d2d2;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.activity-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.activity-card h3 {
  padding: 0 15px 15px;
  margin: 5px 0 0;
}

.activity-date {
  padding: 15px 15px 0;
  margin: 0;
  color: gray;
  font-size: 14px;
}

/* ============================================== */

/* ===== 상세 페이지 상단 ===== */
.detail-topbar {
  padding: 120px 60px 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid #ddd;
}

.back-link {
  color: #B22222;
  text-decoration: none;
  font-weight: bold;
}

.detail-topbar h1 {
  margin: 0;
  font-size: 32px;
}


/* ===== 활동 상세 ===== */
.activity-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.activity-detail img {
  width: auto;
  height: 300px;
  margin-bottom: 30px;
}

.activity-detail h1 {
  margin-bottom: 20px;
}

.activity-detail p {
  line-height: 1.7;
}


/* ===== 이전 / 다음 활동 버튼 ===== */
.detail-nav {
  max-width: 900px;
  margin: 40px auto 100px;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid #ddd;
}

.detail-nav-btn {
  display: block;
  padding: 18px 22px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: black;
  background: white;
  transition: 0.2s;
}

.detail-nav-btn:hover {
  border-color: #B22222;
  color: #B22222;
  transform: translateY(-3px);
}

.detail-nav-btn .nav-label {
  display: block;
  font-size: 14px;
  color: gray;
  margin-bottom: 6px;
}

.detail-nav-btn strong {
  font-size: 18px;
}

.next-activity {
  text-align: right;
}

.empty-message {
  grid-column: 1 / -1;
  text-align: center;
  color: gray;
  padding: 60px 0;
}