/* ==========================================================================
   WZ-EVENT-001 그누보드5 · 영카트5 보정 — 원본 eventro-style.css 뒤에 로드
   (0 #hex 원칙 준수: var(--wz-*), var(--main-600), hsl(), rgb()/rgba() 전용)
   ========================================================================== */

/* 1) 키트 기본 .btn 높이·줄 높이 겹침 방어 */
:where(.wz-original) :where(.btn) { height: auto; line-height: 1; }
:where(.wz-original) :where(.header, .mobile-menu, .cart-sidebar, .search_popup, footer, main > :not(.ev-g5)) :where(button, input, select, textarea) { font: revert; }

/* 고정 머리 — 데모 바 오프셋 반영 */
body:has(> .wz-demo-bar) .header,
body:has(> .wz-demo-bar) .header.fixed-header,
.header.position-sticky,
.header.fixed-header { top: var(--wz-demo-offset, 0px) !important; }

/* 캡차 이미지 복원 */
#captcha #captcha_img { width: auto; height: var(--wz-captcha-h, 50px); border-radius: 0; }
.ev-g5 { overflow-wrap: break-word; word-break: keep-all; min-height: 420px; }

/* 2) 서브 머리·상세 제목·공식 스토어 연동 */
p.breadcrumb-title { font-family: var(--heading-font); font-weight: 700; color: hsl(var(--white)); margin: 0; }
h1.blog-details-title { font-size: var(--heading-two); }
.shop-details-btn .ev-buy-btn { width: 100%; padding: 12px 16px; border-radius: 10px; background: var(--main-600); color: hsl(var(--white)); font-family: var(--body-font); font-size: 16px; font-weight: 500; text-transform: uppercase; border: none; outline: none; cursor: pointer; transition: all 0.3s ease-in-out; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; }
.shop-details-btn .ev-buy-btn:hover { background: hsl(var(--white)); color: hsl(var(--black)); }
.ev-detail-hero { width: 100%; aspect-ratio: 849 / 491; object-fit: cover; border-radius: 16px; }
.ev-post > p:not([class]) { color: hsla(0, 0%, 100%, 0.8); font-weight: 500; margin-bottom: 28px; }
.ev-post img { max-width: 100%; height: auto; }
.ev-shop-desc p { margin-bottom: 16px; }
.ev-spec { width: 100%; border-collapse: collapse; color: hsl(var(--white)); }
.ev-spec th, .ev-spec td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); text-align: left; }
.ev-spec th { width: 30%; font-weight: 600; color: hsla(0, 0%, 100%, 0.7); }

/* 사진 없는 카드 및 썸네일 비율 */
.blog-main-thumb .wz-noimg { aspect-ratio: 410 / 352; height: auto; border-radius: 16px; }
.product-card-thumb .wz-noimg { aspect-ratio: 280 / 275; height: auto; }
.product-card-thumb img { width: 100%; aspect-ratio: 280 / 275; object-fit: cover; border-radius: 12px; }
.blog-recent-img .wz-noimg { width: 108px; height: 85px; }

/* 머리 미니 장바구니 배지 & 장바구니 서랍 */
.header-cart .btn-cart { text-decoration: none; color: hsl(var(--white)); }
.header-three .header-cart .btn-cart { color: inherit; }
.header-cart .wz-cart-badge { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--main-600); color: hsl(var(--white)); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.header-cart .wz-cart-badge[hidden] { display: none !important; }
.cart-sidebar .cart-item > a { color: inherit; text-decoration: none; }
.cart-sidebar .cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-sidebar .item-price-wrap { color: var(--main-600); }
.footer-legal, .ev-legal { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* 행사 포트폴리오 게시판 (ev-archive) */
.ev-archive-badge { position: absolute; left: 16px; top: 16px; z-index: 2; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: rgba(12, 11, 28, 0.84); border: 1px solid rgba(255, 15, 211, 0.55); color: hsl(var(--white)); font-size: 0.8125rem; font-weight: 600; backdrop-filter: blur(8px); }
.ev-archive-card .blog-main-thumb img { aspect-ratio: 500 / 424; object-fit: cover; }

/* 문의 유형 고르기 */
select.ev-select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
select.ev-select option { color: rgb(17, 17, 17); }

/* 3-1) 관리자 단추·빈 목록 */
.ev-admin { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 24px 0 0; }
.ev-empty { width: 100%; padding: 40px 15px; text-align: center; color: hsla(0, 0%, 100%, 0.7); }

/* 3-2) 문의 폼·댓글 폼: 캡차·개인정보 동의 */
.ev-captcha { margin: 0 0 16px; }
.ev-captcha #captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; padding: 0; margin: 0; }
.ev-captcha #captcha legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ev-captcha #captcha #captcha_img { order: 1; display: inline-block; background: rgb(255, 255, 255); border-radius: 8px; }
.ev-captcha #captcha #captcha_mp3, .ev-captcha #captcha #captcha_reload { width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background-color: rgba(255, 255, 255, 0.06); }
.ev-captcha #captcha #captcha_mp3 { order: 2; }
.ev-captcha #captcha #captcha_reload { order: 3; }
.ev-captcha #captcha #captcha_key { order: 4; flex: 1 1 100%; width: 100%; height: 56px; padding: 0 20px; margin: 0; color: hsl(var(--white)); background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; font: inherit; }
.ev-captcha #captcha #captcha_info { order: 5; flex: 1 1 100%; color: hsla(0, 0%, 100%, 0.6); font-size: 0.875rem; }
.ev-consent { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 20px; color: hsla(0, 0%, 100%, 0.8); font-size: 0.9375rem; line-height: 1.6; }
.ev-consent input { margin-top: 5px; accent-color: var(--main-600); }
.ev-consent a { color: var(--main-600); text-decoration: underline; }
.ev-cmt-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ev-check { display: inline-flex; align-items: center; gap: 6px; color: hsla(0, 0%, 100%, 0.8); }
.ev-check input { accent-color: var(--main-600); }
.ev-cmt-stars { color: rgb(255, 193, 7); font-size: 0.875rem; margin-left: 6px; }
#bo_vc .blog-details-comment-text { color: hsla(0, 0%, 100%, 0.8); margin-bottom: 10px; }
.blog-details-comment-meta { display: flex; flex-wrap: wrap; gap: 12px; }
.ev-faq-a p { margin: 0 0 8px; }

/* 3-3) 그누보드 화면 & 영카트5 공식 스토어 다크 테마 조화 (.ev-g5) */
.ev-g5 :where(#bo_v_con, .wz-fit-view__body, .wz-content, #ctt_con, #sit_inf_explan) :where(ul) { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.ev-g5 :where(#bo_v_con, .wz-fit-view__body, .wz-content, #ctt_con, #sit_inf_explan) :where(ol) { list-style: decimal; padding-left: 1.4em; margin: 0 0 1em; }
.ev-g5 :where(#bo_v_con, .wz-fit-view__body, .wz-content, #ctt_con, #sit_inf_explan) :where(p) { margin: 0 0 1em; color: hsla(0, 0%, 100%, 0.85); }
.ev-g5 :where(h2, h3, h4) { color: hsl(var(--white)); }
.ev-g5 a:not([class]) { color: inherit; }
.ev-g5 select option { color: rgb(17, 17, 17); background: rgb(255, 255, 255); }

.wz-fit-btn.ev-btn, .ev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 28px; border-radius: 999px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.ev-btn.bg-transparent:hover { background: hsl(var(--white)) !important; color: hsl(var(--black)) !important; }
.ev-btn.bg-main-600:hover { filter: brightness(1.08); }

.ev-input { width: 100%; min-height: 56px; padding: 14px 20px; color: hsl(var(--white)); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px; outline: none; }
textarea.ev-input { min-height: 160px; }
.ev-input:focus { border-color: var(--main-600); }
.ev-input::placeholder { color: hsla(0, 0%, 100%, 0.5); }
select.ev-input option { color: rgb(17, 17, 17); }
.ev-label { display: block; margin-bottom: 8px; color: hsla(0, 0%, 100%, 0.85); font-weight: 600; }

.ev-card { padding: 28px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.ev-inquiry-info { margin-bottom: 24px; }
.ev-tag, .ev-post-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 0.8125rem; }
.ev-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.ev-tabs .ev-tab-on, .blog-details-tag.ev-tab-on { background: var(--main-600); border-color: var(--main-600); color: hsl(var(--white)); }

.ev-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.ev-pages .ev-page { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); color: hsl(var(--white)); font-weight: 600; }
.ev-pages .ev-page.active, .ev-pages .ev-page:hover { background: var(--main-600); border-color: var(--main-600); }

.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.ev-grid .ev-post-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ev-post-meta { color: hsla(0, 0%, 100%, 0.7); font-size: 0.875rem; margin-bottom: 10px; }
@media (max-width: 991px) { .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .ev-grid { grid-template-columns: 1fr; } .ev-card { padding: 20px; } }
@media (max-width: 576px) { .ev-tabs .blog-details-tag { font-size: 0.8125rem; padding: 6px 10px; } }

.blog-list-wrapper .blog-main-thumb img { aspect-ratio: 862 / 481; object-fit: cover; }
.blog-area .blog-main-thumb img { aspect-ratio: 410 / 352; object-fit: cover; }
.ev-grid > * { min-width: 0; } .ev-grid img { max-width: 100%; height: auto; }
.ev-grid .ev-post-media { display: block; } .ev-grid .ev-post-media img { width: 100% !important; max-width: 100%; transform: none; }

/* ==========================================================================
   WZ-EVENT-001 Craftsmanship Restoration (Eventro MICE & Conference)
   ========================================================================== */
@keyframes evSpinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes evFloatDecor {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}
@keyframes evVideoPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 190, 23, 0.55), 0 0 0 0 rgba(255, 59, 139, 0.35); }
  70% { box-shadow: 0 0 0 22px rgba(255, 190, 23, 0), 0 0 0 42px rgba(255, 59, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 190, 23, 0), 0 0 0 0 rgba(255, 59, 139, 0); }
}

.spinner img { animation: evSpinSlow 24s linear infinite; }
.banner-spriller-1, .banner-spriller-2, .banner-spriller-3 { animation: evFloatDecor 6.5s ease-in-out infinite; }
.banner-spriller-2 { animation-delay: -2.2s; }
.banner-spriller-3 { animation-delay: -4.1s; }

.counter-area .counter-item { display: flex; justify-content: center; }
.counter-area .counter-wrapper {
  width: 172px;
  height: 172px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.08), rgba(20, 11, 43, 0.86));
  border: 2px solid rgba(255, 190, 23, 0.42);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36), inset 0 0 24px rgba(255, 59, 139, 0.18);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.counter-area .counter-wrapper::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 190, 23, 0.35);
  animation: evSpinSlow 28s linear infinite;
  pointer-events: none;
}
.counter-area .counter-wrapper:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgb(255, 190, 23);
  box-shadow: 0 22px 46px rgba(255, 59, 139, 0.28), inset 0 0 28px rgba(255, 190, 23, 0.22);
}
.counter-area .counter-title { margin-bottom: 4px !important; line-height: 1.05; }

.video-area .video-button { animation: evVideoPulse 2.4s infinite; }

.ev-video-modal-wrap {
  position: relative;
  width: min(960px, 92vw);
  aspect-ratio: 16 / 9;
  background: rgb(9, 4, 20);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 190, 23, 0.35);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78);
}
.ev-video-modal-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-video-modal-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(12, 6, 28, 0.82);
  backdrop-filter: blur(8px);
  color: rgb(255, 255, 255);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 190, 23, 0.4);
  pointer-events: none;
}
.ev-video-modal-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(255, 190, 23);
  box-shadow: 0 0 10px rgb(255, 190, 23);
}

/* FINAL-EVENT001-HEADER-NOWRAP-V2 */
header a,
header button,
header nav a,
header .btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
header nav ul {
  flex-wrap: nowrap !important;
  gap: clamp(14px, 1.5vw, 24px) !important;
}
