/* 동호회 게이트웨이 페이지 CSS */

/* 컨테이너 */
.club-gateway {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* 헤더 섹션 */
.club-gateway__header {
  text-align: center;
  margin-bottom: 48px;
}

.club-gateway__title {
  font-family: 'Pretendard GOV Variable', 'Pretendard GOV', sans-serif;
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.3;
  background: linear-gradient(118.8deg, #E52A21 11.23%, #27388E 35.85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.club-gateway__subtitle {
  font-family: 'Pretendard GOV Variable', 'Pretendard GOV', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #666666;
  margin: 0;
  line-height: 1.6;
}

/* 카드 그리드 - 4열 */
.club-gateway__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 동호회 카드 */
.club-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}

.club-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 54, 117, 0.15);
}

/* 썸네일 영역 */
.club-card__thumb {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 100%);
}

.club-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.club-card:hover .club-card__thumb img {
  transform: scale(1.08);
}

/* 카테고리 뱃지 */
.club-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  background: rgba(0, 54, 117, 0.9);
  color: #ffffff;
  font-family: 'Pretendard GOV Variable', 'Pretendard GOV', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  z-index: 2;
}

/* 카드 콘텐츠 */
.club-card__body {
  display: flex;
  flex-direction: column;
  padding: 24px;
  flex: 1;
}

/* 동호회명 */
.club-card__name {
  font-family: 'Pretendard GOV Variable', 'Pretendard GOV', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #222222;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

/* 설명 */
.club-card__desc {
  font-family: 'Pretendard GOV Variable', 'Pretendard GOV', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #666666;
  margin: 0 0 16px 0;
  line-height: 1.5;
  flex: 1;
  min-height: 45px;
}

/* 연혁 + 화살표 컨테이너 */
.club-card__history {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: 'Pretendard GOV Variable', 'Pretendard GOV', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #003675;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.club-card__history svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 화살표 아이콘 - history 안에 배치 */
.club-card__arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
  color: #003675;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.club-card:hover .club-card__arrow {
  background: #003675;
  color: #ffffff;
}

/* 반응형 - 태블릿 */
@media (max-width: 1200px) {
  .club-gateway__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .club-gateway__title {
    font-size: 36px;
  }
}

/* 반응형 - 작은 태블릿 */
@media (max-width: 900px) {
  .club-gateway__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .club-gateway__title {
    font-size: 32px;
  }
  .club-card__thumb {
    height: 160px;
  }
}

/* 반응형 - 모바일 */
@media (max-width: 600px) {
  .club-gateway {
    padding: 0 16px 60px;
  }
  .club-gateway__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .club-gateway__title {
    font-size: 28px;
  }
  .club-gateway__subtitle {
    font-size: 16px;
  }
  .club-card__thumb {
    height: 200px;
  }
  .club-card__body {
    padding: 20px;
  }
  .club-card__name {
    font-size: 20px;
  }
}
