@charset "utf-8";

/* =========================================
   1. RESET & GLOBAL (공통)
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Noto Sans KR', sans-serif; }
ul, li { list-style: none; margin-bottom: 0px;}
a { text-decoration: none; color: inherit; }
body { 
	padding-top: 80px;
	color: #333; background-color: #fff; overflow-x: hidden; }
select, input, button { font-family: 'Noto Sans KR', sans-serif; outline: none; }
.container { width: 1200px; margin: 0 auto; position: relative; }

/* =========================================
   2. HEADER & NAVIGATION (PC 기준)
   ========================================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;     /* 배경색 지정 (필수) */
  z-index: 1400;        /* 다른 요소보다 위에 오도록 높게 설정 */
  border-bottom:1px solid rgb(221, 221, 221);
}

/* 헤더 하단 라인 */
header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;
  background: #ddd;

  opacity: 0;
  transition: opacity 0.2s ease;

  z-index: 1100; /* 🔥 서브메뉴보다 위 */
}

/* header 내부 정렬 */
.header-inner {
   max-width: 1200px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  align-items: center;

  justify-content: space-between; /* 🔥 다시 사용 */
  position: relative;
}

/* 로고 */
.logo-box {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 50px;
  display: block;
}

/* ===============================
   GNB (1depth) – 안정화 버전
   =============================== */

.gnb {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: auto;
  position: relative;
  z-index: 1001;
}

/* hover 완충 영역 */
.gnb::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 16px;
}

/* 1depth */
.gnb > li {
  position: relative;
  width: 180px;
  height: 80px;
  text-align: center;
  display: flex; 
  justify-content: center;
}

/* hover 브리지 */
.gnb > li::after {
  content: ''; 
  position: absolute; 
  top: 80px;
  left: 0; 
  width: 100%; 
  height: 0; 
  background-color: #f0f8ff; /* 연한 파란색 배경 */
  z-index: 5; 
  transition: height 0.3s ease; 
}

.gnb > li > a {
 display: flex; 
  align-items: center; 
  justify-content: center;
  width: 100%; 
  height: 80px; 
  font-size: 18px; 
  font-weight: 700; 
  color: #222; 
  position: relative; 
  z-index: 1003; /* 배경보다 글자가 위에 오도록 설정 */
}

header:hover .gnb > li:hover::after { 
  top: 80px;     /* 헤더 높이만큼 아래에서 시작 */
  height: var(--mega-height);  /* 메가메뉴 배경 높이와 동일하게 설정 */
  transition: height 0.3s ease;
   border-top: 1px solid rgb(221, 221, 221);
}

.gnb > li:hover > a {
  color: #1a237e;
}

header:hover .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===============================
   SUB MENU (2depth)
   =============================== */
   :root {
  --mega-height: 240px;
}

.submenu {
  align-items: center; 
  position: absolute; 
  left: 0; 
  top: 100%; 
  width: 100%; 
  height:var(--mega-height);

  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;

  opacity: 0;
  pointer-events: none;
  background: transparent;

  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;

  z-index: 1000;
}

.submenu li {
  width: 100%;        /* 180px 전체 너비 사용 */
  display: block;     /* flex 대신 block 사용 */
  padding: 0;
  margin: 0;
}

.submenu li a {
  display: block;     /* 박스 전체를 클릭 영역으로 */
  width: 100%;
  text-align: center; /* [핵심] 180px 너비 안에서 글자를 중앙으로 -> 대메뉴와 수직 일치 */
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  padding: 0;         /* 좌우 패딩 0으로 고정 */
  white-space: nowrap;
}

.submenu li a:hover {
  color: #1a237e;
  font-weight: 700;
  text-decoration: underline;
}

/* ===============================
   HEADER 하단 배경 (전체 드롭다운 영역)
   =============================== */
.pc-mega-bg {
  position: fixed; 
  top: 80px; 
  left: 0; 
  width: 100%; 
  background: #fff; 
  
  height: 0; 
  overflow: hidden; 
  transition: height 0.2s ease; 
  
  z-index: 900; 
  box-shadow: 0 10px 10px rgba(0,0,0,0.05);
}

header:hover .pc-mega-bg { 
  height: var(--mega-height); /* 원하는 높이로 설정 */
  opacity: 1;    /* 기존 코드와의 호환성을 위해 유지 */
  visibility: visible;
}

/* 🔥 gnb에 마우스 있을 때만 */
header:has(.gnb:hover)::after {
  opacity: 0;
}

header:has(.gnb:hover) .pc-mega-bg {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

/* ===============================
   MOBILE MENU OVERLAY
   =============================== */
.mobile-menu-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1100;
}

.mobile-menu-bg.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: #fff;
  z-index: 1200;

  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
}


.mobile-gnb {
  padding: 0;
}

.mobile-depth1 {
  border-bottom: 1px solid #eee;
}

.mobile-menu-btn {
  width: 100%;
  padding: 16px 10px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-submenu {
  display: none;
  padding: 0 10px 10px;
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu li a {
  display: block;
  padding: 10px 0 0 10px;
  font-size: 14px;
  color: #555;
}

/* 햄버거 버튼 기본 */
.btn-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* 햄버거 라인 */
.btn-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
  margin: 5px 0;
}

/* =========================================
   3. SUB HEADER (BREADCRUMB) (공통)
   ========================================= */
.sub-header { background-color: #3b82f6; height: 50px; position: relative; z-index: 800; }
.breadcrumb { display: flex; align-items: center; height: 100%; }
.bc-item { height: 100%; display: flex; align-items: center; padding: 0 20px; position: relative; }
.home-icon { background-color: #4574db; position: relative; z-index: 20; padding: 0 13px; }
.breadcrumb-icon { width: 25px; height: 25px; vertical-align: middle; }
.bc-dropdown { cursor: pointer; color: #fff; font-weight: 700; min-width: 180px; justify-content: space-between; border-right: 1px solid rgba(255,255,255,0.2); }
.bc-dropdown:hover { background-color: #4574db; }
.bc-list {
    position: absolute; top: 50px; left: -1px; width: calc(100% + 2px);
    background: #fff; border: 1px solid #ddd; border-top: none; display: none; 
    box-shadow: 0 5px 10px rgba(0,0,0,0.1); z-index: 10; 
}
.bc-dropdown:hover .bc-list { display: block; }
.bc-list li a {
    display: block; padding: 12px 20px; color: #555; font-size: 14px; font-weight: 400;
    border-bottom: 1px solid #eee; transition: 0.2s;
}
.bc-list li:last-child a { border-bottom: none; }
.bc-list li a:hover { background-color: #f5f7fa; color: #3b82f6; font-weight: 500; }
.bc-list li a.active { color: #3b82f6; font-weight: 700; }

.no-image {
 background: rgba(0,0,0,0.45) !important;
}
.no-image .card-caption { opacity: 1; visibility: visible; }

/* =========================================
   4. LAYOUT & TITLES (공통)
   ========================================= */
main { text-align: center; min-height: 255px; }

/* [기본] 목록 페이지용 타이틀 (밑줄 있음) */
.page-title { 
  font-size: 48px;
  font-weight: 700;
  margin: 80px 0;
  position: relative;
  display: inline-block;
  color: #111;
  z-index: 10;

  padding-bottom: 32px; /* ❗ 80px → 32px */
}

/* 회색 기준선 */
.page-title::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;              /* 기준 통일 */
  
  width: 100vw;           /* 화면 기준 */
  max-width: 1200px;
  height: 1px;
  background: #e6e6e6;
  z-index: 1;
}

/* 검정 강조선 */
.page-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;              /* 기준 통일 */

  width: 40%;
  max-width: 175px;
  min-width: 80px;
  height: 3px;
  background-color: #333;
  z-index: 2;
}

dd {
	margin-bottom :0px !important;
}

main { 
    text-align: center; 
    min-height: 255px; 
}

.page-title_dtl { 
    font-size: 48px; 
    font-weight: 700; 
    margin: 80px 0;
    position: relative;
    display: inline-block;
    color: #111;
    z-index: 10;      /* 제목을 가장 앞으로 */
}


/* [변형] 상세 페이지용 타이틀 (밑줄 없음) 
   HTML 적용 시: <h1 class="page-title page-title-detail">...</h1> */
.page-title-detail { margin: 80px 0; padding-bottom: 0; }
.page-title-detail::after, 
.page-title-detail::before { display: none; }


/* =========================================
   MAIN PAGE SPECIFIC STYLES
   ========================================= */

/* --- [메인 레이아웃 공통] --- */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h3 { font-size: 32px; font-weight: 800; color: #111; margin-bottom: 15px; }
.title-bar { display: block; width: 40px; height: 4px; background: #1a237e; margin: 0 auto; border-radius: 2px; }
.bg-sky { background: #e3f2fd; }

/* --- [메인 비주얼 (Hero)] --- */
.hero { 
    height: 755px;
    margin-top: 0px; 
    /* 이미지 경로는 프로젝트 구조에 맞게 확인 필요 */
    background: url('../../images/axImg/main_banner.png');
    background-size: cover; background-position: center;
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    text-align: center; color: #fff;
}
.hero h2 { font-size: 46px; font-weight: 700; margin-bottom: 20px; line-height: 1.3; }
.hero h2 span { color: #47ffcc; }
.hero p { font-size: 20px; font-weight: 300; opacity: 0.9; }

/* --- [AI 허브 아이콘 그리드] --- */
.ai-hub-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.ai-item { 
    background: #fff; padding: 35px 10px; border-radius: 15px; 
    border: 1px solid #eee; text-align: center; cursor: pointer; transition: 0.3s;
}
.ai-item:hover { transform: translateY(-7px); box-shadow: 0 10px 20px rgba(26, 35, 126, 0.1); border-color: #1a237e; }
.icon-circle { 
    width: 80px; height: 80px; margin: 0 auto 20px; 
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: #5c6bc0; transition: 0.3s;
}
.ai-text { font-size: 17px; font-weight: 700; color: #333; margin-bottom: 5px; }
.ai-sub { font-size: 13px; color: #999; text-transform: uppercase; }

/* --- [메인 슬라이더 (행사/프로그램)] --- */

.slider-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.slider-wrap.no-arrows {
  padding-bottom: 0;
}

.slider-view {
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.slide-card {
  position: relative;
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);

  aspect-ratio: 3 / 4;   /* ⭐ 핵심 */
  height: auto;

  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transition: box-shadow 0.3s ease;
}

.slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.slide-card::before {
    content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0);
    transition: 0.3s ease; border-radius: 16px; pointer-events: none; z-index: 30; 
}
.slide-card:hover::before { background: rgba(0,0,0,0.45); }

.card-caption {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #fff; font-size: clamp(14px, 1.8vw, 22px); font-weight: 700; opacity: 0; visibility: hidden;
    transition: 0.3s ease; text-align: center; pointer-events: none; z-index: 50;
}
.slide-card:hover .card-caption { opacity: 1; visibility: visible; }


/* 슬라이드 버튼 */
.slide-btn {
  position: absolute;
  top: 95%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 100;
}
.slide-btn img {
  height: 20px;
}
.prev { left: 0; }
.next { right: 0; }

/* 슬라이드 링크 보장 */
.slide-card a { position: relative; z-index: 20; display: block; width: 100%; height: 100%; }

/* --- [메인 게시판 위젯 (공지/보도)] --- */
.board-layout { display: flex; gap: 40px; }
.board-col { flex: 1 1 0;  min-width: 0; background: #fff; padding: 30px; border-radius: 10px; border: 1px solid #eee; }
.board-col ul {
        padding-left: 0;
    }
.board-head { 
    display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 2px solid #222; padding-bottom: 15px; margin-bottom: 15px; 
}
.board-head h4 { font-size: 20px; font-weight: 700; }
.btn-more { font-size: 13px; color: #888; }

.list-item { 
    display: flex; align-items: center; justify-content: space-between; padding: 12px 0; 
    border-bottom: 1px solid #f1f1f1; cursor: pointer; gap: 12px; overflow: hidden;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover .l-title { text-decoration: underline; color: #1a237e; }
.list-item > a {
  flex: 1 1 auto;
  min-width: 0;        /* ⭐ 이게 없으면 ellipsis 랜덤 */
  overflow: hidden;
}
.l-title { font-size: 15px; color: #444;  
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  }
.l-date {
  flex-shrink: 0;
  font-size: 13px;
  color: #999;font-size: 13px; color: #999; }

/* =========================================
   5. BOARD CONTROLS & PAGINATION (공통)
   ========================================= */
/* 컨트롤 영역 */
.board-controls { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 15px; }
.total-count { font-size: 15px; color: #444; font-weight: 500; }
.total-count span { color: #3b82f6; font-weight: 800; font-size: 16px; }
.control-right { display: flex; gap: 8px; }

/* Select & Input */
.styled-select {
    height: 40px; border: 1px solid #ddd; border-radius: 4px; padding: 0 25px 0 10px; color: #555;
    appearance: none; background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 10px center; background-size: 12px; cursor: pointer; font-size: 13px;
}
.styled-select:focus { border-color: #3b82f6; }
.limit-select { width: 90px; }
.search-type-select { width: 100px; }
.search-input-box { position: relative; width: 250px; height: 40px; }
.search-input-box input { width: 100%; height: 100%; border: 1px solid #ddd; border-radius: 4px; padding: 0 40px 0 15px; font-size: 13px; }
.search-input-box input:focus { border-color: #3b82f6; }
.search-input-box button { 
    position: absolute; right: 0; top: 0; width: 40px; height: 100%; 
    border: none; background: transparent; cursor: pointer; color: #333; 
}

/* 페이지네이션 */
.pagination-wrapper { position: relative; display: flex; justify-content: center; align-items: center; margin-top: 50px; width: 100%; }
.pagination { display: flex; gap: 5px; }
.page-btn {
    width: 36px; height: 36px; border: 1px solid #ddd; background: #fff;
    display: flex; align-items: center; justify-content: center; color: #666;
    border-radius: 4px; transition: 0.2s; cursor: pointer; font-size: 14px;
}
.page-btn:hover { background-color: #f1f1f1; }
.page-btn.active { background-color: #3b82f6; color: white; border-color: #3b82f6; font-weight: 700; pointer-events: none; }
.page-btn.disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* =========================================
   6. PAGE SPECIFIC STYLES
   ========================================= */

/* --- [연혁 (History)] --- */
.history-hero { width: 100%; max-width: 1200px; margin: 0 auto 40px; position: relative; }
.history-hero img { width: 100%; height: auto; display: block; }
.hero-text { position: absolute; left: 60px; top: 50%; transform: translateY(-50%); text-align: left; color: #fff; }
.hero-text h2 { font-size: 34px; font-weight: 700; margin-bottom: 18px; }
.hero-text p { font-size: 17px; line-height: 1.6; }
.line-box { width: 48px; height: 48px; border: 3px solid #fff; margin-bottom: 20px; }
.history-timeline { display: flex; align-items: flex-start; gap: 40px; max-width: 800px; margin: 0 auto; }
.history-timeline .year { font-size: 40px; font-weight: 700; color: #2d2b12; min-width: 110px; }
.month-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.month-list li { display: flex; gap: 26px; margin-bottom: 35px; margin-top: 15px; }
.month { font-size: 18px; font-weight: 600; color: #428cff; min-width: 80px; display: inline-block; margin-top: 2px; }
.month-list p { font-size: 17px; font-weight: 500; line-height: 1.7; color: #333; margin: 0; text-align: left; }

/* --- [행사/프로그램 (Promo List)] --- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PC / 모바일 동일 */
  gap: 40px;
  margin-bottom: 60px;
}

/* 카드 */
.event-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ⭐ 핵심: 비율 고정 썸네일 */
.card-thumb {
  width: 100%;
  aspect-ratio: 3 / 5;               /* 기본 포스터 비율 */
  max-height: clamp(360px, 60vw, 480px); /* ⭐ 길이 제어 핵심 */
  overflow: hidden;
  background-color: #e0e0e0;
  position: relative;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;                 /* 넘치는 부분 자연 컷 */
  display: block;
}

/* 카드 내용 */
.card-body {
  padding: 18px 16px;
  text-align: center;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-date {
  font-size: 13px;
  color: #888;
}

/* =========================================
   Event Ended Overlay (행사 종료 표시)
   ========================================= */

/* 종료된 행사: 썸네일 위 회색 반투명 오버레이 */
.event-card.ended .card-thumb::after {
    content: "종료";  /* 표시할 텍스트 */
    position: absolute;
    inset: 0;        /* 상하좌우 0 (전체 덮기) */
    background: rgba(0, 0, 0, 0.6); /* 검은색/회색 계열 투명도 60% */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    z-index: 50;
    border-radius: 16px; /* 썸네일 둥근 모서리와 일치시킴 */
    backdrop-filter: blur(2px); /* (선택사항) 배경 이미지를 살짝 흐리게 */
}

/* 종료된 행사: 텍스트 부분 투명도 낮춤 */
.event-card.ended .card-body {
    opacity: 0.5;
}

/* 종료된 행사: 호버 효과 제거 (선택사항 - 종료된 건 클릭 유도 줄이기) */
.event-card.ended:hover {
    transform: none;
    box-shadow: none;
    cursor: default; /* 혹은 클릭은 되게 하려면 pointer 유지 */
}

/* =========================================
   Home Slider Ended Overlay (메인 슬라이더 종료 표시)
   ========================================= */

/* 종료된 슬라이드: 전체 덮는 회색 오버레이 */
.slide-card.ended::after {
    content: "종료";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* 회색 반투명 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    z-index: 60; /* 캡션(z-index:50)보다 위에 오도록 설정 */
    backdrop-filter: blur(2px);
    border-radius: 16px; /* 카드 둥근 모서리 일치 */
}

/* 종료된 슬라이드: 기존 호버 효과 무력화 (선택사항) */
.slide-card.ended:hover {
    transform: none;
    box-shadow: none;
    cursor: default;
}
.slide-card.ended:hover::before {
    background: rgba(0,0,0,0); /* 기존 호버 배경 제거 */
}
.slide-card.ended .card-caption {
    opacity: 0.5; /* 기존 텍스트 흐리게 */
}

/* 데이터 없을 때 */
.no-data {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px 0;
  color: #666;
  font-size: 16px;
}

/* 3. 활성화(Active) 상태 스타일 */
.cat-item.active {
    background-color: #4a90e2;
    border-color: #4a90e2; /* 강조 색상 */
    box-shadow: 0 8px 15px rgba(74, 144, 226, 0.15); /* 부드러운 그림자 */
}

/* 6. 활성화 시 텍스트 색상 및 굵기 변경 */
.cat-item.active .cat-label {
    color: #fff;
    font-weight: 700;
}

.cat-item.active .cat-count {
    color: #fff;
}

/* --- [연락처/오시는길 (Contact & Map)] --- */
.contact-page .contact-wrap {
  padding-bottom: 60px;
}

.contact-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

/* 이미지 영역 */
.contact-img {
  flex: 0 0 55%;
  aspect-ratio: 4 / 3;           /* ⭐ 비율 고정 */
  overflow: hidden;
  z-index: 2;
}

.contact-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 정보 카드 */
.contact-info {
  flex: 1;
  background: #f3f4f6;
  padding: 60px 35px 60px 95px;
  transform: translate(-60px, 90px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  text-align: left;
}

/* 텍스트 */
.c-address {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.c-name {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: clamp(1.2, 1.3, 1.4);
  font-weight: 800;
  margin-bottom: 25px;
}

.c-divider {
  width: 100%;
  height: 1px;
  background: #ccc;
  margin-bottom: 25px;
}

.c-phone {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
}

.c-hours {
  font-size: 18px;
  color: #969696;
}

.contact-page .c-address,
.contact-page .c-hours {
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: clamp(1.4, 1.5, 1.6);
}


/* ===============================
   MAP
   =============================== */
.map-box iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
}

/* 지도 정보 */
.map-info-box {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px;

  padding: clamp(20px, 3vw, 28px)
           clamp(24px, 6vw, 64px);

  background: #eaf4ff;

  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.map-info-left,
.map-info-right {
  display: flex;
  align-items: center;
  font-size: clamp(14px, 1.3vw, 16px);
}

.bar {
  width: 5px;
  height: clamp(16px, 2vw, 22px);
  background: #428cff;
  margin-right: 12px;
}

.label {
  font-weight: 700;
  margin-right: 6px;
  color: #333;
}

.text {
  color: #333;
  line-height: 1.5;
}

/* ===============================
   TRANSPORT INFO
   =============================== */
.info-box {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid #e6e6e6;
  background: #fff;
}

.way-row {
    display: flex;
    border-bottom: 1px solid #e6e6e6;
    align-items: center;
}

.way-row:last-child {
  border-bottom: none;
}

/* 아이콘 영역 */
.way-icon-box {
	align-self: stretch;
    width: 200px;
    background: #f1f4f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.way-icon {
  width: clamp(36px, 4vw, 48px);
  height: clamp(36px, 4vw, 48px);
  object-fit: contain;
}

/* 텍스트 */
.way-text {
  flex: 1;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.way-text h3 {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  margin-bottom: 6px;
}

.way-text p {
  font-size: clamp(14px, 1.2vw, 15px);
  line-height: 1.6;
  color: #444;
  margin-bottom: 4px;
}

/* --- [FAQ] --- */
.faq-list { border-top: 2px solid #333; }
.faq-item { background: #fff; border-bottom: 1px solid #ddd; overflow: hidden; }
.faq-question { padding: 25px 20px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: background 0.2s; }
.faq-question:hover { background-color: #f8fbff; }
.q-wrap { display: flex; align-items: center; gap: 15px; width: 95%; }
.q-icon { width: 36px; height: 36px; background-color: #3b82f6; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.q-text { font-size: 18px; font-weight: 700; color: #222; }
.toggle-icon { color: #888; transition: transform 0.3s; font-size: 20px; margin-right: 10px; }
.faq-answer { overflow: hidden; background-color: #fafafa; border-top: 1px solid #eee; display: none;}
.faq-answer-inner { padding: 30px 0; margin: 0 20px; border-radius: 8px; display: flex; gap: 15px; }
.a-icon { width: 36px; height: 36px; background-color: #ff5252; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; margin-top: -5px; }
.a-text { color: #444; line-height: 1.8; font-size: 15px; font-weight: 400; text-align: left; }
.faq-item.active .toggle-icon { transform: rotate(180deg); color: #3b82f6; }
.faq-item.active .faq-question { font-weight: bold; }

/* --- [공지사항 목록 (Notice List)] --- */
.notice-table { width: 100%; border-top: 2px solid #222; border-collapse: collapse; table-layout: fixed; }
.notice-table th { padding: 15px 0; background-color: #f8f9fa; border-bottom: 1px solid #ddd; font-weight: 700; color: #333; font-size: 15px; }
.notice-table td { padding: 15px 10px; border-bottom: 1px solid #eee; text-align: center; font-size: 14px; color: #555; }
.col-no { width: 70px; }
.col-title { width: auto; }
.col-date { width: 120px; }
.col-views { width: 80px; }
.notice-table td.title-cell { display: flex; align-items: center; gap: 6px; padding-left: 20px; white-space: nowrap; text-align: left; }
.notice-table td.title-cell a { 
    color: #333; transition: 0.2s; display: block; overflow: hidden; text-overflow: ellipsis; 
    white-space: nowrap; flex: 1; min-width: 0; display: inline-block; 
}
.notice-table td.title-cell a:hover { text-decoration: underline; color: #3b82f6; }
.badge-notice { 
    display: inline-block; padding: 2px 6px; background: #e74c3c; 
    color: #fff; border-radius: 3px; font-size: 11px; margin-right: 6px; 
    font-weight: 500; vertical-align: middle; 
}

/* --- [보도자료 목록 (News List)] --- */
.news-list { border-top: 2px solid #333; }
.news-item { display: grid; grid-template-columns: 130px 1fr 30px; align-items: center; padding: 22px 20px; border-bottom: 1px solid #ddd; background: #fff; transition: background 0.2s; }
.news-item:hover { background-color: #f8fbff; }
.news-date { font-size: 15px; font-weight: 500; color: #428cff; }
.news-title { font-size: 18px; font-weight: 700; color: #222; text-align: left; margin-left: 20px; }
.news-link-icon { font-size: 18px; color: #b4b4b4; justify-self: end; }
.news-item:hover .news-link-icon { color: #3b82f6; }

/* --- [인사말 (CEO)] --- */
.greet-wrap {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.greet-photo {
  flex: 0 0 360px;
}

.greet-photo img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.greet-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.6;
}

.greet-text p {
  margin-bottom: 22px;
}

.greet-text strong {
  font-weight: 700;
}

.sign {
  text-align: right;
  margin-top: 24px;
  font-size: 15px;
}

/* ---[AI Data] --- */
.section-search-bg {
    width: 100%;
    background: #edf7ff;   /* 연한 파랑 */
    padding: 40px 0;
}
.section-category-bg {
    width: 100%;
    background: #f6f6f6;   /* 연한 회색 */
    padding: 40px 0;
}
.section-list-bg {
    width: 100%;
    background: #ffffff;
    padding: 60px 0 80px;
}

.selectAiData {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 4px;
}

/* --- [대형 검색창 (데이터 검색용)] --- */
.search-area { display: flex; justify-content: center; }
.search-box {
    width: 800px; height: 60px; background: #fff; border: 1px solid #ddd;
    display: flex; align-items: center; border-radius: 4px; overflow: hidden;
}
.search-box input { flex: 1; border: none; padding: 0 20px; font-size: 16px; height: 100%; outline: none; }
.search-box button {
    width: 100px; height: 100%; background-color: #3b82f6; color: white;
    border: none; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* --- [카테고리 메뉴] --- */
.category-menu {
    display: flex;          /* Flexbox 적용 */
    flex-wrap: wrap;        /* 자리가 부족하면 다음 줄로 넘김 */
    justify-content: center; /* 아이템들을 가로 중앙으로 정렬 (핵심!) */
    gap: 20px;              /* 아이템 간의 간격 */
    margin: 0 auto;
    max-width: 1240px;      /* 컨테이너 최대 너비 */
}
.cat-item {
    width: 140px; height: 140px; background: #ffffff; border-radius: 16px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    cursor: pointer; transition: 0.25s ease;
}
.cat-item:hover { transform: translateY(-6px); }

/* 전체 보기 버튼 스타일 */
.cat-all {
    background: #2f80ed; color: #fff; padding-top: 22px;
}
.cat-all .cat-count { font-size: 13px; margin-top: 4px; }
.all-icon i { font-size: 36px; margin-bottom: 12px; }

/* 개별 아이콘 스타일 */
/* 주의: common.css의 .icon-circle과 충돌 방지를 위해 .cat-item 내부로 한정함 */
.cat-item .icon-circle {
    width: 72px; height: 72px; display: flex; justify-content: center; align-items: center; margin:0px;
}
.cat-all img {
    width: 50px;
    height: 50px; 
    padding-bottom: 5px;
 }

.cat-label { font-size: 16px; font-weight: 600; }
.cat-icon .cat-count { font-size: 13px; color: #888; margin-top: 4px; }

/* --- [리스트 헤더 & 정렬 버튼] --- */
.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.list-title { font-size: 18px; font-weight: 700; }
.list-title span { color: #3b82f6; }
.sort-btn { padding: 9px 18px; background: #222; color: #fff; border: none; font-size: 12px; cursor: pointer; border-radius: 3px; }

/* --- [데이터 카드 그리드] --- */
.grid-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.grid-container .card {
    background: #fff; border: 1px solid #eee !important; border-radius: 10px; padding: 20px;
    text-align: left; transition: transform 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.grid-container .card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-color: #3b82f6 !important; }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.card-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }

.download-badge { background-color: #ff5252; color: white; padding: 4px 8px; font-size: 11px; border-radius: 4px; font-weight: 500; }

.grid-container .card h3 { 
    font-size: 16px; margin-bottom: 10px; font-weight: 700; color: #333; 
    height: 24px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; 
}
.grid-container .card p {
    font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 20px;
    height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #999; border-top: 1px solid #eee; padding-top: 15px; }
.meta-stats span { display: inline-flex; align-items: center; margin-left: 8px; }

/* --- [메타 아이콘 (조회수, 다운로드 등)] --- */
.meta-icon {
    width: 13px; height: 13px; margin: 0 4px 2px 0; object-fit: contain; vertical-align: middle;
}
.meta-icon2 {
    width: 15px; height: 15px; margin: 2px 4px 0 0; object-fit: contain; vertical-align: middle;
}

/* =========================================
   7. DETAIL PAGES (공지/행사 상세 통합)
   ========================================= */
.view-wrap { border-top: 2px solid #222; border-bottom: 1px solid #ddd; background: #fff; }

/* 헤더 & 타이틀 */
.view-header { padding: 30px 25px; border-bottom: 1px solid #eee; }
.view-title { font-size: 25px; font-weight: 700; color: #1a1a1a; margin-bottom: 18px; line-height: 1.35; }

/* 메타 정보 (행사 상세용) */
.view-meta { display: flex; font-size: 14px; color: #666; align-items: center; }
.view-meta span { display: flex; align-items: center; margin-right: 20px; }
.view-meta span strong { color: #333; margin-right: 8px; font-weight: 500; }
.view-meta span::after { content: ''; display: block; width: 1px; height: 12px; background: #ddd; margin-left: 20px; }
.view-meta span:last-child::after { display: none; }

/* 정보 박스 (공지 상세용) */
.view-info { display: flex; gap: 30px; font-size: 14px; color: #666; background: #f9f9f9; padding: 15px 20px; border-radius: 4px; }
.view-info dl { display: flex; align-items: center; }
.view-info dt { font-weight: 700; color: #333; margin-right: 10px; }
.view-info dt::after { content: ''; display: inline-block; width: 1px; height: 10px; background: #ccc; margin-left: 10px; vertical-align: middle; }

/* 본문 영역 */
.view-content { padding: 50px 25px; min-height: 300px; font-size: 16px; line-height: 1.8; color: #444; text-align:left;}
.view-content p { margin-bottom: 15px; }

/* 포스터 & 텍스트 (행사 상세 전용) */
.poster-area { text-align: center; margin-bottom: 50px; background-color: #fdfdfd; padding: 40px; border-radius: 10px; }
.poster-area img { max-width: 800px; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.text-area { max-width: 900px; margin: 0 auto; }
.text-area p { margin-bottom: 10px; word-break: keep-all; }

/* 첨부파일 (행사 상세 스타일) */
.file-box-wrap { padding: 20px 30px; background-color: #fafafa; text-align: left; 
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 한 줄에 3개씩 동일 비율 */
    gap: 10px; /* 파일 박스 사이 간격 */ }
.file-info{width:100%; overflow: hidden;}
.file-download-box { display: inline-flex; align-items: center; background: #fff; border: 1px solid #e0e0e0; padding: 12px 20px; border-radius: 4px;
                      transition: 0.2s; cursor: pointer; text-decoration: none !important;  width: 300px;}
.file-download-box:hover { border-color: #3b82f6; box-shadow: 0 2px 5px rgba(59, 130, 246, 0.1); background-color: #f0f7ff; }
.file-icon { color: #3b82f6; font-size: 18px; margin-right: 12px; }
.file-info strong { display: block; color: #333; font-size: 14px; margin-bottom: 2px; }
.file-info span { font-size: 12px; color: #888; }

/* 첨부파일 (공지 상세 스타일) */
.view-file { padding: 15px 20px; border-top: 1px solid #eee; background-color: #fdfdfd; display: flex; align-items: center; gap: 15px; font-size: 14px; }
.file-label { font-weight: 700; color: #333; }
.file-link { color: #555; display: flex; align-items: center; gap: 5px; transition: 0.2s; }
.file-link:hover { color: #3b82f6; text-decoration: underline; }

/* 하단 버튼 및 네비게이션 */
.btn-wrap { display: flex; justify-content: flex-end; align-items: center; margin-top: 30px; }
/* 공지 상세는 양쪽 정렬이므로 별도 클래스 활용 권장 */
.btn-wrap.split { justify-content: space-between; } 

.page-nav { display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 600px; }
.page-nav-item { display: flex; align-items: center; font-size: 14px; color: #555; padding: 5px 0; }
.page-nav-item strong { margin-right: 15px; color: #333; font-weight: 500; min-width: 60px; }
.page-nav-item a:hover { text-decoration: underline; color: #3b82f6; }
.page-nav-item i { margin-right: 5px; color: #999; font-size: 12px; }

.btn-list {
    display: inline-block; padding: 12px 40px; 
    background-color: #263238; color: #fff; 
    font-size: 15px; font-weight: 500; border-radius: 2px; transition: background 0.3s;
}
.btn-list:hover { background-color: #455a64; }
.btn-right { margin-left: auto; }

/* =========================================
   8. FOOTER (공통)
   ========================================= */
footer { background: #263238; color: #cfd8dc; padding: 50px 0; font-size: 13px; text-align: center;}
.footer-inner { max-width: 1200px; display: block; justify-content: space-between; align-items: center; }
.address p { margin-bottom: 6px; opacity: 0.8; }
.copy { margin-top: 15px; opacity: 0.5; }
.f-logo { font-size: 24px; font-weight: 700; opacity: 0.3; }

.attach-content {
  text-align: left;
  vertical-align: middle;
  padding: 14px 15px;
}

.attach-table {
  width: 100%;
  border-collapse: separate;
  border-top: 1px solid #ccc; 
  border-bottom: 1px solid #ccc;       
  border-left: none;
  border-right: none;
  margin-bottom: 50px;
}

.attach-table tr,
.attach-table td,
.attach-table th {
  border: none;
  vertical-align: middle;
}

.attach-title {
  width: 120px;
  font-weight: bold;
  text-align: center !important;
  padding: 20px 0;
  position: relative;
}

table.attach-table {
  border-collapse: separate !important;
  border-spacing: 0;
  table-layout: fixed;
}

.attach-title::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;       
  height: 70%;   
  width: 1px;
  background-color: #ccc;
}

/* =========================================
   9. 반응형
   ========================================= */

/* [반응형 구간] 1240px 미만일 때 */
@media (max-width: 1240px) {
    .category-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* 2행의 3개를 중앙 정렬 */
        gap: 20px 15px;          /* 상하 20px, 좌우 15px 간격 */
        max-width: 900px;        /* 4개가 예쁘게 보일 수 있도록 컨테이너 폭 제한 (선택사항) */
        margin: 0 auto;
    }

    .cat-item {
        /* 한 줄에 4개를 꽉 채우기 위해 25%에서 간격을 뺀 값 */
        width: calc(25% - 15px) !important; 
        min-width: 140px !important; /* 아이템이 너무 찌그러지지 않게 최소폭 유지 */
        flex: 0 0 auto;              /* 유동적으로 늘어나지 않게 고정 */
    }
}
 
@media (max-width: 1200px) {

  .container,
  .header-inner {
    width: 100%;
    min-height: 45px;
  }

  .page-title::after {
    height: 2.5px;
  }
  
  /* PAGE TITLE */
  .page-title,
  .page-title_dtl {
    font-size: 40px;
    margin: 60px 0;
    padding-bottom: 40px;
  }
  
   .map-box iframe {
    height: 420px;
  }

  /* map */
/* MAP */
  .map-box iframe {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* 교통 안내 */
  .way-row {
    align-items: stretch; /* 텍스트 높이에 맞게 */
  }

  .way-icon-box {
    min-width: unset;   /* ⭐ 이게 핵심 */
    height: auto;       /* ⭐ 이게 핵심 */
  }

  .way-text {
    width: 70%;
    padding: 24px;
  }

  .way-text h3 {
    font-size: 16px;
  }

  .way-text p {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {

  /* HEADER */
  .gnb > li {
    width: 150px;
  }

  /* MAIN HERO */
  .hero {
    height: 600px;
  }

  .hero h2 {
    font-size: 38px;
  }

  /* GRID */
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }

  /* map */
.map-info-box {
     padding: 30px !important;
    }

   .map-info-left, .map-info-right {
    font-size: 14px !important;
}

  .way-icon {
    width: 40px;
    height: 40px;
  }

  .way-text {
    padding: 20px;
  }

  .way-text h3 {
    font-size: 15px;
  }

  .way-text p {
    font-size: 13.5px;
    line-height: 1.6;
  }
  
  /* CONTACT */
  .contact-wrap {
    padding: 0 24px;
  }
/* 1. 컨테이너 여백 확보 */
  .contact-page .contact-wrap {
    padding: 0 40px; /* 좌우 여백을 넓혀서 카드가 화면 밖으로 나가지 않게 함 */
    align-items: stretch; /* 이미지와 카드 높이를 강제로 맞춤 */
  }
  
  .contact-info {
    /* 2. 겹침(transform) 수치 최적화 */
    /* 기존 -30px이 화면이 좁아질 때 카드를 오른쪽으로 너무 밀어버립니다. */
    transform: translateX(-40px); 
    padding: 40px 30px 40px 70px; /* 왼쪽 패딩을 줄여 텍스트 공간 확보 */
    flex: 1.2; /* 이미지보다 카드가 조금 더 넓어지도록 설정 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 텍스트를 세로 중앙 정렬 */
  }

/* 3. 폰트 사이즈 미세 조정 (줄바꿈 방지) */
  .c-address {
    font-size: 15px; 
    word-break: keep-all; /* 주소가 이상하게 끊기지 않도록 함 */
  }
  
  .c-name {
    font-size: clamp(24px, 2.8vw, 32px); /* 화면 크기에 따라 유동적으로 변함 */
    line-height: 1.2;
  }

  .c-phone {
    font-size: clamp(26px, 3vw, 34px);
  }
  
  /* FOOTER */
  footer {
   padding: 20px 0 !important;
   font-size: 12px;
   margin-top: 40px !important;
  }
  
  .footer-inner {
   flex-direction: column;
   text-align: center;
   padding: 0 20px;
  }
  .address {
   text-align: center !important;
   line-height: 1.4;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .container,
  .header-inner {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 24px;
    padding-right: 24px;
  }
  
/* MAIN */
   .ai-hub-grid {
    gap: 12px; /* 살짝만 줄이기 */
  }

  .ai-item {
    padding: 24px 8px;   /* ⬅ 핵심 */
    border-radius: 12px;
  }

  .icon-circle {
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
  }

  .icon-circle img {
    width: 65px;
    height: 65px;
  }

  .ai-text {
    font-size: 15px;
  }

  .ai-sub {
    font-size: 12px;
  }
  
  /* 인사말 */
  .greet-wrap {
    gap: 40px;
  }

  .greet-photo {
    flex: 0 0 300px;
  }

  .greet-text {
    font-size: 16px;
    line-height: 1.6;
  }

  .greet-text p {
    margin-bottom: 18px;
  }

  .sign {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .contact-wrap {
    flex-direction: column;
    gap: 0;
  }

  .contact-img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .contact-info {
    transform: translateY(0px);
    width: 100%;
    padding: 40px 30px;
    text-align: center;
  }
  
  .c-divider{
    margin-bottom: 20px;
  }
  
  .c-hours {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
body {
    margin-top: 64px;
}

.container, .container-sm {
    max-width: 690px;
}

  /* HEADER */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #fff;
    z-index: 1400;
  }

  .header-inner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #fff;
    z-index: 1400;

    /* ✅ 여기만 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

.logo-box {
    z-index: 1300;
  }

  .logo-img {
    height: 38px;
  }

  /* SUB HEADER */
  .sub-header {
    margin-top: 64px;
    height: auto;
  }

 /* PC 메가메뉴 배경 완전 제거 */
  .pc-mega-bg {
    display: none !important;
  }
  
/* PC 메뉴 완전 제거 */
  .gnb {
    display: none !important;
  }

  /* PC hover 배경 제거 */
  .menu-full-bg {
    display: none !important;
  }

/* PC 서브메뉴 완전 제거 */
  .submenu {
    display: none !important;
  }
  
  header:hover .submenu,
  .gnb > li:hover .submenu,
  .gnb > li::after {
    display: none !important;
    opacity: 0 !important;
  }
  
    .btn-hamburger {
    display: block;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1300;
  }

  .btn-hamburger span {
    width: 24px;
    height: 2px;
    background: #222;
    display: block;
  }

  .mobile-nav.active {
    transform: translateY(0);
  }

  body.menu-open {
    overflow: hidden;
  }

  .mobile-menu-btn {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-submenu {
    display: none;
    background: #f1f8ff;
  }

  .mobile-submenu.open {
    display: block;
  }

  .mobile-submenu a {
    display: block;
    padding: 12px;
    font-size: 15px;
    color: #444;
  }

  /* 1️⃣ 회색 배경 */
  .menu-full-bg,
  .mobile-menu-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;        /* ⬅ 메뉴보다 아래 */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .menu-full-bg.active,
  .mobile-menu-bg.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* 2️⃣ 모바일 메뉴 */
  .mobile-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: #fff;
    z-index: 1200;        /* ⬅ 회색 배경보다 위 */
  }

  /* 3️⃣ 햄버거 + 로고 */
  .logo-box,
  .btn-hamburger {
    position: relative;
    z-index: 1300;
  }
 
  /* 모바일에서 SUB HEADER 숨김 */
  .sub-header {
    display: none;
  }
  
  /* PAGE TITLE */
  .page-title,
  .page-title_dtl {
    font-size: 30px;
    margin: 35px 0;
    padding-bottom: 15px;
  }

   .page-title::after {
    width: 50%;
    max-width: 120px;
    height: 2px;
  }

  /* HERO */
  .hero {
    height: 360px;
    padding: 0 20px;
  }

  .hero h2 {
    font-size: 26px;
    line-height: 1.4;
    margin-bottom: 0;
    margin-top: 20px;
  }

  .hero p {
    font-size: 15px;
  }

  /* main */
  /* ---------- ai hub ---------- */
  .ai-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
.ai-item {
    background: #fff;
    padding: 22px 10px;
}

.icon-circle {
    width: 60px;
    height: 40px;
    margin: 0 auto 10px;
}

.summary-box-wrap{
    padding: 20px 30px;
    background-color: #fff;
    text-align: left;
    display: grid;
    grid-template-columns: 20% 80%;
    gap: 10px;
    border-bottom: 1px solid #eee;;
 }

/* ---------- 행사 / 프로그램 슬라이더 ---------- */
  .slider-wrap,
  .slider-view {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .slider-track {
    display: flex;
    width: 100%;
    gap:12px;
    justify-content: flex-start;
    transition: transform 0.4s ease;
  }
  
 /* ⭐ 모바일 2개 노출 */
  .slide-card {
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
    width: calc(50% - 6px);
  }

  .slide-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  .card-thumb {
    max-height: 270px;
  }

  .event-grid {
    gap: 15px;
  }
  
/* ---------- 공지 / 보도 ---------- */
  .board-layout {
    flex-wrap: wrap;
    margin-top: 0 !important;
    flex-direction: column;
    gap: 24px;
  }

  .board-col {
    width: 100%;
    min-width: unset; /* ← 이게 핵심 */
    flex: none;
  }
    
  .board-col .list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .board-col .l-title {
    font-size: 15px;
  }

  .board-col .l-date {
    font-size: 13px;
    color: #999;
    margin-left: 0;
  }

  /* ---------- 인사말 ---------- */
  .greet-wrap {
    flex-direction: column;
    gap: 32px;
    padding: 0 16px;
  }

  .greet-photo {
    flex: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .greet-photo img {
    border-radius: 8px;
  }

  .greet-text {
    font-size: 15.5px;
    line-height: 1.75;
  }

  .greet-text p {
    margin-bottom: 18px;
  }

  /* 강조 문구 (모바일에서는 톤 다운) */
  .greet-text span {
    font-size: 17px;
    font-weight: 700;
    display: inline;
  }

  .sign {
    margin-top: 28px;
    font-size: 14.5px;
    text-align: right;
    color: #333;
  }

  .sign strong {
    font-weight: 700;
  }
  
  /* 연혁 전체 여백 */
  .history-wrap {
    padding: 0 16px;
  }

  /* 연도 */
  .history-year {
    font-size: 26px;
    font-weight: 800;
    margin: 32px 0 16px;
  }

  /* 월 + 텍스트 묶음 */
  .history-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
  }

  /* 월 */
  .history-month {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: #2563eb; /* 기존 포인트 블루 */
    margin-top: 2px;
  }

  /* 설명 텍스트 */
  .history-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #222;
  }

  .history-desc strong {
    font-weight: 700;
  }

  /* 보조 설명(— 로 시작하는 줄) */
  .history-desc .sub {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
  }
  
  .history-timeline {
    gap: 0 !important;
  }
 
 .month-list li {
    gap: 0 !important;
 }
 
   /* map */
 .map-info-box {
    display: grid !important;
    gap: 15px;
    text-align: left;                 /* 전체 좌측 정렬 */
    padding: 20px 30px !important;
  }

  .map-info-left .text,
  .map-info-right .text {
    line-height: 1.5;
  }
  
 .way-row {
    flex-direction: row;   /* 위아래 ❌ */
  }

  .way-icon-box {
    width: 30% !important;
    padding: 0 !important;
  }

  .way-text {
    padding: 18px;
  }

  .way-text h3 {
    font-size: 15px;
  }

  .way-text p {
    font-size: 13px;
  }

  /* ai 데이터찾기 */
 .section-search-bg {
    padding: 30px 0;
 }
 
.search-box {
    height: 45px;
}

.section-category-bg {
    padding: 40px 0;
}

.category-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* 2행의 3개를 중앙으로 보냄 */
        gap: 10px 8px;           /* 세로 간격 10px, 가로 간격 8px */
        padding: 0 10px;
    }

    .cat-item {
        /* 한 줄에 4개를 넣기 위해 (100% / 4)에서 간격을 뺀 수치 */
        /* calc(25% - 가로gap보정) */
        width: calc(25% - 8px) !important; 
        min-width: unset !important;    /* 기존에 걸려있을지 모를 최소너비 해제 */
        flex: 0 0 auto;                 /* 크기 유동성 차단 */
        
        /* 이미지 f497be.png 처럼 보이게 하기 위한 높이/패딩 조정 */
        aspect-ratio: auto; 
        padding: 15px 5px;
        height: auto;
    }
    .cat-item .all-icon {
      width: 40px;
      height: 53px;
    }
    
    .cat-item .icon-circle{
     width: 55px;  /* 아이콘 크기를 살짝 줄여서 4개가 들어가게 함 */
     height: 45px;
     margin-bottom: 8px;
    }

.cat-all img{
     width: auto;
     height: auto;
}

    .cat-label {
        font-size: 14px; /* 텍스트가 깨지지 않게 조정 */
        word-break: keep-all;
    }
    
  /* ===============================
     BOARD CONTROLS
     =============================== */

  .board-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .total-count {
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .control-right {
    display: flex;
        flex: 1;             /* 전체 공간 차지 */
        justify-content: flex-end;
        gap: 5px;            /* 요소 간 간격 */
  }

  .styled-select {
    width: 72px;
    flex-shrink: 0;
  }

.limit-select,
.search-type-select{
	width: 80px;
}

  .search-input-box {
    flex: 1;
    min-width: 0;
    max-width: 200px !important;
  }


  /* ===============================
     NOTICE TABLE (⭐ 핵심)
     =============================== */

  .notice-table {
    width: 100%;
    table-layout: fixed;
    border-top: 2px solid #222;
  }

  .notice-table th,
  .notice-table td {
    display: table-cell !important;
    padding: 12px 8px;
    vertical-align: middle;
  }

  /* 번호 / 조회수 제거 */
  .notice-table th.col-no,
  .notice-table td.col-no,
  .notice-table th.col-views,
  .notice-table td.col-views {
    display: none !important;
  }

  /* ===== 제목 ===== */
  .notice-table th.col-title {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding-left: 8px;
    width: 80%;
  }

  .notice-table td.title-cell {
    display: table-cell !important;
    text-align: left;
    padding-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .notice-table td.title-cell a {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }

  .notice-table td.title-cell .badge-notice {
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
  }

  /* ===== 등록일 (헤더 / 데이터 분리해서 처리) ===== */
  .notice-table th.col-date {
    width: 20%;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding-right: 8px;
  }

  .notice-table td.col-date {
    width: 80px;
    text-align: center;
    font-size: 12px;
    color: #999;
    padding-right: 8px;
    white-space: nowrap;
  }

  /* 검색 결과 없음 */
  .notice-table tbody td[colspan] {
    text-align: center;
    padding: 40px 0;
    color: #666;
  }
  
  /* NEWS LIST */
 .news-item {
    display: grid;
    grid-template-columns: 90px 1fr 24px;
    align-items: center;          /* ⭐ 세로 중앙 정렬 */
    column-gap: 10px;
  }

  .news-title {
    font-size: 15px;
    line-height: 1.4;
    margin-left: 10px;

    /* ⭐ 두 줄까지만 허용 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-link-icon {
    justify-self: end;            /* ⭐ 오른쪽 고정 */
    align-self: center;           /* ⭐ 세로 중앙 */
    font-size: 16px;
    color: #aaa;
  }

  /* FAQ */
  .faq-question {
    padding: 16px 14px;
    align-items: flex-start;
  }

  .q-wrap {
    gap: 8px;
  }

  .q-text {
    font-size: 15px;
  }

  .faq-answer-inner {
    flex-direction: column;
    padding: 16px 14px;
  }

  /* CONTACT */
  .contact-page .contact-wrap {
    padding-bottom: 0;
}

  .contact-info {
    padding: 28px 20px;
  }

  .c-address {
            margin-bottom: 8px;
  }

  /* DETAIL */
  .view-header {
    padding: 20px;
  }

  .view-title {
    font-size: 20px;
  }

  .view-content {
    padding: 30px 20px;
    font-size: 15px;
  }

  /* FILE BOX */
  .file-box-wrap {
    grid-template-columns: 1fr;
  }

  .file-download-box {
    width: 100%;
  }

  /* GRID CARD */
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    padding: 24px 16px !important;
  }

  footer .copy {
    margin-top: 8px;
  }
}

@media (max-width: 480px) {

  .hero h2 {
    font-size: 22px;
  }

  .hero p {
    font-size: 14px;
  }

  .ai-hub-grid {
    grid-template-columns: 1fr;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }
}

/* 모바일 (768px 이하) 전용 설정 */
@media screen and (max-width: 768px) {
    /* 1. 컨트롤 바를 세로형으로 변경 (공간 확보) */
    .board-controls {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    /* 2. 우측 컨트롤 영역을 가로로 꽉 채움 */
    .control-right {
        width: 100% !important;
        display: flex !important;
        gap: 6px !important;
    }

    /* 3. 셀렉트 박스 유동 너비 */
    .limit-select, .search-type-select {
        width: auto !important;
        flex: 1 !important; /* 셀렉트박스들도 균형있게 확장 */
        min-width: 0 !important;
    }

    /* 4. 검색창 박스 (PC의 250px 고정 해제) */
    .search-input-box {
        width: auto !important;
        flex: 2 !important; /* 검색창을 셀렉트박스보다 더 넓게 배분 */
        max-width: none !important;
        position: relative !important;
    }

    /* 5. 실제 인풋 태그 (padding-right 보정) */
    .search-input-box input#searchKeyword {
        width: 100% !important;
        padding-right: 40px !important; /* 버튼 자리 확보 */
        box-sizing: border-box !important;
    }

    /* 6. 버튼 (PC 스타일 유지하되 위치 고정) */
    .search-input-box button {
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
    }
}