/* ai_beta.css / ai_beta_media.css 에서 '.group_content .top' 룰만 추출 (2026-07-20)
   용도: storefarm/new/ai_intro.php 하단에 ai_beta 의 .top 히어로 이식.
   ⚠️ ai_beta.css 통째 로드는 .inner/.wrap 충돌로 위험 → 이 파일만 로드할 것.
   원본 수정 시 이 파일도 같이 갱신 필요. */

.group_content .top {
  display: block;
  width: 1480px;
  height: 760px;
  margin: 0 auto;
  background: #303030;
  background-image: url('/img/newAI.png');
  background-position: left;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  border-radius: 10px;
}

.group_content .top .inner {
  height: 100%;
  position: relative;
  border-radius: 70px;
}

.group_content .top .text_box {
  position: absolute;
  right: 0;
  top: 90px;
  text-align: left;
  width: 480px;
  color: #fff;
  z-index: 2;
}

.group_content .top .text_box h2 {
  font-size: 35px;
  margin: 0;
  color: #fff;
  font-family: 'Pre-R';
}

.group_content .top .text_box p {
  font-size: 17px;
  font-family: 'Pre-R';
  margin: 28px 0 0;
  color: #fff;
}

.group_content .top .text_box .desc {
  display: block;
  font-size: 14px;
  line-height: 25px;
  margin-top: 16px;
  color: #fff;
}

.group_content .top .text_box .desc b {
  color: #fff;
  font-size: 17px;
}

.group_content .top .text_box .import {
  background: #ffe28a;
  color: #2f2f2f;
  padding: 3px 6px;
  border-radius: 2px;
  display: inline-block;
  font-size: 13px;
}

.group_content .top .text_box .import font:nth-child(1) {
  font-family: 'Pre-B';
  font-size: 14px;
}

.group_content .top .text_box .import font:nth-child(3) {
  font-family: 'Pre-B';
  font-size: 11px;
}

.group_content .top .text_box .import font:nth-child(5) {
  font-family: 'Pre-B';
}

.group_content .top {
    display: block;
    width: 1480px;
    height: 760px;
    margin: 0 auto;
    background: #303030;
    background-image: url('/img/newAI.png');
    background-position: left;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    border-radius: 10px;
  }

.group_content .top .inner {
    height: 100%;
    position: relative;
    border-radius: 70px;
  }

.group_content .top .text_box {
    position: absolute;
    right: 0;
    top: 90px;
    text-align: left;
    width: 480px;
    color: #fff;
    z-index: 2;
  }

.group_content .top .text_box h2 {
    font-size: 35px;
    margin: 0;
    color: #fff;
    font-family: 'Pre-R';
  }

.group_content .top .text_box p {
    font-size: 17px;
    font-family: 'Pre-R';
    margin: 28px 0 0;
    color: #fff;
  }

.group_content .top .text_box .desc {
    display: block;
    font-size: 14px;
    line-height: 25px;
    margin-top: 16px;
    color: #fff;
  }

.group_content .top .text_box .desc b {
    color: #fff;
    font-size: 17px;
  }

.group_content .top .text_box .import {
    background: #ffe28a;
    color: #2f2f2f;
    padding: 3px 6px;
    border-radius: 2px;
    display: inline-block;
    font-size: 13px;
  }

.group_content .top .text_box .import font:nth-child(1) {
    font-family: 'Pre-B';
    font-size: 14px;
  }

.group_content .top .text_box .import font:nth-child(3) {
    font-family: 'Pre-B';
    font-size: 11px;
  }

.group_content .top .text_box .import font:nth-child(5) {
    font-family: 'Pre-B';
  }

@media (max-width: 1200px) {
  .group_content .top {
        width: 100%;
      }
}

@media (max-width: 1200px) {
  .group_content .top {
      width: 100%;
    }
}

@media (max-width: 1400px) {
  .group_content .top {
      width: 100% !important;
      max-width: 1400px;
      margin: 0 auto;
    }
  .group_content .top .text_box {
      right: 20px;
      width: 560px;
      max-width: calc(100% - 40px);
    }
}

@media (max-width: 1024px) {
  .group_content .top {
      height: auto !important;
      padding-bottom: 24px;
    }
  .group_content .top .inner {
      min-height: 520px;
    }
  .group_content .top .text_box {
      position: relative !important;
      top: 0 !important;
      right: 0 !important;
      width: 100% !important;
      max-width: 720px;
      margin: 0 auto;
      padding: 48px 0 16px;
      text-align: left;
    }
}

@media (max-width: 768px) {
  .group_content .top .text_box h2 {
      font-size: 26px !important;
    }
  .group_content .top .text_box p {
      font-size: 16px !important;
    }
  .group_content .top .text_box .desc {
      line-height: 26px !important;
      font-size: 13px !important;
    }
}

@media (max-width: 480px) {
  .group_content .top .text_box {
      padding-top: 40px !important;
    }
}

@media (max-width: 1500px) {
  .group_content .top {
      width: 100% !important;
      height: auto !important;
      max-width: 1500px;
      margin: 0 auto;
      /* 기존 배경 유지하되, ‘사진이 주인공’ 되게 */
      background: #303030;
      background-image: url('/img/newAI.png') !important;
      background-repeat: no-repeat;
      background-size: cover;
      background-position: left center;
      /* ✅ 왼쪽 원본 느낌 */
      position: relative;
      overflow: hidden;
      /* 아래 비디오 박스 들어갈 공간 확보(텍스트+사진 영역) */
      padding-bottom: 26px;
      margin-top: 60px;
      border-radius: 0;
    }
  .group_content .top::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg,
          rgba(0, 0, 0, .55) 0%,
          rgba(0, 0, 0, .40) 45%,
          rgba(0, 0, 0, .25) 100%);
      z-index: 1;
      pointer-events: none;
    }
  .group_content .top .inner {
      position: relative;
      z-index: 2;
      /* 오버레이 위 */
      height: auto !important;
      min-height: 520px;
      /* ✅ 상단 사진 영역 높이(원하면 조절) */
      padding-top: 64px;
      padding-bottom: 14px;
      box-sizing: border-box;
    }
  .group_content .top .text_box {
      position: absolute;
      left: 40px;
      right: auto;
      top: 80px;
      width: 560px;
      max-width: calc(100% - 80px);
      z-index: 3;
    }
}

/* ── 추가 CTA (원본 .top 에는 버튼이 없어 신규. ai_beta 의 .btn_primary 톤) 2026-07-20 ── */
.group_content .top .top_cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 26px;
  padding: 14px 24px;
  border-radius: 10px;
  background: #ffe28a;
  color: #2f2f2f;
  font-family: 'Noto_M';
  font-size: 15px;
  text-decoration: none;
  transition: .15s;
}
.group_content .top .top_cta:hover { background: #ffd75b; }
.group_content .top .top_cta svg { width: 16px; height: 16px; flex: 0 0 auto; }
@media screen and (max-width: 1024px) {
  .group_content .top .top_cta { margin-top: 20px; padding: 13px 20px; font-size: 14px; }
}

/* ── ⚠️ 누락 보완: .hero-video (영상) — 원본은 `.group_content .top` 접두어가 없어
   1차 추출에서 빠졌었음. `.group_content .top` 으로 스코프 걸어 이식. 2026-07-20 ── */
.group_content .top .hero-video {
  position: absolute;
  width: 340px;
  height: auto;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  bottom: 10px;
  right: 140px;
  border-radius: 10px;
}

.group_content .top .hero-video {
    position: absolute;
    width: 340px;
    height: auto;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    bottom: 10px;
    right: 140px;
    border-radius: 10px;
  }

@media (max-width: 1400px) {
  .group_content .top .hero-video {
      right: 60px;
      width: 460px;
      max-width: 40vw;
    }
}

@media (max-width: 1024px) {
  .group_content .top .hero-video {
      position: relative !important;
      right: auto !important;
      bottom: auto !important;
      display: block;
      width: 100% !important;
      max-width: 720px;
      margin: 0 auto 18px;
      border-radius: 10px;
    }
}

@media (max-width: 1500px) {
  .group_content .top .hero-video {
      position: relative !important;
      /* absolute 해제 */
      right: auto !important;
      bottom: auto !important;
      display: block;
      width: 100% !important;
      max-width: 900px;
      /* ✅ 1500 이하에서 영상 박스 폭(원하면 1000/1100로) */
      height: auto;
      margin: 0 auto;
      /* 가운데 */
      margin-top: 360px;
      /* ✅ 텍스트 영역 아래로 내리기(원하면 조절) */
      border-radius: 14px;
      z-index: 3;
      box-shadow: 0 18px 40px rgba(0, 0, 0, .30);
    }
}

/* ── 레이아웃 조정 (진수님 2026-07-20): 텍스트·영상 위로 올리고 CTA는 영상 바로 아래 ──
   높이 760px 안에서 [텍스트 48~352] → [영상 368~668] → [버튼 692~736] 로 배치.
   영상 폭은 340→300 으로 줄임(정사각이라 높이도 300) — 안 줄이면 버튼 자리가 안 나와 텍스트와 겹침. */
.group_content .top .text_box { top: 70px; }
.group_content .top .hero-video { width: 300px; bottom: 138px; right: 180px; } /* 텍스트 왼쪽선(1000px)에 정렬 */
.group_content .top .top_cta {
  position: absolute;
  right: 180px;   /* 영상·텍스트와 동일한 왼쪽선 정렬 */
  bottom: 70px;
  width: 300px;   /* 영상 폭과 맞춤 → 정확히 아래 정렬 */
  margin-top: 0;
  z-index: 2;
  box-sizing: border-box;
}
/* 1500px 이하는 영상이 relative 로 풀려 세로로 쌓임 → 버튼도 흐름에 맡김 */
@media (max-width: 1500px) {
  .group_content .top .top_cta {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: 18px;
  }
}

/* ── 상단 뱃지 "AI 모션포토" (2026-07-20)
   위쪽 히어로 .ai-lp-badge 와 같은 형태(pill + 점). .top 배경이 어두워 톤만 반전. ── */
.group_content .top .text_box .top_badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 226, 138, .16);
  border: 1px solid rgba(255, 226, 138, .38);
  color: #ffe28a;
  font-family: 'Noto_M';
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.group_content .top .text_box .top_badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffe28a;
  display: inline-block;
  flex: 0 0 auto;
}

/* 섹션 하단 여백 (진수님 2026-07-20) */
.group_content { margin-bottom: 100px; }
