.event-main {
  padding: 0;
  margin: 0;
}

/* 🎥 비디오 히어로 (페이지 스코프 + svh) */
.event-main .video-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
}
.event-main .video-hero video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.event-main .video-hero .overlay {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding-top: min(30svh, 30vh);
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* 🎤 행사 안내 섹션 */
.event-intro {
  background-image: url('../../img/bg/event-bg.webp');
  background-size: cover;
  background-position: center;
  color: var(--color-text-light, #fff);
  position: relative;
  margin-top: 75px;
  text-align: center;
  overflow: hidden;
}
.event-intro::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--color-overlay-green, rgba(43,90,43,.55));
  z-index: -1;
}
.event-intro:hover::before { background-color: rgba(60, 120, 60, 0.5); }
.event-intro h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}
.event-intro .typewriter {
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 700;
  color: #fff;
}

/* 🎁 이벤트 섹션 헤더 */
.event-event {
  background-image: url('../../img/bg/event2-bg.webp');
  background-size: cover;
  background-position: center;
  color: var(--color-text-light, #fff);
  position: relative;
  margin-top: 75px;
  text-align: center;
  overflow: hidden;
}
.event-event::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--color-overlay-green, rgba(43,90,43,.55));
  z-index: -1;
}
.event-event:hover::before { background-color: rgba(60, 120, 60, 0.5); }
.event-event h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}
.event-event .typewriter {
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 700;
  color: #fff;
}

/* ⌨️ 타이핑: JS 전용(가로쓰기 + 줄바꿈 허용) */
.typewriter {
  font-size: var(--fs-base);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: normal;
  overflow: visible;
  width: auto;
  max-width: 100%;
  line-height: 1.8;
}

/* 📅 공통 섹션 */
.event-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--section-padding) 0;
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: 1.8;
  text-align: center;
}
.event-section h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin-bottom: var(--gap-sm);
}

/* 📅 행사 일정 리스트 */
.event-schedule {
  list-style: none;
  padding: 0;
  margin-top: var(--gap-md);
  text-align: left;
}
.event-schedule li {
  border-bottom: 1px solid var(--color-border);
  padding: var(--gap-sm) 0;
}
.event-date {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

/* 🎁 이벤트 카드 */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-md);
  margin-top: var(--gap-lg);
}
.event-card {
  background: #f1f3f2;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-sm);
  padding: var(--gap-md);
  text-align: left;
  transition: box-shadow var(--transition-base);
}
.event-card:hover { box-shadow: var(--box-shadow-md); }
.event-card h4 {
  font-size: var(--fs-h3);
  color: var(--color-primary);
  margin-bottom: var(--gap-sm);
}
.event-card p {
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: 1.6;
}
.event-period {
  display: block;
  margin-top: var(--gap-xs);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* 종료 표시 */
.event-ended { opacity: 0.6; color: #666; }
.event-ended strong { color: #888; }
.event-ended p { color: #999; }

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
  /* 🎥 영상 섹션 */
  .event-main .video-hero { min-height: 60svh; }
  .event-main .video-hero .overlay { padding-top: 12svh; font-size: 1rem; }

  /* 🎤 행사 안내 섹션 */
  .event-intro,
  .event-event {
    padding: 2rem 1rem;
    margin-top: 1.5rem;
    text-align: center;
  }
  .event-intro h2,
  .event-event h2,
  .event-event h1 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }
  .event-intro .typewriter,
  .event-event .typewriter {
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: normal;
    width: 100%;
    margin-top: 1rem;
  }

  /* 📅 공통 섹션 */
  .event-section {
    padding: 2rem 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
  }
  .event-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  /* 📌 일정 리스트 */
  .event-schedule li {
    border: none;
    background: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
  }
  .event-date {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
  }
  .event-schedule li strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .event-schedule li p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* ===== 카드 썸네일 기본 ===== */
.event-card .thumb{ aspect-ratio: 16/9; overflow:hidden; border-radius:12px; }
.event-card .thumb img{ width:100%; height:100%; object-fit:cover; }

/* ===== FP07-2 Override: event ===== */
.events-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
@media (max-width:1024px){ .events-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width:640px) { .events-grid{ grid-template-columns: 1fr; } }

/* === 이벤트 카드 목록 (#eventCardList) === */
#eventCardList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

#eventCardList .ev-card {
  display: block;
}

#eventCardList .ev-card-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

#eventCardList .ev-card-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f3f4f6;
  overflow: hidden;
}
#eventCardList .ev-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#eventCardList .ev-card-content {
  padding: 14px 14px 16px;
}
#eventCardList .ev-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary, #1b5e20);
  margin: 0 0 6px;
}
#eventCardList .ev-sub {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .95rem;
  color: #475569;
  margin-bottom: 6px;
}
#eventCardList .ev-date { opacity: .9; }
#eventCardList .ev-place { opacity: .9; }

#eventCardList .ev-body {
  margin: 6px 0 8px;
  color: var(--color-text, #333);
  line-height: 1.55;

  /* 2줄 미리보기 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#eventCardList .ev-more {
  display: inline-block;
  margin-top: 2px;
  font-size: .92rem;
  color: var(--color-accent, #0a7f2e);
  text-decoration: underline;
}
/* ========== [이벤트 카드 텍스트 잘림 방지 - override] ========== */
#eventCardList .ev-card-box {
  display: flex;
  flex-direction: column;
}

#eventCardList .ev-card-content {
  /* 혹시 높이 고정되어 있으면 해제 */
  height: auto;
  max-height: none;
  overflow: visible;
}

/* 제목/본문 말줄임 제거: 자유롭게 줄바꿈 */
#eventCardList .ev-title,
#eventCardList .ev-body {
  white-space: normal;     /* 한 줄 고정 해제 */
  overflow: visible;       /* 숨김 해제 */
  display: block;
}

/* 혹시 라인 클램프(… 처리) 쓰고 있다면 초기화 */
#eventCardList .ev-title,
#eventCardList .ev-body {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  display: block;          /* box 기반 클램프를 무효화 */
}
