/* Hero.css */

/* =============================================== */
/* 💻 기본 스타일 (PC 기준, 1025px 이상) */
/* =============================================== */

#home {
  padding-top: 0;
  overflow-x: hidden;
}

/* --- Hero Section: 영상 배경 --- */
.hero-video-container {
  position: relative;
  height: 50vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* --- 평론가 리뷰 스타일 --- */
.hero-reviews-container {
  position: relative;
  z-index: 3;
  color: white;
  width: 80%;
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  height: 100%;
}

.review-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in;
}

.review-item.active {
  opacity: 0.9;
  transition: opacity 2.0s ease-out 1.6s;
}

.review-quote {
  font-size: 1.3rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 24px;
}

.review-author {
  font-size: 1rem;
  font-weight: 400;
  text-align: right;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* --- Upcoming Events Section --- */
.main-content {
  padding: 80px 24px;
  background-color: #ffffff;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.content-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.title-section {
  flex-shrink: 0;
  text-align: left;
}

.main-title {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  position: sticky;
  top: 120px;
}

.main-title .title-upcoming {
  color: #111827;
}

.main-title .title-events {
  color: #40547ff6;
}

.events-section {
  flex-grow: 1;
  max-width: 700px;
}

.events-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* PC와 태블릿에서는 3개까지만 보이도록 설정 */
.events-container .event-card:nth-child(n+4) {
  display: none;
}

.event-card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.event-header { margin-bottom: 16px; }
.event-date { font-size: 1.25rem; font-weight: bold; color: #111827; margin-bottom: 4px; }
.event-location { font-size: 0.875rem; font-weight: 500; color: #4b5563; text-transform: uppercase; letter-spacing: 0.05em; }
.event-details { display: flex; flex-direction: column; gap: 12px; }
.detail-item { display: flex; flex-direction: column; }
.detail-label { font-size: 0.75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.detail-text { font-size: 0.875rem; color: #111827; line-height: 1.5; }

/* =============================================== */
/* 📱 반응형 스타일 (수정됨) */
/* =============================================== */

/* --- 태블릿 (641px ~ 1024px) --- */
@media (max-width: 1024px) {
  /* 리뷰 텍스트 크기 */
  .review-quote { font-size: 0.95rem; }
  .review-author { font-size: 0.7rem; }

  .main-content { padding: 64px 24px; }
  /* 제목 폰트 크기 조정 */
  .main-title { font-size: 2.5rem; top: 100px; }

  /* Events 폰트 크기 조정 */
  .event-date { font-size: 1.1rem; }
  .event-location { font-size: 0.8rem; }
  .detail-label { font-size: 0.7rem; }
  .detail-text { font-size: 0.8rem; }
}

/* --- 모바일 (640px 이하) --- */
@media (max-width: 640px) {
  .hero-video-container { height: 65vh; }
  
  /* 리뷰 텍스트 크기 */
  .review-quote { font-size: 0.8rem; line-height: 1.5; }
  .review-author { font-size: 0.65rem; }

  .main-content { padding: 48px 16px; }
  /* 레이아웃을 세로로 변경 */
  .content-wrapper { flex-direction: column; gap: 32px; }
  /* 제목을 가운데 정렬 */
  .main-title { position: static; text-align: center; font-size: 2.25rem; }
  .events-section { max-width: 100%; }

  /* 모바일에서는 3번째 카드부터 숨김 (2개만 보임) */
  .events-container .event-card:nth-child(n+3) {
    display: none;
  }
  
  /* PC/태블릿에서 숨겼던 4번째 카드가 다시 보이는 것을 방지 */
  .events-container .event-card:nth-child(n+4) {
    display: none;
  }

  /* Events 폰트 크기 조정 */
  .event-date { font-size: 1rem; }
  .event-location { font-size: 0.75rem; }
  .detail-label { font-size: 0.65rem; }
  .detail-text { font-size: 0.75rem; }
}