/* ==========================================================================
   main.css — ULTIMATE (Home only)
   - 목적: 메인(home) 전용 스타일을 "최종 적용 기준"으로 정리
   - 브레이크포인트: 1040 / 640
   - 색상/토큰: core.css 변수 사용 (var(--color-*), var(--c-*), var(--container))
   ========================================================================== */

/* ==========================================================================
   M0. HERO (Poster Variant + Default)
   ========================================================================== */

/* =========================================================
   HERO Poster (정리본 / 이 블록만 남기기)
   - 중앙정렬
   - 동물 이미지는 하단 중앙 absolute
   - 텍스트는 이미지 위에 겹치기
   - 캔버스는 레이아웃 영향 0 (무한 스크롤 방지)
   ========================================================= */

.hero.hero--poster {
  position: relative;
  overflow: hidden;

  /* 밝은 배경(축산 톤) */
  background:
    radial-gradient(
      900px 520px at 50% 28%,
      rgba(255, 255, 255, 0.9),
      rgba(245, 247, 247, 0.98)
    ),
    var(--color-bg);
}

/* 기존 hero가 ::after 오버레이를 쓰면 무력화 */
.hero.hero--poster::after {
  content: none !important;
}

/* 캔버스는 absolute 고정 (레이아웃 영향 0) */
.hero.hero--poster > .hero-net {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* 포스터 레이아웃 기준 컨테이너 */
.hero.hero--poster .hero-inner {
  position: relative;
  z-index: 2;
  min-height: clamp(520px, 72vh, 760px);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: clamp(70px, 8vh, 120px) 20px;
}

/* 텍스트: 중앙, 이미지 위 */
.hero.hero--poster .hero-left {
  position: relative;
  z-index: 4;

  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;

  /* 텍스트 위치 튜닝 */
  transform: translateY(clamp(-40px, -3vh, 10px));
}

/* 이미지: 하단 중앙 absolute */
.hero.hero--poster .hero-right {
  position: absolute;
  left: 50%;
  bottom: clamp(-140px, -4vh, -40px);
  transform: translateX(-50%);
  z-index: 3;

  width: 100%;
  display: flex;
  justify-content: center;

  pointer-events: none;
}

.hero.hero--poster .hero-mainimg {
  width: min(360px, 72vw);
  max-width: 820px;
  height: auto;

  user-select: none;
  pointer-events: none;

  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.16));
}

/* 포스터 텍스트 컬러(밝은 배경용) */
.hero.hero--poster .hero-kicker {
  color: var(--color-primary);
  text-shadow:
    0 2px 14px rgba(255, 255, 255, 0.95),
    0 2px 14px rgba(0, 0, 0, 0.08);
}

.hero.hero--poster .hero-title,
.hero.hero--poster .hero-title2,
.hero.hero--poster .hero-subtitle,
.hero.hero--poster .hero-meta {
  color: var(--color-secondary);
  text-shadow:
    0 2px 14px rgba(255, 255, 255, 0.95),
    0 2px 14px rgba(0, 0, 0, 0.08);
}

/* HERO 텍스트: 단어 중간 쪼개짐 방지 */
.hero-kicker,
.hero-title,
.hero-title2,
.hero-subtitle,
.hero-meta {
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

/* ===== Default Hero (fallback / non-poster layouts) ===== */
.hero {
  background-color: var(--c-white);
  background-image: var(--hero-pattern);
  background-repeat: repeat;
  background-position: center;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 20px 70px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 30px;
}

.hero-kicker {
  color: var(--color-primary);
  font-weight: 800;
  font-size: clamp(16px, 2.2vw, 26px);
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1;
  color: var(--color-secondary);
  letter-spacing: -0.5px;
}

.hero-title2 {
  margin: 14px 0 10px;
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
  color: var(--color-secondary);
  letter-spacing: -0.4px;
}

.hero-subtitle {
  font-size: clamp(14px, 1.6vw, 20px);
  color: var(--color-secondary);
  opacity: 0.95;
  margin-bottom: 28px;
}

.hero-meta {
  font-size: clamp(16px, 2.2vw, 28px);
  font-weight: 900;
  color: var(--color-secondary);
  line-height: 1.35;
}

.hero-date,
.hero-venue {
  margin-top: 6px;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mainimg {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

/* ==========================================================================
   M1. 행사 개요 + 바로가기
   ========================================================================== */

.sec-info {
  padding-top: 56px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  background: var(--c-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
}

.info-label {
  font-size: 14px;
  font-weight: 800;
  color: rgba(0, 98, 105, 0.75);
  margin-bottom: 6px;
}

.info-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.45;
  word-break: keep-all;
}

/* 3분기 바로가기 */
.sec-shortcut {
  padding-top: 0;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.shortcut-card {
  position: relative;
  background: var(--c-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 22px 22px 20px;
  text-decoration: none;

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.shortcut-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.sc-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.sc-desc {
  font-size: 14px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.4;
  word-break: keep-all;
  padding-right: 24px;
}

.sc-arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--color-secondary);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}

/* ==========================================================================
   M2. Notice + Partner (sec-np) — 최종 적용본
   ========================================================================== */

.sec-np {
  padding: 90px 0 110px;
  background: var(--c-white);
}

/* + 버튼을 헤드 우측 끝으로 */
.sec-np .np-head {
  width: 100%;
}
.sec-np .np-title {
  flex: 1 1 auto;
  min-width: 0;
}
.sec-np .np-more {
  margin-left: auto;
}

/* Variant: 3 columns (NextAI style) */
.sec-np .np-grid--3 {
  display: grid;
  grid-template-columns: 420px 1fr 1fr;
  gap: 34px;
  align-items: stretch;
}

/* Variant: 2 columns (Notice + Panels) */
.sec-np .np-grid--2 {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 34px;
  align-items: stretch;
}

/* 오른쪽 배너 높이를 공지 영역과 동일하게(컬럼 높이 스트레치) */
.sec-np .np-grid--3 > *,
.sec-np .np-grid--2 > * {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* 컬럼 헤더 */
.sec-np .np-colhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.sec-np .np-coltitle {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.sec-np .np-more {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  text-decoration: none;
  color: var(--c-ink);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
}

/* 공지 리스트(카드형) */
.sec-np .np-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.sec-np .np-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: #fff;

  text-decoration: none;
  color: var(--c-ink);
}

.sec-np .np-text {
  flex: 1;
  min-width: 0;
}

.sec-np .np-link {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sec-np .np-excerpt {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.65);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sec-np .np-date {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.55;
  white-space: nowrap;
  margin-top: 2px;
}

/* 배너/패널 1~2개 */
.sec-np .np-panels {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%; /* legacy */
}

.sec-np .np-panel {
  position: relative;
  flex: 1;
  min-height: 240px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
  display: block;

  /* 이미지 중앙 기준(필요 시 마크업에서 --np-focal-x/y로 포커스 조정 가능) */
  --np-focal-x: 50%;
  --np-focal-y: 50%;

  /* 기본은 contain: 배너 텍스트 잘림 방지. 필요시 .np-panel--cover로 변경 */
  --np-fit: contain;
}

.sec-np .np-panel img {
  width: 100%;
  height: 100%;
  object-fit: var(--np-fit, contain);
  object-position: var(--np-focal-x, 50%) var(--np-focal-y, 50%);
  display: block;
  transform: scale(1);
  transition: transform 0.25s ease;
}

/* 이미지 핏 컨트롤(기본 contain) */
/* 기존 마크업 호환: np-panel--contain = contain 강제 */
.sec-np .np-panel--contain {
  --np-fit: contain;
  background: rgba(0, 0, 0, 0.06);
}
/* 필요시: np-panel--cover = cover 강제(여백 없이 꽉 채우기) */
.sec-np .np-panel--cover {
  --np-fit: cover;
}
.sec-np a.np-panel:hover img {
  transform: scale(1.02);
}

.sec-np .np-panel--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 800;
}

/* ==========================================================================
   M3. EXHIBITOR / VISITOR Gateway (sec-ev)
   ========================================================================== */

.sec-ev {
  padding: 90px 0 100px;
  background: var(--c-white);
}

.ev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ev-left {
  display: grid;
  gap: 28px;
}

.ev-card {
  position: relative;
  display: block;
  background: var(--color-accent);
  border-radius: 12px;
  padding: 28px 30px 26px;
  color: var(--c-white);
  text-decoration: none;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.1);
  transition: transform 0.18s ease;
}

.ev-en {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.ev-kr {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  opacity: 0.95;
  word-break: keep-all;
}

.ev-arrow {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 28px;
  font-weight: 900;
  opacity: 0.95;
}

.ev-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 80px;
  justify-items: center;
}

.ev-mini {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--c-ink);
  transition: transform 0.18s ease;
}

.ev-ico {
  color: var(--c-ink);
}

.ev-label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  text-align: center;
  word-break: keep-all;
}

.ev-card:hover,
.ev-mini:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   M4. ABOUT Teaser (sec-about-teaser)
   ========================================================================== */

.sec-about-teaser {
  background: var(--color-secondary);
  color: var(--c-white);

  padding: 70px 0 120px;

  overflow-x: clip;
}
@supports not (overflow: clip) {
  .sec-about-teaser {
    overflow-x: hidden;
  }
}

.sec-about-teaser .about-title {
  text-align: left;
  margin: 0 0 110px;
  font-size: 72px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.sec-about-teaser .about-row {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 60px;
  align-items: start;
}

.sec-about-teaser .about-left {
  padding-top: 50px;
}

.sec-about-teaser .about-headline {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.35;
}

.sec-about-teaser .about-body {
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.85;
  opacity: 0.95;
}

.sec-about-teaser .about-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  background: var(--c-sand);
  color: var(--color-secondary);

  padding: 14px 26px;
  border-radius: 999px;

  font-weight: 900;
  font-size: 16px;

  text-decoration: none;
  border: 0;
}

.sec-about-teaser .about-right {
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

.sec-about-teaser .about-panel {
  background: var(--c-sand);
  width: 100%;
  min-height: 560px;

  border-radius: 280px 0 0 280px;
  padding: 70px 90px 70px 120px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sec-about-teaser .about-map {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;

  margin-left: 50px;
  margin-top: 10px;
}

/* ==========================================================================
   M5. 전시품목 (sec-items) — 최종 적용본(PC 3열, Mobile 2열)
   ========================================================================== */

.sec-items {
  padding: 90px 0;
  background: var(--c-white);
  overflow: visible;
}

.items-title {
  margin: 0 0 46px;
  font-size: 44px;
  font-weight: 900;
  color: var(--color-secondary);
}

/* items-scroller는 홈에서 "그리드"로 운용 (스크롤 제거) */
.items-scroller {
  display: grid;
  grid-template-columns: repeat(3, 240px);
  gap: 26px 34px;
  justify-content: center;
  align-items: stretch;

  width: 100%;
  padding: 6px 2px 14px;
}

.item-card {
  width: 240px;
  height: 150px;
  border-radius: 18px;

  background: var(--color-highlight);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  text-decoration: none;
}

.item-ico {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}
.item-ico img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
.item-label {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* 진행바(남겨둠: JS가 붙어있을 수 있어서) */
.items-progress {
  position: relative;
  margin-top: 44px;
  height: 6px;
}
.items-track {
  height: 6px;
  background: rgba(0, 77, 67, 0.14);
  border-radius: 999px;
}
.items-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  background: var(--color-accent);
  border-radius: 999px;
  width: 20%;
  transform: translateX(0%);
}

/* 드래그 선택 방지 */
.items-scroller,
.item-card,
.item-card * {
  -webkit-user-select: none;
  user-select: none;
}

/* ==========================================================================
   M6. Home latest board widget
   ========================================================================== */

.home-latest {
  margin-top: 18px;
}

.home-latest__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.home-latest__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.home-latest__more {
  text-decoration: none;
  opacity: 0.75;
  font-size: 14px;
}
.home-latest__more:hover {
  text-decoration: underline;
}

.home-latest__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
}
.home-latest__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.home-latest__item:first-child {
  border-top: none;
}

.home-latest__item.is-notice {
  background: var(--c-white);
}

.home-latest__badge {
  font-size: 12px;
  border: 1px solid rgba(221, 229, 126, 0.65);
  background: var(--c-white);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.home-latest__link {
  flex: 1;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-latest__link:hover {
  text-decoration: underline;
}

.home-latest__date {
  font-size: 13px;
  opacity: 0.7;
  white-space: nowrap;
}
.home-latest__empty {
  padding: 14px;
  opacity: 0.7;
}

/* ==========================================================================
   M7. Countdown Bar (FINAL)
   ========================================================================== */

.countdown-sec {
  margin: 0;
  padding: 12px 0;
  background: var(--color-primary);
}

.countdown-sec .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* bar는 레이아웃 래퍼 */
.countdown-sec .countdown-bar {
  background: transparent;
  min-height: 56px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  color: var(--c-white);
}

/* LEFT */
.countdown-sec .cd-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.countdown-sec .cd-dot {
  display: none;
}

/* 확성기 아이콘 */
.countdown-sec .cd-left::before {
  content: "";
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: url("/assets/glivestock/img/icon/speaker.png") center / contain
    no-repeat;
}

.countdown-sec .cd-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* MID */
.countdown-sec .cd-mid {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-weight: 900;
}

.countdown-sec .cd-dlabel {
  font-size: 30px;
}
.countdown-sec .cd-days {
  font-size: 34px;
  letter-spacing: -0.04em;
  display: inline-block;
  perspective: 700px;
}

.countdown-sec .cd-time {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
}

.countdown-sec .cd-box {
  background: var(--c-white);
  color: var(--c-ink);
  font-weight: 900;
  font-size: 22px;

  min-width: 54px;
  height: 46px;
  border-radius: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.countdown-sec .cd-colon {
  color: var(--c-white);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
}

/* BTN */
.countdown-sec .cd-btn {
  margin-left: 14px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: var(--color-highlight);
  color: var(--color-primary);

  border-radius: 999px;
  padding: 12px 18px;

  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.countdown-sec .cd-arrow {
  font-size: 18px;
  font-weight: 900;
}

/* ==========================================================================
   M8. Marquee Text
   ========================================================================== */

.sec-marquee {
  padding: 80px 0;
  background: var(--c-white);
}

.marquee {
  --marquee-speed: 28s;
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeMove var(--marquee-speed) linear infinite;
}

.marquee__group {
  display: inline-flex;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  padding-right: clamp(40px, 6vw, 90px);
}

.marquee__item {
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(52px, 8vw, 120px);
  line-height: 1;
  color: rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

@keyframes marqueeMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none !important;
    transform: translateX(0) !important;
  }
}

/* ==========================================================================
   M9. EV QUICK MENU (sec-evq)
   ========================================================================== */

.sec-evq {
  background: var(--c-white);
}
.sec-evq .sec-container {
  padding-top: 64px;
}

.evq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

.evq-item {
  position: relative;
  padding: 34px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  text-align: center;
  text-decoration: none;
  color: var(--c-ink);

  transition: transform 0.18s ease;
}

.evq-item + .evq-item {
  border-left: 1px solid rgba(0, 0, 0, 0.18);
}

.evq-ico {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: rgba(0, 0, 0, 0.85);
}

.evq-ico svg {
  width: 56px;
  height: 56px;
}

.evq-kr {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.evq-en {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 2px;
}

.evq-item:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   M10. ABOUT (sec-about) — Bar + Background + Exhibit Cards
   - about/intro 등 서브페이지의 ABOUT GILEX 섹션 베이스
   - 전시품목 카드(hover/탭 확장)는 [data-ae] 컴포넌트로 스코프
   ========================================================================== */

.sec-about {
  padding: 0;
}

/* 상단 컬러 바 */
.sec-about .about-bar {
  background: var(--color-secondary);
  color: #fff;
  padding: 34px 0 26px;
}

.sec-about .about-bar-title {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.sec-about .about-bar-sub {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
  opacity: 0.92;
}

/* 배경 이미지 영역 */
.sec-about .about-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 어두운 오버레이(가독성) */
.sec-about .about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.sec-about .about-inner {
  position: relative;
  padding: 110px 20px 90px;
  min-height: 520px;
}

/* 카피 */
.sec-about .about-copy {
  max-width: 560px;
}

.sec-about .about-headline {
  margin: 0 0 18px;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.sec-about .about-body {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.7;
}

.sec-about .about-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.sec-about .about-btn:hover {
  filter: brightness(1.05);
}

.sec-about .about-arr {
  display: inline-block;
  font-size: 16px;
}

/* ABOUT 전시품목 영역(타이틀/여백 only — 실제 카드는 [data-ae] 담당) */
.sec-about .about-items {
  margin-top: 46px;
}
.sec-about .about-items-title {
  margin: 100px 0 50px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* (호환) about-items 원형 그리드 — 기존 마크업 유지용 */
.sec-about .about-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 148px);
  gap: 26px 36px;
  align-items: start;
}

.sec-about .about-item {
  width: 148px;
  height: 148px;
  border-radius: 999px;
  background: var(--color-highlight);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.sec-about .about-item-ico img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.sec-about .about-item-label {
  color: var(--color-secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.25;
}

/* ==========================================================================
   M10-1. ABOUT Exhibit Cards (AE expanding cards) — scoped
   ========================================================================== */

[data-ae] {
  --ae-active-bg: var(--c-main, #0b5a4e);
  --ae-inactive-bg: rgba(0, 0, 0, 0.55);
  --ae-pill-bg: rgba(255, 255, 255, 0.92);
  --ae-pill-ink: rgba(0, 0, 0, 0.85);

  --ae-height: 420px;
}

[data-ae] .ae {
  margin-top: 14px;
}

[data-ae] .ae-track {
  display: flex;
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  padding-bottom: 0;
}

[data-ae] .ae-card {
  flex: 1 1 0;
  min-width: 0;
  height: var(--ae-height);
  border-radius: 26px;
  padding: 26px 22px;
  position: relative;
  overflow: hidden;

  background: var(--ae-inactive-bg);
  color: #fff;
  text-decoration: none;

  transition:
    background 0.28s ease,
    transform 0.18s ease,
    flex 0.28s ease;
}

[data-ae] .ae-card.is-active {
  flex: 3.4 1 0;
  background: linear-gradient(
    180deg,
    rgba(11, 90, 78, 0.9) 0%,
    rgba(11, 90, 78, 0.78) 100%
  );
  backdrop-filter: blur(2px);
}

[data-ae] .ae-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 20px;
  line-height: 1.15;
  white-space: pre-line;
}

[data-ae] .ae-card.is-active .ae-title {
  font-size: 22px;
}

[data-ae] .ae-desc {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  line-height: 1.55;
  white-space: pre-line;

  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

[data-ae] .ae-card.is-active .ae-desc {
  opacity: 1;
  transform: translateY(0);
}

[data-ae] .ae-badge {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;

  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);

  display: flex;
  align-items: center;
  justify-content: center;
}

[data-ae] .ae-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

[data-ae] .ae-arrow {
  position: absolute;
  left: 22px;
  bottom: 22px;

  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

[data-ae] .ae-card.is-active .ae-badge {
  display: none;
}
[data-ae] .ae-card.is-active .ae-arrow {
  display: inline-flex;
}

/* ===== Countdown Flip (HH/MM/SS only) - CLIP SAFE (NO BLANK) ===== */
.countdown-sec .cd-flip {
  --cd-h: 46px;
  --cd-w: 54px;
  --cd-r: 12px;
  --cd-shift: calc(var(--cd-h) / -2);

  --cd-top: 0.28s;
  --cd-bottom: 0.32s;

  position: relative;
  width: var(--cd-w);
  height: var(--cd-h);
  perspective: 800px;
  border-radius: var(--cd-r);
  overflow: hidden;

  font-variant-numeric: tabular-nums;
  background: var(--c-white);

  transform-style: preserve-3d;
}

.countdown-sec .cd-flip__static,
.countdown-sec .cd-flip__anim {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;

  background: var(--c-white);
  color: var(--c-ink);
  font-weight: 900;
  font-size: 24px;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: block;
}

/* ✅ static은 항상 보여서 "이전 숫자"가 bottom에 남는다 */
.countdown-sec .cd-flip__static {
  z-index: 1;
}

/* 각 반쪽 안에서 "텍스트만" 움직일 용도 */
.countdown-sec .cd-flip__val {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;

  height: var(--cd-h);
  line-height: var(--cd-h);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* TOP half */
.countdown-sec .cd-flip__static--top,
.countdown-sec .cd-flip__anim--top {
  top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

/* BOTTOM half */
.countdown-sec .cd-flip__static--bottom,
.countdown-sec .cd-flip__anim--bottom {
  bottom: 0;
}

/* bottom half는 텍스트만 위로 반칸 당김(클리핑 창은 고정) */
.countdown-sec .cd-flip__static--bottom .cd-flip__val,
.countdown-sec .cd-flip__anim--bottom .cd-flip__val {
  transform: translateY(var(--cd-shift));
}

/* anim layers (기본 상태) */
.countdown-sec .cd-flip__anim--top {
  transform-origin: bottom;
  transform: translateZ(0.1px) rotateX(0deg);
  z-index: 3;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.countdown-sec .cd-flip__anim--bottom {
  transform-origin: top;
  transform: translateZ(0.1px) rotateX(90deg);
  z-index: 2;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

/* flipping */
.countdown-sec .cd-flip.is-flipping .cd-flip__anim--top {
  opacity: 1;
  animation: cdFlipTop var(--cd-top) ease-in forwards;
}

.countdown-sec .cd-flip.is-flipping .cd-flip__anim--bottom {
  opacity: 1;
  animation: cdFlipBottom var(--cd-bottom) ease-out forwards;
  animation-delay: var(--cd-top);
}

/* keyframes (딱 1세트만) */
@keyframes cdFlipTop {
  to {
    transform: translateZ(0.1px) rotateX(-90deg);
  }
}

@keyframes cdFlipBottom {
  to {
    transform: translateZ(0.1px) rotateX(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .countdown-sec .cd-flip__anim {
    display: none !important;
  }
}

/* ===== Flip Polish (safe cosmetics only) ===== */

/* 카드 자체에 약간의 입체감 + 테두리 */
.countdown-sec .cd-flip {
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* 가운데 힌지 라인(접히는 선) */
.countdown-sec .cd-flip::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 1px;
  transform: translateY(-0.5px);
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

/* 유리 하이라이트(살짝 고급져 보이게) */
.countdown-sec .cd-flip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 35%,
    rgba(255, 255, 255, 0) 60%
  );
  pointer-events: none;
}

/* 반쪽 패널 배경을 미세한 그라데이션으로 */
.countdown-sec .cd-flip__static,
.countdown-sec .cd-flip__anim {
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
}

/* 숫자 가독성 살짝 업 */
.countdown-sec .cd-flip__val {
  letter-spacing: -0.02em;
}

/* 콜론 톤 다운(너무 튀면 촌스러움 방지) */
.countdown-sec .cd-colon {
  opacity: 0.92;
}

/* ==========================================================================
   R1. Responsive (1040 / 640)
   ========================================================================== */

@media (max-width: 1040px) {
  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 64px 16px 54px;
  }

  /* Info / Shortcut */
  .info-grid,
  .shortcut-grid {
    grid-template-columns: 1fr;
  }
  .sec {
    padding: 56px 0;
  }

  /* NP */
  .sec-np {
    padding: 56px 0 70px;
  }
  .sec-np .np-grid--3,
  .sec-np .np-grid--2 {
    grid-template-columns: 1fr;
  }
  .sec-np .np-panels {
    flex: none;
  }
  .sec-np .np-panel {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: 340px;
  }

  /* EV */
  .sec-ev {
    padding: 60px 0 70px;
  }
  .ev-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .ev-mini-grid {
    gap: 36px 46px;
  }

  /* ABOUT teaser */
  .sec-about-teaser {
    padding: 55px 0 75px;
  }
  .sec-about-teaser .about-title {
    font-size: 44px;
    margin-bottom: 32px;
  }
  .sec-about-teaser .about-row {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .sec-about-teaser .about-left {
    padding-top: 0;
  }
  .sec-about-teaser .about-right {
    margin-right: 0;
  }
  .sec-about-teaser .about-panel {
    min-height: 320px;
    border-radius: 26px;
    padding: 26px;
  }
  .sec-about-teaser .about-map {
    max-width: 520px;
    margin-left: 0;
  }

  /* ABOUT (sec-about) */
  .sec-about .about-bar-title {
    font-size: 40px;
  }
  .sec-about .about-bar-sub {
    font-size: 14px;
  }
  .sec-about .about-inner {
    padding: 80px 16px 70px;
    min-height: 480px;
  }
  .sec-about .about-headline {
    font-size: 22px;
  }
  .sec-about .about-items-grid {
    grid-template-columns: repeat(3, 116px);
    gap: 18px 18px;
  }
  .sec-about .about-item {
    width: 116px;
    height: 116px;
  }
  .sec-about .about-item-ico img {
    width: 46px;
    height: 46px;
  }

  /* Items */
  .sec-items {
    padding: 60px 0 70px;
  }
  .items-title {
    font-size: 32px;
    margin-bottom: 28px;
  }
  .items-scroller {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    justify-content: stretch;
    padding: 0;
  }
  .item-card {
    width: 100%;
    height: 120px;
    border-radius: 16px;
  }
  .item-ico {
    width: 44px;
    height: 44px;
  }
  .item-label {
    font-size: 13px;
  }
  .items-progress {
    margin-top: 26px;
  }

  /* Countdown — 모바일 중앙 정렬 */
  .countdown-sec {
    padding: 14px 0;
  }
  .countdown-sec .container {
    display: flex;
    justify-content: center;
  }
  .countdown-sec .countdown-bar {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    gap: 10px;
    padding: 14px 14px 16px;
    border-radius: 16px;
  }
  .countdown-sec .cd-left {
    justify-content: center;
    width: 100%;
    font-size: 16px;
  }
  .countdown-sec .cd-mid {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
  }
  .countdown-sec .cd-dlabel,
  .countdown-sec .cd-days {
    font-size: 18px;
  }
  .countdown-sec .cd-box {
    min-width: 40px;
    height: 38px;
    font-size: 16px;
    border-radius: 8px;
  }
  .countdown-sec .cd-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    margin: 0 auto;
    padding: 10px 14px;
    font-size: 14px;
  }

  /* EVQ */
  .sec-evq {
    padding: 60px 0 70px;
  }
  .sec-evq .sec-container {
    padding-top: 46px;
  }
  .evq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .evq-item + .evq-item {
    border-left: none;
  }
  .evq-item:nth-child(even) {
    border-left: 1px solid rgba(0, 0, 0, 0.18);
  }
  .evq-item:nth-child(n + 3) {
    border-top: 1px solid rgba(0, 0, 0, 0.18);
  }
  .evq-ico {
    width: 62px;
    height: 62px;
  }
  .evq-ico svg {
    width: 50px;
    height: 50px;
  }
  .evq-kr {
    font-size: 16px;
  }
  .evq-en {
    font-size: 11px;
  }

  /* AE: 모바일은 세로 스택 (가로 스크롤 제거) */
  [data-ae] .ae-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
    padding-bottom: 0;
  }
  [data-ae] .ae-card {
    height: auto;
    min-height: 88px;
    border-radius: 18px;
    padding: 16px;
  }
  [data-ae] .ae-desc {
    display: none;
    opacity: 1;
    transform: none;
  }
  [data-ae] .ae-card.is-active .ae-desc {
    display: block;
    margin-top: 10px;
  }
  [data-ae] .ae-badge,
  [data-ae] .ae-arrow {
    position: static;
    margin-top: 12px;
  }
  [data-ae] .ae-badge {
    width: 54px;
    height: 34px;
  }
  [data-ae] .ae-card.is-active .ae-arrow {
    width: 54px;
    height: 34px;
  }
}

@media (max-width: 640px) {
  /* ABOUT items grid: 2 columns on small screens */
  .sec-about .about-items-grid {
    grid-template-columns: repeat(2, 124px);
    justify-content: start;
  }

  /* EV cards 타이포만 한 단계 축소 */
  .ev-card {
    padding: 22px 22px 20px;
  }
  .ev-en {
    font-size: 28px;
  }
  .ev-kr {
    font-size: 17px;
  }
  .ev-arrow {
    font-size: 24px;
  }

  /* NP: 모바일 배너 높이 더 타이트 + 크롭 예측 가능 */
  .sec-np .np-panel {
    aspect-ratio: auto;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
  }
  .sec-np .np-panel img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* EVQ: 모바일에서 위/아래 공백 축소 */
  .sec-evq {
    padding: 24px 0 28px;
  }
  .sec-evq .sec-container {
    padding-top: 16px;
  }
  .evq-item {
    padding: 18px 8px;
    gap: 8px;
  }
  .evq-ico {
    width: 56px;
    height: 56px;
  }
  .evq-ico svg {
    width: 44px;
    height: 44px;
  }
  .evq-kr {
    font-size: 15px;
  }
  .evq-en {
    font-size: 11px;
  }
}
