/* 온라인 홍보 페이지 전용 스타일 */

/* 상단 섹션이 네비게이션과 겹치지 않도록 z-index 조정 */
.sub-hero-section {
  z-index: 1; /* 네비게이션(10000)보다 낮게 설정 */
}


.online-promotion-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 50px;
  margin: 50px auto;
  align-items: center;
  justify-content: center;
}

.promotion-card {
  width: 330px;
  height: 300px;
  background-color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.promotion-card:hover {
  transform: translateY(-10px);
  cursor: pointer;
}

.promotion-card__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top center;
}

.promotion-card__image img {
  display: none;
}

.promotion-card__video-container {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

.promotion-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none; /* 카드 클릭 이벤트를 방해하지 않도록 비활성화 */
}

.promotion-card__youtube {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  pointer-events: none; /* 카드 클릭 이벤트를 방해하지 않도록 비활성화 */
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .online-promotion-content {
    gap: 20px;
    margin: 0 auto;
  }

  .promotion-card {
    height: auto;
    min-height: 280px;
    display: flex;
    flex-direction: column;
  }

  .promotion-card__image {
    height: 180px;
  }

  .promotion-card__video-container {
    aspect-ratio: 16/9;
  }

  .promotion-card__title {
    font-size: 16px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

@media (max-width: 480px) {
  .promotion-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
  }

  .promotion-card__image {
    height: 160px;
  }

  .promotion-card__video-container {
    aspect-ratio: 16/9;
  }

  .promotion-card__content {
    padding: 12px;
  }

  .promotion-card__meta {
    font-size: 12px;
  }

  .promotion-card__title {
    font-size: 14px;
  }
}

/* 비디오 컨테이너에 대한 호버 효과 */
.promotion-card__video-container:hover .promotion-card__video {
  /* transform: scale(1.05); 제거 - 컨테이너를 벗어나는 문제 해결 */
  transition: transform 0.3s ease;
}

.promotion-card__content {
  padding: 16px 18px;
  margin-top: auto;
}

.promotion-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-light);
}

.promotion-card__category {
  color: var(--primary-color);
  font-weight: 700;
}

.promotion-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
  white-space: nowrap; /* 텍스트를 한 줄로 유지 */
  overflow: hidden; /* 넘치는 텍스트 숨김 */
  text-overflow: ellipsis; /* 넘치는 텍스트를 말줄임표로 표시 */
}

.pagination-container {
  text-align: center;
  margin-top: 50px;
}

@media (max-width: 767px) {
  .pagination-container {
    margin-top: 40px;
    margin-bottom: 60px;
  }
}
