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

:root {
  --blue: #05a2d8;
  --dark: #1a1a27;
  --black: #010101;
  --gray: #888888;
  --light-gray: #f6f6f6;
  --border: #dddddd;
  --red: #e51737;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--black);
  min-width: 320px;
}

/* index: 메인 영역 꽉 채우고 푸터 하단 고정 */
.page-index {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 119px;
}
.page-index .hero {
  flex: 1;
  margin-top: 0;
  height: auto;
  min-height: 0;
}
.page-index footer {
  flex-shrink: 0;
}

/* sub pages: 메인 영역 꽉 채우고 푸터 하단 고정 */
.page-sub {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 119px;
}
.page-sub .breadcrumb-bar {
  margin-top: 0;
  flex-shrink: 0;
}
.page-sub .page-wrap {
  flex: 1;
  min-height: 0;
}
.page-sub footer {
  flex-shrink: 0;
}

a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 119px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  cursor: pointer;
}
.logo-ko {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--black);
}
.logo-en {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #444;
  margin-top: 2px;
  text-align: right;
  margin-top: 10px;
}

/* GNB */
nav { display: flex; align-items: center; gap: 8px; }

.gnb-item {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
}
.gnb-link {
  padding: 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: 80px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: color .2s;
}
.gnb-link:hover,
.gnb-link.active { color: var(--blue); }

.gnb-dropdown {
  position: absolute;
  top: 80px; left: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--blue);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 200;
  /* display: none; */
}
.gnb-item:hover .gnb-dropdown {
  opacity: 1;
  pointer-events: auto;
}
.gnb-dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  transition: background .15s, color .15s;
}
.gnb-dropdown a:hover { background: var(--light-gray); color: var(--blue); }
.gnb-dropdown a.current { color: var(--blue); font-weight: 700; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--black);
  transition: .3s;
}

/* Mobile drawer */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 300;
}
.drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 280px; height: 100%;
  background: #fff;
  z-index: 400;
  transition: right .3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.drawer.open { right: 0; }
.drawer-overlay.open { display: block; }

.drawer-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.drawer-header .logo-ko { font-size: 16px; }
.drawer-header .logo-en { font-size: 11px; }
.drawer-close {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 22px;
  cursor: pointer;
  color: #444;
  background: none;
  border: none;
}

.drawer-menu { padding: 16px 0; flex: 1; }
.drawer-section-title {
  padding: 12px 20px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.drawer-sub-link {
  display: block;
  padding: 10px 32px;
  font-size: 13px;
  color: #555;
  transition: color .15s;
}
.drawer-sub-link:hover,
.drawer-sub-link.current { color: var(--blue); font-weight: 700; }

.drawer-footer {
  padding: 20px;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(0,0,0,0.4);
  border-top: 1px solid var(--border);
}

/* ── HERO (index) ── */
.hero {
  margin-top: 119px;
  height: 582px;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-subnav {
  display: none;
}

.hero-inner {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

.hero-content {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 70px;
  color: #fff;
}
.hero-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(36px, 4vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-since {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 60px;
  letter-spacing: 1px;
  text-align: center;
}
.hero-section-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero-section-desc {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
}
.hero-btn {
  display: inline-block;
  background: #fff;
  color: var(--blue);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  width: 100px;
  text-align: center;
  border: 2px solid transparent;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.hero-btn:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.hero-image {
  flex: 0 0 50%;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* index mobile hero */
@media (max-width: 900px) {
  .page-index {
    padding-top: 86px;
  }

  .hero {
    margin-top: 0;
    height: auto;
    min-height: 0;
    background: none;
  }

  .hero-subnav {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 20px;
    background: var(--blue);
    flex-shrink: 0;
    z-index: 50;
  }

  .hero-subnav-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.3px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .hero-subnav .gnb-dropdown {
    top: 100%;
    left: 20px;
    opacity: 0;
    pointer-events: none;
  }

  .hero-subnav.open .gnb-dropdown {
    opacity: 1;
    pointer-events: auto;
  }

  .page-index .hero-inner {
    flex: 1;
    min-height: 0;
  }

  .hero-inner {
    position: relative;
    flex: none;
    min-height: 420px;
  }

  .hero-image {
    position: absolute;
    inset: 0;
    flex: none;
    height: auto;
  }

  .hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-index .hero-content {
    flex: 1;
    min-height: 0;
  }

  .hero-content {
    width: 100%;
    position: relative;
    z-index: 1;
    flex: none;
    justify-content: flex-start;
    min-height: calc(100vh - 301px);
    padding: 32px 24px 40px;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 55%); */
  }

  .hero-title,
  .hero-since {
    display: none;
  }

  .hero-section-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
  }

  .hero-section-desc {
    font-size: 20px;
    opacity: 1;
    margin-bottom: 24px;
  }

  .hero-btn {
    width: 30px;
    min-width: 100px;
    padding: 5px 8px;
    margin: 0;
    font-size: 18px;
  }

  .hero-btn:hover {
    background: #fff;
    color: var(--blue);
    border-color: transparent;
  }

  .page-index footer .footer-info .footer-sep {
    display: none;
  }

  .page-index footer .footer-info br.footer-br {
    display: block;
  }
}

@media (min-width: 901px) {
  .page-index footer .footer-info br.footer-br {
    display: none;
  }
}

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  margin-top: 120px;
  background: var(--blue);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 40px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.breadcrumb li {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
}
.breadcrumb li a { color: rgba(255,255,255,0.7); transition: color .15s; }
.breadcrumb li a:hover { color: #fff; }
.breadcrumb li.current {color: #ffffff;}
.breadcrumb li + li::before {
  content: '›';
  margin: 0 10px;
  color: rgba(255,255,255,0.5);
  font-size: 16px;
}
.breadcrumb-item-box {
  border: none;
  padding: 0;
}

/* ── PAGE LAYOUT ── */
.page-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

/* ── NOTICE LIST ── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.search-year-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--black);
  flex: 1;
  min-width: 200px;
}
.search-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.year-select {
  appearance: none;
  border: 1px solid #ccc;
  background: #fff;
  padding: 10px 36px 10px 16px;
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 120px;
  transition: border-color .2s;
}
.year-select:focus { outline: none; border-color: var(--blue); }

.search-btn {
  background: var(--black);
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.search-btn:hover { background: var(--blue); }

.notice-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--black);
}
.notice-table thead th {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
  color: #333;
}
.notice-table thead th.col-title { text-align: left; padding-left: 24px; }
.notice-table thead th.col-date { width: 160px; }
.notice-table tbody td {
  padding: 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: #333;
}
.notice-table tbody td.col-title { padding-left: 24px; }
.notice-table tbody tr { transition: background .15s; }
.notice-table tbody tr:hover { background: #f0f8ff; }
.notice-table tbody tr:hover .notice-link { color: var(--blue); }
.notice-table .col-date { text-align: center; white-space: nowrap; color: var(--gray); font-size: 13px; }
.notice-link { font-weight: 500; color: var(--black); cursor: pointer; transition: color .15s; }

.notice-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--gray);
  font-size: 14px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 40px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
  color: #555;
  background: #fff;
  transition: background .15s, color .15s, border-color .15s;
  padding: 0 8px;
  font-family: 'Noto Sans KR', sans-serif;
}
.page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }

/* ── NOTICE DETAIL ── */
.notice-info-box {
  background: var(--light-gray);
  border-left: 3px solid var(--blue);
  padding: 14px 20px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.6;
}
.notice-info-box .icon {
  font-size: 16px;
  color: var(--blue);
  flex-shrink: 0;
}

.article { border-top: 2px solid var(--black); }

.article-header {
  padding: 28px 0 16px;
  border-bottom: 1px solid var(--border);
}
.article-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-meta {
  font-size: 13px;
  color: var(--gray);
}

.article-body {
  padding: 32px 0;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  border-bottom: 1px solid var(--border);
}
.article_img {
  width: 50%;
}
.article-body p { margin-bottom: 16px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body .article-lead { font-weight: 700; margin-bottom: 20px; }
.article-body .mb-lg { margin-bottom: 32px; }

.attach-section {
  background: var(--light-gray);
  padding: 20px 24px;
  margin-bottom: 0;
}
.attach-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.attach-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.attach-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.attach-icon {
  width: 20px;
  height: 20px;
  background: var(--blue);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.attach-icon::after {
  content: '↓';
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.attach-name {
  font-size: 13px;
  color: #444;
  transition: color .15s;
  cursor: pointer;
}
.attach-name:hover { color: var(--blue); text-decoration: underline; }

.nav-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  gap: 16px;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--border);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
  cursor: pointer;
  background: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  transition: border-color .2s, color .2s;
  min-width: 120px;
  justify-content: center;
}
.nav-btn:hover { border-color: var(--blue); color: var(--blue); }
.nav-btn.disabled { opacity: 0.35; pointer-events: none; }

.list-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  width: 52px;
  height: 52px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}
.list-btn:hover { background: #c41130; }
.list-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.list-btn-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 1px;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 57px 40px;
}
.footer-inner {
  /* max-width: 1400px; */
  margin: 0 auto;
}
.footer-logo-ko {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.footer-info {
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255,255,255,0.45);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { display: none; }
  .hamburger { display: flex; }

  header {padding: 0 20px;height: auto;padding: 20px 20px;}
  .page-sub { padding-top: 86px; }
  .breadcrumb-bar {padding: 0 20px;margin-top: 86px;}
  .page-sub .breadcrumb-bar { margin-top: 0; }
  .page-wrap {min-height: calc(100vh - 301px);padding: 32px 20px 60px;}
  .page-sub .page-wrap { min-height: 0; }
  .search-year-label { font-size: 20px; min-width: unset; }
  .article-title { font-size: 22px; }
}

@media (max-width: 600px) {
  .notice-table thead th.col-date,
  .notice-table tbody td.col-date { display: none; }
  .nav-btn span { display: none; }
  footer { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
}
