/* =========================================
   모바일 상단 서브바 항상 표시 & 여백 조정
   - 붐붐 _menu-mo.php 기준 (PHP 수정 없음)
   ========================================= */

@media (max-width: 767px) {
  /* collapse 상태라도 항상 보이게 */
  #nt_menu_mobile #mobile_sub.collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }

  /* 서브 토글 화살표는 의미가 없어지니 선택적으로 숨겨도 됨 */
  /* #nt_menu_mobile .d-table-cell.nw-1.text-right a[href="#mobile_sub"] {
    display: none !important;
  } */

  /* 스페이서 여백(붐붐 .mo-spacer) – 끝 글자 잘림 방지 */
  #nt_menu_mobile .mo-spacer {
    min-width: 26px; /* 필요에 따라 조절 */
  }

  /* 서브 ul도 좌우 패딩/간격 살짝 줌 */
  #nt_menu_mobile #mobile_nav ul.d-flex,
  #nt_menu_mobile #mobile_nav_sub1 ul.d-flex,
  #nt_menu_mobile #mobile_nav_sub2 ul.d-flex {
    padding-left: 26px;
    padding-right: 26px;
    box-sizing: border-box;
    white-space: nowrap;
  }
}

/* ==========================================================================
   GGONGDAY MAIN CUSTOM CSS
   ========================================================================== */

:root {
  --hf-bg-dark: #0b1b34;
  --hf-card-bg: #0e2345;
  --hf-primary: #5c83ff;
  --hf-point: #e74c3c;
  --hf-text-main: #0e1628;
}

hr.hr {
  display: none;
}

.hf-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 10px;
}

/* 카드 공통 */
.hf-card {
  background: #fff;
  border: 1px solid #e9eef5;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-bottom: 20px;
}

.hf-head-title {
  font-size: 17px;
  font-weight: 800;
  color: #1a1a1a;
  padding: 15px 18px;
  border-bottom: 1px solid #f1f4f8;
  margin: 0;
}

/* 상단 티커 */
.hf-ticker-wrap {
  background: #fff;
  border: 1px solid #ff7a3d;
  border-radius: 8px;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(255, 122, 61, 0.1);
}
.hf-ticker-label {
  background: #fff1ea;
  color: #ff6a28;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 15px;
  white-space: nowrap;
  border: 1px solid #ffe0d0;
}
.hf-ticker-viewport {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}
.hf-ticker-track {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  will-change: transform;
}
.hf-ticker-item {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 600;
}
.hf-ticker-item .cate {
  color: #666;
  font-size: 12px;
  background: #f5f5f5;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

/* HERO 섹션 */
.hf-hero-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.hero-video-box {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.hero-video-iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.hero-video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 40px 20px 20px;
  pointer-events: none;
}
.hero-video-title {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  background: var(--hf-point);
  padding: 5px 12px;
  border-radius: 6px;
}

/* 우측 사이드 리스트 */
.hf-side-list {
  list-style: none;
  padding: 0 15px;
  margin: 0;
}
.hf-side-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  gap: 10px;
}
.hf-side-list li:last-child {
  border-bottom: none;
}
.hf-side-thumb {
  width: 90px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}
.hf-side-text {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* [신규] 포인트존 가로형 그리드 */
.hf-point-zone {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}
.pz-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 15px 10px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s;
}
.pz-btn:hover {
  transform: translateY(-3px);
  border-color: var(--hf-primary);
  box-shadow: 0 5px 15px rgba(92, 131, 255, 0.15);
}
.pz-icon {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--hf-primary);
}
.pz-text {
  font-size: 14px;
  font-weight: 700;
}
.pz-btn.tg {
  border-color: #0088cc;
}
.pz-btn.tg .pz-icon {
  color: #0088cc;
}

/* 뉴스 슬라이더 */
.hf-news-section {
  background-color: var(--hf-bg-dark);
  padding: 30px 0;
  margin: 30px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.hf-news-header {
  max-width: 1240px;
  margin: 0 auto 15px;
  padding: 0 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hf-news-viewport {
  width: 100%;
  overflow: hidden;
}
.hf-news-track {
  display: flex;
  gap: 15px;
  padding: 0 10px;
  width: max-content;
  will-change: transform;
}
.hf-news-card {
  display: block;
  width: 260px;
  min-width: 260px;
  background: var(--hf-card-bg);
  border: 1px solid #1a3b6e;
  border-radius: 10px;
  padding: 10px;
  text-decoration: none;
  transition: transform 0.2s;
}
.hf-news-card:hover {
  transform: translateY(-3px);
  border-color: var(--hf-primary);
}
.hf-news-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 6px;
  object-fit: cover;
  background: #000;
  margin-bottom: 10px;
}
.hf-news-title {
  color: #e9f0ff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
}

/* 애니메이션 */
@keyframes hf-slide-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 하단 리스트 */
.hf-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hf-text-list {
  list-style: none;
  padding: 0 15px;
  margin: 0;
}
.hf-text-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  justify-content: space-between;
}
.hf-text-list a {
  color: #444;
  font-size: 14px;
  text-decoration: none;
  max-width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hf-text-list .date {
  font-size: 12px;
  color: #999;
}

@media (max-width: 991px) {
  .hf-hero-grid,
  .hf-dual-grid {
    grid-template-columns: 1fr;
  }
  .hf-point-zone {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 576px) {
  .hf-point-zone {
    grid-template-columns: repeat(2, 1fr);
  }
}
