@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css");

/* 기본 설정 */
* {
  box-sizing: border-box;
}

:root {
  --navy: #282f52;
  --navy-deep: #0f102a;
  --blue: #53a7ce;
  --sky: #a9dbe5;
  --violet: #6669af;
  --ink: #000;
  --muted: #888;
  --line: #b5b5b5;
  --line-light: #e0e0e0;
  --white: #fff;
  --container: 1320px;
  --font-sans: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.blind {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

/* 헤더 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 90px;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 100%;
  width: min(100% - 80px, var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 220px 1fr 93px;
  align-items: center;
}

.brand {
  width: 220px;
  display: inline-flex;
  align-items: center;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.site-nav a {
  color: #222;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.language-button {
  width: 93px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background:
    linear-gradient(168deg, var(--navy-deep) 9%, var(--navy) 92%),
    var(--navy);
  border: 0;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

/* 히어로 */
.hero {
  position: relative;
  aspect-ratio: 1920 / 1080;
  overflow: hidden;
  background: #fff;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 카운트다운 */
.countdown {
  color: var(--white);
  background:
    linear-gradient(176deg, var(--navy-deep) 9%, var(--navy) 92%),
    var(--navy);
}

.countdown-inner {
  width: min(100% - 80px, var(--container));
  min-height: 248px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 200px;
  padding: 40px 0 60px;
}

.countdown-mark {
  width: 460px;
  height: 126px;
}

.countdown-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.countdown-clock {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-bottom: 20px;
}

.countdown-days,
.countdown-time {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-days strong,
.countdown-time > span:first-child {
  font-size: 76px;
  line-height: 1.4;
  /* 숫자가 바뀌어도 자리 폭이 일정하도록 고정폭 숫자 사용 */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.countdown-days strong {
  font-weight: 300;
}

.countdown-days span,
.countdown-time span {
  color: var(--white);
}

.countdown-days > span,
.countdown-time > span:last-child {
  font-size: 16px;
}

.countdown-time > span:last-child {
  width: 268px;
  display: flex;
  justify-content: space-between;
}

/* 본문 공통 */
.content-section {
  background: var(--white);
}

.section-inner {
  width: min(100% - 80px, var(--container));
  margin-inline: auto;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-heading h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.5;
  font-weight: 700;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.intro {
  padding: 160px 0 0;
}

.intro .section-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.intro-copy {
  color: var(--ink);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.4;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 0;
}

.intro-copy p:nth-child(3) {
  margin-top: 32px;
}

.wide-visual {
  margin-top: 200px;
  height: 500px;
  overflow: hidden;
  background: #dfeff3;
}

.wide-visual__image {
  height: 100%;
  background: url("./resources/png/wide-visual.png") center / cover no-repeat;
}

/* 행사 개요 */
.overview {
  padding: 200px 0 0;
}

.overview .section-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.info-table {
  margin: 0;
  border-top: 4px solid var(--ink);
  background: var(--white);
}

.info-table div {
  min-height: 68px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  border-bottom: 0.5px solid var(--navy);
}

.info-table div:first-child {
  border-bottom-color: var(--ink);
}

.info-table dt,
.info-table dd {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.info-table dt {
  font-weight: 700;
}

.info-table dd {
  font-weight: 400;
}

/* 주최/주관 로고 행은 Figma 기준 높이 90px */
.info-table div:has(.overview-logo) {
  min-height: 90px;
}

.overview-logo {
  display: block;
  object-fit: contain;
}

.overview-logo--mcst {
  width: 172px;
  height: 33px;
}

.overview-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.overview-logo--ksi {
  width: 170px;
  height: 34px;
}

.overview-logo--embassy {
  width: 282px;
  height: 50px;
  object-fit: cover;
}

/* 프로그램 */
.program {
  padding: 280px 0 0;
}

.program .section-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.program-board {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.program-tabs {
  display: flex;
  border-bottom: 0.5px solid var(--line);
}

.program-tab {
  flex: 1 1 0;
  min-height: 98px;
  color: var(--muted);
  background: var(--white);
  border: 0;
  border-bottom: 4px solid transparent;
  font-size: 20px;
  font-weight: 500;
}

.program-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 700;
}

.program-tab:disabled {
  cursor: default;
}

.timeline {
  position: relative;
  min-height: 1872px;
}

.timeline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 207.5px,
    var(--line) 207.5px,
    var(--line) 208px
  );
}

.timeline-scale {
  position: absolute;
  inset: 0 auto 0 0;
  width: 250px;
  color: var(--muted);
  font-size: 20px;
}

.timeline-scale span {
  position: absolute;
  top: calc(var(--row) * 208px + 30px);
  left: 0;
}

.timeline-card {
  position: absolute;
  left: 239px;
  width: 901px;
  padding: 24px 30px;
  display: flex;
  align-items: flex-start;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 24px;
}

.timeline-card > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-card strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.timeline-card time {
  font-size: 18px;
  letter-spacing: -0.36px;
}

.timeline-card ul {
  margin: 18px 0 0;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.32px;
}

.timeline-card li {
  font-weight: 400;
}

/* 한 줄 카드(등록/개회/휴식/이동)는 제목과 시간을 가로 배치, 세로 중앙 정렬 */
.timeline-card--register,
.timeline-card--opening,
.timeline-card--break,
.timeline-card--move,
.timeline-card--day2-break-a,
.timeline-card--day2-break-b,
.timeline-card--day2-break-c,
.timeline-card--day2-break-d,
.timeline-card--day2-move,
.timeline-card--day3-move,
.timeline-card--day3-departure {
  align-items: center;
}

.timeline-card--register > div,
.timeline-card--opening > div,
.timeline-card--break > div,
.timeline-card--move > div,
.timeline-card--day2-break-a > div,
.timeline-card--day2-break-b > div,
.timeline-card--day2-break-c > div,
.timeline-card--day2-break-d > div,
.timeline-card--day2-move > div,
.timeline-card--day3-move > div,
.timeline-card--day3-departure > div {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.timeline-card--dark,
.timeline-card--blue,
.timeline-card--culture,
.timeline-card--soft {
  color: var(--white);
  border: 0;
}

/* 높이가 큰 카드는 Figma 기준 radius 30px */
.timeline-card--lecture-morning,
.timeline-card--lunch,
.timeline-card--lecture-afternoon,
.timeline-card--culture,
.timeline-card--consulting,
.timeline-card--dinner {
  border-radius: 30px;
}

.timeline-card--dark {
  background: linear-gradient(-2.597deg, var(--navy) 9.48%, var(--violet) 92.43%);
}

.timeline-card--blue {
  background: var(--blue);
}

.timeline-card--culture {
  position: static;
  width: auto;
  height: 100%;
  background: linear-gradient(-30.704deg, var(--navy) 9.48%, var(--violet) 92.43%);
}

.timeline-card--soft {
  background: linear-gradient(178.561deg, #c5cbe9 2.45%, #abb7e3 96.22%);
}

.timeline-card--register {
  top: 9px;
  height: 90px;
}

.timeline-card--opening {
  top: 109px;
  height: 90px;
}

.timeline-card--lecture-morning {
  top: 218px;
  height: 170px;
}

.timeline-card--lunch {
  top: 398px;
  height: 325px;
}

.timeline-cluster {
  position: absolute;
  left: 239px;
  top: 733px;
  width: 901px;
  height: 709px;
  display: flex;
  gap: 15px;
}

.timeline-cluster__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-card--lecture-afternoon,
.timeline-card--break {
  position: static;
  width: auto;
}

.timeline-card--lecture-afternoon {
  height: 198px;
}

.timeline-card--break {
  height: 90px;
}

.culture-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.timeline-card--consulting {
  position: static;
  width: 270px;
  height: 100%;
  background: linear-gradient(-50.015deg, var(--navy-deep) 9.48%, var(--navy) 92.43%);
}

.timeline-card--move {
  top: 1468px;
  height: 90px;
}

.timeline-card--dinner {
  top: 1568px;
  height: 200px;
}

/* Day 2 타임라인: 09:00~19:00, 11행 그리드 */
.timeline--day2 {
  min-height: 2288px;
}

.timeline-card--deep {
  color: var(--white);
  border: 0;
  background: linear-gradient(-13.098deg, var(--navy-deep) 9.48%, var(--navy) 92.43%);
}

.timeline-pair {
  position: absolute;
  left: 239px;
  width: 901px;
  display: flex;
}

.timeline-pair .timeline-card {
  position: static;
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 100%;
  border-radius: 30px;
}

.timeline-pair--training {
  top: 1049px;
  height: 190px;
  gap: 10px;
}

.timeline-pair--discussion {
  top: 1357px;
  height: 227px;
  gap: 15px;
}

.timeline-pair--discussion .timeline-card--dark {
  background: linear-gradient(-13.098deg, var(--navy) 9.48%, var(--violet) 92.43%);
}

.timeline-card--day2-cases {
  top: 9px;
  height: 241px;
  border-radius: 30px;
  background: linear-gradient(-6.925deg, var(--navy) 9.48%, var(--violet) 92.43%);
}

.timeline-card--day2-break-a {
  top: 260px;
  height: 60px;
  border-radius: 20px;
}

.timeline-card--day2-case-a {
  top: 330px;
  height: 170px;
  border-radius: 30px;
}

.timeline-card--day2-break-b {
  top: 510px;
  height: 60px;
  border-radius: 20px;
}

.timeline-card--day2-case-b {
  top: 580px;
  height: 170px;
  border-radius: 30px;
}

.timeline-card--day2-lunch {
  top: 760px;
  height: 269px;
  border-radius: 30px;
}

.timeline-card--day2-break-c {
  top: 1257px;
  height: 90px;
}

.timeline-card--day2-break-d {
  top: 1594px;
  height: 60px;
  border-radius: 20px;
}

.timeline-card--day2-interview {
  top: 1675px;
  height: 186px;
  border-radius: 30px;
  background: linear-gradient(-5.355deg, var(--navy-deep) 9.48%, var(--navy) 92.43%);
}

.timeline-card--day2-move {
  top: 1884px;
  height: 90px;
}

.timeline-card--day2-dinner {
  top: 1984px;
  height: 200px;
  border-radius: 30px;
}

/* Day 3 타임라인: 09:00~14:00, 6행 그리드 */
.timeline--day3 {
  min-height: 1248px;
}

.timeline-card--day3-tour {
  top: 9px;
  height: 504px;
  border-radius: 30px;
  color: var(--white);
  border: 0;
  background: linear-gradient(-14.252deg, var(--navy) 9.48%, var(--violet) 92.43%);
}

.timeline-card--day3-move {
  top: 523px;
  height: 90px;
}

.timeline-card--day3-interview {
  top: 635px;
  height: 120px;
  border-radius: 30px;
  background: linear-gradient(-3.461deg, var(--navy-deep) 9.48%, var(--navy) 92.43%);
}

/* 면담 카드는 제목·시간을 한 줄로, 목록은 아래 줄 전체 폭 사용 */
.timeline-card--day3-interview > div {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
}

.timeline-card--day3-interview ul {
  width: 100%;
  margin-top: 20px;
}

.timeline-card--day3-closing {
  top: 765px;
  height: 372px;
  border-radius: 30px;
}

.timeline-card--day3-departure {
  top: 1147px;
  height: 90px;
  color: var(--white);
  border: 0;
  background: var(--violet);
}

.program-note {
  margin: -20px 0 0;
  color: var(--muted);
  font-size: 20px;
}

/* 참가 신청 */
.apply {
  padding: 280px 0 0;
}

.apply .section-inner {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.track-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.track-card {
  min-height: 548px;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.track-card span {
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.4px;
  transition: color 0.3s;
}

.track-icon {
  width: 60px;
  height: 60px;
  background: var(--muted);
  transition: background-color 0.3s;
}

.track-icon--school {
  -webkit-mask: url("./resources/svg/icon-apply-school.svg") center / 60px 60px no-repeat;
  mask: url("./resources/svg/icon-apply-school.svg") center / 60px 60px no-repeat;
}

.track-icon--general {
  -webkit-mask: url("./resources/svg/icon-apply-general.svg") center / 60px 60px no-repeat;
  mask: url("./resources/svg/icon-apply-general.svg") center / 60px 60px no-repeat;
}

.track-icon--designation {
  -webkit-mask: url("./resources/svg/icon-apply-designation.svg") center / 60px 60px no-repeat;
  mask: url("./resources/svg/icon-apply-designation.svg") center / 60px 60px no-repeat;
}

.track-card > div {
  flex: 1;
  min-height: 250px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.track-card h3 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.56px;
}

.track-card p {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.4px;
}

.track-action {
  position: relative;
  isolation: isolate;
  margin-top: auto;
  padding: 25px 30px 25px 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: #f8f8f8;
  border: 0;
  border-radius: 100px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.4px;
  transition: color 0.3s;
}

/* hover 그라데이션은 배경 전환이 불가하므로 오버레이 투명도로 전환 */
.track-action::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(350deg, var(--navy) 9%, var(--violet) 92%);
  opacity: 0;
  transition: opacity 0.3s;
}

.track-action::after {
  content: "";
  width: 30px;
  height: 30px;
  background: var(--muted);
  -webkit-mask: url("./resources/svg/icon-arrow-gray.svg") center / 9px 16.5px no-repeat;
  mask: url("./resources/svg/icon-arrow-gray.svg") center / 9px 16.5px no-repeat;
  transition: background-color 0.3s;
}

/* 트랙 카드 hover 상태 */
.track-card:hover {
  border-color: var(--navy);
  box-shadow:
    0 0 0 0.5px var(--navy),
    0 0 10px rgba(102, 105, 175, 0.1);
}

.track-card:hover > span {
  color: var(--violet);
}

.track-card:hover .track-icon {
  background: var(--violet);
}

.track-card:hover .track-action {
  color: var(--white);
}

.track-card:hover .track-action::before {
  opacity: 1;
}

.track-card:hover .track-action::after {
  background: var(--white);
}

/* 참가 안내와 푸터 */
.guide {
  padding: 60px 0 380px;
}

.apply-info div {
  min-height: 100px;
  align-items: center;
}

.apply-info div:last-child {
  min-height: 216px;
}

.apply-info dd {
  padding: 20px 0;
}

.apply-info p {
  margin: 0;
}

.apply-info small {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 500;
}

.contact-list {
  margin: 4px 0 0;
  padding-left: 30px;
}

/* 문의처: 연락처 목록과 안내문 사이 24px 빈 줄 + 상하 4px 간격 */
.contact-list + small {
  margin-top: 32px;
}

.apply-info div:last-child dt {
  align-self: start;
  padding-top: 40px;
}

.site-footer {
  color: var(--white);
  background:
    linear-gradient(-3.977deg, var(--navy-deep) 9.48%, var(--navy) 92.43%),
    var(--navy);
}

.footer-inner {
  min-height: 294px;
  width: min(100% - 80px, 1660px);
  margin-inline: auto;
  padding: 60px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  text-align: center;
}

.footer-support {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #8c9197;
  font-size: 18px;
}

.footer-support p {
  margin: 0;
}

.footer-support p:last-child {
  font-weight: 600;
}

.site-footer img {
  width: 220px;
  filter: brightness(0) invert(1);
}

/* 반응형 */
@media (max-width: 1380px) {
  .header-inner,
  .section-inner,
  .countdown-inner {
    width: min(100% - 48px, var(--container));
  }

  .site-nav {
    gap: 42px;
  }

  .countdown-inner {
    gap: 80px;
  }

  .timeline,
  .program-tabs {
    min-width: 1100px;
  }

  .program-board {
    overflow-x: auto;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 160px;
  }

  body {
    font-size: 17px;
  }

  /* 모바일: 헤더를 문서 흐름에 두어 히어로를 가리지 않게 함 */
  .site-header {
    position: sticky;
    height: auto;
  }

  .header-inner {
    min-height: 90px;
    padding: 16px 0;
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .brand {
    width: 180px;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 26px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-nav a {
    font-size: 16px;
  }

  .countdown-inner {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .countdown-mark {
    width: min(100%, 460px);
  }

  .intro,
  .overview,
  .program,
  .apply {
    padding-top: 110px;
  }

  .wide-visual {
    margin-top: 110px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .intro-copy {
    font-size: 20px;
  }

  .info-table div {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  /* 모바일 일정표: 탭은 화면 폭에 맞추고 가로 스크롤 시에도 고정 */
  .program-tabs {
    min-width: 0;
    position: sticky;
    left: 0;
  }

  .program-tab {
    min-height: 64px;
    padding: 0 4px;
    font-size: 15px;
    white-space: nowrap;
  }

  /* 모바일 일정표: 시간 눈금과 카드 사이 간격 축소 */
  .timeline {
    min-width: 991px;
  }

  .timeline-scale {
    font-size: 16px;
  }

  .timeline-card,
  .timeline-cluster,
  .timeline-pair {
    left: 90px;
  }

  .track-list {
    grid-template-columns: 1fr;
  }

  .guide {
    padding-bottom: 160px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .countdown-inner,
  .footer-inner {
    width: min(100% - 32px, var(--container));
  }

  .language-button {
    width: 76px;
    height: 44px;
  }

  .site-nav {
    gap: 20px;
  }

  .countdown-days strong,
  .countdown-time > span:first-child {
    font-size: 54px;
  }

  .countdown-time > span:last-child {
    width: 230px;
  }

  .info-table div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .apply-info div:last-child dt {
    align-self: auto;
    padding-top: 0;
  }

  .overview-logos {
    flex-direction: column;
    align-items: flex-start;
  }

  .program-tab {
    font-size: 13px;
  }

  .track-card {
    min-height: auto;
    padding: 52px 24px;
  }

  .track-card > div {
    min-height: 170px;
  }

  .footer-support {
    font-size: 15px;
  }
}
