@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Outfit:wght@400;500;600;700&display=swap');

/* ==========================================
   1. Design System & CSS Variables (Public Style)
   ========================================== */
:root {
  /* Colors - Public Blue & Clean White Base */
  --public-blue: hsl(210, 100%, 33%);       /* 신뢰성 높은 파란색 #0054a6 */
  --public-blue-dark: hsl(210, 100%, 23%);  /* 호버 및 강조용 진한 파란색 */
  --public-blue-light: hsl(210, 80%, 95%);  /* 옅은 파스텔 블루 */
  --accent-orange: hsl(20, 90%, 55%);       /* 서브 강조색 */
  
  --bg-white: hsl(0, 0%, 100%);
  --bg-light: hsl(210, 15%, 97%);           /* 매우 밝은 회색/블루 톤 */
  --bg-dark-gray: hsl(0, 0%, 20%);          /* 푸터용 짙은 회색 */
  
  --border-color: hsl(210, 10%, 88%);
  --text-primary: hsl(0, 0%, 15%);
  --text-muted: hsl(0, 0%, 45%);
  --text-light: hsl(0, 0%, 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 84, 166, 0.06);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.08);

  /* Constants */
  --max-width: 1200px;
  --header-top-height: 40px;
  --header-main-height: 110px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  
  /* Fonts */
  --font-kr: 'Noto Sans KR', sans-serif;
  --font-en: 'Outfit', sans-serif;
}

/* ==========================================
   2. Reset & Global Styles
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-kr);
  background-color: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Section Common Layout */
.section {
  padding: 80px 24px;
}

.section-bg {
  background-color: var(--bg-light);
}

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

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2rem;
  color: var(--public-blue-dark);
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--public-blue);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================
   3. Header (Top Bar + Main Navigation)
   ========================================== */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-white);
}

/* Top Utility Bar */
.top-bar {
  height: var(--header-top-height);
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 20px;
  padding: 0 24px;
}

.top-link:hover {
  color: var(--public-blue);
  text-decoration: underline;
}

/* Main Navigation Bar */
.main-header {
  height: var(--header-main-height);
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 24px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background-color: var(--public-blue);
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
}

.logo-title-group h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--public-blue);
  letter-spacing: -0.5px;
}

.logo-title-group p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: -2px;
}

/* GNB Menu dropdown (Public style) */
.gnb {
  display: flex;
  align-items: center;
  height: 100%;
}

.gnb-list {
  display: flex;
  height: 100%;
}

.gnb-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.gnb-link {
  padding: 0 28px;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-primary);
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
}

.gnb-item:hover .gnb-link {
  color: var(--public-blue);
  border-bottom-color: var(--public-blue);
}

/* Dropdown Menu Panel */
.dropdown-menu {
  position: absolute;
  top: var(--header-main-height);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-white);
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 100;
}

.gnb-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 24px;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: center;
}

.dropdown-link:hover {
  background-color: var(--public-blue-light);
  color: var(--public-blue);
  font-weight: 500;
}

/* Mobile Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--public-blue);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================
   4. Hero Slider / Banner Section
   ========================================== */
.hero {
  margin-top: calc(var(--header-top-height) + var(--header-main-height));
  height: 480px;
  position: relative;
  overflow: hidden;
  background-color: hsl(210, 40%, 15%);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 40, 80, 0.85) 0%, rgba(0, 40, 80, 0.4) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  color: var(--text-light);
}

.hero-badge {
  display: inline-block;
  background-color: var(--accent-orange);
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 20px;
  word-break: keep-all;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin-bottom: 30px;
  word-break: keep-all;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--public-blue);
  color: var(--text-light);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 15px rgba(0, 84, 166, 0.3);
}

.hero-btn:hover {
  background-color: var(--bg-white);
  color: var(--public-blue);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* ==========================================
   5. Quick Menu Section
   ========================================== */
.quick-menu {
  background-color: var(--bg-white);
  padding: 40px 24px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
}

.quick-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.quick-item {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quick-item:hover {
  background-color: var(--public-blue-light);
  border-color: var(--public-blue);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.quick-icon-circle {
  width: 76px;
  height: 76px;
  background-color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.quick-item:hover .quick-icon-circle {
  background-color: var(--public-blue);
  color: var(--text-light) !important;
  border-color: var(--public-blue);
}

.quick-icon-circle svg {
  width: 32px;
  height: 32px;
  color: var(--public-blue);
  transition: all 0.3s ease;
}

.quick-item:hover .quick-icon-circle svg {
  color: var(--text-light);
}

.quick-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.quick-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: keep-all;
}

/* ==========================================
   6. Board Preview Section (Notice & Press)
   ========================================== */
.board-section {
  background-color: var(--bg-light);
}

.board-container-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.board-widget {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.board-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--public-blue);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.board-widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--public-blue-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-widget-title svg {
  width: 22px;
  height: 22px;
  color: var(--public-blue);
}

.board-more-btn {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.board-more-btn:hover {
  color: var(--public-blue);
  font-weight: 500;
}

.board-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.board-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-color);
  transition: all 0.2s ease;
}

.board-item:last-child {
  border-bottom: none;
}

.board-item-link {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 80%;
}

.board-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
  background-color: var(--public-blue-light);
  color: var(--public-blue);
  flex-shrink: 0;
}

.board-badge.orange {
  background-color: hsl(20, 90%, 93%);
  color: var(--accent-orange);
}

.board-item-title {
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-item:hover .board-item-title {
  color: var(--public-blue);
  text-decoration: underline;
}

.board-item-date {
  font-family: var(--font-en);
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ==========================================
   7. Modals / Interactive Overlay Subpages
   ========================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-dialog {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal.active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--public-blue);
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  font-size: 1.8rem;
  color: var(--text-light);
  line-height: 1;
  background: transparent;
}

.modal-close:hover {
  opacity: 0.8;
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
}

.modal-date {
  font-family: var(--font-en);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 10px;
}

.modal-desc {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.8;
}

/* ==========================================
   8. Footer Section
   ========================================== */
.footer {
  background-color: var(--bg-dark-gray);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 24px 40px 24px;
  border-top: 4px solid var(--public-blue);
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav-link {
  color: rgba(255, 255, 255, 0.75);
}

.footer-nav-link:hover {
  color: var(--text-light);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.footer-info {
  line-height: 1.8;
}

.footer-info-item {
  margin-bottom: 8px;
}

.footer-info-item strong {
  color: var(--text-light);
}

.footer-info-item span {
  margin-right: 15px;
  display: inline-block;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-copyright {
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-call {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  text-align: right;
}

.footer-call-num {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
}

.footer-call-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

/* ==========================================
   9. Responsive Design (Media Queries)
   ========================================== */
@media (max-width: 1024px) {
  .board-container-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  /* Navigation system for mobile devices */
  .top-bar {
    display: none;
  }
  
  .hero {
    margin-top: var(--header-main-height);
  }
  
  .gnb {
    position: fixed;
    top: var(--header-main-height);
    left: -100%;
    width: 280px;
    height: calc(100vh - var(--header-main-height));
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-right: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    z-index: 999;
  }
  
  .gnb.active {
    left: 0;
  }
  
  .gnb-list {
    flex-direction: column;
    height: auto;
  }
  
  .gnb-item {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    border-bottom: 1px solid var(--border-color);
  }
  
  .gnb-link {
    height: 60px;
    padding: 0 24px;
    border-bottom: none;
  }
  
  .gnb-item:hover .gnb-link {
    border-bottom-color: transparent;
    background-color: var(--bg-light);
  }
  
  /* Mobile dropdown menu logic: toggle accordion */
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: var(--bg-light);
    transition: max-height 0.3s ease;
  }
  
  .gnb-item.active .dropdown-menu {
    max-height: 300px;
    padding: 8px 0;
  }
  
  .dropdown-link {
    text-align: left;
    padding: 10px 36px;
    font-size: 0.9rem;
  }

  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Quick Menu Grid */
  .quick-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .quick-item {
    padding: 20px 16px;
  }
  
  .quick-icon-circle {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }
  
  .quick-icon-circle svg {
    width: 24px;
    height: 24px;
  }
  
  .quick-title {
    font-size: 0.95rem;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-right {
    align-items: flex-start;
  }
  
  .footer-call {
    width: 100%;
    text-align: left;
  }
}

/* ==========================================
   14. Subpage Custom Updates
   ========================================== */
.gnb-item.active-nav .gnb-link {
  color: var(--public-blue) !important;
  border-bottom-color: var(--public-blue) !important;
  font-weight: 700;
}

.notice-table {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.notice-table th {
  font-size: 0.95rem;
  text-align: left;
  background-color: var(--bg-light);
  border-bottom: 2px solid var(--public-blue);
}

.notice-table td {
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: background-color 0.2s ease;
}

.notice-table tbody tr:hover td {
  background-color: var(--public-blue-light);
}

.notice-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================
   15. Button UI System
   ========================================== */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background-color: var(--public-blue);
  color: white !important;
}
.btn-primary:hover {
  background-color: var(--public-blue-dark);
  color: white !important;
}

/* ==========================================
   16. Logo Styling
   ========================================== */
.header-logo {
  height: 90px;
  width: auto;
  display: block;
  object-fit: contain;
}

