@charset "UTF-8";

/* ========================================
   행사소개 (overview) 전용 스타일
   - 헤더/푸터는 intro.css 공통 사용
   ======================================== */

.overview-page .overview-wrap,
.overview-page.intro-page .intro-wrap {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
}

.overview-main {
  flex: 1 0 auto;
  width: 100%;
  background: #ffffff;
}

/* ----------------------------------------
   Hero (standalone overview 페이지 전용)
   ---------------------------------------- */
.overview-hero {
  display: none;
}

.overview-hero__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 24px;
}

.overview-hero__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* ----------------------------------------
   행사소개 섹션
   ---------------------------------------- */
.overview-section {
  width: 100%;
  background: #eaf6fc;
  scroll-margin-top: var(--intro-header-h);
}

.overview-section__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.overview-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-family: var(--intro-font);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0;
}

.overview-title__label {
  color: #0350c6;
  font-size: 32px;
}

.overview-title__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0350c6;
  flex-shrink: 0;
}

.overview-title__name {
  color: #1e2124;
  font-size: 32px;
  max-width: 12.5em;
}

.overview-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.overview-poster {
  margin: 0;
  width: 100%;
  max-width: 312px;
}

.overview-poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* Figma MO: soft navy shadow */
  box-shadow: 0 0 20px rgba(0, 30, 76, 0.08);
}

.overview-info {
  margin: 0;
  width: 100%;
  max-width: 312px;
  display: flex;
  flex-direction: column;
  /* Figma MO: 정보 행 간격 48px */
  gap: 48px;
}

.overview-info__row {
  display: flex;
  flex-direction: column;
  /* Figma MO: 뱃지·본문 중앙 정렬 */
  align-items: center;
  gap: 16px;
  text-align: center;
}

.overview-info__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #001e4c;
  color: #eaf6fc;
  font-family: var(--intro-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.overview-info__desc {
  margin: 0;
  width: 100%;
  font-family: var(--intro-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: #1e2124;
  text-align: center;
  word-break: keep-all;
}

/* 주최/주관 */
.overview-info__row--host {
  align-items: center;
}

.overview-host {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  /* Figma MO: 주최·주관 블록 간격 24px */
  gap: 24px;
  width: 100%;
}

.overview-host__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.overview-host__label {
  flex-shrink: 0;
  font-family: var(--intro-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: #1e2124;
  white-space: nowrap;
}

/* MO: 슬래시 숨김 / PC: 라벨·로고 사이 구분 */
.overview-host__slash {
  display: none;
  flex-shrink: 0;
  width: 12px;
  height: 1px;
  background: #1e2124;
  transform: rotate(135deg);
}

/* MO: 로고 카드 (Figma 흰색 rounded 16) */
.overview-host__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px 16px;
  border-radius: 16px;
  background: #ffffff;
  box-sizing: border-box;
}

/* 페스티벌(밝은 배경): 카드 보더 없음 / 경진대회(흰 배경): 보더 */
.challenge-section .overview-host__card {
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.overview-host__logo {
  display: block;
  width: auto;
  height: 32px;
  object-fit: contain;
}

.overview-host__logo--msit {
  width: auto;
  max-width: 171px;
}

.overview-host__logo--kofac {
  width: auto;
  max-width: 153px;
}

.overview-program {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Figma MO: 프로그램 항목 간격 24px */
  gap: 24px;
  width: 100%;
}

.overview-program__item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

/* MO: 불릿 숨김 / PC에서 재표시 */
.overview-program__item::before {
  content: none;
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  margin-top: calc((1.5em - 4px) / 2);
  border-radius: 50%;
  background: #1e2124;
}

.overview-program__text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

.overview-program__text strong {
  font-weight: 700;
}

/* MO: 프로그램 문구 2행 고정 (Figma 2175:595) */
.overview-program__line {
  display: block;
}

/* MO: 프로그램 카드 */
.overview-info__row--program .overview-info__desc {
  padding: 24px 20px;
  border-radius: 16px;
  background: #ffffff;
  box-sizing: border-box;
}

.challenge-section .overview-info__row--program .overview-info__desc {
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* ----------------------------------------
   PC (≥1024px)
   ---------------------------------------- */
@media (min-width: 1024px) {
  .overview-hero {
    display: block;
    padding: 0 100px;
    background: #ffffff;
  }

  .overview-hero__inner {
    padding: 0;
    overflow: hidden;
    border-radius: 0;
  }

  .overview-hero__img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    object-position: center center;
  }

  .overview-section {
    min-height: 1080px;
  }

  .overview-section__inner {
    padding: 140px 20px 180px;
  }

  .overview-title {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin: 0 0 64px;
  }

  .overview-title__label,
  .overview-title__name {
    font-size: 48px;
    max-width: none;
    white-space: nowrap;
  }

  .overview-body {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 80px;
  }

  .overview-poster {
    max-width: 470px;
    flex: 0 0 470px;
  }

  .overview-poster img {
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
  }

  .overview-info {
    flex: 1 1 730px;
    max-width: 730px;
    gap: 40px;
  }

  .overview-info__row {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    text-align: left;
  }

  .overview-info__badge {
    width: 120px;
    min-height: 53px;
    padding: 12px 16px;
    font-size: 19px;
  }

  .overview-info__desc {
    padding: 0;
    font-size: 21px;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .overview-info__row--host {
    align-items: flex-start;
  }

  .overview-host {
    gap: 16px;
  }

  .overview-host__item {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: auto;
  }

  .overview-host__label {
    font-size: 21px;
  }

  /* PC: 라벨 / 로고 사이 슬래시 */
  .overview-host__slash {
    display: block;
  }

  /* PC: 카드 래퍼 제거(자식이 플렉스에 직접 참여) */
  .overview-host__card {
    display: contents;
  }

  .challenge-section .overview-host__card {
    border: 0;
  }

  .overview-host__logo {
    height: 32px;
  }

  .overview-host__logo--msit {
    max-width: 171px;
  }

  .overview-host__logo--kofac {
    max-width: 153px;
  }

  .overview-info__row--program {
    align-items: flex-start;
  }

  .overview-info__row--program .overview-info__desc {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .challenge-section .overview-info__row--program .overview-info__desc {
    border: 0;
  }

  .overview-program {
    align-items: stretch;
    gap: 12px;
  }

  .overview-program__item {
    justify-content: flex-start;
  }

  /* PC: 불릿 재표시 */
  .overview-program__item::before {
    content: "";
  }

  .overview-program__text {
    text-align: left;
  }

  /* PC: 2행을 한 줄로 이어 붙임 */
  .overview-program__line {
    display: inline;
  }

  .overview-program__line + .overview-program__line::before {
    content: " ";
  }
}

/* 태블릿 — Figma MO 세로·중앙 레이아웃 유지, 여백만 확장 */
@media (min-width: 768px) and (max-width: 1023px) {
  .overview-section__inner {
    padding: 80px 40px 96px;
  }

  .overview-title {
    flex-direction: row;
    gap: 16px;
  }

  .overview-title__label,
  .overview-title__name {
    font-size: 36px;
    max-width: none;
  }

  .overview-poster {
    max-width: 360px;
  }

  .overview-info {
    max-width: 360px;
  }
}

/* ----------------------------------------
   등장 모션
   - 제목: fadeInDown
   - 이미지·텍스트: fadeInUp
   ---------------------------------------- */
.ov-reveal {
  opacity: 0;
  will-change: opacity, transform;
}

.ov-reveal.is-visible {
  animation-duration: 1.25s;
  animation-fill-mode: both;
  animation-timing-function: ease;
}

.ov-reveal--fade-down.is-visible {
  animation-name: ovFadeInDown;
}

.ov-reveal--fade-up.is-visible {
  animation-name: ovFadeInUp;
}

.ov-reveal--fade-in.is-visible {
  animation-name: ovFadeIn;
}

@keyframes ovFadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ovFadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ovFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ov-reveal {
    opacity: 1;
    transform: none;
  }

  .ov-reveal.is-visible {
    animation: none;
  }
}
