/* ============================================================
   하투스과외 – 하위 상세페이지(과목별) 전용 스타일
   gwan.css 와 함께 사용
   ============================================================ */

/* ①  후킹 히어로 */
.d-hero {
  background: var(--navy);
  padding: 80px 40px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.d-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(107,135,176,.22) 0%, transparent 70%);
  pointer-events: none;
}
.d-hero__inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.d-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.d-hero__title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
.d-hero__title em {
  color: #a8c8f0;
  font-style: normal;
}
.d-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin-bottom: 36px;
}
.d-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  transition: transform .2s, box-shadow .2s;
  margin-bottom: 16px;
}
.d-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,0,0,.28);
}
.d-hero__phone {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  letter-spacing: .3px;
}
.d-hero__phone i { margin-right: 4px; }

/* 공통 섹션 */
.d-section { padding: 72px 40px; }
.d-inner {
  max-width: 960px;
  margin: 0 auto;
}
.d-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.d-label--light { color: rgba(255,255,255,.55); }
.d-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 36px;
  letter-spacing: -0.5px;
}
.d-title--light { color: #fff; }

/* ② 상담 장면 — 인용 카드 */
.d-quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.d-quote-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.d-quote-card:hover { box-shadow: var(--shadow-md); }
.d-quote-card__icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.d-quote-card__text {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}
.d-quote-card__who {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: .3px;
}

/* ③ 발견한 것 — 번호 리스트 */
.d-find-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.d-find-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 28px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}
.d-find-item__num {
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  min-width: 48px;
  flex-shrink: 0;
  font-family: 'Noto Serif KR', serif;
}
.d-find-item__body strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.d-find-item__body p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ④ 방향 설계 — STEP 카드 */
.d-plan-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.d-plan-step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--navy);
  transition: box-shadow var(--transition), transform var(--transition);
}
.d-plan-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.d-plan-step__num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.d-plan-step strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}
.d-plan-step p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ⑤ 변화 과정 + 숫자 */
.d-change-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.d-change-step {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  flex: 1;
  min-width: 160px;
  max-width: 240px;
}
.d-change-step__month {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #a8c8f0;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.d-change-step__desc {
  font-size: 14px;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
}
.d-change-arrow {
  color: rgba(255,255,255,.3);
  font-size: 18px;
  flex-shrink: 0;
}
.d-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.d-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
}
.d-stat__num, .d-stat__result {
  font-size: 36px;
  font-weight: 800;
  font-family: 'Noto Serif KR', serif;
  line-height: 1;
}
.d-stat__num { color: rgba(255,255,255,.4); }
.d-stat__result { color: #a8c8f0; }
.d-stat__num small, .d-stat__result small {
  font-size: 14px;
  font-weight: 600;
  vertical-align: baseline;
  margin-left: 2px;
}
.d-stat__arrow {
  font-size: 22px;
  color: rgba(255,255,255,.2);
  margin: 0 8px;
}
.d-stat__label {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  letter-spacing: .3px;
}

/* ⑥ 학부모 피드백 */
.d-feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.d-feedback-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--accent);
  position: relative;
}
.d-feedback-card::before {
  content: '\201C';
  position: absolute;
  top: 14px;
  left: 22px;
  font-size: 48px;
  color: var(--gray-200);
  font-family: serif;
  line-height: 1;
}
.d-feedback-card__text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.8;
  padding-top: 24px;
  margin-bottom: 16px;
}
.d-feedback-card__who {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .5px;
}

/* ⑧ 연관 사례 */
.d-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.d-related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 18px 22px;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.d-related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.d-related-card__icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 6px;
}
.d-related-card strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}
.d-related-card p {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}
.d-related-card__arrow {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}

/* 뒤로 가기 링크 */
.d-back-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.d-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.d-back-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* 반응형 */
@media (max-width: 768px) {
  .d-section { padding: 52px 20px; }
  .d-hero { padding: 60px 20px 56px; }
  .d-change-flow { flex-direction: column; gap: 8px; }
  .d-change-arrow { transform: rotate(90deg); }
  .d-find-item { flex-direction: column; gap: 12px; }
  .d-find-item__num { font-size: 24px; }
}
@media (max-width: 480px) {
  .d-plan-steps { grid-template-columns: 1fr; }
  .d-stats { grid-template-columns: 1fr; }
  .d-related-grid { grid-template-columns: repeat(2, 1fr); }
}
