@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #1ba784;
  --primary-dark: #148a6d;
  --secondary-color: #2ca36c;
  --bg-light: #f4f6f8;
  --text-dark: #111;
  --text-gray: #666;
  --border-color: #eee;
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.wrap {
  width: 100%;
  background: #fff;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.news-container {
  width: 100%;
  overflow: hidden;
  margin: 0 auto !important;
}


.event-container {
  width: 100%;
  background: #e9f8f1;
  margin: 0 auto !important;
}

.notice-container {
  width: 100%;
  background: #f5f6f6;
  margin: 0 auto !important;
  justify-content: center;
  /* 가운데 정렬 */
}

/* ===== 헤더 ===== 
.header {
  border-bottom: 1px solid var(--border-color);
  background: #fff;
  position:relative;
  top: 0;
  z-index: 1000;
  margin-bottom: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  margin-bottom: 0;
}
*/
.logo img {
  height: 50px;
}

.nav-menu {
  display: flex;
  gap: 10px;
}

.nav-item {
  position: relative;
}

.nav-item>a {
  display: block;
  padding: 30px 20px;
  font-size: 17px;
  font-weight: 500;
}

.nav-item>a:hover {
  color: var(--primary-color);
}

/* 상단고정 공지 표시(선택) */
.badge-pin {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #27c967;
  color: #fff;
  margin-right: 8px;
  vertical-align: middle;
}


.nav-item:hover .dropdown {
  display: block;
}

/*
.auth {
  display: flex;
  gap: 10px;
}

.auth a {
  font-size: 15px;
  color: var(--text-gray);
  padding: 8px 16px;
}

.auth a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
*/
/* ===== 히어로 (메인) ===== */
.hero {
  height: 600px;
  background: url('../images/img_main-hero.png') center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  /* 가로 가운데 */
  align-items: center;
  /* 세로 가운데 */
  text-align: center;
  /* 텍스트 가운데 */
}

.hero-overlay {
  width: 100%;
  padding: 0 5%;
}

.hero-text {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text p {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 15px;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
}


/* ===== 뉴스/소식 섹션 ===== */
.news-section-padding {
  width: 100%;
  padding-top: 80px;
}

.event-section-padding {
  width: 100%;
  padding: 80px 0;
  background: #e9f8f1;
}

.notice-section-padding {
  width: 100%;
  padding: 80px 0;
  background: #f5f6f6;
  justify-content: center;
  /* 가운데 정렬 */
}

.section-title-wrap {
  margin-bottom: 50px;
  margin: 0 auto;
  /* 가운데 정렬 */
  max-width: var(--container-width);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.section-title span {
  color: var(--primary-color);
}

.news-layout {
  display: flex;
  gap: 40px;
  max-width: var(--container-width);
  align-items: flex-start;
  margin: 0 auto;
  /* 가운데 정렬 */
}

.news-list {
  flex: 1;
}

.news-item {
  display: flex;
  gap: 25px;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

.news-item:first-child {
  padding-top: 0;
}

.news-date-box {
  background: #27c967;
  color: #fff;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

.news-date-box .day {
  font-size: 24px;
  font-weight: 700;
}

.news-date-box .year-month {
  font-size: 12px;
}

.news-content h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.news-content p {
  color: var(--text-gray);
  font-size: 15px;
}

.news-illustration {
  width: 400px;
}

.news-illustration img {
  width: 100%;
}

/* ===== 행사정보 섹션 ===== */
.events {
  background: #f8faf9;
}

.calendar-card {
  background: #fff;
  border-radius: 30px;
  padding: 40px;
  max-width: var(--container-width);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.calendar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

.month-nav {
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
}

.current-month {
  font-size: 28px;
  font-weight: 700;
}

/* ===== 게시판 그리드 ===== */
.board-grid {
  display: grid;
  background: #f5f6f6;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  justify-content: center;
  /* 가운데 정렬 */
  flex-wrap: wrap;
}

.event-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
  transition: 0.3s;
  border: 1px solid #f0f0f0;
  margin: 0 auto;
  /* 가운데 정렬 */
  max-width: var(--container-width);
}

.card {
  position: relative;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
  transition: 0.3s;
  border: 1px solid #f0f0f0;
  max-width: var(--container-width);
  min-height: 200px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.card-content {
  font-size: 15px;
  color: var(--text-gray);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-date {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 8px;
  padding-top: 9px;
  font-size: 13px;
  color: var(--text-gray);
  border-top: 1px solid #d6d6d6;
}

body {
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  padding: 40px;
  font-family: Arial, sans-serif;
}

.slider-container {
  width: 800px;
  /* 4개 x 200px */
  overflow: hidden;
  margin: 20px auto;
}

.slider-track {
  display: flex;
}

.slide {
  width: 25%;
  flex-shrink: 0;
  padding: 5px;
  box-sizing: border-box;
}


.slide img {
  width: 100%;
  display: block;
}

/* 인디케이터 */
.dots {
  text-align: center;
  margin-top: 15px;
}

.dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.dots span.active {
  background: #2ecc71;
}


/* ===== 푸터 ===== */
.footer {
  background: #2b3b36;
  color: #fff;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img {
  height: 40px;
}

.footer-info {
  text-align: right;
}

.footer-info p {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 5px;
}

.footer-social {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.social-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 로그인 페이지 스타일 ===== */
.login-wrap {
  background: #ffffff;
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0;
}

.sub-hero {
  width: 100%;
  height: 250px;
  background: url('../images/img_sub-hero.png') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  position: relative;
  margin-top: 0;
}

.sub-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  /* 흰색 오버레이 */
}

.sub-hero h2 {
  position: relative;
  font-size: 36px;
  z-index: 1;
}

.login-container {
  width: 100%;
  max-width: 500px;
  background: #fff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.login-tabs {
  width: 50%;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
  margin-left: 90px;
}

.login-tab {
  flex: 1;
  padding: 15px;
  text-align: center;
  background: #f9f9f9;
  cursor: pointer;
  font-weight: 500;
}

.login-tab.active {
  background: #27c967;
  color: #fff;
}

.login-form .input-group {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.login-form input {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
}

.login-form input:focus {
  border-color: var(--primary-color);
}

.login-options {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 30px;
}

.save-id {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  /* 수직 가운데 */
  gap: 4px;
  white-space: nowrap;
  /* 줄바꿈 방지 */
  width: 20px;
  min-width: auto !important;
  max-width: none !important;
}

.save-id input[type="checkbox"] {
  margin: 0;
  /* 브라우저 기본 여백 제거 */
}

.login-btn {
  width: 100%;
  padding: 18px;
  background: #27c967;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.login-btn:hover {
  background: var(--primary-dark);
}

/* ===== 서브 페이지 공통 ===== */
.sub-nav {
  background: #f8f8f8;
  margin-bottom: 50px;
}

.sub-nav ul {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.sub-nav li a {
  display: block;
  padding: 20px 0;
  font-size: 16px;
  color: #666;
  position: relative;
}

.sub-nav li.active a {
  color: #222222;
  font-weight: 700;
}

.sub-nav li.active a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
}

.content-wrap {
  padding-bottom: 0px;
}

.breadcrumb {
  display: flex;
  justify-content: flex-end;
  font-size: 13px;
  color: #999;
  margin-bottom: 30px;
}

.page-title-box {
  padding-bottom: 15px;
  margin-bottom: 40px;
}

.page-title {
  font-size: 28px;
  font-weight: 500;
  display: inline-block;
  border-bottom: 1px solid #333;
  color: #444;
}


/* 그리팅/인사말 */
.greeting-box {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 30px;
  padding: 60px;
  margin-left: 50px;
  margin-top: -35px;
  /* 위쪽 div와 겹치도록 음수 마진 추가 */
  position: relative;
  z-index: 1;
  /* 환영 메시지(z-index: 2)보다 아래에 위치 */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.greeting-text {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.greeting-sign {
  margin-top: 50px;
  text-align: right;
}


/* 오시는 길 */
.map-box {
  height: 500px;
  background: #eee;
  border-radius: 20px;
  margin-bottom: 40px;
}

.contact-box {
  width: 100vn;
  background: #f8f8f8;
  padding: 30px 40px;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
}

/* 상단 주소 / 문의 */
.contact-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.label {
  font-size: 15px;
  display: inline-block;
  background: #2fb36d;
  color: #fff;
  padding: 12px 32px;
  font-weight: 600;

  border-radius: 25px 0 0 25px;
}

.label.right {
  margin-left: auto;
}

.text {
  color: #333;
  font-weight: 500;
}

/* 오시는 길 */
.route {
  padding-top: 15px;
  margin: 0 auto;
}

.route-row {
  display: flex;
  margin-bottom: 10px;
}

.route-line {
  border-top: 1px solid #ddd;
  margin-bottom: 10px;
}

.route-title {
  width: 120px;
  font-weight: 700;
  color: #555;
}

.route-text {
  color: #666;
  line-height: 1.6;
  font-weight: 500;
}

/* 비전 페이지 시각화 */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.vision-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: 50%;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 15px solid #eef7f4;
  transition: 0.3s;
}

.vision-card:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.vision-card h4 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.vision-card p {
  font-size: 14px;
  color: #666;
}

/* ===== 게시판 스타일 ===== */
.board-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.board-table th {
  background: #f8fafc;
  border-top: 2px solid #333;
  border-bottom: 1px solid #ddd;
  padding: 20px 10px;
  font-weight: 700;
  font-size: 16px;
}

.board-table td {
  border-bottom: 1px solid #eee;
  padding: 20px 10px;
  text-align: center;
  font-size: 15px;
  color: #555;
}

.board-table td.subject {
  text-align: left;
  color: #111;
  font-weight: 500;
}

.board-table td.subject a:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
  margin-bottom: 40px;
}

.pagination a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  border-radius: 5px;
  font-size: 14px;
  color: #666;
}

.pagination a.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}


.btn {
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-size: 15px;
  display: inline-block;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-dark {
  background: #333;
  color: #fff;
}


.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2e7d32;
}


/* 메가메뉴 스타일 */

/* 기본 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: #333;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 헤더 레이아웃 */
header {
  position: relative;
  width: 100%;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.inner {
  display: flex;
  max-width: 1250px;
  margin: 0 auto;
  height: 100px;
  align-items: center;
  position: relative;
  z-index: 1000;
  /* 메뉴 텍스트가 배경보다 위에 오도록 */
}

/* 로고 스타일 */
.logo {
  flex: 0 0 280px;
}

.logo .ku {
  color: #006633;
  font-size: 28px;
  font-weight: 800;
}

.logo .rise {
  color: #76bc21;
  font-size: 28px;
  font-weight: 800;
}

.logo small {
  display: block;
  font-size: 12px;
  color: #666;
  font-weight: 400;
  margin-top: -2px;
}

/* GNB 영역 */
.gnb {
  flex: 1;
}

.main-menu {
  display: flex;
  justify-content: center;
}

.main-menu>li {
  /* 중요: 여기에 position: relative를 주지 않아야 서브메뉴가 꼬이지 않습니다 */
  width: 150px;
  /* 각 메뉴의 가로 간격 고정 */
}

.main-menu>li>a {
  display: block;
  line-height: 100px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

/* 서브 메뉴 (depth2) */
.depth2 {
  position: absolute;
  top: 80px;
  width: 150px;
  /* 상위 li와 동일한 너비 */
  padding: 20px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.depth2 li {
  text-align: center;
}

.depth2 li a {
  display: block;
  padding: 10px 5px;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  line-height: 1.4;
  transition: 0.2s;
}


/* 이미지의 녹색 활성화 포인트 */
.depth2 li.active a {
  color: #2fb15e;
  font-weight: 600;
}

.depth2 li a:hover {
  color: #008a50;
  font-weight: 600;
}

/* 호버 시 동작 (메가메뉴 스타일) */
header:hover .depth2 {
  opacity: 1;
  visibility: visible;
  background: ##f8f8f8;
}

header:hover .gnb-bg {
  height: 280px;
  /* 서브메뉴가 충분히 보일 높이 */
}

/* 전체 배경 레이어 */
.gnb-bg {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: 0;
  background: #faffff;
  /* 이미지의 연한 회색 배경 */
  border-top: 1px solid #eee;
  transition: height 0.3s ease;
  z-index: 500;
}

/* 우측 유틸리티 */
.util {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}

.sns {
  display: flex;
  gap: 6px;
}

.auth {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: #666666;
}

/* 이미지 */
.image-area img {
  width: 300px;
  border-radius: 6px;
}

/* 텍스트 */
.text-area {
  flex: 1;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.text-area p {
  margin-bottom: 16px;
}

/* 날짜 */
.date {
  text-align: right;
  color: #999;
  font-size: 13px;
}

/* 서명 */
.sign {
  text-align: right;
  font-weight: bold;
}

.content-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}