/* =========================================================================
 * 홈피디자인 Phase 3 네이티브 위젯 통합 스타일시트 (assets/css/hp-widgets-extra.css)
 * - 팝업 7종(PU01~07), 모바일 햄버거/드로어(MB01), 모던 섹션(MS03/06, MW08/11/14),
 *   프레젠테이션(PR01~22) 스타일을 HTML 위젯에서 분리해 전역 제공
 * ========================================================================= */

/* 1. [PU01~PU07] 엘리멘터 편집기 안내 바 & 섹션 여백 초기화 */
.hp-pu-editor-notice {
  display: none;
  background: #0F172A;
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
}
body.elementor-editor-active .hp-pu-editor-notice,
body.elementor-editor-preview .hp-pu-editor-notice {
  display: flex !important;
}
.hp-popup-standalone-sec {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
}
.hp-popup-standalone-sec > .e-con-inner {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

/* [PU01] 상단고정 슬라이딩 띠배너 */
.hp-pu01-banner {
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  z-index: 99;
  overflow: hidden;
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.45s ease, opacity 0.35s ease;
}
.hp-pu01-banner.is-closed {
  max-height: 0 !important;
  opacity: 0 !important;
  border-bottom-width: 0 !important;
  pointer-events: none;
}
.hp-pu01-banner-content,
.hp-pu01-content {
  color: #212529;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  min-height: 100px;
  padding: 18px 64px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hp-pu01-s2 {
  font-size: 22px;
  font-weight: 600;
  color: #212529;
  text-align: center;
  line-height: 1.45;
  margin-bottom: 6px;
  word-break: keep-all;
}
.hp-pu01-s5 {
  font-size: 15px;
  font-weight: 400;
  color: #495057;
  text-align: center;
  line-height: 1.5;
  word-break: keep-all;
}
.hp-pu01-close {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: transparent;
  border: 0;
  color: #212529;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}
.hp-pu01-close:hover {
  color: #A80632;
  transform: scale(1.08);
}

/* [PU02] 중앙 모달 팝업공지 */
.hp-pu02-modal {
  position: fixed;
  inset: 0;
  z-index: 9995;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.hp-pu02-modal.is-closed {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.hp-pu02-dialog {
  width: 100%;
  max-width: 500px;
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.25s ease;
}
.hp-pu02-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #DEE2E6;
}
.hp-pu02-title {
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #212529 !important;
}
.hp-pu02-x {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: #6C757D;
  cursor: pointer;
  padding: 4px 8px;
}
.hp-pu02-x:hover {
  color: #000000;
}
.hp-pu02-body {
  padding: 20px;
  color: #212529;
  font-size: 15px;
  line-height: 1.7;
}
.hp-pu02-body img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 24px;
}
.hp-pu02-body p {
  margin: 0;
  color: #334155;
  word-break: keep-all;
}
.hp-pu02-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #DEE2E6;
  background: #F8FAFC;
}
.hp-pu02-btn-cookie {
  background: #64748B;
  color: #FFFFFF;
  border: 0;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.hp-pu02-btn-close {
  background: #212529;
  color: #FFFFFF;
  border: 0;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.hp-pu02-btn-close:hover {
  background: #000000;
}

/* [PU03 / PU06 / PU07] 중앙 고정 레이어 팝업 */
.hp-pu-fixed-overlay {
  position: fixed;
  inset: 0;
  z-index: 9992;
  background-color: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.hp-pu-fixed-overlay.is-closed {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.hp-pu-layer-box {
  width: 100%;
  max-width: 500px;
  position: relative;
  background: #2B2B2B;
  border: 1px solid #1F1F1F;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}
.hp-pu-layer-box.is-wide-800 {
  max-width: 800px;
}
.hp-pu-layer-body {
  background: #1F1F1F;
}
.hp-pu-layer-body img {
  width: 100%;
  height: auto;
  display: block;
}
.hp-pu-layer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
  padding: 9px 12px;
  background: #2B2B2B;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  width: 100%;
  box-sizing: border-box;
}
.hp-pu-act-btn {
  background: #18181B;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hp-pu-act-btn:hover {
  background: #A80632;
  border-color: #A80632;
}

/* [PU04 / PU05] 다크 바 고정형 2장/1장 팝업 */
.hp-pu-abs-box {
  position: fixed;
  z-index: 9991;
  background-color: #333333;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.hp-pu-abs-box.is-closed {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.hp-pu04-box {
  width: 94%;
  max-width: 1000px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hp-pu05-box {
  width: 92%;
  max-width: 500px;
  top: 160px;
  left: 95px;
}
.hp-pu04-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-pu04-grid li img,
.hp-pu05-box .hp-pu-abs-body img {
  width: 100%;
  height: auto;
  display: block;
}
.hp-pu-abs-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 9px 12px;
  background: #2B2B2B;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  width: 100%;
  box-sizing: border-box;
}
.hp-pu-abs-foot .hp-pu-act-btn {
  background: #18181B;
}
.hp-pu-abs-foot .hp-pu-act-btn:hover {
  background: #A80632;
}

/* [PU06] 16:9 유튜브 동영상 레이어 팝업 */
.hp-pu06-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000000;
}
.hp-pu06-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* [PU07] 멀티 팝업 (EVENT 01~04 탭 슬라이드) */
.hp-pu07-carousel {
  position: relative;
  background: #FFFFFF;
  overflow: hidden;
}
.hp-pu07-slides {
  position: relative;
  width: 100%;
  overflow: hidden;
}
@keyframes hpPu07FadeIn {
  from { opacity: 0.35; }
  to { opacity: 1; }
}
.hp-pu07-slide {
  display: none;
}
.hp-pu07-slide.is-active {
  display: block;
  animation: hpPu07FadeIn 0.38s ease;
}
.hp-pu07-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.hp-pu07-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.78);
  color: #FFFFFF;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s ease;
}
.hp-pu07-arrow:hover {
  background: #A80632;
}
.hp-pu07-arrow.is-prev { left: 14px; }
.hp-pu07-arrow.is-next { right: 14px; }
.hp-pu07-tabs {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
}
.hp-pu07-tab {
  flex: 1;
  margin: 0;
  padding: 10px 6px;
  background: #FFFFFF;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  border-right: 1px solid #F1F5F9;
}
.hp-pu07-tab:last-child {
  border-right: 0;
}
.hp-pu07-tab.is-active {
  flex: 1.5;
  background: #1F1F1F !important;
  color: #E8E8E8 !important;
  font-size: 14px;
}

@media (max-width: 767px) {
  .hp-pu01-s2 { font-size: 17px; }
  .hp-pu01-s5 { font-size: 13.5px; }
  .hp-pu05-box {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .hp-pu04-grid {
    grid-template-columns: 1fr;
  }
}

/* 2. [MB01] 모바일 드로어·아코디언 제어 스타일 */
.hp-mb01-acc-btn { cursor: pointer; }
.hp-mb01-group .hp-mb01-acc-body { display: none; }
.hp-mb01-group.is-open .hp-mb01-acc-body { display: block; }
.hp-mb01-drawer.is-collapsed { display: none; }

/* 3. [MS03 / MS06 / MW08 / MW11 / MW14] 모던 섹션·위젯 전용 그리드 스타일 */
.hp-ms03-bg-el {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.hp-ms03-bg-el > .elementor-widget-container {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
}
.hp-ms03-sc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
@media (max-width: 767px) {
  .hp-ms03-sc { grid-template-columns: 1fr; gap: 22px; }
}

.hp-ms06-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  width: 100%;
}
.hp-ms06-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  text-decoration: none;
  min-height: 80px;
  transition: filter 0.25s ease;
}
.hp-ms06-col:hover { filter: brightness(1.1); }
@media (max-width: 1024px) {
  .hp-ms06-strip { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hp-ms06-col { padding: 18px 20px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .hp-ms06-col.is-btn { flex-direction: row; align-items: center; min-height: 60px; }
}

.hp-mw08-shell {
  display: grid;
  grid-template-columns: 48% 52%;
  border-radius: 5px;
  overflow: hidden;
}
.hp-mw08-hero {
  min-height: 480px;
  background-size: cover;
  background-position: center;
}
.hp-mw08-check {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.hp-mw08-cell {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 240px;
}
.hp-mw08-photo img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}
@media (max-width: 1024px) {
  .hp-mw08-shell { grid-template-columns: 1fr; }
  .hp-mw08-hero { min-height: 300px; }
}
@media (max-width: 640px) {
  .hp-mw08-check { grid-template-columns: 1fr; grid-template-rows: auto; }
}

.hp-mw11-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hp-mw11-card {
  background: #F8FAFC;
  border-radius: 5px;
  padding: 36px 28px;
  text-align: left;
}
.hp-mw11-num {
  font-family: Pretendard, sans-serif;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: #0F172A;
  line-height: 1.1;
  margin: 8px 0 10px;
}
@media (max-width: 767px) {
  .hp-mw11-grid { grid-template-columns: 1fr; }
  .hp-mw11-num { font-size: 38px; }
}

.hp-mw14-cgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}
@media (max-width: 640px) {
  .hp-mw14-cgrid { grid-template-columns: 1fr; }
}

/* 4. [PR01~PR22] 에디토리얼 프레젠테이션 위젯 스타일 */
.hp-pr-stage {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  background: #FFFFFF;
  color: #111827;
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  box-sizing: border-box;
  position: relative;
  line-height: 1.6;
  word-break: keep-all;
}
.hp-pr-stage * {
  box-sizing: border-box;
  word-break: keep-all;
}
.hp-pr-stage img {
  display: block;
  object-fit: cover;
  border-radius: 0;
  background: #F4F4F5;
}
.hp-pr-h2 {
  font-size: 32px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0;
}
.hp-pr-lead {
  font-size: 15.5px;
  font-weight: 800;
  color: #111827;
  line-height: 1.55;
  margin: 0;
}
.hp-pr-sub {
  font-size: 14.5px;
  font-weight: 800;
  color: #111827;
  line-height: 1.4;
  margin: 0 0 6px 0;
}
.hp-pr-p {
  font-size: 13.5px;
  font-weight: 500;
  color: #4B5563;
  line-height: 1.65;
  margin: 0;
}
.hp-pr-caption {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 960px) {
  .hp-pr-resp-col { grid-template-columns: 1fr !important; flex-direction: column !important; gap: 24px !important; }
  .hp-pr-resp-2col { grid-template-columns: 1fr !important; }
  .hp-pr-overlap-title { position: static !important; margin-bottom: 16px !important; }
  .hp-pr-overlap-img { position: static !important; width: 100% !important; margin-top: 16px !important; }
  .hp-pr-watermark-big { font-size: 56px !important; }
  .hp-pr-watermark-vert { display: none !important; }
}
