/* ===== 넥스폴리스(충주기업도시) 참고 — 블루+그린 기업도시 포털 스타일 ===== */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  --blue: #0d5bab;        /* 메인 블루 */
  --blue-dark: #073b73;
  --green: #1ba47e;       /* 그린 강조 (기업도시 톤) */
  --green-soft: #e7f6f0;
  --ink: #14202b;
  --text: #34434f;
  --muted: #6b7a88;
  --line: #d9e3ee;
  --bg-base: #eef3f9;     /* 옅은 블루 바탕 */
  --bg-soft: #e3ecf6;     /* 한 단계 진한 블루 섹션 */
  --bg-card: #ffffff;
  --shadow: 0 6px 22px rgba(13, 91, 171, .10);
}

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

body {
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* ===== 투명 헤더 (히어로 사진 위에 얹힘) ===== */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  color: #fff;
}
/* 상단 유틸리티 줄 */
.header-top {
  display: flex; justify-content: space-between; align-items: center;
  height: 40px; font-size: 13px; color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.util-right { display: flex; gap: 16px; }
.util-right a:hover { color: #fff; }

/* 메인 내비게이션 줄 */
.nav-wrap { display: flex; align-items: center; height: 70px; position: relative; }
.brand { font-weight: 800; font-size: 21px; color: #fff; letter-spacing: -0.02em; }

/* 햄버거 버튼 (모바일 전용 — 기본은 숨김) */
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: transparent; border: 0; cursor: pointer; color: #fff;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: currentColor;
  border-radius: 2px; transition: .25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* GNB */
.gnb { margin-left: auto; height: 100%; }
.gnb-list { list-style: none; display: flex; height: 100%; }
.gnb-list > li { position: relative; }
.gnb-list > li > a {
  display: flex; align-items: center; height: 70px; padding: 0 26px;
  color: #fff; font-size: 17px; font-weight: 600;
}
.gnb-list > li > a:hover { color: #d8f3e8; }

/* 드롭다운 서브메뉴 */
.submenu {
  list-style: none; position: absolute; top: 70px; left: 0; min-width: 200px;
  background: rgba(255,255,255,.98); border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 28px rgba(7,59,115,.18);
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .18s; border-top: 3px solid var(--green);
}
.gnb-list > li:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a {
  display: block; padding: 11px 22px; color: var(--text); font-size: 15px; font-weight: 500;
}
.submenu li a:hover { background: var(--green-soft); color: var(--blue); }

/* ===== 버튼 ===== */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px;
  font-size: 16px; font-weight: 600; cursor: pointer; transition: .15s;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: #178a69; transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--blue); background: #fff; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.15); }

/* ===== 히어로 (전면형 + 도시 항공뷰 배경) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(7,59,115,.78), rgba(27,164,126,.45)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80")
    center/cover no-repeat;
  /* 배포 시 위 배경 이미지를 실제 혁신파크 항공뷰 사진으로 교체하세요 (관리자 이미지 관리) */
  color: #fff;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(10,28,43,.15); }
.hero-inner { position: relative; padding: 120px 24px; max-width: 780px; margin: 0 auto; }
.hero-eyebrow { letter-spacing: 3px; font-size: 13px; font-weight: 600; opacity: .9; margin-bottom: 14px; }
.hero h1 { font-size: 48px; line-height: 1.22; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero .lead { margin: 20px auto 32px; font-size: 19px; max-width: 620px; color: #eaf2fb; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ===== 성과 지표 ===== */
.stats { background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: 36px; font-weight: 800; }
.stat span { font-size: 14px; opacity: .9; }

/* ===== 섹션 ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); }
.section h2 {
  font-size: 31px; color: var(--ink); margin-bottom: 14px; font-weight: 700;
  position: relative; padding-bottom: 14px;
}
.section h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px;
  background: var(--green); border-radius: 2px;
}
.section > .container > p { color: var(--muted); margin-bottom: 28px; font-size: 17px; }
.muted { color: var(--muted); font-size: 14px; }

/* ===== 카드 ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  transition: .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green); }
.card h3 { color: var(--blue); margin-bottom: 10px; font-size: 18px; font-weight: 700; }
.card p { color: var(--muted); font-size: 14px; }

/* ===== 비교 테이블 ===== */
.compare-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td {
  border-bottom: 1px solid var(--line); padding: 15px 18px; text-align: left; font-size: 15px;
}
.compare-table thead th { background: var(--blue); color: #fff; font-weight: 600; }
.compare-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.compare-table td:first-child { font-weight: 600; color: var(--ink); }

/* ===== 게시판 ===== */
.board-list { list-style: none; border-top: 2px solid var(--green); }
.board-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 6px; border-bottom: 1px solid var(--line);
}
.board-list .tag {
  background: var(--green-soft); color: var(--green); font-size: 12px;
  padding: 4px 12px; border-radius: 20px; font-weight: 700; min-width: 48px; text-align: center;
}
.board-list a { flex: 1; font-weight: 500; color: var(--ink); }
.board-list a:hover { color: var(--blue); }
.board-list time { color: var(--muted); font-size: 13px; }

/* ===== 푸터 ===== */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; background: var(--bg-soft); }
.site-footer p { color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }

/* ===== 이미지 요소 ===== */
/* 와이드 배너 이미지 */
.img-band { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 36px; }
.img-band img { width: 100%; height: 340px; object-fit: cover; display: block; }

/* 이미지 + 글 2단 배치 */
.media { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); display: block; }
.media-text h2 { margin-bottom: 14px; }

/* 이미지 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery figure { margin: 0; background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: .18s; }
.gallery figure:hover { transform: translateY(-3px); border-color: var(--green); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery figcaption { padding: 15px 18px; font-weight: 600; color: var(--ink); font-size: 15px; }

/* ===== 서브페이지 (히어로 없는 페이지) ===== */
/* 사진이 없으므로 헤더를 단색 배경으로 고정해 흰 글씨가 보이게 함 */
.site-header.solid { position: static; background: var(--blue-dark); }

/* 서브페이지 상단 배너 */
.page-hero { background: linear-gradient(120deg, var(--blue-dark), var(--green)); color: #fff; padding: 52px 0; }
.page-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* 공지 목록 — 클릭 가능한 행 강조 */
.board-list a { cursor: pointer; }
.board-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.board-toolbar .count { color: var(--muted); font-size: 14px; }

/* 공지 상세 */
.notice-detail { padding: 56px 0; }
.notice-head { border-bottom: 2px solid var(--green); padding-bottom: 18px; margin-bottom: 26px; }
.notice-head h2 { font-size: 24px; color: var(--ink); line-height: 1.45; margin-bottom: 14px; font-weight: 700; }
.notice-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; }
.notice-body { font-size: 16px; color: var(--text); line-height: 1.9; min-height: 140px; }
.notice-body p { margin-bottom: 16px; }
.placeholder-note {
  background: var(--green-soft); border-left: 4px solid var(--green);
  padding: 14px 18px; border-radius: 6px; color: var(--text); font-size: 14px; margin: 22px 0;
}
.notice-actions { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ===== 폼 / 관리자 ===== */
.admin-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; box-shadow: var(--shadow); max-width: 660px; margin-bottom: 28px;
}
.admin-card h3 { color: var(--ink); font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.admin-section-title { color: var(--ink); font-size: 19px; font-weight: 700; margin: 34px 0 14px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 14px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 15px; color: var(--text); background: #fff;
}
.form-field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.row-actions { display: flex; gap: 8px; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-danger { background: #e2574c; color: #fff; }
.btn-danger:hover { background: #c8463c; }
.notice-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 6px; border-bottom: 1px solid var(--line);
}
.notice-row .t { flex: 1; font-weight: 500; color: var(--ink); }
.msg { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.msg.error { background: #fdecea; color: #c0392b; }
.msg.ok { background: var(--green-soft); color: var(--green); }
.hidden { display: none; }

/* ===== 반응형 ===== */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  /* 모바일: 메뉴를 햄버거로 펼치는 드롭다운 패널로 전환 */
  .gnb {
    display: block; margin: 0; height: auto;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--blue-dark);
    max-height: 0; overflow: hidden;
    box-shadow: 0 12px 24px rgba(7, 59, 115, .22);
    transition: max-height .25s ease;
  }
  .gnb.open { max-height: 320px; }
  .gnb-list { flex-direction: column; height: auto; }
  .gnb-list > li > a {
    height: auto; padding: 15px 24px; color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .gnb-list > li > a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .nav-wrap { height: 60px; }
  .hero { min-height: 100vh; }
  .hero-inner { padding: 100px 24px; }
  .hero h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .media { grid-template-columns: 1fr; gap: 24px; }
  .gallery { grid-template-columns: 1fr; }
  .img-band img { height: 220px; }
}
@media (max-width: 540px) {
  .header-top { display: none; }
  .cards { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .hero h1 { font-size: 27px; }
}
