/* ============================================================
   어울림재가복지센터 — 전역 다크 테마 CSS
   Bootstrap 서브페이지를 index.html과 동일한 딥 다크 네이비로 통일
   ============================================================ */

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

/* ── 배경 ── */
html, body {
  background-color: #020817 !important;
  color: #e2e8f0 !important;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif !important;
}

/* ── 별빛 캔버스 (배경 고정) ── */
#starCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ── 텍스트 전역 ── */
h1, h2, h3, h4, h5, h6 { color: #f1f5f9 !important; }
p, li { color: #94a3b8 !important; }
strong, b { color: #cbd5e1 !important; }
a { color: #93c5fd; }
a:hover { color: #bfdbfe; }
.text-muted, [class*="text-muted"] { color: #64748b !important; }

/* ── 네비게이션 ── */
.navbar {
  background: rgba(2, 8, 23, 0.82) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}
.navbar .brand-name { color: #f1f5f9 !important; font-weight: 900 !important; }
.navbar .brand-sub,
.navbar .brand-desc { color: #475569 !important; }
.navbar .nav-link { color: rgba(255,255,255,0.68) !important; font-weight: 600; transition: color 0.2s; }
.navbar .nav-link:hover,
.navbar .nav-link.active { color: #f1f5f9 !important; }
.navbar .nav-link.nav-cta {
  background: rgba(59,130,246,0.12) !important;
  border: 1px solid rgba(59,130,246,0.28) !important;
  color: #93c5fd !important;
  border-radius: 50px !important;
  padding: 7px 16px !important;
}
.navbar-phone {
  background: rgba(59,130,246,0.12) !important;
  border: 1px solid rgba(59,130,246,0.28) !important;
  color: #93c5fd !important;
  border-radius: 50px;
  padding: 7px 16px;
  font-weight: 800;
  text-decoration: none;
}
.navbar-toggler {
  border-color: rgba(255,255,255,0.2) !important;
  color: #e2e8f0 !important;
}
.navbar-toggler-icon { filter: invert(1) !important; }
.navbar-collapse {
  background: rgba(2, 8, 23, 0.97) !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  padding: 12px 16px !important;
  border-radius: 0 0 12px 12px !important;
}
/* 다크 전용 — 테마 토글 버튼 숨김 */
.theme-toggle { display: none !important; }

/* ── 페이지 히어로 ── */
.page-hero {
  background:
    radial-gradient(ellipse 85% 55% at 50% -5%, rgba(59,130,246,0.16) 0%, transparent 65%),
    rgba(2, 8, 23, 0.0) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  padding: 56px 0 46px !important;
}
.page-hero h1 { color: #f1f5f9 !important; font-size: clamp(26px,4vw,42px) !important; font-weight: 900 !important; }
.page-hero p { color: #94a3b8 !important; font-size: 15px !important; }

/* ── 브레드크럼 ── */
.breadcrumb { background: none !important; padding: 0 !important; margin-bottom: 14px !important; }
.breadcrumb-item a { color: #60a5fa !important; text-decoration: none; }
.breadcrumb-item a:hover { color: #93c5fd !important; }
.breadcrumb-item.active { color: #64748b !important; }
.breadcrumb-item + .breadcrumb-item::before { color: #334155 !important; }

/* ── 섹션 배경 ── */
section { position: relative; z-index: 1; }
section,
section[style],
.info-section { background: transparent !important; }
section:nth-of-type(even) { background: rgba(8, 16, 40, 0.45) !important; }

/* ── 섹션 헤더 공통 ── */
.section-badge {
  background: rgba(59,130,246,0.12) !important;
  border: 1px solid rgba(59,130,246,0.22) !important;
  color: #93c5fd !important;
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px;
  padding: 5px 14px; border-radius: 50px;
  display: inline-block; margin-bottom: 12px;
}
.section-title { color: #f1f5f9 !important; }
.section-sub { color: #94a3b8 !important; }
.section-line {
  width: 48px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
  margin: 16px auto 0 !important;
}

/* ── 카드 공통 (서피스) ── */
.greeting-card, .value-card, .detail-card, .step-card,
.faq-item, .notice-table-wrap, .info-card, .review-card,
.transport-card, .topic-card, .grade-box, .tl-card,
.stat-box, .process-step, .disease-card, .qa-item,
.cost-table, .info-box {
  background: rgba(10, 18, 42, 0.85) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35) !important;
  color: #e2e8f0 !important;
  backdrop-filter: blur(10px) !important;
}

/* ── 인사말 카드 특화 ── */
.greeting-card .quote { color: #93c5fd !important; border-color: rgba(59,130,246,0.5) !important; }
.greeting-card .signature { color: #60a5fa !important; }
.greeting-card p { color: #94a3b8 !important; }

/* ── value-card 아이콘 ── */
.value-card .value-icon { filter: brightness(0.9) saturate(1.3); }

/* ── 통계 섹션 ── */
section[style*="linear-gradient(135deg,var(--primary"] {
  background: linear-gradient(135deg, rgba(15,35,90,0.90) 0%, rgba(20,50,120,0.85) 100%) !important;
  border-top: 1px solid rgba(59,130,246,0.2) !important;
  border-bottom: 1px solid rgba(59,130,246,0.2) !important;
}
.stat-num { color: #a8e6cf !important; }
.stat-label { color: rgba(255,255,255,0.75) !important; }
.stat-box { background: rgba(255,255,255,0.07) !important; border-color: rgba(255,255,255,0.12) !important; }

/* ── 테이블 ── */
.table, table {
  background: transparent !important;
  color: #e2e8f0 !important;
  --bs-table-bg: transparent !important;
  --bs-table-color: #e2e8f0 !important;
  --bs-table-border-color: rgba(255,255,255,0.08) !important;
  --bs-table-striped-bg: rgba(255,255,255,0.04) !important;
  --bs-table-hover-bg: rgba(59,130,246,0.10) !important;
}
.table thead th, table thead th {
  background: rgba(30, 60, 140, 0.70) !important;
  color: #93c5fd !important;
  border-color: rgba(59,130,246,0.3) !important;
  font-weight: 700 !important;
}
.table tbody td, table tbody td {
  color: #cbd5e1 !important;
  border-color: rgba(255,255,255,0.07) !important;
  background: transparent !important;
}
.table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.03) !important;
}
.table tbody tr:hover td {
  background: rgba(59,130,246,0.09) !important;
  color: #f1f5f9 !important;
}
/* Bootstrap 테이블 CSS 변수 강제 적용 */
:root,
[data-theme="dark"] {
  --bs-table-bg: transparent;
  --bs-table-color: #e2e8f0;
  --bs-table-border-color: rgba(255,255,255,0.08);
  --bs-table-striped-bg: rgba(255,255,255,0.04);
  --bs-table-hover-bg: rgba(59,130,246,0.10);
  --bs-body-bg: #020817;
  --bs-body-color: #e2e8f0;
  --bs-border-color: rgba(255,255,255,0.09);
  --bs-card-bg: rgba(10,18,42,0.85);
}

/* ── Bootstrap 카드 오버라이드 ── */
.card {
  background: rgba(10,18,42,0.85) !important;
  border-color: rgba(255,255,255,0.09) !important;
  color: #e2e8f0 !important;
}
.card-body, .card-header, .card-footer {
  background: transparent !important;
  color: #e2e8f0 !important;
  border-color: rgba(255,255,255,0.09) !important;
}

/* ── 인풋/폼 ── */
.form-control, .form-select {
  background: rgba(15,25,55,0.80) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: #f1f5f9 !important;
}
.form-control:focus, .form-select:focus {
  background: rgba(20,35,70,0.90) !important;
  border-color: rgba(59,130,246,0.5) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15) !important;
  color: #f1f5f9 !important;
}
.form-label { color: #94a3b8 !important; }
.form-control::placeholder { color: #475569 !important; }

/* ── 버튼 ── */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
  transform: translateY(-2px);
}
.btn-success {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  border-color: transparent !important;
}
.btn-outline-primary {
  color: #93c5fd !important;
  border-color: rgba(59,130,246,0.40) !important;
  background: transparent !important;
}
.btn-outline-primary:hover {
  background: rgba(59,130,246,0.18) !important;
  color: #bfdbfe !important;
  border-color: rgba(59,130,246,0.60) !important;
}
.btn-outline-secondary {
  color: #94a3b8 !important;
  border-color: rgba(148,163,184,0.28) !important;
  background: transparent !important;
}
.btn-outline-secondary:hover {
  background: rgba(148,163,184,0.10) !important;
  color: #cbd5e1 !important;
}

/* ── 배지 ── */
.badge.bg-primary { background: rgba(59,130,246,0.30) !important; color: #93c5fd !important; border: 1px solid rgba(59,130,246,0.35) !important; }
.badge.bg-secondary { background: rgba(100,116,139,0.30) !important; color: #94a3b8 !important; border: 1px solid rgba(100,116,139,0.35) !important; }

/* ── 구분선 / 테두리 ── */
hr, .footer-divider { border-color: rgba(255,255,255,0.09) !important; }
.border { border-color: rgba(255,255,255,0.09) !important; }

/* ── FAQ / 아코디언 ── */
.faq-question, .qa-q {
  color: #f1f5f9 !important;
  background: transparent !important;
}
.faq-question:hover { color: #93c5fd !important; }
.faq-item.open .faq-question { color: #60a5fa !important; }
.faq-answer, .qa-a {
  color: #94a3b8 !important;
  border-color: rgba(255,255,255,0.07) !important;
  background: transparent !important;
}
.q-badge { background: rgba(59,130,246,0.25) !important; color: #93c5fd !important; }
.q-mark { color: #60a5fa !important; }
.a-mark { color: #4ade80 !important; }

/* ── 서비스 탭 버튼 ── */
.service-tab-btn {
  background: rgba(10,18,42,0.85) !important;
  border-color: rgba(59,130,246,0.30) !important;
  color: #93c5fd !important;
}
.service-tab-btn.active,
.service-tab-btn:hover {
  background: rgba(59,130,246,0.22) !important;
  border-color: rgba(59,130,246,0.60) !important;
  color: #bfdbfe !important;
}

/* ── detail-card header icon bg (inline style override 불가, filter로 보완) ── */
.detail-icon { filter: brightness(0.85) saturate(1.2); }
.sli-icon { background: rgba(30,60,130,0.50) !important; color: #93c5fd !important; }
.sli-title { color: #f1f5f9 !important; }
.sli-desc { color: #64748b !important; }

/* ── 이용 절차 ── */
.step-card-num {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  box-shadow: 0 4px 16px rgba(59,130,246,0.35) !important;
}
.step-card h4 { color: #f1f5f9 !important; }
.step-card p { color: #94a3b8 !important; }
.step-arrow { color: #3b82f6 !important; }
.tl-dot { background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important; }
.tl-badge {
  background: rgba(59,130,246,0.15) !important;
  color: #93c5fd !important;
  border-color: rgba(59,130,246,0.25) !important;
}
.tl-badge-accent { color: #f472b6 !important; background: rgba(236,72,153,0.12) !important; border-color: rgba(236,72,153,0.25) !important; }
.timeline-line { opacity: 0.4; }

/* ── 등급 박스 ── */
.grade-box { border-top-color: #3b82f6 !important; }
.grade-label { color: #60a5fa !important; }
.grade-score { background: rgba(59,130,246,0.15) !important; color: #93c5fd !important; border-radius: 50px; display: inline-block; padding: 2px 10px; }
.grade-desc { color: #94a3b8 !important; }
.grade-box.g1 { border-top-color: #ef4444 !important; }
.grade-box.g2 { border-top-color: #f97316 !important; }
.grade-box.g3 { border-top-color: #eab308 !important; }
.grade-box.g4 { border-top-color: #22c55e !important; }
.grade-box.g5 { border-top-color: #3b82f6 !important; }
.grade-box.g6 { border-top-color: #a855f7 !important; }

/* ── highlight-box / info-box ── */
.highlight-box {
  background: rgba(10,20,55,0.75) !important;
  border-color: #3b82f6 !important;
}
.highlight-box.green { border-color: #22c55e !important; }
.highlight-box.orange { border-color: #f97316 !important; }
.highlight-box h5 { color: #f1f5f9 !important; }
.highlight-box p, .highlight-box li, .highlight-box ul { color: #94a3b8 !important; }

.info-box {
  background: rgba(10,20,55,0.75) !important;
  border-color: #3b82f6 !important;
}
.info-box h5 { color: #93c5fd !important; }
.info-box p, .info-box li { color: #94a3b8 !important; }

/* ── 앵커 네비게이션 (welfare-info) ── */
.anchor-nav {
  background: rgba(5,12,35,0.92) !important;
  border-bottom-color: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(12px) !important;
}
.anchor-nav a {
  color: #64748b !important;
  border-color: rgba(255,255,255,0.12) !important;
  background: transparent !important;
}
.anchor-nav a:hover { color: #93c5fd !important; border-color: rgba(59,130,246,0.50) !important; }

/* ── 공지사항 테이블 ── */
.notice-table thead th {
  background: rgba(30,60,140,0.70) !important;
  color: #93c5fd !important;
  border: none !important;
}
.notice-table tbody tr:hover { background: rgba(59,130,246,0.09) !important; cursor: pointer; }
.notice-table .n-title { color: #e2e8f0 !important; }
.notice-table .n-date { color: #64748b !important; }
.notice-table .n-badge { font-size: 10px !important; }
.detail-header {
  background: rgba(10,20,55,0.70) !important;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.09) !important;
}
.detail-header h3 { color: #f1f5f9 !important; }
.detail-header .meta { color: #64748b !important; }
.detail-body { color: #94a3b8 !important; }

/* ── 지도 / location ── */
.map-container {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.09) !important;
  overflow: hidden;
}
.map-overlay {
  background: rgba(5,12,35,0.92) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(10px) !important;
}
.map-overlay span { color: #f1f5f9 !important; }
.map-overlay .dot { background: #3b82f6 !important; }
.info-row { border-color: rgba(255,255,255,0.08) !important; }
.info-row-label { color: #64748b !important; }
.info-row-value { color: #f1f5f9 !important; }
.info-row-value a { color: #93c5fd !important; }
.info-row-icon { background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important; }
.transport-card { background: rgba(10,20,55,0.65) !important; border: 1px solid rgba(255,255,255,0.08) !important; }
.transport-title { color: #f1f5f9 !important; }
.transport-desc { color: #94a3b8 !important; }
.transport-icon { color: #60a5fa !important; }
.map-btn-kakao { background: #FEE500 !important; color: #3A1D1D !important; }
.map-btn-naver { background: #03C75A !important; color: #fff !important; }

/* ── contact ── */
.phone-hero {
  background: linear-gradient(135deg, rgba(25,40,120,0.95), rgba(40,20,100,0.90)) !important;
  border: 1px solid rgba(59,130,246,0.30) !important;
}
.btn-call {
  background: rgba(10,18,42,0.90) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(59,130,246,0.35) !important;
}
.btn-call:hover { background: rgba(20,40,90,0.95) !important; color: #bfdbfe !important; }
.guide-card { background: rgba(10,20,55,0.65) !important; border: 1px solid rgba(255,255,255,0.08) !important; }
.guide-step { border-color: rgba(255,255,255,0.08) !important; }
.gs-num { background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important; }
.gs-title { color: #f1f5f9 !important; }
.gs-desc { color: #94a3b8 !important; }
.tip-box {
  background: rgba(20,30,70,0.75) !important;
  border-color: #eab308 !important;
}
.tip-box h6 { color: #fde68a !important; }
.tip-box ul, .tip-box li { color: #fde68a !important; }

/* ── trust section ── */
.trust-section { background: rgba(5,12,35,0.60) !important; border-color: rgba(255,255,255,0.08) !important; }
.trust-body h4 { color: #f1f5f9 !important; }
.trust-body p { color: #94a3b8 !important; }
.t-blue { background: rgba(59,130,246,0.14) !important; color: #60a5fa !important; }
.t-coral { background: rgba(239,68,68,0.12) !important; color: #f87171 !important; }
.t-green { background: rgba(34,197,94,0.12) !important; color: #4ade80 !important; }
.cert-badge {
  background: rgba(10,20,55,0.70) !important;
  border-color: rgba(255,255,255,0.09) !important;
  color: #94a3b8 !important;
}

/* ── svc-card (서비스 카드) ── */
.svc-card {
  background: rgba(10,18,42,0.85) !important;
  border-color: rgba(255,255,255,0.09) !important;
}
.svc-card:hover { border-color: rgba(59,130,246,0.45) !important; }
.svc-icon-1 { background: rgba(59,130,246,0.15) !important; color: #60a5fa !important; }
.svc-icon-2 { background: rgba(34,197,94,0.12) !important; color: #4ade80 !important; }
.svc-icon-3 { background: rgba(234,179,8,0.12) !important; color: #fde68a !important; }
.svc-icon-4 { background: rgba(168,85,247,0.12) !important; color: #c084fc !important; }
.svc-card h3 { color: #f1f5f9 !important; }
.svc-card p { color: #94a3b8 !important; }
.svc-tag { background: rgba(15,25,60,0.80) !important; color: #64748b !important; border-color: rgba(255,255,255,0.09) !important; }
.svc-arrow { background: rgba(59,130,246,0.15) !important; color: #60a5fa !important; }

/* ── btn-outline-c ── */
.btn-outline-c {
  color: #93c5fd !important;
  border: 1.5px solid rgba(59,130,246,0.35) !important;
  background: transparent !important;
  border-radius: 50px !important;
  padding: 10px 28px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: background 0.22s, border-color 0.22s !important;
}
.btn-outline-c:hover {
  background: rgba(59,130,246,0.15) !important;
  border-color: rgba(59,130,246,0.55) !important;
  color: #bfdbfe !important;
}

/* ── process step (welfare-info) ── */
.process-step .step-num { background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important; }
.process-step h5 { color: #f1f5f9 !important; }
.process-step p { color: #94a3b8 !important; }

/* ── disease-card ── */
.disease-card { border-top-color: #3b82f6 !important; }
.disease-card.c2 { border-top-color: #22c55e !important; }
.disease-card.c3 { border-top-color: #f97316 !important; }
.disease-card h4 { color: #f1f5f9 !important; }
.disease-card ul { color: #94a3b8 !important; }

/* ── tip-row ── */
.tip-row { border-color: rgba(255,255,255,0.08) !important; }
.tip-row .ti { color: #60a5fa !important; }
.tip-row h6 { color: #f1f5f9 !important; }
.tip-row p { color: #94a3b8 !important; }

/* ── CTA 섹션 ── */
.cta-section {
  background: linear-gradient(135deg, rgba(18,38,100,0.92) 0%, rgba(25,55,140,0.85) 100%) !important;
  border-top: 1px solid rgba(59,130,246,0.22) !important;
  border-bottom: 1px solid rgba(59,130,246,0.22) !important;
}
.cta-section h2 { color: #fff !important; }
.cta-section p { color: rgba(255,255,255,0.72) !important; }
.btn-cta-w { background: rgba(10,18,42,0.90) !important; color: #93c5fd !important; border: 1px solid rgba(59,130,246,0.30) !important; }
.btn-cta-w:hover { background: rgba(20,40,90,0.95) !important; color: #bfdbfe !important; }
.btn-cta-g { color: rgba(255,255,255,0.85) !important; border-color: rgba(255,255,255,0.35) !important; }
.btn-cta-g:hover { background: rgba(255,255,255,0.10) !important; }

/* ── 플로팅 전화 버튼 ── */
.float-call {
  position: fixed !important;
  bottom: 28px !important;
  right: 26px !important;
  z-index: 200 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.float-call a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 13px 22px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  box-shadow: 0 5px 24px rgba(59,130,246,0.48) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}
.float-call a:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 32px rgba(59,130,246,0.60) !important;
  color: #fff !important;
}

/* ── 푸터 ── */
footer {
  background: rgba(2, 8, 23, 0.90) !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  position: relative; z-index: 1;
}
.footer-logo .brand-name,
.footer-logo .brand-sub { color: #475569 !important; }
.footer-info { color: #475569 !important; }
.footer-info div { color: #475569 !important; }
.footer-info a { color: #93c5fd !important; }
.footer-quick h6 { color: #94a3b8 !important; }
.footer-quick a { color: #475569 !important; }
.footer-quick a:hover { color: #94a3b8 !important; text-decoration: none; }
.footer-bottom { color: #334155 !important; }
.footer-bottom p { color: #334155 !important; }

/* ── 인증 배지 ── */
.cert-badge .bi { color: #4ade80 !important; }

/* ── 스크롤바 ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a1020; }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59,130,246,0.55); }

/* ── 미디어 쿼리 ── */
@media (max-width: 480px) {
  .float-call { bottom: 16px !important; right: 16px !important; }
  .float-call a { font-size: 13px !important; padding: 11px 18px !important; }
}
