@charset "utf-8";

/* events/index.php - 이벤트/기획전 데모 페이지 */
.p-events {
  background: #fff;
}

.evt-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 14px;
  background: #111;
  color: #fff;
}

.evt-hero__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: .78;
}

/* 완성형 배너(제목이 박힌 이미지) 전용 — 표준 규격 3:2 (기본 1024×683) */
.evt-hero--banner {
  background: transparent;
  color: inherit;
}
.evt-hero--banner .evt-hero__img {
  aspect-ratio: 3 / 2;   /* 이미지 비율을 3:2로 맞추면 잘림 없음 */
  opacity: 1;
}

/* 이미지 없는 텍스트형 hero (body 를 이미지 위가 아니라 일반 블록으로) */
.evt-hero--text .evt-hero__body {
  position: static;
  padding: 30px var(--space-3);
  background: none;
}

.evt-hero__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px var(--space-3) 18px;
  background: linear-gradient(to top, rgba(0,0,0,.2), rgba(0,0,0,0));
}

.evt-hero__kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.evt-hero__title {
  margin: 0;
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.06em;
  text-shadow: 0 2px 14px rgba(0,0,0,.22);
}

.evt-hero__desc {
  margin: 9px 0 0;
  max-width: 28em;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255,255,255,.9);
}

.evt-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.evt-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #222;
  font-size: 12px;
  font-weight: 700;
}

.evt-summary {
  padding: 16px var(--space-3) 10px;
  border-bottom: 8px solid #f6f6f6;
}

.evt-summary__title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.03em;
}

.evt-summary__text {
  margin: 0;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.6;
}

.evt-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.evt-benefit {
  min-height: 70px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.evt-benefit b {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  line-height: 1.25;
}

.evt-benefit span {
  display: block;
  color: #777;
  font-size: 11px;
  line-height: 1.35;
}

.evt-note {
  margin: 18px var(--space-3) 0;
  padding: 14px;
  border-radius: 16px;
  background: #fff8f3;
  border: 1px solid #ffe0cb;
  color: #7a3d12;
  font-size: 13px;
  line-height: 1.55;
}

.evt-note b {
  display: block;
  margin-bottom: 4px;
  color: #3b1d0b;
}

@media (max-width: 360px) {
  .evt-benefits {
    grid-template-columns: 1fr;
  }
  .evt-benefit {
    min-height: 0;
    text-align: left;
  }
}

/* 상품 그리드는 PLP 카드(.c-plp-list.is-grid, inc-plps.css)를 그대로 재사용 */

/* 그룹(교단/권) 탭 + 패널 */
.evt-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 12px 16px;
  position: sticky;
  top: var(--header-h, 56px);
  background: #fff;
  z-index: 10;                    /* 카드 품절뱃지(z-index 3~4)보다 위 */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
  scroll-snap-type: x proximity;
  scroll-padding-left: 16px;
}
.evt-tabs::-webkit-scrollbar { display: none; }   /* Chrome/Safari */
/* 가로 스크롤 컨테이너에서 마지막 탭 뒤 여백 보장 */
.evt-tabs::after {
  content: '';
  flex: 0 0 4px;
}
.evt-tabs__btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
}
.evt-tabs__btn.is-active {
  background: var(--text, #111);
  border-color: var(--text, #111);
  color: #fff;
}
.evt-group.is-hidden { display: none; }

/* 섹션(부서) 바로가기 탭 — 가로 스크롤 + 스크롤 스파이 */
.evt-sectabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  z-index: 9;                     /* 그룹탭(10)보다 한 단계 아래, 카드보다 위 */
  scroll-padding-left: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.evt-sectabs::-webkit-scrollbar { display: none; }
.evt-sectabs::after { content: ''; flex: 0 0 4px; }

/* 단독(1단): 헤더 바로 아래 / 그룹 하위(2단): 1단 탭 아래 */
.evt-sectabs.is-tier1 { top: var(--header-h, 56px); }
.evt-sectabs.is-tier2 { top: calc(var(--header-h, 56px) + var(--evt-tier1-h, 62px)); }

.evt-sectabs__btn {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
}
.evt-sectabs__btn.is-active {
  background: var(--jh-red, #e8511d);
  border-color: var(--jh-red, #e8511d);
  color: #fff;
}

/* ── grid 섹션 제목 줄 더보기 (moreUrl 있을 때만, c-nss-head--grid 로 격리) ── */
.c-nss-head--grid {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.evt-sec__more {
  flex: none;
  color: var(--sub, #777);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.evt-sec__more span {
  margin-left: 2px;
  font-size: 15px;
  line-height: 1;
}
