:root {
  --color-primary: #2251ff;
  --color-primary-dark: #0f2ccf;
  --color-secondary: #f97316;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  font-family: 'Pretendard', 'Noto Sans KR', system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
}

body {
  font-family: 'Pretendard', 'Noto Sans KR', system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background-color: #fff;
}

.hero-section {
  background: linear-gradient(180deg, #fff 0%, #eef2ff 100%);
}

.hero-section .badge {
  letter-spacing: 0.04em;
}

.map-placeholder {
  height: 280px;
  background: radial-gradient(circle at top, #dbeafe, #bfdbfe);
  position: relative;
  overflow: hidden;
}

.map-placeholder::after,
.map-placeholder::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(34, 81, 255, 0.18);
}

.map-placeholder::after {
  width: 220px;
  height: 220px;
  top: 20%;
  left: 35%;
  animation: pulse 3s infinite;
}

.map-placeholder::before {
  width: 140px;
  height: 140px;
  top: 40%;
  left: 55%;
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.1;
  }
}

.badge-card {
  top: 10%;
  right: -5%;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.5rem;
  width: 240px;
}

.section-title .eyebrow {
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.feature-list li,
.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  list-style: none;
}

.feature-list li:last-child,
.about-list li:last-child {
  border-bottom: none;
}

.about-list {
  padding: 0;
  margin: 0;
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gray-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.info-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  position: relative;
  padding-left: 70px;
  margin-bottom: 1.5rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.timeline li::after {
  content: '';
  position: absolute;
  left: 29px;
  top: 20px;
  width: 2px;
  height: 100%;
  background-color: var(--gray-100);
}

.timeline li:last-child::after {
  display: none;
}

.timeline-date {
  font-weight: 600;
  color: var(--color-primary);
  position: absolute;
  left: 0;
  top: 0;
}

#serviceCards .card {
  border: none;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

#serviceCards .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(15, 44, 207, 0.1);
}

.flow-wrapper .flow-step {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
  display: flex;
  gap: 1rem;
}

.flow-step-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--color-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.calculator-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
}

.calculator-card button {
  font-weight: 600;
}

.calculator-result {
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem;
}

.rpa-card {
  background: linear-gradient(135deg, #fff, #eef2ff);
}

.rpa-status-card {
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--gray-100);
}

.faq-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
  height: 100%;
}

.cta-card {
  border-radius: 24px;
  padding: 2.5rem;
  background: linear-gradient(120deg, var(--color-primary), #5a78ff);
}

/* Header Styles */
.main-header {
  background: #fff;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.logo-mark {
  padding-top: 0.25rem;
}

.logo-mark a {
  text-decoration: none;
  display: inline-block;
}

.logo-img {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex: 1;
}

.header-top-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-right: 2rem;
}

.header-top-links .link-btn {
  background: none;
  border: none;
  color: var(--gray-700);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.header-top-links .link-btn:hover {
  color: var(--color-primary);
}

.primary-nav {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  margin-right: 1rem;
}

.nav-item-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.primary-nav .nav-link {
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.primary-nav .nav-link:hover,
.primary-nav .nav-link.active {
  color: var(--color-primary);
}

.primary-nav .text-muted {
  color: var(--gray-400);
  font-weight: 400;
  align-self: center;
  margin-top: 0;
  line-height: 1;
}

.primary-nav .sub-nav-btn {
  padding: 0.3rem 0.75rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  transition: all 0.2s;
  white-space: nowrap;
}

.primary-nav .sub-nav-btn:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--color-primary);
}

/* Sub Navigation Menu (Dropdown) */
.nav-item-group {
  position: relative;
}

.sub-nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 180px;
}

.nav-item-group:hover .sub-nav-menu {
  display: flex;
}

.sub-nav-menu .sub-nav-btn {
  text-align: center;
  width: 100%;
}

/* Sub Navigation Bar */
.sub-nav-bar {
  background: var(--gray-100);
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-300);
}

.sub-nav-items {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.sub-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.2s;
  min-width: 180px;
}

.sub-nav-item:hover {
  background: var(--gray-50);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sub-nav-korean {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.sub-nav-english {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gray-600);
}

.sub-nav-item:hover .sub-nav-english {
  color: var(--color-primary);
}

/* Service Card */
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.service-icon {
  text-align: center;
}

.service-card h4 {
  color: var(--gray-900);
}

.service-card .btn {
  margin-top: auto;
}

/* 기존 sub-nav-buttons 스타일 (하위 호환성) */
.sub-nav-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sub-nav-btn {
  padding: 0.4rem 1rem;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: all 0.2s;
}

.sub-nav-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--color-primary);
}

/* Sub Navigation (기존 스타일 유지 - 필요시 사용) */
.sub-nav {
  background: var(--gray-100);
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-300);
}

.sub-nav-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.sub-nav-link {
  padding: 0.5rem 1.25rem;
  background: #fff;
  border-radius: 20px;
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.sub-nav-link:hover {
  background: var(--gray-50);
  color: var(--color-primary);
}

.sub-nav-link.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Footer Styles */
.main-footer {
  background: var(--gray-50);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--gray-100);
  margin-top: 4rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.main-footer p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Section Styles */
.section-block {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .eyebrow {
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
}

.guide-card,
.notice-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--gray-100);
}

.notice-card.dark {
  background: var(--gray-800);
  border-color: var(--gray-700);
  color: #fff;
}

footer {
  background: #fff;
}

/* 대출 신청 모달 스타일 */
#loanRequestModal .modal-dialog {
  max-width: 1200px;
}

#loanRequestModal .card {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
}

#loanRequestModal .card-body {
  padding: 1.5rem;
}

#loanRequestModal .form-label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

#loanRequestModal .table {
  margin-bottom: 0;
}

#loanRequestModal .table thead th {
  background-color: var(--gray-50);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  vertical-align: middle;
}

#loanRequestModal .table tbody td {
  vertical-align: middle;
}

#loanRequestModal .form-control-sm {
  font-size: 0.875rem;
}

#loanRequestModal .remove-debt-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loanRequestModal small.text-danger {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

#loanRequestModal small.text-muted {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

#loanRequestModal .property-type-options {
  margin-top: 0.5rem;
}

@media (max-width: 992px) {
  .badge-card {
    position: relative;
    right: auto;
    margin-top: 1.5rem;
  }

  .flow-step {
    flex-direction: column;
  }

  .cta-card {
    text-align: center;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-right {
    width: 100%;
    align-items: flex-start;
  }

  .primary-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  .nav-item-group {
    gap: 0.15rem;
  }

  .primary-nav .sub-nav-btn {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
  }

  .sub-nav-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 300px;
  }

  .sub-nav-items {
    flex-direction: column;
    align-items: stretch;
  }

  .sub-nav-item {
    min-width: auto;
  }

  .sub-nav-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .sub-nav-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
  }

  .logo-img {
    height: 80px;
  }

  .main-header {
    padding: 0.6rem 0;
  }

  .header-top-links {
    margin-right: 1rem;
  }

  .primary-nav {
    margin-right: 0.5rem;
  }

  .sub-nav {
    padding: 0.75rem 0;
  }
}

/* Listing Grid Styles - 1행 4개, 가로 스크롤 */
.listing-grid {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.listing-grid::-webkit-scrollbar {
  height: 8px;
}

.listing-grid::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

.listing-grid::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

.listing-grid::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

#listingGrid .row {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
}

#listingGrid .row > [class*="col-"] {
  flex: 0 0 25%;
  max-width: 25%;
  padding-left: 1rem;
  padding-right: 1rem;
}

#listingGrid .row > .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (max-width: 1200px) {
  #listingGrid .row > [class*="col-"] {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (max-width: 992px) {
  #listingGrid .row > [class*="col-"] {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 768px) {
  #listingGrid .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  #listingGrid .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* 검토중 신청서 테이블 스크롤 */
.card-body .table-responsive {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}

.card-body .table-responsive::-webkit-scrollbar {
  width: 8px;
}

.card-body .table-responsive::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

.card-body .table-responsive::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

.card-body .table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

.card-body .table-responsive table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--gray-100);
}

/* ========================================
   영문 병기 스타일 (Bilingual Labels)
   ======================================== */

/* 블록형 영문 병기 (한글 아래) */
.en-sub {
  display: block;
  font-size: 0.6em;
  color: var(--gray-500);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-top: 1px;
}

/* 인라인 영문 병기 (한글 옆) */
.en-inline {
  font-size: 0.6em;
  color: var(--gray-500);
  font-weight: 400;
  margin-left: 0.4em;
  letter-spacing: 0.02em;
}

/* 라벨 기본 스타일 조정 */
.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}

/* 카드/섹션 타이틀 영문 병기 */
.section-title-bilingual {
  display: flex;
  flex-direction: column;
}

.section-title-bilingual .en-sub {
  font-size: 0.55em;
  margin-top: 2px;
}

/* 버튼 영문 병기 */
.btn .en-sub {
  display: block;
  font-size: 0.65em;
  opacity: 0.8;
  margin-top: 2px;
}

/* 배지/상태 영문 병기 */
.badge .en-sub {
  display: block;
  font-size: 0.7em;
  opacity: 0.9;
}

/* 네비게이션 영문 병기 */
.nav-link .en-sub {
  font-size: 0.6em;
  display: block;
  opacity: 0.7;
  text-align: center;
}

/* 네비게이션 링크 중앙정렬 */
.nav-item-group .nav-link {
  text-align: center;
}

/* 테이블 헤더 영문 병기 */
th .en-sub {
  font-size: 0.7em;
  font-weight: 400;
}

/* 모달 타이틀 영문 병기 */
.modal-title .en-sub {
  font-size: 0.5em;
  margin-top: 4px;
}

/* 폼 섹션 헤더 영문 병기 */
h6 .en-sub, h5 .en-sub, h4 .en-sub {
  font-size: 0.55em;
  font-weight: 400;
}

/* 옵션/셀렉트 영문 (인라인) */
.form-select option .en-inline,
.form-check-label .en-sub {
  font-size: 0.65em;
}


