:root {
  --primary: #0b4da2;
  --primary-dark: #0a2e5c;
  --primary-light: #2f73c9;
  --accent: #16b8c4;
  --text: #1a2233;
  --muted: #6b7280;
  --line: #e8ecf2;
  --bg-soft: #f5f8fc;
  --max: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(16, 42, 80, .05);
  --shadow-md: 0 12px 34px rgba(16, 42, 80, .10);
  --shadow-lg: 0 22px 60px rgba(16, 42, 80, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Pretendard Variable', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
::selection { background: rgba(11, 77, 162, .15); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* 스크롤 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(16,42,80,.07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; transition: height .3s var(--ease); }
.site-header.scrolled .header-inner { height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand img { height: 42px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .brand img { height: 36px; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--primary); color: #fff; font-size: 16px; letter-spacing: .5px;
}
.brand-name { font-size: 19px; color: var(--primary-dark); }

.gnb > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a {
  display: block; padding: 12px 18px; font-weight: 600; font-size: 16px; color: var(--text);
  border-radius: 10px; transition: color .18s var(--ease), background .18s var(--ease);
}
.gnb > ul > li > a::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 2px;
  background: var(--primary); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.gnb > ul > li:hover > a { color: var(--primary); }
.gnb > ul > li:hover > a::after { transform: scaleX(1); }
.gnb > ul > li.active > a { color: var(--primary); }
.gnb > ul > li.active > a::after { transform: scaleX(1); }
.gnb-intra.active > a::after { display: none; }
.gnb .sub {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, 8px); min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md);
  list-style: none; margin: 0; padding: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.gnb .has-sub:hover .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb .sub li a { display: block; padding: 10px 16px; font-size: 15px; color: #374151; border-radius: 9px; transition: background .15s, color .15s; }
.gnb .sub li a:hover { background: var(--bg-soft); color: var(--primary); }

/* 인트라넷 버튼 */
.gnb-intra { margin-left: 12px; }
.gnb-intra > a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px !important; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important; font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 16px rgba(11,77,162,.28);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.gnb-intra > a::after { display: none; }
.gnb-intra > a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11,77,162,.36); }

.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--primary-dark); }

/* ===== Hero 캐러셀 (원본 main_bn 3장 자동 슬라이드) ===== */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-carousel { min-height: 640px; display: flex; align-items: center; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease-in-out, transform 7s linear; z-index: 1;
}
.hero-slide.active { opacity: 1; transform: scale(1); z-index: 2; }
.hero-overlay { position: absolute; inset: 0; z-index: 3; background: linear-gradient(105deg, rgba(6,22,46,.78) 0%, rgba(8,30,60,.45) 45%, rgba(8,30,60,.15) 100%); }
.hero-inner { position: relative; z-index: 4; padding: 60px 20px; width: 100%; }
.hero-eyebrow {
  font-size: 18px; line-height: 1.5; font-weight: 500; margin: 0 0 20px; letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  display: inline-block; padding-left: 18px; position: relative;
}
.hero-eyebrow::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--accent); }
.hero-title { font-size: 58px; line-height: 1.15; margin: 0 0 34px; font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 4px 18px rgba(0,0,0,.4); }
.hero-desc { font-size: 18px; opacity: .92; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-inner .hero-eyebrow { animation: heroUp .9s var(--ease) both; }
.hero-inner .hero-title { animation: heroUp .9s var(--ease) .12s both; }
.hero-inner .hero-actions { animation: heroUp .9s var(--ease) .24s both; }
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
/* 좌우 컨트롤 */
.hero-ctrl {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  backdrop-filter: blur(4px); transition: background .2s var(--ease), border-color .2s;
}
.hero-ctrl:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.6); }
.hero-prev { left: 28px; }
.hero-next { right: 28px; }
/* 인디케이터 점 */
.hero-dots { position: absolute; bottom: 32px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 12px; }
.hero-dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: background .2s, width .25s var(--ease), border-radius .25s; }
.hero-dot.active { background: #fff; width: 30px; border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 2px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(11,77,162,.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11,77,162,.36); }
.hero .btn-primary { background: #fff; color: var(--primary-dark); }
.hero .btn-primary:hover { background: #eef3fb; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.content-page .btn-ghost, .board .btn-ghost, .board-view .btn-ghost {
  border-color: var(--line); color: var(--text);
}

/* ===== 사업분야 (원본 part 이미지) ===== */
.biz { padding: 110px 24px 100px; text-align: center; }
.biz-head .eyebrow-tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .22em;
  color: var(--primary-light); margin-bottom: 14px;
}
.biz-head h3 { font-size: 36px; color: var(--primary-dark); margin: 0 0 14px; font-weight: 800; letter-spacing: -0.02em; }
.biz-head p { color: var(--muted); margin: 0 0 56px; font-size: 17px; }
/* reveal 순차 지연 */
.biz-parts .biz-part:nth-child(2) { transition-delay: .1s; }
.biz-parts .biz-part:nth-child(3) { transition-delay: .2s; }
.biz-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.biz-part {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 44px 24px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.biz-part:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.biz-part img {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 10px 26px rgba(16,42,80,.12); transition: transform .3s var(--ease);
}
.biz-part:hover img { transform: scale(1.05); }
.biz-part span { font-size: 20px; font-weight: 700; color: var(--text); transition: color .2s; }
.biz-part:hover span { color: var(--primary); }

/* ===== Latest ===== */
.latest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 20px 20px 80px; }
.latest-single { grid-template-columns: 1.3fr 1fr; align-items: stretch; }
.latest-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  color: #fff; border-radius: var(--radius); padding: 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.latest-cta h3 { margin: 0 0 12px; font-size: 22px; }
.latest-cta p { margin: 0 0 22px; opacity: .92; }
.latest-cta .btn-primary { background: #fff; color: var(--primary-dark); align-self: flex-start; }
.latest-cta .btn-primary:hover { background: #eef3fb; }
.latest-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.latest-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.latest-head h2 { font-size: 19px; margin: 0; color: var(--primary-dark); }
.latest-head .more { font-size: 14px; color: var(--muted); }
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px dashed var(--line); }
.latest-list li:first-child { border-top: 0; }
.latest-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-list li a:hover { color: var(--primary); }
.latest-list .date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.latest-list .empty { color: var(--muted); justify-content: center; }

/* ===== Page hero ===== */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero .container { padding: 46px 20px; }
.page-title { margin: 0; font-size: 30px; color: var(--primary-dark); }

/* 서브페이지 키비주얼(원본 kv 이미지) */
.page-hero.has-kv {
  position: relative; height: 230px; border-bottom: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  display: flex; align-items: center;
}
.page-hero-overlay { position: absolute; inset: 0; background: rgba(8,30,60,.42); }
.page-hero.has-kv .container { position: relative; padding: 0 20px; }
.page-hero.has-kv .page-title { color: #fff; font-size: 34px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.kv-company { background-image: url('/public/img/kv-company.png'); }
.kv-bm { background-image: url('/public/img/kv-bm.png'); }
.kv-certification { background-image: url('/public/img/kv-certification.png'); }
.kv-center { background-image: url('/public/img/kv-center.png'); }

/* ===== Content page ===== */
.content-page { padding: 50px 20px 80px; }
.content-body { font-size: 16px; }
.content-body img { border-radius: 6px; height: auto; }
.content-body table { border-collapse: collapse; max-width: 100%; }

/* 그누보드 tbl_head01 표 스타일 (시공능력평가 등) */
.content-body .tbl_wrap, .content-body .table-responsive { overflow-x: auto; }
.content-body .tbl_head01 { margin: 0 0 10px; }
.content-body .tbl_head01 table { width: 100%; border-collapse: collapse; min-width: 640px; }
.content-body .tbl_head01 thead th {
  padding: 14px 8px; background: var(--primary-dark); color: #fff;
  font-weight: 700; text-align: center; border: 1px solid #1d4a85;
  font-size: 15px; white-space: nowrap;
}
.content-body .tbl_head01 td {
  padding: 13px 8px; border: 1px solid var(--line); text-align: center;
  font-size: 15px; color: #444; line-height: 1.5;
}
.content-body .tbl_head01 tbody td:first-child { font-weight: 600; color: var(--text); }
.content-body .tbl_head01 tbody tr:hover td { background: rgba(11, 77, 162, .06); }
.content-body h3 { font-size: 24px; color: var(--primary-dark); margin: 0 0 14px; }
.content-body h4 { font-size: 19px; color: var(--text); margin: 18px 0 10px; }
.content-body h6, .content-body .title { font-size: 16px; color: var(--primary); font-weight: 700; margin: 16px 0 6px; }
.content-body p { margin: 0 0 12px; line-height: 1.8; }
/* 원본 테마 클래스 대응 (간단 정리) */
.content-body .row { display: block; }
/* 인사말 배경 (원본 .intro-bg) */
.content-body .intro-bg {
  background: url('/public/img/intro_bg.jpg') no-repeat center bottom;
  background-size: cover;
  padding: 10px 30px 150px 30px;
}
.content-body .intro-bg h3 { color: var(--primary-dark); }
.content-body .ceo-sign { text-align: right; font-weight: 600; margin-top: 18px; }
.content-body .ceo-sign span { font-size: 16px; font-weight: 600; letter-spacing: 6px; margin-left: 8px; }
.content-body [class*="col-"] { display: block; }

/* 사업분야 배경 이미지 + 패널 (원본 .bm-area) */
.content-body .bm-area {
  position: relative; width: 100%; height: 600px; border-radius: 8px; overflow: hidden;
  background-repeat: no-repeat; background-position: center center; background-size: cover;
}
.content-body .bm-area.bm-01 { background-image: url('/public/img/bm-01.jpg'); }
.content-body .bm-area.bm-02 { background-image: url('/public/img/bm-02.jpg'); }
.content-body .bm-area.bm-03 { background-image: url('/public/img/bm-03.jpg'); }
.content-body .bm-area .panel {
  position: absolute; top: 0; right: 0; width: 350px; height: 100%;
  padding: 70px 26px 26px; background: rgba(31, 31, 41, .8); color: #fff;
}
.content-body .bm-area .panel::before {
  content: "+"; position: absolute; top: 20px; right: 24px; font-size: 36px; line-height: 1; color: #fff;
}
.content-body .bm-area .panel h4 { margin: 0 0 20px; font-size: 22px; font-weight: 700; color: #fff; }
.content-body .bm-area .panel p { font-size: 15px; line-height: 1.6; margin: 0 0 15px; color: #e8e8ee; }
.content-body .bm-area .panel .title {
  background: #ff9900; color: #fff; padding: 3px 8px; font-size: 15px; font-weight: 600;
  border-radius: 2px; margin: 6px 0; display: inline-block;
}

@media (max-width: 860px) {
  .content-body .bm-area { height: 460px; }
  .content-body .bm-area .panel { width: 100%; padding: 56px 20px 20px; }
}

/* 면허 및 인증서 갤러리 */
.cert-intro { color: var(--muted); margin: 0 0 32px; font-size: 16px; }
.cert-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.cert-item { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cert-thumb {
  width: 100%; aspect-ratio: 3 / 4; overflow: hidden;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.05); transition: transform .2s, box-shadow .2s;
}
.cert-item:hover .cert-thumb { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.cert-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-label { font-size: 15px; font-weight: 600; color: var(--text); text-align: center; }
.cert-item:hover .cert-label { color: var(--primary); }

@media (max-width: 860px) {
  .cert-gallery { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* 환경/품질방침 */
.policy-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 8px 0 30px; }
.policy-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-weight: 700; font-size: 18px;
  text-align: center; padding: 18px 10px; border-radius: 10px;
  box-shadow: 0 8px 20px rgba(11,77,162,.18);
}
.policy-card {
  display: flex; align-items: center; gap: 40px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.policy-photo { flex: 0 0 42%; max-width: 42%; }
.policy-photo img { width: 100%; border-radius: 6px; display: block; }
.policy-body { flex: 1; }
.policy-heading {
  margin: 0 0 22px; padding-left: 16px; border-left: 5px solid var(--primary);
  font-size: 24px; font-weight: 800; color: var(--primary-dark); letter-spacing: 8px;
}
.policy-list { list-style: none; margin: 0; padding: 0; }
.policy-list li { position: relative; padding-left: 30px; margin-bottom: 14px; font-size: 16px; color: #444; line-height: 1.6; }
.policy-list li:last-child { margin-bottom: 0; }
.policy-list li::before {
  content: '✓'; position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border: 1.5px solid var(--primary); border-radius: 50%;
  color: var(--primary); font-size: 11px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.policy-divider { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }

@media (max-width: 860px) {
  .policy-badges { gap: 12px; }
  .policy-badge { font-size: 15px; padding: 14px 6px; }
  .policy-card, .policy-card.reverse { flex-direction: column; padding: 24px; gap: 22px; }
  .policy-photo { flex: none; max-width: 100%; width: 100%; }
}

/* ===== Board ===== */
.board, .board-view { padding: 40px 20px 80px; }
.board-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.board-total strong { color: var(--primary); }
.board-search { display: flex; gap: 8px; }
.board-search input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; }
.board-search button { padding: 9px 16px; border: 0; background: var(--primary); color: #fff; border-radius: 8px; cursor: pointer; }

.board-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--primary-dark); }
.board-table th, .board-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15px; }
.board-table th { background: var(--bg-soft); font-weight: 600; }
.board-table .col-subject { text-align: left; }
.board-table .col-subject a:hover { color: var(--primary); }
.board-table .cmt { color: var(--accent); font-size: 13px; margin-left: 4px; }
.board-table .file-mark { margin-left: 6px; }
.board-table .empty { padding: 50px; color: var(--muted); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pagination a, .pagination span {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 14px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .cur { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Board view ===== */
.post-head { border-top: 2px solid var(--primary-dark); border-bottom: 1px solid var(--line); padding: 22px 6px; }
.post-subject { margin: 0 0 10px; font-size: 23px; }
.post-meta { color: var(--muted); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.post-files { background: var(--bg-soft); border-radius: 8px; padding: 16px 20px; margin: 20px 0; }
.post-files h4 { margin: 0 0 8px; font-size: 15px; }
.post-files ul { margin: 0; padding-left: 18px; }
.post-files .fsize { color: var(--muted); font-size: 13px; }
.post-body { padding: 30px 6px; min-height: 120px; font-size: 16px; }
.post-images { display: grid; gap: 14px; padding: 0 6px 20px; }
.post-images img { border: 1px solid var(--line); border-radius: 8px; }
.comments { border-top: 1px solid var(--line); padding: 24px 6px; }
.comments h4 { margin: 0 0 16px; }
.comments ul { list-style: none; margin: 0; padding: 0; }
.comments li { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cmt-meta { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.cmt-meta strong { color: var(--text); margin-right: 8px; }
.post-nav { border-top: 1px solid var(--line); margin-top: 16px; }
.post-nav-item { display: flex; gap: 16px; padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 15px; }
.post-nav-item > span { width: 70px; color: var(--muted); flex-shrink: 0; }
.post-nav-item a:hover { color: var(--primary); }
.post-actions { margin-top: 26px; text-align: center; }

/* ===== Forms ===== */
.contact-page { padding: 46px 20px 80px; max-width: 760px; }
.contact-lead { color: var(--muted); margin-bottom: 26px; }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.form-row label { font-weight: 600; font-size: 15px; }
.form-row .req { color: #e11d48; }
.form-row input, .form-row textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.form-actions { text-align: center; margin-top: 28px; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; font-size: 15px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== Status pages ===== */
.status-page { text-align: center; padding: 100px 20px; }
.status-page h1 { font-size: 64px; margin: 0 0 10px; color: var(--primary); }
.status-page p { color: var(--muted); margin-bottom: 26px; }
.err-detail { background: var(--bg-soft); padding: 14px; border-radius: 8px; text-align: left; overflow: auto; }

/* ===== Footer (원본 tail.php 재현) ===== */
.site-footer { background: linear-gradient(180deg, #1c2430, #161c26); color: #c7ccd3; margin-top: 0; padding: 56px 0 30px; }
.ft-grid { display: grid; grid-template-columns: 230px 1fr auto; gap: 30px; align-items: start; }
.ft-logo img { display: block; }
.ft-logo { padding-top: 8px; }
.ft-link { margin-bottom: 14px; }
.ft-link a { color: #e7eaee; font-size: 14px; font-weight: 600; margin-right: 16px; position: relative; }
.ft-link a:not(:last-child)::after { content: ''; position: absolute; right: -9px; top: 3px; width: 1px; height: 12px; background: #555b63; }
.ft-link a:hover { color: #fff; text-decoration: underline; }
.ft-info { margin: 0; font-size: 13.5px; line-height: 1.9; color: #aab0b8; }

.ft-links-wrap { display: flex; flex-direction: column; gap: 10px; }
.ft-dropup { position: relative; }
.ft-dropup-btn {
  width: 200px; text-align: left; padding: 10px 14px; background: #3a3f47; color: #e7eaee;
  border: 1px solid #4a5059; border-radius: 6px; font-size: 14px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.ft-dropup-btn:hover { background: #434954; }
.ft-dropup-btn .caret { transition: transform .15s; }
.ft-dropup.open .ft-dropup-btn .caret { transform: rotate(180deg); }
.ft-dropup-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0; width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); padding: 6px 0;
  max-height: 320px; overflow-y: auto; display: none; z-index: 50;
}
.ft-dropup.open .ft-dropup-menu { display: block; }
.ft-dropup-menu a { display: block; padding: 8px 14px; font-size: 14px; color: #374151; }
.ft-dropup-menu a:hover { background: var(--bg-soft); color: var(--primary); }

.ft-copyright { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid #3d424a; font-size: 13px; color: #8b9098; }

/* 이메일무단수집거부 모달 */
.ft-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; z-index: 1000; }
.ft-modal.open { display: flex; align-items: center; justify-content: center; }
.ft-modal-dialog { background: #fff; color: var(--text); width: min(520px, 92vw); border-radius: 10px; overflow: hidden; }
.ft-modal-header { display: flex; justify-content: space-between; align-items: center; background: var(--primary); color: #fff; padding: 16px 20px; }
.ft-modal-header h4 { margin: 0; font-size: 17px; }
.ft-modal-close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.ft-modal-body { padding: 22px 20px; font-size: 14px; line-height: 1.8; color: #4b5563; }

/* 맨 위로 */
#return-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px;
  display: none; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; border-radius: 50%; font-size: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 90;
}
#return-to-top:hover { background: var(--primary-dark); }
#return-to-top.show { display: flex; }

@media (max-width: 860px) {
  .ft-grid { grid-template-columns: 1fr; gap: 22px; }
  .ft-dropup-btn, .ft-dropup-menu { width: 100%; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .biz-parts, .latest { grid-template-columns: 1fr; }
  .latest-single { grid-template-columns: 1fr; }
  .hero-carousel { min-height: 480px; }
  .hero-inner { padding: 40px 20px; }
  .hero-title { font-size: 36px; }
  .hero-eyebrow { font-size: 16px; }
  .hero-prev { left: 14px; }
  .hero-next { right: 14px; }
  .hero-ctrl { width: 44px; height: 44px; font-size: 22px; }
  .biz { padding: 70px 20px 60px; }
  .biz-head h3 { font-size: 28px; }
  .one-section { padding: 70px 0; }
  .one-section-head { margin-bottom: 40px; }
  .one-section-head h2 { font-size: 28px; }
  .nav-toggle { display: block; }
  .gnb {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); display: none;
  }
  body.nav-open .gnb { display: block; }
  .gnb > ul { flex-direction: column; align-items: stretch; padding: 10px; gap: 2px; }
  .gnb > ul > li > a { padding: 14px 16px; }
  .gnb > ul > li > a::after { display: none; }
  .gnb .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 16px; }
  .gnb-intra { margin: 8px 0 4px; }
  .gnb-intra > a { justify-content: center; width: 100%; }
  .board-table .col-name, .board-table .col-hit { display: none; }
}

/* ===== One-page sections ===== */
.one-section {
  padding: 110px 0;
  scroll-margin-top: 66px;
}
.one-section-alt {
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(11,77,162,.05), transparent),
    var(--bg-soft);
}
.one-section-head {
  text-align: center;
  margin-bottom: 60px;
}
.one-section-head .eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 14px;
}
.one-section-head h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  margin: 0;
  position: relative;
  padding-bottom: 22px;
}
.one-section-head h2::after {
  content: '';
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 54px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.one-section .content-body { max-width: 1040px; margin: 0 auto; }
