@charset "UTF-8";

/* =========================================
   SUBPAGE COMMON HERO & BREADCRUMB
   ========================================= */
.sub-hero {
  position: relative;
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 45%, #3e6853 75%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 60px 0 50px;
  text-align: center;
  overflow: hidden;
}

.sub-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(165, 214, 167, 0.25), transparent 65%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #D1E7DC;
  margin-bottom: 12px;
}

.breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.sub-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.sub-hero-desc {
  font-size: 1.15rem;
  color: var(--secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Sub Navigation Tabs */
.sub-tab-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sub-tab-nav::-webkit-scrollbar {
  display: none;
}

.sub-tab-list {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.sub-tab-item {
  flex: 1;
  max-width: 260px;
  text-align: center;
  min-width: 0;
}

.sub-tab-link {
  display: block;
  padding: 18px 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  word-break: keep-all;
  white-space: nowrap;
}

.sub-tab-link:hover {
  color: var(--primary);
  background-color: var(--primary-soft);
}

.sub-tab-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background-color: #ffffff;
  font-weight: 800;
}

/* =========================================
   1-1 인사말 & 핵심가치
   ========================================= */
.greeting-section {
  padding: 70px 0;
}

.greeting-profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
  background: #ffffff;
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.greeting-photo-wrap {
  text-align: center;
}

.greeting-photo {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--primary-soft);
}

.greeting-role-badge {
  display: inline-block;
  margin-top: 18px;
  background: var(--primary);
  color: #fff;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
}

.greeting-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 8px;
}

.greeting-content h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.greeting-content p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 20px;
}

.greeting-sign {
  margin-top: 32px;
  text-align: right;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.greeting-sign span {
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 900;
  margin-left: 8px;
}

/* 3대 핵심 가치 */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.value-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.value-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.value-box:nth-child(2) .value-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.value-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.value-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================
   1-2 오시는 길 & 지도
   ========================================= */
.location-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: start;
}

.map-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.map-embed {
  width: 100%;
  height: 420px;
  background-color: #e9ecef;
  position: relative;
  overflow: hidden;
}

.map-info-banner {
  padding: 24px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.traffic-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.traffic-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.traffic-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.traffic-card-content {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.65;
}

.traffic-card-content strong {
  color: var(--text-main);
}

.traffic-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-right: 6px;
}

.badge-subway {
  background-color: #2b70bf;
  color: #fff;
}

.badge-bus {
  background-color: #27ae60;
  color: #fff;
}


/* =========================================
   1-3 오시는 길 - 다이렉트 문의 3구 카드
   ========================================= */
.direct-contact-section {
  margin-top: 50px;
}

.direct-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.direct-contact-card {
  background: #ffffff;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.direct-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.direct-contact-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.direct-contact-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.direct-contact-card:hover .direct-contact-icon {
  transform: scale(1.08);
}

.direct-contact-icon.primary {
  background: var(--primary-soft);
  color: var(--primary);
}

.direct-contact-icon.accent {
  background: var(--accent-soft);
  color: #1b5e20;
}

.direct-contact-icon.muted {
  background: #f1f5f9;
  color: #475569;
}

.direct-contact-body {
  width: 100%;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.direct-contact-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  word-break: keep-all;
}

.direct-contact-val {
  font-size: 1.38rem;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.direct-contact-val.primary {
  color: var(--primary);
}

.direct-contact-val.accent {
  color: #2e7d32;
}

.direct-contact-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  word-break: keep-all;
}

.direct-contact-dual {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.direct-contact-item-text {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-all;
}

.direct-contact-item-text strong {
  color: #64748b;
  font-size: 0.84rem;
  margin-right: 4px;
}

.direct-contact-btn {
  width: 100%;
  padding: 11px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

/* =========================================
   2-1 등급신청 안내 표 & 판정절차
   ========================================= */
.grade-table-wrap {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 50px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.grade-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

.grade-table th, .grade-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.grade-table th {
  background-color: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.05rem;
}

.grade-table td {
  font-size: 1rem;
  color: #334155;
}

.grade-table tr:hover td {
  background-color: #fcfbf8;
}

.grade-badge-num {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 800;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  white-space: nowrap;
}

.grade-badge-num.special {
  background-color: var(--accent);
}

.grade-table .text-center {
  text-align: center;
}

.grade-table .text-right {
  text-align: right;
}

.table-footnote {
  margin-top: 14px;
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
}

.table-footnote p {
  margin-bottom: 4px;
}

.table-footnote p:last-child {
  margin-bottom: 0;
}

.table-footnote i {
  color: var(--primary);
  margin-right: 4px;
}

/* 2-1 등급신청 개요 5개 안내 카드 */
.overview-grid-5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.overview-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.overview-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.overview-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.overview-card:nth-child(2) .overview-card-icon {
  background: #eff6ff;
  color: #2563eb;
}
.overview-card:nth-child(3) .overview-card-icon {
  background: #ecfdf5;
  color: #059669;
}
.overview-card:nth-child(4) .overview-card-icon {
  background: #fff7ed;
  color: #ea580c;
}
.overview-card:nth-child(5) .overview-card-icon {
  background: #fdf2f8;
  color: #db2777;
}

.overview-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.overview-card-body {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
  flex-grow: 1;
}

.overview-card-body ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.overview-card-body li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}

.overview-card-body li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* 법적 근거 상세 안내 박스 */
.legal-basis-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 36px 32px;
  margin-bottom: 48px;
}

.legal-basis-header {
  border-bottom: 2px solid var(--primary-soft);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.legal-basis-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.legal-basis-desc {
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.75;
  margin: 0;
}

.legal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.legal-info-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  border-left: 4px solid var(--primary);
}

.legal-info-card.accent {
  border-left-color: var(--accent);
}

.legal-info-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-info-card-text {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.65;
}

.legal-info-card-text ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
}

.legal-info-card-text li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
}

.legal-info-card-text li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.legal-notice-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

/* 비용 감경 대상 안내 박스 */
.cost-reduction-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-top: 20px;
}

.cost-reduction-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cost-reduction-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  color: #1f2937;
  line-height: 1.7;
}

.cost-reduction-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.cost-reduction-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 900;
}

/* 15% 부담 안내 전용 하단 CTA 배너 */
.cost-cta-banner {
  margin-top: 50px;
  background: linear-gradient(135deg, #243b30 0%, #4E7A63 100%);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cost-cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.cost-cta-banner h3 {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cost-cta-banner p {
  font-size: 1.08rem;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 28px;
}

.cost-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================
   2-2 등급신청 무료대행 5단계 프로세스
   ========================================= */
.agency-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
}

.agency-step-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px 30px;
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.25s;
}

.agency-step-item:hover {
  transform: translateX(8px);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.agency-step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agency-step-item:hover .agency-step-num {
  background: var(--accent);
  color: #fff;
}

.agency-step-info h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.agency-step-info p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* =========================================
   3-1 & 3-2 방문요양 서비스 & 수가표
   ========================================= */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

.service-detail-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.service-detail-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.service-detail-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.service-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-item-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  color: #334155;
  line-height: 1.5;
}

.service-item-list li i {
  color: var(--accent);
  margin-top: 5px;
  font-size: 13px;
}

/* 요금 계산 예시 박스 */
.pricing-highlight-box {
  background: linear-gradient(135deg, var(--primary-soft), #ffffff);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.pricing-highlight-item {
  padding: 20px;
  border-right: 1px dashed var(--border);
}

.pricing-highlight-item:last-child {
  border-right: none;
}

.pricing-highlight-item .tier {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-highlight-item .pct {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
}

.pricing-highlight-item.accent .pct {
  color: var(--accent);
}

.pricing-highlight-item .note {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-top: 6px;
}

.diff-badge-plus {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 800;
  font-size: 0.92rem;
}

.standard-time-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  margin-left: 6px;
}

/* =========================================
   3-1 방문요양 서비스 내용 신규 스타일
   ========================================= */
.necessity-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.necessity-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.necessity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.necessity-card-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.necessity-card:nth-child(2) .necessity-card-icon {
  background: #eff6ff;
  color: #2563eb;
}
.necessity-card:nth-child(3) .necessity-card-icon {
  background: #ecfdf5;
  color: #059669;
}
.necessity-card:nth-child(4) .necessity-card-icon {
  background: #fff7ed;
  color: #ea580c;
}

.necessity-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.necessity-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.service-detail-grid-5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.service-card-5 {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.service-card-5:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.service-card-5-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-soft);
}

.service-card-5-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.service-card-5:nth-child(2) .service-card-5-icon {
  background: #eff6ff;
  color: #2563eb;
}
.service-card-5:nth-child(3) .service-card-5-icon {
  background: #ecfdf5;
  color: #059669;
}
.service-card-5:nth-child(4) .service-card-5-icon {
  background: #fff7ed;
  color: #ea580c;
}
.service-card-5:nth-child(5) .service-card-5-icon {
  background: #fdf2f8;
  color: #db2777;
}

.service-card-5-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.service-card-5-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card-5-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 6px;
}

.service-card-5-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.target-cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.target-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.target-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary-soft);
}

.target-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.target-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.target-list li {
  position: relative;
  padding-left: 22px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 8px;
}

.target-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

.target-sub-section {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 14px;
  border-left: 4px solid var(--primary);
}

.target-sub-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.target-sub-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 8px;
}

.target-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.target-bullet-list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 4px;
}

.target-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.center-features-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.center-features-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: -0.5px;
}

.center-features-title span {
  color: var(--primary);
}

.features-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  transition: all 0.25s ease;
}

.feature-check-item:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateX(4px);
}

.feature-check-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* =========================================
   4. 가족요양 상세
   ========================================= */
.family-benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 48px;
}

.family-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.family-box-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================
   5. 커뮤니티 (공지사항 / 갤러리 / QnA)
   ========================================= */
.board-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.board-search {
  display: flex;
  gap: 8px;
}

.board-search input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 240px;
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.gallery-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gallery-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-card-body {
  padding: 18px 20px;
}

.gallery-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.gallery-card-date {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* QnA List */
.qna-write-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-bottom: 40px;
}

/* =========================================
   자격증 및 인·허가증 (증명서 그리드)
   ========================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.cert-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.cert-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.cert-img-wrap {
  position: relative;
  background: #f8fafc;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
  height: 280px;
  overflow: hidden;
}

.cert-img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  transition: transform 0.3s;
}

.cert-card:hover .cert-img {
  transform: scale(1.04);
}

.cert-badge-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(78, 122, 99, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}

.cert-card:hover .cert-badge-zoom {
  opacity: 1;
  transform: scale(1.1);
}

.cert-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cert-agency {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.35;
}

.cert-details {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

/* 센터소개 시설 환경 갤러리 */
.facility-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.facility-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.facility-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f1f5f9;
}

.facility-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.facility-card:hover .facility-img {
  transform: scale(1.05);
}

.facility-info {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.facility-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.facility-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.facility-desc {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.6;
}

/* 센터소개 전용 컴포넌트 */
.cert-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.intro-hero-card {
  background: linear-gradient(135deg, #f8fafc 0%, #edf5f0 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 40px 44px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.intro-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--primary);
}

.intro-hero-card .quote-mark {
  font-size: 2.4rem;
  color: var(--primary);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 12px;
}

.intro-hero-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 18px;
}

.intro-hero-card h3 span {
  color: var(--primary);
}

.intro-hero-card p {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 14px;
}

.intro-hero-card p:last-child {
  margin-bottom: 0;
}

.intro-info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}

.intro-info-table th {
  background: #f1f5f9;
  color: var(--text-main);
  font-weight: 800;
  padding: 16px 22px;
  width: 22%;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  font-size: 0.98rem;
  text-align: left;
  vertical-align: middle;
}

.intro-info-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.65;
}

.intro-info-table tr:last-child th,
.intro-info-table tr:last-child td {
  border-bottom: none;
}


/* 서브페이지 카드 전 요소 자연스러운 어절 줄바꿈 및 오버플로우 방지 */
.facility-title, .facility-desc, .facility-badge,
.cert-title, .cert-agency, .cert-details,
.service-card-5-title, .service-card-5-list li,
.necessity-card-title, .necessity-card-desc,
.overview-card-title, .overview-card-body li,
.value-title, .value-desc,
.target-card h4, .target-card li,
.feature-check-item,
.gallery-card-title,
.traffic-card-title, .traffic-card-content,
.agency-step-item h4, .agency-step-item p,
.intro-hero-card h3, .intro-hero-card p,
.sub-hero-title, .sub-hero-desc {
  word-break: keep-all;
  overflow-wrap: break-word;
}


/* 가족요양 급여 인정 기준 2개 카드 */
.family-criteria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 50px;
}
.family-criteria-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.family-criteria-card.highlight {
  border-color: var(--accent);
}
.family-criteria-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.family-criteria-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 10px 0 8px;
  word-break: keep-all;
}
.family-criteria-card.highlight .family-criteria-title {
  color: var(--accent);
}
.family-criteria-desc {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 18px;
  word-break: keep-all;
}
.family-criteria-box {
  background: var(--bg-subtle);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  margin-top: auto;
  word-break: keep-all;
}
.family-criteria-box.highlight {
  background: var(--accent-soft);
}
.family-criteria-box p {
  margin-bottom: 6px;
  word-break: keep-all;
}
.family-criteria-box p:last-child {
  margin-bottom: 0;
}

/* 가족요양 사후관리 4개 카드 */
.family-support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.family-support-item {
  text-align: center;
  padding: 24px 18px;
  background: #fafafa;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}
.family-support-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 12px;
}
.family-support-icon.accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.family-support-title {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 6px;
  word-break: keep-all;
}
.family-support-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  word-break: keep-all;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .cert-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .facility-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .facility-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .greeting-profile-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .greeting-photo-wrap {
    max-width: 320px;
    margin: 0 auto 20px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  .pricing-highlight-box {
    grid-template-columns: 1fr;
  }
  .pricing-highlight-item {
    border-right: none;
    border-bottom: 1px dashed var(--border);
  }
  .pricing-highlight-item:last-child {
    border-bottom: none;
  }
  .family-benefit-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .overview-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .overview-card:last-child {
    grid-column: span 2;
  }
  .legal-info-grid {
    grid-template-columns: 1fr;
  }
  .necessity-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .service-detail-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .service-card-5:last-child {
    grid-column: span 2;
  }
  .target-cost-grid {
    grid-template-columns: 1fr;
  }
  .features-check-grid {
    grid-template-columns: 1fr;
  }
}

/* 모바일 전용 최적화 (600px 이하) - 카드 컴팩트 정렬 & 어절 줄바꿈 & 2열 그리드 */
@media (max-width: 600px) {

  /* 가족요양 급여 인정 기준 모바일 최적화: 1열 배치, 패딩 및 글자크기 다이어트, 어절 줄바꿈 */
  .family-criteria-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 36px;
  }
  .family-criteria-card {
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }
  .family-criteria-title {
    font-size: 1.18rem;
    margin: 6px 0;
    word-break: keep-all;
  }
  .family-criteria-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 12px;
    word-break: keep-all;
  }
  .family-criteria-box {
    padding: 12px 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: keep-all;
  }
  .family-criteria-box p {
    margin-bottom: 4px;
    word-break: keep-all;
  }

  /* 가족요양 원스톱 사후관리 4개 카드: 모바일 2열 정렬 */
  .family-support-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .family-support-item {
    padding: 14px 10px;
    border-radius: var(--radius-sm);
  }
  .family-support-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
    margin: 0 auto 8px;
  }
  .family-support-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
    word-break: keep-all;
  }
  .family-support-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    word-break: keep-all;
  }

  /* 가족요양 1단락 제도 정의 및 신청 조건 */
  .family-benefit-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 30px;
  }
  .family-box {
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }
  .family-box-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    word-break: keep-all;
  }
  .family-box p, .family-box li {
    font-size: 0.88rem;
    line-height: 1.55;
    word-break: keep-all;
  }

  .sub-hero {
    padding: 44px 0 36px;
  }
  .sub-hero-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
    word-break: keep-all;
  }
  .sub-hero-desc {
    font-size: 0.96rem;
    padding: 0 10px;
    word-break: keep-all;
  }

  /* 서브 탭 메뉴 모바일 최적화: 좌우 흔들림 방지 & 부드러운 스크롤 */
  .sub-tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  .sub-tab-list {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 100%;
  }
  .sub-tab-item {
    flex: 1 1 0px;
    min-width: 0;
  }
  .sub-tab-link {
    padding: 13px 4px;
    font-size: 0.88rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  /* 1. 시설 카드: 세로로 길게 늘어지지 않도록 높이 및 패딩 슬림화 */
  .facility-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .facility-card:last-child {
    grid-column: span 1;
  }
  .facility-card {
    border-radius: var(--radius-md);
  }
  .facility-img-wrap {
    height: 165px;
  }
  .facility-info {
    padding: 14px 14px 16px;
  }
  .facility-badge {
    font-size: 0.78rem;
    padding: 3px 8px;
    margin-bottom: 6px;
  }
  .facility-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
    word-break: keep-all;
  }
  .facility-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: keep-all;
  }

  /* 2. 지정서/인증서: 모바일 2열 정렬 유지 및 이미지 높이 슬림화 */
  .cert-grid-4,
  .cert-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cert-card {
    border-radius: var(--radius-md);
  }
  .cert-img-wrap {
    height: 145px;
    padding: 8px;
  }
  .cert-badge-zoom {
    font-size: 0.68rem;
    padding: 2px 6px;
    bottom: 6px;
    right: 6px;
  }
  .cert-info {
    padding: 10px 8px 12px;
    text-align: center;
  }
  .cert-agency {
    font-size: 0.7rem;
    margin-bottom: 4px;
    word-break: keep-all;
  }
  .cert-title {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 4px;
    word-break: keep-all;
  }
  .cert-details {
    font-size: 0.74rem;
    line-height: 1.35;
    word-break: keep-all;
  }

  /* 3. 방문요양 필요성: 2열 컴팩트 카드 정렬 */
  .necessity-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .necessity-card {
    padding: 14px 10px;
    border-radius: var(--radius-sm);
  }
  .necessity-card-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
    margin: 0 auto 8px;
  }
  .necessity-card-title {
    font-size: 0.92rem;
    margin-bottom: 4px;
    word-break: keep-all;
    line-height: 1.35;
  }
  .necessity-card-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    word-break: keep-all;
  }

  /* 4. 5대 방문요양 서비스 카드: 컴팩트 슬림 카드 레이아웃 */
  .service-detail-grid-5 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .service-card-5:last-child {
    grid-column: span 1;
  }
  .service-card-5 {
    padding: 16px 14px;
    border-radius: var(--radius-sm);
  }
  .service-card-5-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  .service-card-5-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .service-card-5-title {
    font-size: 1.05rem;
    margin-bottom: 0;
    word-break: keep-all;
  }
  .service-card-5-list {
    gap: 4px;
  }
  .service-card-5-list li {
    font-size: 0.88rem;
    line-height: 1.45;
    padding-left: 14px;
    word-break: keep-all;
  }

  /* 5. 장기요양 등급안내: 2열 컴팩트 카드 정렬 */
  .overview-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .overview-card:last-child {
    grid-column: span 2;
  }
  .overview-card {
    padding: 14px 10px;
    border-radius: var(--radius-sm);
  }
  .overview-card-header {
    gap: 8px;
    margin-bottom: 8px;
  }
  .overview-card-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
    border-radius: 8px;
  }
  .overview-card-title {
    font-size: 0.95rem;
    word-break: keep-all;
  }
  .overview-card-body li {
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: keep-all;
  }

  /* 공지사항 게시판 상단 검색바 모바일 최적화 */
  .board-filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 20px !important;
  }

  .board-search {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .board-search input {
    width: 100% !important;
    flex: 1 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    font-size: 0.92rem !important;
  }

  .board-search button {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* 공지사항 상세 모달 및 갤러리 라이트박스 모바일 최적화 */
  .modal-overlay .modal-box {
    width: 92% !important;
    max-width: 92% !important;
    padding: 24px 18px !important;
    box-sizing: border-box !important;
  }

  .modal-gallery-img {
    max-height: 220px !important;
    object-fit: contain !important;
    background: #0f172a !important;
    border-radius: var(--radius-sm) !important;
  }

  .modal-gallery-title,
  .modal-notice-title {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    word-break: keep-all !important;
  }

  .modal-gallery-desc,
  .modal-notice-body {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    word-break: keep-all !important;
  }

  /* 6. 포토 갤러리: 2열 인스타그램 스타일 모바일 앨범 */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gallery-card {
    border-radius: var(--radius-sm);
  }
  .gallery-card-body {
    padding: 10px 8px;
  }
  .gallery-card-title {
    font-size: 0.88rem;
    line-height: 1.35;
    margin-bottom: 4px;
    word-break: keep-all;
  }
  .gallery-card-date {
    font-size: 0.75rem;
  }

  /* 7. 핵심가치 4개 카드: 2열 컴팩트 정렬 */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .value-box {
    padding: 14px 10px;
    border-radius: var(--radius-sm);
    text-align: center;
  }
  .value-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
    margin: 0 auto 8px;
  }
  .value-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
    word-break: keep-all;
  }
  .value-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    word-break: keep-all;
  }

  /* 8. 이용요금 하이라이트 박스 */
  .pricing-highlight-box {
    padding: 18px 12px;
    gap: 10px;
    border-radius: var(--radius-md);
  }
  .pricing-highlight-item {
    padding: 10px 6px;
  }
  .pricing-highlight-item h4 {
    font-size: 0.95rem;
    word-break: keep-all;
  }
  .pricing-highlight-item p {
    font-size: 0.82rem;
    line-height: 1.45;
    word-break: keep-all;
  }

  /* 9. 테이블 래퍼 패딩 및 가로 스크롤 최적화 */
  .grade-table-wrap {
    padding: 14px 10px;
    border-radius: var(--radius-md);
    margin-bottom: 26px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .grade-table {
    min-width: 520px;
    font-size: 0.85rem;
  }
  .grade-table th,
  .grade-table td {
    padding: 9px 8px;
    word-break: keep-all;
  }

  /* 10. 시설 정보 테이블 및 소개 히어로 */
  .intro-info-table,
  .intro-info-table tbody,
  .intro-info-table tr,
  .intro-info-table th,
  .intro-info-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .intro-info-table tr {
    border-bottom: 1px solid var(--border-light);
  }
  .intro-info-table th {
    border-right: none;
    border-bottom: none;
    background: #f8fafc;
    padding: 10px 14px 4px;
    font-size: 0.88rem;
    color: var(--primary);
    word-break: keep-all;
  }
  .intro-info-table td {
    padding: 4px 14px 12px;
    border-bottom: none;
    font-size: 0.92rem;
    line-height: 1.55;
    word-break: keep-all;
  }
  .intro-hero-card {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }
  .intro-hero-card h3 {
    font-size: 1.4rem;
    line-height: 1.45;
    word-break: keep-all;
  }
  .intro-hero-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    word-break: keep-all;
  }

  .cost-cta-banner {
    padding: 26px 16px;
  }
  .cost-cta-banner h3 {
    font-size: 1.25rem;
    word-break: keep-all;
  }
  .cost-cta-banner p {
    font-size: 0.9rem;
    word-break: keep-all;
  }
}

/* 420px 이하 초소형 모바일 화면 미세 조정 */
@media (max-width: 420px) {
  .sub-tab-link {
    padding: 12px 2px;
    font-size: 0.84rem;
  }
  .cert-img-wrap {
    height: 130px;
  }
  .facility-img-wrap {
    height: 150px;
  }
}


/* 대표 실사 비주얼 배너 컴포넌트 */
.sub-visual-banner {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.sub-visual-banner img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.sub-visual-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.9) 100%);
  padding: 32px 36px;
  color: #ffffff;
  box-sizing: border-box;
}
.sub-visual-caption h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  word-break: keep-all;
}
.sub-visual-caption p {
  font-size: 1.05rem;
  color: #E2E8F0;
  margin: 0;
  word-break: keep-all;
}

@media (max-width: 600px) {
  .sub-visual-banner {
    margin-bottom: 24px;
    border-radius: var(--radius-md);
  }
  .sub-visual-banner img {
    height: 180px;
  }
  .sub-visual-caption {
    padding: 14px 14px 12px;
  }
  .sub-visual-caption h3 {
    font-size: 1.08rem;
    margin-bottom: 4px;
    word-break: keep-all;
  }
  .sub-visual-caption p {
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: keep-all;
  }
}

/* =========================================
   오시는 길 - 다이렉트 문의 3구 카드 모바일 최적화 (768px 이하)
   세로 늘어짐 방지 & 이미지(아이콘) + 텍스트 가로 정렬 & 1열 컴팩트 카드
   ========================================= */
@media (max-width: 768px) {
  .direct-contact-section {
    margin-top: 36px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .direct-contact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .direct-contact-card {
    padding: 18px 16px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .direct-contact-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 14px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
  }

  .direct-contact-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    font-size: 20px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .direct-contact-body {
    align-items: flex-start !important;
    text-align: left !important;
    margin-bottom: 0 !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .direct-contact-title {
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
    line-height: 1.25 !important;
    word-break: keep-all !important;
  }

  .direct-contact-val {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
    word-break: keep-all !important;
  }

  .direct-contact-desc {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    word-break: keep-all !important;
    color: var(--text-muted) !important;
  }

  .direct-contact-dual {
    gap: 2px !important;
    margin-top: 2px !important;
  }

  .direct-contact-item-text {
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
    word-break: break-all !important;
  }

  .direct-contact-btn {
    width: 100% !important;
    padding: 11px 14px !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
  }

  /* 오시는 길 - 지도 하단 안내 배너 및 길찾기 버튼 모바일 최적화 */
  .map-info-banner {
    padding: 16px 14px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .map-info-banner > div:last-child {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .map-info-banner > div:last-child .btn {
    flex: 1 !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 9px 8px !important;
    font-size: 0.85rem !important;
  }
}

