/* =============================================
   법무법인 프런티어 - 대응분야 상세페이지 공통 CSS
   respond_detail.css
   font-size base: 16px (필요시 일괄 조정)
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
  --navy: #0b172e;
  --navy-mid: #1c3160;
  --gold: #c9a055;
  --gold-light: #f5ead8;
  --text: #1a1a2a;
  --text-muted: #5a5a6a;
  --bg: #f2f4f8;
  --white: #ffffff;
  --border: #dde1ed;
  --radius: 10px;
  --radius-sm: 6px;
}

.rd-wrap {
  font-family: 'Noto Sans KR', -apple-system, 'Apple SD Gothic Neo', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 21px;
  line-height: 1.75;
}

/* ── 배너 ── */
.rd-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  padding: 40px 40px 36px;
  position: relative;
  overflow: hidden;
}
.rd-banner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(201,160,85,0.07);
}
.rd-breadcrumb {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}
.rd-breadcrumb span { color: rgba(255,255,255,0.8); }
.rd-category-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.rd-banner h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.rd-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
}

/* ── 서브탭 ── */
.rd-tabs {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
}
.rd-tabs a {
  padding: 14px 22px;
  font-size: 18px;
  font-weight: 500;
  color: #888;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.rd-tabs a.active {
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  font-weight: 700;
}
.rd-tabs a:hover { color: var(--navy); }

.rd-tabs2 {
  background: #f7f8fc;
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rd-tabs2::-webkit-scrollbar { display: none; }
.rd-tabs2 a {
  padding: 10px 10px;
  font-size: 17px;
  font-weight: 500;
  color: #999;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.rd-tabs2 a.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  font-weight: 700;
}
.rd-tabs2 a:hover { color: var(--navy-mid); }

/* ── 콘텐츠 영역 ── */
.rd-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ── 섹션 ── */
.rd-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 32px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.rd-section-title {
  font-size: 23px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rd-section-title::before {
  content: '';
  display: block;
  width: 4px; height: 20px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}
.rd-section-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-left: 14px;
}

/* ── 인트로 그리드 ── */
.rd-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rd-intro-box {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
}
.rd-intro-label {
  font-size: 14px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.rd-intro-box p {
  font-size: 18px;
  color: #3a3a4a;
  line-height: 1.65;
}
.rd-intro-box strong { color: var(--navy); }

/* ── 체크리스트 ── */
.rd-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rd-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: #f7f9fc;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 18px;
  color: #2a2a3a;
}
.rd-check-icon {
  width: 22px; height: 22px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.rd-check-icon svg { width: 12px; height: 12px; }
.rd-check-item strong { color: var(--navy); }

/* ── 카드 그리드 ── */
.rd-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rd-card {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 20px 18px;
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.rd-card:hover { border-color: var(--gold); }
.rd-card-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.rd-card-icon {
  width: 38px; height: 38px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.rd-card-icon svg { width: 20px; height: 20px; fill: var(--gold); }
.rd-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.rd-card p {
  font-size: 17px;
  color: #5a5a6a;
  line-height: 1.65;
}

/* ── 아코디언 ── */
.rd-acc-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.rd-acc-head {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f9fc;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  user-select: none;
}
.rd-acc-head:hover { background: #eef0f8; }
.rd-acc-no {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-right: 10px;
  min-width: 22px;
}
.rd-acc-arrow {
  transition: transform .25s;
  font-size: 23px;
  color: #aaa;
  flex-shrink: 0;
}
.rd-acc-arrow.open { transform: rotate(180deg); }
.rd-acc-body {
  display: none;
  padding: 18px 20px;
  font-size: 18px;
  color: #4a4a5a;
  line-height: 1.75;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.rd-acc-body.show { display: block; }
.rd-acc-warn {
  background: #fff8ec;
  border-left: 3px solid var(--gold);
  padding: 10px 16px;
  border-radius: 0 6px 6px 0;
  margin-top: 12px;
  font-size: 17px;
  color: #7a6020;
  line-height: 1.65;
}

/* ── 타임라인 ── */
.rd-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rd-tl-item {
  display: flex;
  gap: 18px;
  position: relative;
}
.rd-tl-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px; top: 38px;
  width: 2px;
  height: calc(100% - 12px);
  background: var(--border);
}
.rd-tl-left { flex-shrink: 0; }
.rd-tl-dot {
  width: 38px; height: 38px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  z-index: 1;
  position: relative;
}
.rd-tl-right { padding: 6px 0 28px; }
.rd-tl-tag {
  display: inline-block;
  background: var(--gold-light);
  color: #8a6e2a;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.rd-tl-right h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.rd-tl-right p {
  font-size: 17px;
  color: #666;
  line-height: 1.65;
}

/* ── 공지박스 ── */
.rd-notice {
  background: #f0f4ff;
  border: 1px solid #c4d0f5;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: 17px;
  color: #3a4a7a;
  line-height: 1.65;
}
.rd-notice svg { flex-shrink: 0; margin-top: 2px; }
.rd-notice strong { color: var(--navy-mid); }

/* ── 12대중과실 전용 목록 ── */
.rd-fault-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.rd-fault-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f7f9fc;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
}
.rd-fault-num {
  width: 26px; height: 26px;
  background: var(--navy);
  border-radius: 50%;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── CTA ── */
.rd-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}
.rd-cta h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.rd-cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  line-height: 1.8;
}
.rd-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.rd-btn-gold {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 13px 32px;
  border-radius: 6px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.rd-btn-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.45);
  padding: 13px 32px;
  border-radius: 6px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.rd-btn-gold:hover { background: #b8903e; }
.rd-btn-white:hover { border-color: rgba(255,255,255,0.8); }

/* ── 반응형 ── */
@media (max-width: 768px) {
  .rd-banner { padding: 28px 20px; }
  .rd-tabs, .rd-tabs2 { padding: 0 16px; overflow-x: auto; }
  .rd-content { padding: 20px 14px 60px; }
  .rd-section { padding: 22px 18px; }
  .rd-intro-grid { grid-template-columns: 1fr; }
  .rd-card-grid { grid-template-columns: 1fr 1fr; }
  .rd-fault-grid { grid-template-columns: 1fr 1fr; }
  .rd-cta { padding: 32px 20px; }
}
@media (max-width: 480px) {
  .rd-card-grid { grid-template-columns: 1fr; }
  .rd-fault-grid { grid-template-columns: 1fr; }
}


/* ── respond 페이지 전용 padding 조정 ── */
.sub-visual .visual-inner {
  padding-bottom: 60px;
}

.sub-conts-wrap.rd-wrap {
  padding-top: 0;
}

/* ── 모바일 폰트 크기 (원본 +10%) ── */
@media (max-width: 768px) {
  .rd-wrap { font-size: 18px; }
  .rd-breadcrumb { font-size: 14px; }
  .rd-category-badge { font-size: 12px; }
  .rd-banner h1 { font-size: 29px; }
  .rd-banner p { font-size: 15px; }
  .rd-tabs a { font-size: 15px; }
  .rd-tabs2 a { font-size: 14px; }
  .rd-section-title { font-size: 19px; }
  .rd-section-sub { font-size: 15px; }
  .rd-intro-label { font-size: 12px; }
  .rd-intro-box p { font-size: 15px; }
  .rd-check-item { font-size: 15px; }
  .rd-card-tag { font-size: 11px; }
  .rd-card h4 { font-size: 15px; }
  .rd-card p { font-size: 14px; }
  .rd-acc-head { font-size: 15px; }
  .rd-acc-no { font-size: 12px; }
  .rd-acc-arrow { font-size: 19px; }
  .rd-acc-body { font-size: 15px; }
  .rd-acc-warn { font-size: 14px; }
  .rd-tl-dot { font-size: 14px; }
  .rd-tl-tag { font-size: 12px; }
  .rd-tl-right h4 { font-size: 15px; }
  .rd-tl-right p { font-size: 14px; }
  .rd-fault-item { font-size: 14px; }
  .rd-fault-num { font-size: 12px; }
  .rd-cta h3 { font-size: 22px; }
  .rd-cta p { font-size: 15px; }
  .rd-btn-gold { font-size: 17px; }
  .rd-btn-white { font-size: 17px; }
}