/* 베스트셀링: 기존 사이트 원본 스타일을 옮긴 것. tools/korea-group/make_pages.js 가 만든다 */
/* ---- 원본 블록 02-module-34 ---- */
/* 전역 설정 */
.kad-bestselling-intro-section *,
.kad-bestselling-dir-section *,
.kad-bestselling-prod-section *,
.kad-bestselling-process-section *,
.kad-bestselling-target-section *,
.kad-bestselling-related-section *,
.kad-bestselling-cta-section * {
  box-sizing: border-box;
}

/* 공통 섹션 헤더 */
.kad-bestselling-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.kad-bestselling-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.kad-bestselling-title-line {
  width: 40px;
  height: 3px;
  background-color: #ffb502;
  margin: 0 auto;
}

/* =========================================
   블록 1: 브랜드 소개 스타일
========================================= */
.kad-bestselling-intro-section {
  background-color: #000000;
  padding: 100px 20px;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
}

.kad-bestselling-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.kad-bestselling-intro-highlight {
  font-size: 24px;
  font-weight: 600;
  color: #ffb502;
  margin: 0 0 16px;
  word-break: keep-all;
}

.kad-bestselling-intro-desc {
  font-size: 18px;
  font-weight: 400;
  color: #cccccc;
  line-height: 1.6;
  margin: 0;
  word-break: keep-all;
}

/* =========================================
   블록 2: 출판 방향 스타일 (2열 리스트형)
========================================= */
.kad-bestselling-dir-section {
  background-color: #050505;
  padding: 80px 20px;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
}

.kad-bestselling-dir-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.kad-bestselling-dir-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.kad-bestselling-dir-item {
  background-color: #0a0a0a;
  border-left: 4px solid #222222;
  padding: 30px 40px;
  transition: all 0.3s ease;
}

.kad-bestselling-dir-item:hover {
  background-color: #111111;
  border-left-color: #ffb502;
  transform: translateX(5px);
}

.kad-bestselling-dir-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
  word-break: keep-all;
}

.kad-bestselling-dir-desc {
  font-size: 16px;
  font-weight: 400;
  color: #aaaaaa;
  line-height: 1.6;
  margin: 0;
  word-break: keep-all;
}

/* =========================================
   블록 3: 주요 제작 분야 스타일 (3열 카드형)
========================================= */
.kad-bestselling-prod-section {
  background-color: #000000;
  padding: 80px 20px;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
}

.kad-bestselling-prod-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.kad-bestselling-prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.kad-bestselling-prod-item {
  background-color: #111111;
  border: 1px solid #222222;
  border-top: 3px solid #222222;
  border-radius: 8px;
  padding: 40px 30px;
  transition: all 0.3s ease;
}

.kad-bestselling-prod-item:hover {
  background-color: #151515;
  border-color: #333333;
  border-top-color: #ffb502;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.kad-bestselling-prod-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffb502;
  margin: 0 0 16px;
  word-break: keep-all;
}

.kad-bestselling-prod-desc {
  font-size: 16px;
  font-weight: 400;
  color: #cccccc;
  line-height: 1.6;
  margin: 0;
  word-break: keep-all;
}

/* =========================================
   블록 4: 제작 절차 스타일 (타임라인형)
========================================= */
.kad-bestselling-process-section {
  background-color: #050505;
  padding: 80px 20px;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
}

.kad-bestselling-process-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.kad-bestselling-process-list {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding-top: 20px;
}

.kad-bestselling-process-line {
  position: absolute;
  top: 70px;
  left: 5%;
  right: 5%;
  height: 2px;
  background-color: #333333;
  z-index: 1;
}

.kad-bestselling-process-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 10px;
}

.kad-bestselling-process-step {
  font-size: 14px;
  font-weight: 800;
  color: #ffb502;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.kad-bestselling-process-dot {
  width: 16px;
  height: 16px;
  background-color: #222222;
  border: 2px solid #555555;
  border-radius: 50%;
  margin: 0 auto 24px;
  transition: all 0.3s ease;
}

.kad-bestselling-process-item:hover .kad-bestselling-process-dot {
  background-color: #ffb502;
  border-color: #ffb502;
  box-shadow: 0 0 10px rgba(255, 181, 2, 0.5);
}

.kad-bestselling-process-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  word-break: keep-all;
  transition: color 0.3s ease;
}

.kad-bestselling-process-item:hover .kad-bestselling-process-name {
  color: #ffb502;
}

/* =========================================
   블록 5: 주요 의뢰 대상 스타일 (유동적 중앙 정렬 3열)
========================================= */
.kad-bestselling-target-section {
  background-color: #000000;
  padding: 80px 20px;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
}

.kad-bestselling-target-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.kad-bestselling-target-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.kad-bestselling-target-item {
  background-color: #111111;
  border-bottom: 3px solid #222222;
  text-align: center;
  padding: 35px 20px;
  transition: all 0.3s ease;
  flex: 1 1 calc(33.333% - 16px);
  max-width: 340px;
  min-width: 260px;
}

.kad-bestselling-target-text {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  transition: color 0.3s ease;
}

.kad-bestselling-target-item:hover {
  background-color: #1a1a1a;
  border-bottom-color: #ffb502;
}

.kad-bestselling-target-item:hover .kad-bestselling-target-text {
  color: #ffb502;
}

/* =========================================
   블록 6: 관련 페이지 연결 스타일
========================================= */
.kad-bestselling-related-section {
  background-color: #050505;
  padding: 80px 20px;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
}

.kad-bestselling-related-inner {
  max-width: 900px;
  margin: 0 auto;
}

.kad-bestselling-related-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kad-bestselling-related-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0f0f0f;
  border: 1px solid #222222;
  border-radius: 6px;
  padding: 24px 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.kad-bestselling-related-item:hover {
  background-color: #181818;
  border-color: #ffb502;
  transform: translateX(4px);
}

.kad-bestselling-related-text {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.kad-bestselling-related-arrow {
  font-size: 20px;
  font-weight: 700;
  color: #ffb502;
  transition: transform 0.3s ease;
}

.kad-bestselling-related-item:hover .kad-bestselling-related-arrow {
  transform: translateX(4px);
}

/* =========================================
   블록 7: 마지막 CTA 스타일
========================================= */
.kad-bestselling-cta-section {
  background-color: #111111;
  padding: 100px 20px;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  border-top: 1px solid #222222;
}

.kad-bestselling-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.kad-bestselling-cta-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  word-break: keep-all;
}

.kad-bestselling-cta-desc {
  font-size: 18px;
  font-weight: 400;
  color: #cccccc;
  line-height: 1.6;
  margin: 0 0 40px;
  word-break: keep-all;
}

.kad-bestselling-cta-buttons {
  display: flex;
  justify-content: center;
}

.kad-bestselling-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  font-size: 18px;
  font-weight: 700;
  background-color: #ffb502;
  color: #000000;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  word-break: keep-all;
}

.kad-bestselling-btn-primary:hover {
  background-color: #e5a300;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 181, 2, 0.3);
}

/* =========================================
   반응형 미디어 쿼리
========================================= */
@media (max-width: 992px) {
  .kad-bestselling-prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .kad-bestselling-process-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
    padding-top: 0;
  }
  
  .kad-bestselling-process-line {
    display: none;
  }
  
  .kad-bestselling-process-item {
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 30px 10px;
  }
  
  .kad-bestselling-process-dot {
    display: none;
  }
  
  .kad-bestselling-target-item {
    flex: 1 1 calc(50% - 12px);
    max-width: none;
  }
}

@media (max-width: 768px) {
  .kad-bestselling-intro-section,
  .kad-bestselling-dir-section,
  .kad-bestselling-prod-section,
  .kad-bestselling-process-section,
  .kad-bestselling-target-section,
  .kad-bestselling-related-section {
    padding: 60px 16px;
  }
  
  .kad-bestselling-intro-highlight { font-size: 20px; }
  .kad-bestselling-intro-desc { font-size: 16px; }
  .kad-bestselling-pc-only { display: none; }
  
  .kad-bestselling-dir-grid,
  .kad-bestselling-prod-grid,
  .kad-bestselling-process-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .kad-bestselling-dir-item { padding: 24px 20px; border-left-width: 3px; }
  .kad-bestselling-prod-item { padding: 30px 24px; }
  
  .kad-bestselling-target-item {
    flex: 1 1 100%;
  }
  
  .kad-bestselling-related-item {
    padding: 20px;
  }
  .kad-bestselling-related-text {
    font-size: 16px;
  }
  
  .kad-bestselling-cta-section { padding: 80px 16px; }
  .kad-bestselling-cta-title { font-size: 26px; }
  .kad-bestselling-cta-desc { font-size: 16px; margin-bottom: 30px; }
  .kad-bestselling-btn-primary { width: 100%; font-size: 16px; padding: 16px; }
}
