:root {
  --navy: #0b2f6b;
  --orange: #ff5722;
  --accent: #0284c7;
  --blue: #0284c7;
  --ink: #111827;
  --muted: #64748b;
  --bg: #f8fafc;
  --line: #e2e8f0;
  --gold: #f59e0b;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Wrap Container */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Site Header (Existing Kept) */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.site-header .logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: #fff; }
.logo-img { height: 30px; width: 30px; display: block; object-fit: contain; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav-link { color: #cfe0ff; font-weight: 700; font-size: 0.9rem; margin-right: 14px; transition: color 0.15s; }
.header-nav-link:hover { color: #fff; }
.header-tel { background: var(--orange); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 0.92rem; white-space: nowrap; }

/* Breadcrumb */
.crumb { font-size: 13.5px; color: var(--muted); padding: 18px 0 8px; }
.crumb a:hover { color: var(--accent); }
.crumb b { color: var(--navy); font-weight: 800; }
.crumb span { margin: 0 6px; color: #cbd5e1; }

/* Hero Section */
.hero { padding: 14px 0 8px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800;
  color: var(--accent); background: rgba(2, 132, 199, 0.09);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 12px;
}
.hero h1 { font-size: 28px; font-weight: 900; letter-spacing: -0.03em; margin: 0 0 10px; line-height: 1.35; color: var(--navy); word-break: keep-all; }
.aeo-updated { font-size: 13px; color: var(--muted); margin: 4px 0 12px; font-weight: 600; }
.hero p.sub { font-size: 15.5px; color: #334155; line-height: 1.75; margin: 0 0 16px; word-break: keep-all; }

/* AEO Answer Box */
.answer-box {
  background: #f0f7ff; border: 1.5px solid #bae6fd;
  border-radius: 14px; padding: 18px 20px; margin: 16px 0 18px;
}
.answer-box b { color: var(--navy); font-size: 15.5px; display: block; margin-bottom: 6px; }
.answer-box p { margin: 0; font-size: 15px; line-height: 1.8; color: #1e293b; word-break: keep-all; }

/* Hero CTA Buttons */
.hero-cta { display: flex; gap: 10px; flex-wrap: nowrap; margin: 18px 0 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 999px; padding: 14px 22px; font-size: 15px; font-weight: 800;
  cursor: pointer; border: 1.5px solid transparent; text-align: center; white-space: nowrap; flex: 1;
}
.btn-call { background: var(--orange); color: #fff; }
.btn-call:hover { opacity: 0.92; }
.btn-line { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-white { background: #fff; color: var(--navy); font-weight: 800; }

/* Top Single Banner */
.top-banner { margin: 18px 0; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.top-banner img { width: 100%; height: auto; object-fit: cover; }

/* Fact Table */
.aeo-fact { margin: 18px 0; }
.aeo-fhead { background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; padding: 12px 18px; border-radius: 14px 14px 0 0; }
.aeo-fact table.aeo-t { width: 100%; border-collapse: collapse; border: 1.5px solid var(--navy); border-top: none; border-radius: 0 0 14px 14px; overflow: hidden; background: #fff; }
.aeo-t td { padding: 12px 18px; border-top: 1px solid #f1f5f9; font-size: 14.5px; }
.aeo-t td:first-child { color: var(--muted); font-weight: 700; width: 28%; white-space: nowrap; }
.aeo-t td:last-child { font-weight: 700; color: #0f172a; }

/* Promise / Guarantee Box */
.fund {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(135deg, var(--navy), #0369a1);
  color: #fff; border-radius: 16px; padding: 22px 24px; margin: 20px 0;
}
.fund .big { font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.fund p { margin: 6px 0 0; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.92); }
.fund .warn { margin-top: 8px; font-size: 13px; font-weight: 700; color: #fde047; }

/* General Section Card */
.sec { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin: 18px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.sec h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--navy); word-break: keep-all; }
.sec p { font-size: 15px; color: #475569; line-height: 1.8; margin: 0 0 10px; word-break: keep-all; }

/* Cases Carousel / Grid */
.cases-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory;
}
@media (max-width: 900px) {
  .cases-grid { display: flex; }
  .case-card { flex: 0 0 200px; }
}
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); display: flex; flex-direction: column;
}
.case-card .c-img { width: 100%; height: 135px; object-fit: cover; }
.case-card .c-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.case-card strong { font-size: 13.5px; font-weight: 800; color: #0f172a; line-height: 1.4; display: block; margin-bottom: 6px; }
.case-card span { font-size: 12px; color: var(--accent); font-weight: 700; }

/* Process Accordion */
.procflow .pflow { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pstep-d { border: 1px solid #e0f2fe; border-radius: 12px; overflow: hidden; background: #fff; }
.pstep-d[open] { border-color: var(--accent); box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08); }
.pstep {
  display: flex; align-items: center; gap: 11px; background: #f0f9ff;
  padding: 13px 16px; font-size: 15px; font-weight: 700; color: var(--navy);
  cursor: pointer; list-style: none;
}
.pstep::-webkit-details-marker { display: none; }
.pstep .pnum {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--navy);
  color: #fff; font-size: 13px; font-weight: 800; flex: 0 0 26px;
}
.pstep .plabel { flex: 1; }
.pstep .pchev { color: var(--accent); font-size: 13px; transition: transform 0.2s; }
.pstep-d[open] .pstep .pchev { transform: rotate(180deg); }
.pstep-body { padding: 14px 16px 16px 53px; }
.pstep-body p { margin: 0; font-size: 14px; color: #475569; line-height: 1.75; }

/* Hook List */
.hooklist { list-style: none; padding: 0; margin: 10px 0 0; }
.hooklist li {
  padding: 9px 0 9px 24px; position: relative; font-size: 14.5px;
  color: #334155; border-bottom: 1px solid #f1f5f9; font-weight: 600;
}
.hooklist li:before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 900; }

/* Info Cards */
.info { background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.info h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: var(--navy); }
.info p { margin: 0; font-size: 14px; color: #475569; line-height: 1.7; }
.info .src { display: block; margin-top: 7px; font-size: 12px; color: #94a3b8; }

/* FAQ Section */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.faq summary {
  font-size: 15.5px; font-weight: 700; padding: 16px 18px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #1e293b;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary { color: var(--navy); }
.faq details[open] summary::after { content: '−'; color: var(--navy); }
.faq .a { font-size: 14.5px; color: #475569; line-height: 1.75; padding: 0 18px 16px; border-top: 1px solid #f8fafc; }
.aeo-lead { color: var(--navy); font-weight: 800; margin-right: 4px; }

/* Related Keyword Tabs */
.aeo-moved .aeo-mlabel { font-size: 13.5px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.tabs a {
  font-size: 13.5px; font-weight: 600; color: #475569; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; transition: all 0.15s;
}
.tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs a:hover { border-color: var(--navy); color: var(--navy); }
.tabs a.on:hover { color: #fff; }

/* Child Grid (Neighboring / Sub areas) */
.childgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
@media (max-width: 760px) { .childgrid { grid-template-columns: repeat(2, 1fr); } }
.childgrid a {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 15px; font-size: 14px; font-weight: 600; color: #1e293b; transition: all 0.15s;
}
.childgrid a:hover { border-color: var(--accent); color: var(--accent); }
.childgrid a .arr { color: #94a3b8; }
.childgrid a:hover .arr { color: var(--accent); }

/* Bottom CTA Band */
.ctaband {
  background: linear-gradient(135deg, var(--navy), #1e3a8a);
  color: #fff; border-radius: 18px; padding: 32px 24px; text-align: center; margin: 24px 0;
}
.ctaband h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 8px; color: #fff; }
.ctaband p { margin: 0 0 18px; opacity: 0.92; font-size: 15px; }
.ctaband .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: nowrap; max-width: 480px; margin: 0 auto; }

/* Form Styles */
.apply-form { margin: 18px 0; }
.apply-form-head { background: var(--navy); color: #fff; border-radius: 12px 12px 0 0; padding: 16px 18px; text-align: center; }
.apply-form-head h2 { color: #fff; font-size: 1.1rem; margin: 0; }
.apply-form-body {
  background: #fff; border: 1px solid var(--line); border-top: none;
  border-radius: 0 0 12px 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.apply-form-body label { display: block; font-weight: 700; font-size: 0.9rem; color: #334155; }
.apply-form-body .req { color: #e53935; }
.apply-form-body input[type=text], .apply-form-body input[type=tel], .apply-form-body textarea {
  width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 0.95rem; font-family: inherit;
}
.apply-form-body textarea { min-height: 80px; resize: vertical; }
.apply-form-hint { font-weight: 400; color: #888; font-size: 0.8rem; margin-left: 6px; }
.apply-form-body input[type=file] { width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 0.85rem; background: #f8fafc; }
.apply-form-photo-status { margin: -4px 0 0; font-size: 0.8rem; color: #666; }
.apply-form-photo-status.err { color: #e53935; }
.apply-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.apply-form-agree-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f8fafc; padding: 12px; border-radius: 8px; }
.apply-form-agree { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; margin: 0; }
.privacy-toggle-btn { background: #fff; border: 1px solid #ccc; border-radius: 14px; padding: 4px 10px; font-size: 0.75rem; font-weight: 700; color: var(--accent); cursor: pointer; flex: 0 0 auto; white-space: nowrap; }
.privacy-detail-panel { display: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 0.8rem; }
.privacy-detail-panel p { margin: 0 0 8px; line-height: 1.6; color: #555; }
.apply-form-body button[type=submit] { background: var(--navy); color: #fff; border: none; padding: 16px; border-radius: 8px; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.apply-form-body button[type=submit]:hover { opacity: 0.94; }
.apply-form-body button[type=submit]:disabled { opacity: 0.6; cursor: not-allowed; }
.apply-form-status { margin: 0; text-align: center; font-size: 0.85rem; font-weight: 700; min-height: 1.2em; }
.apply-form-status.ok { color: #1e7e34; }
.apply-form-status.err { color: #e53935; }

/* Rich Footer */
footer.rf { background: #0b1329; color: #94a3b8; margin-top: 36px; padding: 40px 0 32px; font-size: 13.5px; }
footer.rf .logo { font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 14px; }
footer.rf nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; font-size: 13.5px; }
footer.rf nav a { color: #e2e8f0; font-weight: 600; }
footer.rf nav a:hover { color: #fff; }
footer.rf .copy { font-size: 12px; color: #64748b; margin-top: 12px; }

/* Mobile Fixed Bottom CTA Bar */
.mfix {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  display: flex; gap: 10px; justify-content: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -2px 14px rgba(20, 34, 58, 0.09);
}
@media (min-width: 900px) {
  .mfix { display: none; }
}
.mfix a {
  flex: 1; max-width: 280px; display: flex; align-items: center; justify-content: center;
  text-align: center; gap: 6px; border-radius: 12px; padding: 13px 10px;
  font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.mfix .m-call { background: #fff; color: var(--orange); border: 1.6px solid var(--orange); }
.mfix .m-quote { background: var(--navy); color: #fff; }

/* Hub Pages Styles */
.page-hero { max-width: 900px; margin: 0 auto; padding: 36px 16px 8px; text-align: center; }
.page-hero h1 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 0 0 10px; word-break: keep-all; }
.page-hero p { color: #64748b; font-size: 0.95rem; margin: 0; word-break: keep-all; }
.sido-group-title { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin: 24px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0 0 16px; }
.region-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 2px 6px rgba(0,0,0,0.03); transition: all 0.15s; }
.region-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.region-name { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.region-count { font-size: 0.82rem; color: #888; }
.kw-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-chip { background: #f0f9ff; color: var(--navy); border: 1px solid #bae6fd; padding: 8px 14px; border-radius: 16px; font-size: 0.88rem; font-weight: 700; transition: all 0.15s; }
.kw-chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.section-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 28px; }
.service-intro { max-width: 1080px; margin: 0 auto; padding: 0 20px 20px; }
.service-intro p { background: #fff; border-left: 4px solid var(--orange); border: 1px solid var(--line); border-left-width: 4px; padding: 16px 18px; border-radius: 8px; font-size: 0.92rem; color: #475569; line-height: 1.7; margin: 0; word-break: keep-all; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px 40px; }
.badge-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.badge { background: #f0f9ff; color: var(--navy); border: 1px solid #bae6fd; padding: 4px 12px; border-radius: 14px; font-size: 0.8rem; font-weight: 700; }
.banner-single { margin: 20px 0; }
.banner-single img { width: 100%; border-radius: 12px; display: block; }
