/* =====================================================
   APP.MIN.CSS
   목적: 기존 style.min.css를 건드리지 않고
         HERO + MOBILE만 안전하게 덮어쓰기
===================================================== */

/* =========================
   HERO – PC (안정)
========================= */
.hero.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 텍스트는 항상 위 */
.hero-text {
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  color: #fff;
}

/* =========================
   HERO OVERLAY (PC)
========================= */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 2;
  pointer-events: none;
}

/* =========================
   MOBILE FIX (<=768px)
========================= */
@media (max-width: 768px) {

  /* 상단 메뉴 제거 */
  .gnb,
  .main-nav,
  .top-util {
    display: none !important;
  }

  /* HERO 높이 고정 */
  .hero.hero-slider {
    height: 260px !important;
    border-radius: 16px;
  }

  .hero-slides {
    height: 100%;
  }

  .hero-slide {
    inset: 0;
  }

  .hero-slide img {
    height: 100%;
    object-fit: cover;
  }

  /* 모바일 텍스트 위치 */
  .hero-text {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    transform: none !important;
    padding: 16px;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.65),
      rgba(0,0,0,0)
    );
  }

  .hero-text h1 {
    font-size: 18px;
    line-height: 1.4;
  }

  .hero-text p {
    font-size: 12px;
    margin-bottom: 6px;
  }

  /* 화살표 제거 */
  .hero-arrow {
    display: none !important;
  }
}
