/* =========================================================
   GLOBAL RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.homepage {
  font-family: 'Noto Sans KR', sans-serif;
  background: #ffffff;
  padding-top: 70px; /* 고정 헤더 공간 확보 */
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* =========================================================
   HEADER (고정)
========================================================= */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #4aa8ff;
  color: #fff;
  z-index: 9999;
  padding: 12px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 전체메뉴 버튼 앱 스타일 */
.menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-btn span {
  width: 20px;
  height: 3px;
  background: #4aa8ff;
  border-radius: 999px;
}

/* 슬라이더 버튼 앱 스타일 */
.slide-inner button {
  background: #ffffff;
  color: #4aa8ff;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  cursor: pointer;
}

/* ============================
   슬라이드별 배경색 개별 적용
============================ */

/* 첫 번째 슬라이드 - 블루 */
.slide-bg-blue {
  background: linear-gradient(135deg, #4a6fff, #6fa3ff);
  color: #fff;
}

/* 두 번째 슬라이드 - 그린 */
.slide-bg-green {
  background: linear-gradient(135deg, #2ecc71, #6fdc9b);
  color: #fff;
}

/* 세 번째 슬라이드 - 퍼플 */
.slide-bg-purple {
  background: linear-gradient(135deg, #8e44ad, #c27bdb);
  color: #fff;
}

/* 네 번째 슬라이드 - 오렌지 */
.slide-bg-orange {
  background: linear-gradient(135deg, #ff9f43, #ffb86c);
  color: #fff;
}

/* =========================================================
   GLOBAL MENU (전체메뉴)
========================================================= */
.global-menu {
  position: fixed;
  top: 70px; /* 헤더 아래에서 시작 */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  z-index: 2000;
}

.global-menu.active {
  display: block;
}

.mobile-menu-header {
  background: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #4aa8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.profile-info p {
  margin: 0;
  font-size: 13px;
}

.profile-login {
  font-size: 12px;
  color: #4aa8ff;
}

.menu-close {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

/* 전체메뉴 검색창 */
.mobile-search-box {
  background: #f7f9fc;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

.mobile-search-box input {
  flex: 1;
  border-radius: 999px;
  border: none;
  padding: 10px 14px;
  font-size: 13px;
}

.mobile-search-box .search-btn {
  border-radius: 999px;
  border: none;
  background: #4aa8ff;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
}

/* 전체메뉴 그리드 */
.mobile-menu-grid {
  background: #fff;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.menu-item {
  background: #f7f9fc;
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.menu-item img {
  width: 30px;
  height: 30px;
}

.menu-item span {
  font-size: 12px;
}

/* 최근 계산기 */
.recent-section {
  background: #fff;
  padding: 12px 16px 16px;
  border-top: 1px solid #e5e8eb;
}

.recent-section h3 {
  font-size: 13px;
  margin-bottom: 6px;
}

.recent-section li {
  display: inline-block;
  background: #f7f9fc;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  margin: 3px;
  cursor: pointer;
}

/* =========================================================
   LAYOUT 2 COLUMN
========================================================= */
.layout-2col {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;

  padding: 0 20px 20px 20px; /* ⭐ 상단 여백 제거 */
}

.center-content {
  flex: 1;
}

.right-sidebar {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =========================================================
   AUTO SLIDER
========================================================= */
.auto-slider {
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
}

.slide-inner {
  padding: 40px;
  border-radius: 20px;
  color: #fff;
  text-align: center;
  cursor: pointer;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  background: #d0e7ff;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #4aa8ff;
}

/* =========================================================
   QUICK APPS
========================================================= */
.quick-apps {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

.quick-grid {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 0 !important;
}

.quick-item {
  width: 70px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.quick-item::before {
  width: 52px !important;
  height: 52px !important;
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.quick-item img {
  width: 28px;
  height: 28px;
  position: absolute !important;
  top: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.quick-item p {
  font-size: 11px;
  margin-top: 58px;
  color: #333;
}



/* =========================================================
   TABS
========================================================= */
.law-tab-section {
  margin-top: 40px;
}

.law-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.law-tab-btn {
  padding: 10px 16px;
  border-radius: 8px;
  background: #eaeaea;
  border: none;
  cursor: pointer;
}

.law-tab-btn.active {
  background: #4aa8ff;
  color: #fff;
}

.law-panel {
  display: none;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
}

.law-panel.active {
  display: block;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: #4aa8ff;
  color: #fff;
  padding: 40px 20px;
  margin-top: 40px;
  text-align: center;
  padding-bottom: 100px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-info {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  max-width: 800px;
}

/* =========================================================
   🔧 상담바 (메뉴 + 홈 + 계산 + 상담 + 로그인)
========================================================= */
.consult-fixed-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 8px 0;
}

.consult-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.consult-btn-center {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.consult-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #000;
  cursor: pointer;
  transition: color 0.2s ease;
}

.consult-nav-item svg {
  margin-bottom: 4px;
  stroke: #000;
}

.consult-nav-item:hover,
.consult-nav-item:active {
  color: #111;
}

.consult-nav-item:hover svg,
.consult-nav-item:active svg {
  stroke: #111;
}

/* 로그인/마이페이지 아이콘 */
.login-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.login-area button {
  background: none;
  border: none;
  color: #4aa8ff;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.login-area button svg {
  margin-bottom: 4px;
}



/* =========================================================
   누락된 CSS 보완 패치
========================================================= */
.law-tab-content {
  margin-top: 10px;
}

.law-tab-content ul {
  margin: 0;
  padding-left: 0;
}

.board-section {
  background: #fff;
  border-radius: 16px;
  padding: 14px 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  margin-top: 20px;
}

.board-list li {
  font-size: 13px;
  margin-bottom: 4px;
}

.court-master-section h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

details {
  margin-top: 10px;
  font-size: 12px;
}

/* =========================================================
   전국 법원 안내 — 카드형 그리드
========================================================= */
.court-master-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  margin-top: 30px;
}

.court-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.court-item {
  width: calc(33.333% - 16px);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.court-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.court-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.court-item p {
  font-size: 13px;
  margin: 2px 0;
}

.court-links {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.court-links a {
  padding: 6px 10px;
  background: #4aa8ff;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
}

details {
  margin-top: 10px;
  font-size: 12px;
}



/* =========================================================
   HEADER 간격 복구
========================================================= */
.global-header {
  padding: 10px 16px;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  font-size: 20px;
}

.menu-btn {
  margin-left: 8px;
}

/* =========================================================
   우측 사이드바 박스 복구
========================================================= */
.sidebar-box {
  background: #fff !important;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.sidebar-box .app-btn-primary,
.sidebar-box .app-btn-secondary {
  display: inline-block;
  width: auto;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 10px;
  margin-right: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  text-align: center;
}

.sidebar-box .app-btn-secondary {
  background: #f1f1f1;
  color: #333;
}

.sidebar-box h3.small-title {
  font-size: 14px !important;
  line-height: 1.4;
}

#recentCalcListSidebar li,
#recentCalcList li,
.law-panel ul li {
  padding-left: 12px;
}

body.homepage {
  padding-left: 12px;
  padding-right: 12px;
}

.slide-inner button {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.calc-img {
  width: 70%;
  max-width: 120px;
  margin-bottom: 5px;
}



/* ===========================
   하단 고정바 버튼 앱 스타일
=========================== */
.consult-fixed-bar {
  padding: 12px 0;
}

.consult-btn-center button {
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* ===========================
   로그인/회원가입 버튼
=========================== */
.app-btn-primary {
  background: #4aa8ff;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  cursor: pointer;
}

.app-btn-secondary {
  background: #f1f1f1;
  color: #333;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  cursor: pointer;
}

/* ===========================
   footer 버튼
=========================== */
.consult-fixed-bar button {
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* 로고 클릭 + 커서 손모양 강제 */
.search-logo {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.logo-link {
  cursor: pointer !important;
}

.main-search-box,
.main-search-container,
.main-search-section {
  cursor: auto !important;
}

.site-footer {
  padding-bottom: 100px !important;
}

/* ===========================
   자동 슬라이드 스크롤 튐 방지
=========================== */
.slider-container,
.auto-slider {
  overflow: hidden !important;
}

/* ===========================
   고정 상담바 버튼 퍼짐 방지
=========================== */
.consult-fixed-bar button {
  width: auto !important;
  display: inline-flex !important;
  flex: none !important;
}

/* ================================
   ⭐ OUTLINE 버튼 (본문용)
=============================== */
.calc-btn-outline {
  background: transparent;
  border: 1.5px solid #d6d6d6;
  color: #333;
  padding: 12px 18px;
  border-radius: 12px;
   display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.calc-btn-outline:hover {
  border-color: #4a6fff;
  color: #4a6fff;
}

/* ================================
   ⭐ PLAIN 버튼 (footer용)
=============================== */
.calc-btn-plain {
  background: transparent;
  border: none;
  color: #4a6fff;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}

.calc-shortcut-section {
  margin: 30px 0 25px;
  padding: 20px;
  background: #f7f9ff;
  border-radius: 14px;
  border: 1px solid #e3e8ff;
}

.calc-shortcut-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.calc-icon {
  width: 48px;
  height: 48px;
}

.calc-text h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #2b3a55;
}

.calc-text p {
  margin: 4px 0 0;
  font-size: 15px;
  color: #555;
}

.calc-shortcut-btn {
  display: inline-block;
  background: #4aa8ff;
  color: #fff;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
}

.main-top-banner {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 8px;
}

.banner-character {
  width: 80px;
  height: auto;
  margin-bottom: 16px;
}

.site-footer {
  position: static !important;
  bottom: auto !important;
  margin-bottom: 80px !important;
}

/* 2열 배너 기본 구조 */
.two-col-banner {
  display: flex;
  align-items: center;
  justify-content: center; /* 중앙 정렬 */
  gap: 16px; /* 여백 더 좁게 */
  padding: 30px 20px;

  background: transparent;
  border: none;
  box-shadow: none;
}

/* 좌측 이미지 */
.banner-left {
  flex-shrink: 0;
}

.banner-character {
  width: 150px; /* ⭐ 이미지 더 크게 */
  height: auto;
}

/* 우측 문구 */
.banner-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-title {
  font-size: 26px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 10px;
}

.banner-desc {
  font-size: 16px;
  color: #4B5563;
  margin-bottom: 18px;
}

.banner-btn {
  display: inline-block;
  padding: 12px 22px;
  background: #4aa8ff;
  color: white;
  border-radius: 8px;
  font-weight: 600;
}

/* 메인 변제금 계산 CTA 보조 안내 */
.banner-consult-guide {
  margin: 8px 0 0;
  padding: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  letter-spacing: -0.02em;
}

.banner-consult-guide::before {
  content: "✓";
  display: inline-block;
  margin-right: 5px;
  color: #2684ff;
  font-weight: 700;
}

@media (max-width: 768px) {
  .banner-consult-guide {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.45;
  }
}




