/* ===========================
   신용카드현금화 공통 스타일
   =========================== */

:root {
  --primary: #c0392b;
  --primary-dark: #96281b;
  --primary-light: #e74c3c;
  --secondary: #2c3e50;
  --accent: #f39c12;
  --accent-light: #f1c40f;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border: #dee2e6;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --text-light: #adb5bd;
  --success: #27ae60;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --transition: 0.22s ease;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---- 컨테이너 ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ==============================
   HEADER
   ============================== */
#site-header {
  background: var(--secondary);
  position: sticky; top: 0; z-index: 900;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 20px;
}

.site-logo a {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.18rem; font-weight: 800; color: #fff; white-space: nowrap;
}
.site-logo .logo-badge {
  background: var(--primary); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 2px 7px;
  border-radius: 4px; letter-spacing: .5px;
}

/* 데스크탑 NAV */
#site-nav { display: flex; align-items: center; gap: 4px; }
#site-nav a {
  color: rgba(255,255,255,.85); padding: 6px 12px;
  border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
#site-nav a:hover,
#site-nav a.active { background: var(--primary); color: #fff; }

.header-cta a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  padding: 9px 18px; border-radius: 999px;
  font-size: .88rem; font-weight: 700; white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.header-cta a:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* 모바일 햄버거 */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==============================
   HERO
   ============================== */
#hero-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a252f 50%, var(--primary-dark) 100%);
  color: #fff; padding: 80px 0 70px;
  position: relative; overflow: hidden;
}
#hero-section::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(192,57,43,.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 640px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); color: var(--accent-light);
  font-size: .82rem; font-weight: 700; padding: 5px 14px;
  border-radius: 999px; margin-bottom: 20px; letter-spacing: .5px;
}
.hero-title { font-size: 2.6rem; font-weight: 900; line-height: 1.25; margin-bottom: 18px; }
.hero-title strong { color: var(--accent-light); }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.82); margin-bottom: 36px; max-width: 520px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 14px 30px; border-radius: 999px;
  font-size: 1rem; font-weight: 800;
  box-shadow: 0 4px 16px rgba(192,57,43,.45);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-hero-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(192,57,43,.55); color: #fff; }
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); color: #fff;
  padding: 14px 26px; border-radius: 999px;
  font-size: 1rem; font-weight: 700; border: 1.5px solid rgba(255,255,255,.3);
  transition: background var(--transition);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.22); color: #fff; }

.hero-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 900; color: var(--accent-light); line-height: 1; }
.hero-stat .lbl { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: 4px; }

/* ==============================
   SECTION 공통
   ============================== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 1.85rem; font-weight: 800; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 1rem; }
.section-header .section-badge {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 3px 12px;
  border-radius: 999px; margin-bottom: 12px; letter-spacing: .5px;
}

/* ==============================
   카드 그리드
   ============================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-thumb { aspect-ratio: 16/9; overflow: hidden; background: #e9ecef; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-body { padding: 20px; }
.card-cat {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: .7rem; font-weight: 700; padding: 2px 9px;
  border-radius: 4px; margin-bottom: 10px;
}
.card-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.card-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.55; }
.card-meta { display: flex; gap: 12px; margin-top: 14px; font-size: .78rem; color: var(--text-light); }

/* ==============================
   FEATURE LIST
   ============================== */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.feature-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 30px 20px;
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; margin-bottom: 16px;
}
.feature-item h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.feature-item p { font-size: .88rem; color: var(--text-muted); }

/* ==============================
   PROCESS STEPS
   ============================== */
.steps-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.step-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30px 20px; position: relative;
}
.step-item + .step-item::before {
  content: '→'; position: absolute; left: -14px; top: 42px;
  font-size: 1.4rem; color: var(--primary); font-weight: 900;
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 1.2rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; box-shadow: 0 4px 12px rgba(192,57,43,.35);
}
.step-item h3 { font-size: .98rem; font-weight: 700; margin-bottom: 6px; }
.step-item p { font-size: .85rem; color: var(--text-muted); }

/* ==============================
   NOTICE BAND
   ============================== */
.notice-band {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; padding: 18px 0; overflow: hidden;
}
.notice-band-inner { display: flex; align-items: center; gap: 20px; }
.notice-band .nb-label {
  background: rgba(255,255,255,.2); font-size: .78rem;
  font-weight: 700; padding: 3px 12px; border-radius: 4px; white-space: nowrap;
}
.notice-ticker { flex: 1; overflow: hidden; }
.notice-ticker ul { display: flex; gap: 40px; animation: ticker 22s linear infinite; white-space: nowrap; }
.notice-ticker li { font-size: .9rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==============================
   CTA BANNER
   ============================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  color: #fff; padding: 56px 0; text-align: center;
}
.cta-banner h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { font-size: 1rem; color: rgba(255,255,255,.78); margin-bottom: 28px; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--secondary);
  padding: 14px 30px; border-radius: 999px;
  font-size: 1.02rem; font-weight: 800;
  transition: background var(--transition), transform var(--transition);
}
.btn-cta:hover { background: var(--accent-light); transform: translateY(-2px); color: var(--secondary); }
.btn-cta-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,.55); color: #fff;
  padding: 12px 26px; border-radius: 999px;
  font-size: 1rem; font-weight: 700;
  transition: background var(--transition), border-color var(--transition);
}
.btn-cta-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* ==============================
   FOOTER
   ============================== */
#site-footer { background: var(--secondary); color: rgba(255,255,255,.7); padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.footer-logo { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: .84rem; line-height: 1.7; }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .84rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; text-align: center; font-size: .8rem; }
.footer-warning { background: rgba(192,57,43,.2); border-left: 3px solid var(--primary); padding: 12px 16px; border-radius: var(--radius-sm); font-size: .8rem; margin-top: 16px; color: rgba(255,255,255,.75); }

/* ==============================
   게시판 (그누보드 스타일)
   ============================== */
.board-wrap { background: var(--bg-white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }

/* 게시판 상단 검색/필터 */
.board-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 2px solid var(--secondary); flex-wrap: wrap; gap: 12px; }
.board-title-bar { display: flex; align-items: center; gap: 12px; }
.board-title-bar h2 { font-size: 1.1rem; font-weight: 800; }
.board-count { font-size: .82rem; color: var(--text-muted); }
.board-search { display: flex; gap: 8px; align-items: center; }
.board-search input {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 12px; font-size: .88rem; width: 200px;
  outline: none; transition: border-color var(--transition);
}
.board-search input:focus { border-color: var(--primary); }
.board-search button, .btn-sm {
  background: var(--secondary); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 7px 14px; font-size: .84rem; cursor: pointer; font-weight: 600;
  transition: background var(--transition);
}
.board-search button:hover, .btn-sm:hover { background: var(--primary); }

/* 게시판 테이블 */
.board-table-wrap { overflow-x: auto; }
.board-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.board-table thead tr { background: #f1f3f5; border-bottom: 2px solid var(--border); }
.board-table th { padding: 12px 16px; text-align: center; font-size: .82rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.board-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.board-table tbody tr:hover { background: #fdf5f5; }
.board-table .num { text-align: center; width: 60px; color: var(--text-muted); font-size: .82rem; }
.board-table .td-title { text-align: left; }
.board-table .td-title a { font-weight: 600; color: var(--text-dark); }
.board-table .td-title a:hover { color: var(--primary); }
.board-table .td-title .notice-badge { background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 3px; margin-right: 6px; }
.board-table .cat-badge { font-size: .72rem; background: var(--bg-light); border: 1px solid var(--border); color: var(--text-muted); padding: 2px 7px; border-radius: 3px; margin-left: 6px; }
.board-table .td-author, .board-table .td-date, .board-table .td-views { text-align: center; font-size: .82rem; color: var(--text-muted); white-space: nowrap; }
.board-table .td-views::before { content: '👁 '; font-size: .75rem; }

/* 게시글 뷰 */
.post-view { background: var(--bg-white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.post-view-header { border-bottom: 2px solid var(--secondary); padding: 24px 28px 20px; }
.post-view-header .pv-cat { background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 3px; margin-bottom: 10px; display: inline-block; }
.post-view-header h1 { font-size: 1.35rem; font-weight: 800; line-height: 1.4; margin-bottom: 14px; }
.post-view-meta { display: flex; gap: 20px; font-size: .82rem; color: var(--text-muted); flex-wrap: wrap; }
.post-view-meta span { display: flex; align-items: center; gap: 5px; }
.post-view-content { padding: 28px; line-height: 1.85; font-size: .96rem; }
.post-view-content h3 { font-size: 1.06rem; font-weight: 700; margin: 22px 0 10px; color: var(--secondary); }
.post-view-content ul, .post-view-content ol { padding-left: 22px; margin-bottom: 14px; list-style: disc; }
.post-view-content ol { list-style: decimal; }
.post-view-content p { margin-bottom: 12px; }
.post-view-footer { padding: 16px 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* 글쓰기 폼 */
.write-form { background: var(--bg-white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.write-form-header { background: var(--secondary); color: #fff; padding: 16px 24px; font-size: 1rem; font-weight: 700; }
.write-form-body { padding: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 7px; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: .92rem; font-family: inherit;
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.form-group textarea { min-height: 280px; resize: vertical; }
.write-form-actions { display: flex; justify-content: center; gap: 12px; padding: 0 28px 28px; }
.btn-submit { background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); padding: 12px 36px; font-size: .98rem; font-weight: 700; cursor: pointer; transition: background var(--transition); }
.btn-submit:hover { background: var(--primary-dark); }
.btn-cancel { background: var(--bg-light); color: var(--text-dark); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 24px; font-size: .98rem; font-weight: 600; cursor: pointer; transition: background var(--transition); text-decoration: none; display: inline-block; }
.btn-cancel:hover { background: var(--border); }

/* 페이지네이션 */
.board-pagination { display: flex; justify-content: center; gap: 6px; padding: 20px; }
.pg-btn, .pg-num {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-white); color: var(--text-dark);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.pg-btn:hover, .pg-num:hover, .pg-num.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 관리자 로그인 모달 */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 380px; max-width: calc(100vw - 40px); overflow: hidden;
  transform: scale(.92) translateY(16px);
  transition: transform .25s ease;
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }
.modal-header { background: var(--secondary); color: #fff; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: rgba(255,255,255,.7); font-size: 1.3rem; cursor: pointer; line-height: 1; transition: color var(--transition); }
.modal-close:hover { color: #fff; }
.modal-body { padding: 24px; }
.modal-body .form-group:last-child { margin-bottom: 0; }
.modal-footer { padding: 0 24px 24px; }
.modal-footer .btn-submit { width: 100%; }
.modal-error { color: var(--primary); font-size: .84rem; margin-top: 8px; min-height: 20px; }

/* 관리자 배지 */
.admin-badge { background: var(--accent); color: var(--secondary); font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-left: 8px; }
.admin-bar { background: #2c3e50; color: rgba(255,255,255,.8); padding: 8px 0; font-size: .82rem; }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* 썸네일 이미지 생성기 (SEO용 더미 이미지) */
.thumb-placeholder {
  width: 100%; height: 100%; background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem; font-weight: 600; text-align: center; padding: 12px;
}

/* 페이지 breadcrumb */
.breadcrumb { padding: 14px 0; font-size: .84rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* 빠른 상담 플로팅 */
.float-consult {
  position: fixed; bottom: 28px; right: 24px; z-index: 800;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.float-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-size: .9rem; font-weight: 700;
  box-shadow: 0 4px 16px rgba(192,57,43,.45);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.float-btn:hover { background: var(--primary-dark); transform: translateX(-3px); color: #fff; }
.float-btn.kakao { background: #FEE500; color: #3A1D1D; box-shadow: 0 4px 16px rgba(254,229,0,.4); }
.float-btn.kakao:hover { background: #f5dc00; color: #3A1D1D; }

/* 리뷰/후기 */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 22px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.review-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 10px; }
.review-text { font-size: .9rem; line-height: 1.6; color: var(--text-dark); margin-bottom: 14px; }
.review-meta { font-size: .8rem; color: var(--text-muted); display: flex; gap: 12px; }

/* 공지 강조 */
.board-table tr.is-notice td { background: #fffbf0; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 900px) {
  .hero-title { font-size: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .steps-wrap { grid-template-columns: 1fr 1fr; }
  .step-item + .step-item::before { display: none; }
}

@media (max-width: 680px) {
  .menu-toggle { display: flex; }
  #site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--secondary); flex-direction: column; align-items: stretch;
    padding: 12px 16px 16px; gap: 4px;
    display: none;
  }
  #site-nav.open { display: flex; }
  #site-nav a { padding: 10px 14px; border-radius: var(--radius-sm); }
  .header-cta { display: none; }
  .hero-title { font-size: 1.65rem; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .board-table .td-author, .board-table .td-views { display: none; }
  .steps-wrap { grid-template-columns: 1fr; }
  .float-btn span { display: none; }
  .float-btn { padding: 13px; border-radius: 50%; }
}
