/* 홈 개편 시안 전용 (home_v2.py). 적용 전까지는 시안 페이지에서만 불러온다. */
.home2 .hero-more { margin-top: 18px; font-size: 15px; font-weight: 700; }
.home2 .hero-more a { color: var(--primary); }

/* 숫자 띠 */
.home2 .stats-band { padding: 0 0 8px !important; }
.home2 .stats { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: -24px; position: relative; z-index: 2; }
.home2 .stats li { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 20px; box-shadow: var(--soft-shadow); display: grid; gap: 4px; }
.home2 .stats b { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; color: var(--primary); line-height: 1.1; }
.home2 .stats span { font-size: 15px; font-weight: 800; }
.home2 .stats small { font-size: 13px; color: var(--muted-fg); line-height: 1.5; }

/* 브랜드 로고 */
.home2 .b-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px; margin-top: 8px; }
.home2 .b-tile { display: grid; justify-items: center; gap: 8px; padding: 16px 8px 14px; background: #fff; border: 1px solid var(--border); border-radius: 16px; transition: box-shadow .2s, transform .2s; }
.home2 .b-tile:hover { box-shadow: var(--soft-shadow); transform: translateY(-2px); }
.home2 .b-tile img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px !important; box-shadow: none !important; }
.home2 .b-txt { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 900; font-size: 20px; }
.home2 .b-tile span { font-size: 13px; font-weight: 700; text-align: center; line-height: 1.3; color: #3b4458; }
.home2 .r-h { margin-top: 56px; font-size: 22px !important; }
.home2 .r-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.home2 .r-card { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 14px; box-shadow: var(--soft-shadow); transition: transform .2s, box-shadow .2s; }
.home2 .r-card:hover { transform: translateY(-2px); box-shadow: var(--soft-shadow-hover); }
.home2 .r-pic { width: 112px; height: 140px; border-radius: 12px; overflow: hidden; background: var(--muted); display: grid; place-items: center; }
.home2 .r-pic > img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; box-shadow: none !important; }
.home2 .r-logo img { width: 64px; height: 64px; border-radius: 14px !important; box-shadow: none !important; }
.home2 .r-body { display: grid; gap: 4px; }
.home2 .r-brand { font-size: 13px; font-weight: 800; color: var(--primary); }
.home2 .r-body b { font-size: 16px; line-height: 1.4; }
.home2 .r-views { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; margin-top: 4px; }

/* 함께하는 일 2x2 */
.home2 .s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.home2 .s-card { display: grid; gap: 6px; align-content: start; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px 30px 26px; box-shadow: var(--soft-shadow); transition: transform .2s, box-shadow .2s; }
.home2 .s-card:hover { transform: translateY(-3px); box-shadow: var(--soft-shadow-hover); }
.home2 .s-num { font-size: 14px; font-weight: 800; color: var(--primary); opacity: .6; }
.home2 .s-card h3 { font-size: 24px !important; }
.home2 .s-card .when { font-weight: 700; color: var(--primary); font-size: 15px; }
.home2 .s-card p { color: var(--muted-fg); font-size: 16px; }
.home2 .s-card .go { margin-top: 10px; font-weight: 800; font-size: 15px; color: var(--primary); }

/* 강의 */
.home2 .lec { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.home2 .lec-list { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.home2 .lec-list li { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding: 12px 16px; background: var(--muted); border-radius: 12px; font-size: 16px; }
.home2 .lec-list b { color: var(--primary); font-size: 14px; }
.home2 .lec-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home2 .lec-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.home2 .lec-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* 책 한 줄 */
.home2 #book { padding: 64px 0 !important; }
.home2 .book-strip { display: grid; grid-template-columns: 96px 1fr auto; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 22px 28px; box-shadow: var(--soft-shadow); }
.home2 .book-strip > img { width: 96px; border-radius: 8px; box-shadow: 0 10px 22px -12px rgba(28, 44, 90, .4) !important; }
.home2 .book-strip .actions { margin-top: 0; }

@media (max-width: 1000px) {
  .home2 .stats { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .home2 .stats li:last-child { grid-column: 1 / -1; }
  .home2 .r-grid, .home2 .s-grid, .home2 .lec { grid-template-columns: 1fr; }
  .home2 .book-strip { grid-template-columns: 72px 1fr; }
  .home2 .book-strip > img { width: 72px; }
  .home2 .book-strip .actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .home2 .b-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .home2 .b-tile { padding: 12px 4px; }
  .home2 .stats b { font-size: 26px; }
}


/* 브랜드 로고: 한 줄로 옆으로 흐르며 반복 */
.home2 #brands { padding-bottom: 96px !important; }
.home2 .b-marquee { overflow: hidden; margin-top: 8px; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.home2 .b-track { list-style: none; display: flex; gap: 14px; width: max-content; animation: b-flow 70s linear infinite; }
.home2 .b-marquee:hover .b-track { animation-play-state: paused; }
.home2 .b-track .b-tile { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; white-space: nowrap; box-shadow: none; }
.home2 .b-track .b-tile:hover { transform: none; box-shadow: var(--soft-shadow); }
.home2 .b-track .b-tile img, .home2 .b-track .b-txt { width: 36px; height: 36px; border-radius: 10px !important; }
.home2 .b-track .b-tile span:last-child { font-size: 15px; }
@keyframes b-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .home2 .b-track { animation: none; }
  .home2 .b-marquee { overflow-x: auto; }
}

/* 많이 본 게시물 */
.home2 .hits { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; margin-top: 64px; }
.home2 .h-grid { display: grid; grid-template-columns: repeat(2, 200px); gap: 16px; }
.home2 .h-card { position: relative; display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--soft-shadow); aspect-ratio: 9 / 16; }
.home2 .h-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; box-shadow: none !important; }
.home2 .h-views { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .92); color: var(--fg); font-weight: 900; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.home2 .h-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(10, 14, 30, .75)); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4; }
@media (max-width: 760px) {
  .home2 .hits { grid-template-columns: 1fr; gap: 24px; }
  .home2 .h-grid { grid-template-columns: 1fr 1fr; }
  .home2 .b-track { animation-duration: 55s; }
}
