/* ============================================================
   Activity List Page — KSGCC Theme v5
   Navy: #1e3a5f  Red: #d63031  Gold: #e1a948
   Surface: #fff / #f5f7fa  Text: #2d3436
   ============================================================ */

/* === Page Hero Banner === */
.ksgcc-page-hero {
  position: relative;
  width: 100%;
  min-width: 1200px;
  height: 280px;
  background: linear-gradient(135deg, #1e3a5f 0%, #162d4a 60%, #1e3a5f 100%);
  overflow: hidden;
}
.ksgcc-page-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(214,48,49,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(225,169,72,0.06) 0%, transparent 50%);
}
.ksgcc-page-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
}
.ksgcc-page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 50px;
  background: #f5f7fa;
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}
.ksgcc-page-hero-content {
  position: relative;
  z-index: 2;
  width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  box-sizing: border-box;
}
.ksgcc-page-hero-en {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ksgcc-page-hero-title {
  font-size: 38px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 6px;
  margin: 0 0 16px;
}
.ksgcc-page-hero-line {
  width: 50px;
  height: 3px;
  background: #d63031;
  border-radius: 2px;
}

/* === Breadcrumb === */
.ksgcc-activity-page {
  width: 100%;
  min-width: 1200px;
  background: #f5f7fa;
  padding-top: 98px;
  padding-bottom: 60px;
}
.ksgcc-breadcrumb {
  width: 1200px;
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #b2bec3;
}
.ksgcc-breadcrumb a {
  color: #636e72;
  transition: color 0.2s;
}
.ksgcc-breadcrumb a:hover {
  color: #d63031;
}
.ksgcc-breadcrumb svg {
  margin: 0 8px;
  flex-shrink: 0;
}
.ksgcc-breadcrumb-current {
  color: #1e3a5f;
  font-weight: 600;
}

/* === Activity List === */
.ksgcc-activity-list {
  width: 1200px;
  margin: 0 auto;
}

/* === Activity Card === */
.ksgcc-activity-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.ksgcc-activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(30,58,95,0.12);
  border-color: transparent;
}

/* Card Image */
.ksgcc-activity-card-img {
  width: 340px;
  height: 227px;
  overflow: clip;
  position: relative;
}
.ksgcc-activity-card-img img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ksgcc-activity-card:hover .ksgcc-activity-card-img img {
  transform: scale(1.05);
}

/* Card Body */
.ksgcc-activity-card-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 28px 30px;
  position: relative;
}

/* Date Block */
.ksgcc-activity-card-date {
  flex-shrink: 0;
  text-align: center;
  margin-right: 24px;
}
.ksgcc-date-day {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #d63031;
  line-height: 1;
  margin-bottom: 4px;
}
.ksgcc-date-ym {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: #b2bec3;
  letter-spacing: 1px;
}

/* Card Info */
.ksgcc-activity-card-info {
  flex: 1;
  min-width: 0;
}
.ksgcc-activity-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #2d3436;
  margin: 0 0 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.ksgcc-activity-card:hover .ksgcc-activity-card-title {
  color: #1e3a5f;
}
.ksgcc-activity-card-desc {
  font-size: 14px;
  color: #636e72;
  line-height: 1.8;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ksgcc-activity-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.ksgcc-meta-item {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: #b2bec3;
  gap: 5px;
}
.ksgcc-meta-item svg {
  flex-shrink: 0;
}

/* Arrow */
.ksgcc-activity-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f5f7fa;
  color: #b2bec3;
  flex-shrink: 0;
  margin-left: 20px;
  align-self: center;
  transition: all 0.3s;
}
.ksgcc-activity-card:hover .ksgcc-activity-card-arrow {
  background: #d63031;
  color: #fff;
  transform: translateX(4px);
}

/* === Pagination === */
.ksgcc-pager-wrap {
  width: 1200px;
  margin: 40px auto 0;
}
.ksgcc-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ksgcc-pager-info {
  font-size: 14px;
  color: #636e72;
  margin-right: 16px;
}
.ksgcc-pager-current {
  color: #d63031;
  font-weight: 600;
}
.ksgcc-pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 14px;
  color: #2d3436;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s;
  cursor: pointer;
}
.ksgcc-pager-btn:hover {
  border-color: #d63031;
  color: #d63031;
}
.ksgcc-pager-btn.ksgcc-pager-disabled {
  color: #dfe6e9;
  cursor: not-allowed;
  pointer-events: none;
}
.ksgcc-pager-btn.ksgcc-pager-disabled:hover {
  border-color: #e9ecef;
  color: #dfe6e9;
}
.ksgcc-pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 14px;
  color: #2d3436;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s;
}
.ksgcc-pager-num:hover {
  border-color: #d63031;
  color: #d63031;
}
.ksgcc-pager-num.ksgcc-pager-active {
  background: #d63031;
  color: #fff;
  border-color: #d63031;
  font-weight: 600;
}

/* === Hide old elements === */
.bottom-mode { display: none !important; }
.bottomImg { display: none !important; }

/* === Fade-in Animation === */
@keyframes ksgccCardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.ksgcc-activity-card {
  animation: ksgccCardFadeIn 0.5s ease-out both;
}
.ksgcc-activity-card:nth-child(1) { animation-delay: 0s; }
.ksgcc-activity-card:nth-child(2) { animation-delay: 0.08s; }
.ksgcc-activity-card:nth-child(3) { animation-delay: 0.16s; }
.ksgcc-activity-card:nth-child(4) { animation-delay: 0.24s; }
.ksgcc-activity-card:nth-child(5) { animation-delay: 0.32s; }
.ksgcc-activity-card:nth-child(6) { animation-delay: 0.4s; }
.ksgcc-activity-card:nth-child(7) { animation-delay: 0.48s; }
.ksgcc-activity-card:nth-child(8) { animation-delay: 0.56s; }
.ksgcc-activity-card:nth-child(9) { animation-delay: 0.64s; }
.ksgcc-activity-card:nth-child(10) { animation-delay: 0.72s; }
