/* ============= Reset & Base ============= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Malgun Gothic', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #222;
  line-height: 1.6;
  background: #fff;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; cursor: pointer; font-family: inherit; background: none; }

:root {
  --primary: #003c7e;
  --primary-dark: #002a5c;
  --secondary: #FFB800;
  --accent: #0067c5;
  --bg-light: #f5f7fa;
  --gray: #666;
  --gray-light: #eee;
  --gray-bg: #f9fafc;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============= Top Bar ============= */
.topbar {
  background: var(--primary-dark);
  color: #cfd9e6;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #cfd9e6; margin-left: 14px; }
.topbar a:hover { color: #fff; }

/* ============= Header ============= */
.header {
  background: #fff;
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary);
  font-size: 20px;
}
.logo .logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
}
.logo .logo-img {
  background: transparent;
  border-radius: 0;
  width: 52px;
  height: auto;
  object-fit: contain;
}
.logo small {
  display: block;
  font-size: 11px;
  color: var(--gray);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ============= GNB ============= */
.gnb { display: flex; gap: 2px; }
.gnb > li { position: relative; }
.gnb > li > a {
  display: block;
  padding: 28px 14px;
  font-weight: 600;
  font-size: 15px;
  color: #222;
  transition: color 0.2s;
  white-space: nowrap;
  letter-spacing: -0.4px;
  word-break: keep-all;
}
.gnb > li:hover > a, .gnb > li.active > a { color: var(--primary); }
.gnb > li > a::after {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--secondary);
  transition: width 0.2s;
}
.gnb > li:hover > a::after, .gnb > li.active > a::after { width: 60%; }

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--gray-light);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  min-width: 180px;
  display: none;
  border-radius: 6px;
  overflow: hidden;
}
.gnb > li:hover .submenu { display: block; }
.submenu li a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
}
.submenu li:last-child a { border-bottom: none; }
.submenu li a:hover { background: var(--bg-light); color: var(--primary); }

.header-cta {
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 10px 18px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.header-cta:hover { background: #ffc933; }

.mobile-toggle { display: none; font-size: 24px; color: var(--primary); }

/* ============= Hero Slider ============= */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 560px;
  color: #fff;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hero-slider .slide.active { opacity: 1; pointer-events: auto; }
.hero-slider .slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,42,92,0.78) 0%, rgba(0,103,197,0.62) 100%);
}
.hero-slider .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  width: 100%;
}
.hero-slider h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.25;
  animation: slideUp 0.8s ease;
}
.hero-slider h1 .accent { color: var(--secondary); }
.hero-slider p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 30px;
  animation: slideUp 0.9s ease;
}
.hero-slider .hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: slideUp 1s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.slider-dots .dot.active {
  background: var(--secondary);
  width: 36px;
  border-radius: 6px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 32px;
  line-height: 0;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.slider-arrow:hover { background: rgba(255,255,255,0.3); }
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

@media (max-width: 768px) {
  .hero-slider { height: 440px; }
  .hero-slider h1 { font-size: 28px; }
  .hero-slider p { font-size: 15px; }
  .slider-arrow { display: none; }
}

/* ============= Hero (legacy, unused) ============= */
.hero {
  background:
    linear-gradient(135deg, rgba(0,42,92,0.78) 0%, rgba(0,103,197,0.62) 100%),
    url('../img/hero.jpg') center center / cover no-repeat;
  color: #fff;
  padding: 120px 0 140px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  left: -50px;
  bottom: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255,184,0,0.1);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; }
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.25;
}
.hero h1 .accent { color: var(--secondary); }
.hero p { font-size: 18px; opacity: 0.95; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
}
.btn-primary { background: var(--secondary); color: var(--primary-dark); }
.btn-primary:hover { background: #ffc933; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }

/* ============= Section ============= */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head .label {
  display: inline-block;
  color: var(--secondary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.section-head p { color: var(--gray); font-size: 16px; }

/* ============= Steps ============= */
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.step {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
  border: 2px solid #d8e4f3;
  border-radius: 14px;
  padding: 36px 16px 30px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 60, 126, 0.08);
}
.step:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,103,197,0.20);
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(0,60,126,0.35);
  border: 3px solid #fff;
}
.step h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; }
.step p { font-size: 13px; color: #555; }

/* ============= Service Cards ============= */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.service-card {
  display: block;
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,60,126,0.12);
  border-color: var(--primary);
}
.service-card .icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
}
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; }
.service-card p { font-size: 14px; color: var(--gray); }

/* ============= Notice ============= */
.notice-wrap {
  background: var(--gray-bg);
  padding: 80px 0;
}
.notice-list {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.notice-item {
  border-bottom: 1px solid var(--gray-light);
  transition: background 0.2s;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--bg-light); }
.notice-item a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  color: inherit;
}
.notice-item .tag {
  background: var(--primary);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.notice-item .title { flex: 1; font-size: 15px; font-weight: 500; color: #333; transition: color 0.2s; }
.notice-item a:hover .title { color: var(--primary); }
.notice-item .date { color: var(--gray); font-size: 13px; }

/* ============= Footer ============= */
.footer {
  background: #1c2433;
  color: #aab2bf;
  padding: 60px 0 30px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2d3645;
}
.footer h5 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-info p {
  margin-bottom: 6px;
  line-height: 1.7;
  white-space: nowrap;
  word-break: keep-all;
}
@media (max-width: 1024px) {
  .footer-info p { white-space: normal; }
}
.footer-links a { display: block; margin-bottom: 8px; }
.footer-links a:hover { color: #fff; }
.footer-warn {
  background: #2a3344;
  padding: 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: #cfd9e6;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { margin-right: 14px; }
.footer-bottom a:hover { color: #fff; }

/* ============= Page Banner ============= */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 80px 0 70px;
  text-align: center;
}
.page-banner h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.page-banner .breadcrumb {
  font-size: 14px;
  opacity: 0.9;
}
.page-banner .breadcrumb a { color: #fff; }
.page-banner .breadcrumb span { margin: 0 8px; opacity: 0.6; }

/* ============= Page Content ============= */
.page-content { padding: 70px 0; }
.page-content h2 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--secondary);
  display: inline-block;
}
.page-content h3 {
  font-size: 22px;
  color: #1a1a1a;
  margin: 30px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}
.page-content p { margin-bottom: 14px; color: #444; line-height: 1.8; }
.page-content ul.bullet { margin: 16px 0 24px 20px; }
.page-content ul.bullet li {
  list-style: disc;
  margin-bottom: 8px;
  color: #444;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.info-box {
  background: var(--gray-bg);
  border-radius: 10px;
  padding: 28px;
  border-top: 4px solid var(--primary);
}
.info-box h4 {
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 700;
}
.info-box p { font-size: 14px; color: #555; }

.table-wrap { overflow-x: auto; margin: 20px 0; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
table.data th, table.data td {
  padding: 14px 16px;
  border: 1px solid #e3e6eb;
  text-align: left;
  font-size: 14px;
}
table.data th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-align: center;
}
table.data tr:nth-child(even) td { background: #fafbfd; }

/* ============= Forms ============= */
.form-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}
.form-row label .req { color: #e53935; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row .checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--gray-bg);
  border-radius: 8px;
}
.form-row .checkbox-wrap input { width: auto; }
.form-actions { text-align: center; margin-top: 30px; }
.form-actions button {
  background: var(--primary);
  color: #fff;
  padding: 14px 50px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
}
.form-actions button:hover { background: var(--primary-dark); }

.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ============= Success Cases (Home) ============= */
.success-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.success-card {
  display: block;
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
  color: inherit;
}
.success-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,60,126,0.14);
  border-color: var(--accent);
}
.success-card .thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #eef2f7;
}
.success-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.success-card:hover .thumb img { transform: scale(1.06); }
.success-card .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}
.badge-blue { background: #0067c5; }
.badge-gold { background: #e8a317; }
.badge-purple { background: #6a5acd; }
.badge-green { background: #2e8b57; }
.success-card .body { padding: 20px 22px 22px; }
.success-card .meta {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.success-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.45;
}
.success-card h4 strong {
  color: var(--primary);
  font-weight: 800;
  font-size: 18px;
}
.success-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.success-card .more {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .success-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .success-grid { grid-template-columns: 1fr; }
}

/* ============= Cases ============= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.case-card .thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}
.case-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,42,92,0.55), rgba(0,103,197,0.40));
  z-index: 1;
}
.case-card .thumb > * { position: relative; z-index: 2; }
.case-card:hover .thumb { transform: none; }
.case-card .body { padding: 20px; }
.case-card .industry {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.case-card h4 { font-size: 17px; margin-bottom: 8px; color: #1a1a1a; }
.case-card .amount { color: var(--primary); font-weight: 700; }

/* ============= QA ============= */
.qa-list { max-width: 900px; margin: 0 auto; }
.qa-item {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.qa-q {
  padding: 18px 24px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}
.qa-q::before { content: 'Q.'; color: var(--secondary); font-weight: 800; margin-right: 10px; }
.qa-q:hover { background: var(--bg-light); }
.qa-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  background: var(--gray-bg);
  transition: all 0.3s;
  font-size: 14px;
  color: #555;
}
.qa-item.open .qa-a { padding: 20px 24px; max-height: 500px; }
.qa-a::before { content: 'A. '; color: var(--primary); font-weight: 800; }

/* ============= Floating Consult Button ============= */
.fab-consult {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd95a 0%, #d4a017 75%, #b08a14 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: 27px;
  line-height: 1.2;
  box-shadow: 0 10px 30px rgba(180, 130, 0, 0.55), inset 0 -6px 16px rgba(0,0,0,0.15);
  z-index: 999;
  text-decoration: none;
  letter-spacing: -0.5px;
  animation: fabPulse 2.5s ease-in-out infinite;
  transition: transform 0.2s;
}
.fab-consult:hover {
  transform: scale(1.08) rotate(-3deg);
  animation: none;
}
.fab-consult .fab-text { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(180,130,0,0.5), inset 0 -4px 12px rgba(0,0,0,0.15), 0 0 0 0 rgba(255,184,0,0.6); }
  50%      { box-shadow: 0 8px 24px rgba(180,130,0,0.5), inset 0 -4px 12px rgba(0,0,0,0.15), 0 0 0 14px rgba(255,184,0,0); }
}

@media (max-width: 768px) {
  .fab-consult { right: 16px; bottom: 16px; width: 114px; height: 114px; font-size: 22px; }
}

/* ============= Responsive ============= */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .gnb, .header-cta { display: none; }
  .mobile-toggle { display: block; }
  .gnb.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .gnb.open > li > a { padding: 14px; }
  .gnb.open .submenu { position: static; transform: none; display: block; box-shadow: none; border: none; padding-left: 16px; }
  .hero { padding: 60px 0 80px; }
  .hero h1 { font-size: 32px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-2col { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 30px; }
}
