/* ===============================
   EVENT LIST
================================ */

.event-archive {
  margin: 0 auto;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Item */
.event-item {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 32px;
}

.event-link {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  text-decoration: none;
  color: inherit;
}

/* Thumbnail */
.event-thumb {
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  overflow: hidden;
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content */
.event-content {
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
}

.event-date {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.event-excerpt {
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
}

/* Hover */
.event-link:hover .event-title {
  text-decoration: underline;
}

/* ===============================
   Pagination
================================ */

.event-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.event-pagination a,
.event-pagination span {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  color: #111827;
  text-decoration: none;
}

.event-pagination .current {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.event-pagination a:hover {
  background: #111827;
  color: #fff;
}

/* ===============================
   Mobile
================================ */

@media (max-width: 576px) {
  .event-link {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .event-thumb {
    max-width: 100%;
  }

  .event-title {
    font-size: 18px;
  }

  .event-excerpt {
    font-size: 14px;
  }
}

/* ===============================
   EVENT SINGLE PAGE
================================ */

.event-single {
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) 16px;
}

/* Header */
.event-single-header {
  border-bottom: 2px solid var(--gray-2);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.event-single-title {
  font-size: clamp(22px, 4vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}

.event-single-date {
  font-size: 14px;
  color: var(--gray);
}

/* Content */
.event-single-body {
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.9;
}

.event-single-body p {
  margin-bottom: 1.6em;
}

.event-single-body img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
}

.event-single-nav {
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.event-single-nav-item {
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease;
}

.event-single-nav-item:hover {
  background: #f9fafb;
}

.event-single-nav-item.prev {
  border-right: 1px solid #e5e7eb;
}

.event-single-nav-label {
  display: inline-block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}

.event-single-nav-title {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

/* ===============================
   Mobile
================================ */

@media (max-width: 768px) {
  .event-single-nav {
    grid-template-columns: 1fr;
  }

  .event-single-nav-item.prev {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
}
