/* home.css : 히어로, 스페셜 이미지, 이미지 칸 공통, 프리미엄 배너 */

.band.soft { background: var(--bg-soft); width: 100%; }

/* hero */
.hero { padding-block: 48px 32px; }
.kicker { margin: 0 0 8px; font-size: 18px; font-weight: 500; color: var(--fg-sub); }
.hero h1 { margin: 0; font-size: 36px; line-height: 1.3; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }


.search-row { display: flex; gap: 16px; margin-top: 32px; align-items: stretch; }
.search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 3px solid var(--accent); border-radius: 24px;
  padding: 10px 10px 10px 24px; height: 76px;
  box-shadow: 0 0 0 6px var(--accent-weak);
}
.search input[type="text"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; font-weight: 500; }
.search input::placeholder { color: var(--fg-mute); }
.search .clear { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; flex: none; }
.search .go {
  height: 100%; padding: 0 44px; border-radius: 16px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 18px; transition: background .15s, transform .1s; flex: none;
}
.search .go:hover { background: var(--accent-press); }
.search .go:active { transform: scale(.97); }
.post {
  flex: none; width: 150px; border-radius: 24px; background: var(--accent-weak); color: var(--accent);
  font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s;
}
.post:active { transform: scale(.97); }
.post:hover { filter: brightness(.97); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.chips .lb { font-size: 14px; color: var(--fg-mute); font-weight: 500; margin-right: 4px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--bg-soft); font-size: 14px; font-weight: 500; color: var(--fg-sub); }
.chip:hover { background: var(--accent-weak); color: var(--accent); }

/* 이미지 칸 공통 (스페셜, 6칸 이미지) */
.tile { display: block; position: relative; min-width: 0; border-radius: 20px; overflow: hidden; }
.tile img { display: block; width: 100%; height: auto; }
a.tile { transition: transform .15s; }
a.tile:hover { transform: translateY(-2px); }
.tile-badge {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  padding: 3px 8px; border-radius: 6px; background: rgba(25,31,40,.82); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
/* 이미지 파일이 아직 없을 때 보이는 자리 표시 */
.ph {
  display: grid; place-items: center; aspect-ratio: var(--ratio, 4 / 3);
  border: 2px dashed var(--line); border-radius: 20px; background: var(--bg-soft);
  color: var(--fg-mute); font-size: 12px; text-align: center; padding: 8px; overflow-wrap: anywhere;
}

/* 스페셜(유료) 이미지 4개 */
.special { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 40px; }
.special .ph { --ratio: 4 / 3; }

/* 프리미엄 / 파트너스 배너 */
.banner-sec { padding-block: 32px 0; }
.carousel { position: relative; border-radius: 28px; overflow: hidden; height: 208px; }
.track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.slide { flex: 0 0 100%; min-width: 0; height: 100%; position: relative; display: flex; align-items: center; padding: 0 56px; overflow: hidden; }
.slide .tx { position: relative; z-index: 1; max-width: 520px; }
.slide .tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.2); margin-bottom: 12px; }
.slide h2 { margin: 0 0 18px; font-size: 26px; line-height: 1.35; font-weight: 800; letter-spacing: -0.035em; }
.slide .cta { display: inline-block; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.slide svg.art { position: absolute; right: 24px; bottom: 0; height: 100%; width: 300px; max-width: 55%; }
.s1 { background: #3182f6; color: #fff; } .s1 .cta { background: #fff; color: #1b64da; }
.s2 { background: #191f28; color: #fff; } .s2 .cta { background: #3182f6; color: #fff; }
.s3 { background: #e8f3ff; color: #191f28; } .s3 .tag { background: #fff; color: #1b64da; } .s3 .cta { background: #3182f6; color: #fff; }

/* 배너 이미지를 쓰는 경우: 이미지 비율대로 높이가 정해진다 (권장 1080 x 208) */
.carousel.has-img, .carousel.has-img .track, .carousel.has-img .slide { height: auto; }
.slide-img { display: block; padding: 0; }
.slide-img img { display: block; width: 100%; height: auto; }

.ctrl { position: absolute; right: 20px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 2px; background: rgba(0,0,0,.45); color: #fff; border-radius: 999px; padding: 4px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ctrl button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.ctrl button:hover { background: rgba(255,255,255,.2); }
.ctrl .cnt { padding: 0 6px; min-width: 44px; text-align: center; }

.guide { margin-top: 12px; border-radius: 20px; background: var(--card); padding: 16px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.guide .q { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; flex: none; }
.guide strong { font-weight: 700; font-size: 16px; }
.guide .d { font-size: 14px; color: var(--fg-sub); min-width: 0; }
.guide a { margin-left: auto; padding: 8px 16px; border-radius: 999px; background: var(--bg-soft); font-size: 14px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; flex: none; }
.spacer { height: 32px; }

@media (max-width: 900px) {
  .special { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero { padding-block: 32px 24px; }
  .kicker { font-size: 15px; }
  .hero h1 { font-size: 26px; }
  .search-row { flex-direction: column; margin-top: 24px; gap: 12px; }
  /* 모바일: 입력칸만 테두리 박스, 검색 버튼은 박스 밖 오른쪽에 따로 둔다 */
  .search { flex: none; position: relative; display: flex; align-items: stretch; gap: 10px; height: 56px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .search input[type="text"] {
    flex: 1; min-width: 0; height: 100%; padding: 0 46px 0 16px; font-size: 16px;
    background: var(--card); border: 3px solid var(--accent); border-radius: 18px; box-shadow: 0 0 0 5px var(--accent-weak);
  }
  .search .clear { position: absolute; right: 96px; top: 14px; }
  .search .go { flex: none; width: 76px; height: 100%; padding: 0; border-radius: 18px; font-size: 16px; }
  .post { width: 100%; height: 52px; border-radius: 16px; }
  .carousel { height: 240px; border-radius: 22px; }
  .slide { padding: 28px 24px 0; align-items: flex-start; }
  .slide h2 { font-size: 21px; }
  .slide svg.art { opacity: .35; max-width: 70%; right: -10px; }
  .guide a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .track { transition: none; } }