@font-face {
  font-family: 'Freesentation';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-4Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Freesentation';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-5Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Freesentation';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-6SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Freesentation';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-7Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Freesentation';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-8ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'Freesentation';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-9Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Freesentation', 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}

/* Header Styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
}

.logo a {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
}

.logo img {
  height: 24px;
  margin-right: 10px;
}

.logo span {
  color: #2ecc71;
  margin: 0 2px;
}

/* 2단 메뉴 스타일 */
nav ul.main-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul.main-menu li {
  position: relative;
  margin-left: 30px;
}

nav ul.main-menu li a.main-menu-item {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 15px 0;
  display: block;
  transition: color 0.3s;
  cursor: pointer;
}

nav ul.main-menu li a.main-menu-item:hover {
  color: #1a2a47;
}

/* 서브메뉴 스타일 */
nav ul.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 8px 0;
}

nav ul.main-menu li.has-submenu:hover ul.submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

nav ul.submenu li {
  margin: 0;
  padding: 0;
}

nav ul.submenu li a {
  display: block;
  padding: 12px 20px;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s;
}

nav ul.submenu li a:hover {
  background-color: #f8f9fa;
  color: #1a2a47;
}

/* 화살표 표시 */
nav ul.main-menu li.has-submenu > a.main-menu-item::after {
  content: '▼';
  margin-left: 5px;
  font-size: 12px;
  transition: transform 0.3s;
}

nav ul.main-menu li.has-submenu:hover > a.main-menu-item::after {
  transform: rotate(180deg);
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-color: #1f1c37;
  color: #fff;
}
section.hero {
  padding: 0;
}

/* 히어로 컨테이너 스타일 */
.hero-container {
  width: 100%;
  background: linear-gradient(to bottom, #1f233e, #1f1c39);
  overflow: hidden;
  position: relative;
}

/* 이미지 래퍼 스타일 */
.hero-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

/* 히어로 이미지 스타일 */
.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.subtitle {
  font-size: 18px;
  margin-bottom: 20px;
}

h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
}

h1 .green {
  color: #2ecc71;
}

.description {
  font-size: 16px;
  max-width: 600px;
  margin-bottom: 30px;
}

/* Section Styles */
section {
  padding: 60px 0;
}

.section-title {
  position: relative;
  font-size: 32px;
  margin-bottom: 10px;
  display: inline-block;
  padding-left: 12px;
  font-weight: 800;
}

.section-title::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  width: 3px;
  height: 28px;
  background: linear-gradient(to bottom, #1a9fa9, #155f94);
}

/* Introduction Section */
.intro,
.membership,
.request {
  background-color: #f5f5f5;
}

.intro-content h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1a2a47;
}

.intro-content p {
  margin-bottom: 15px;
  font-size: 20px;
}

/* Services Section */
/*
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
}
*/
.service-item {
  display: flex;
  flex-direction: column;
}

.service-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  background-color: #2ecc71;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.service-content {
  padding: 20px 0;
  font-size: 20px;
  word-break: keep-all;
}

.service-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1a2a47;
}

.service-content h3 span {
  font-size: 14px;
  color: #777;
  font-weight: normal;
  margin-left: 5px;
}

.service-content p {
  font-size: 14px;
  color: #555;
}

/* Membership Section */

.info-item {
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-item h3 {
  font-size: 18px;
  color: #1a2a47;
}

.btn-container {
  margin-top: 30px;
  text-align: center;
}

.btn-primary {
  margin-top: 10px;
  background-color: #26bcbd;
  color: #fff;
  border: none;
  padding: 12px 44px;
  border-radius: 20px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #27ae60;
}

/* Notice Board Section */
.search-bar {
  display: flex;
  margin-bottom: 20px;
  justify-content: flex-end;
}

.search-bar input {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  width: 250px;
}

.btn-search {
  background-color: #1a2a47;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.notice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border-top: 2px solid #1a2a47;
}

.notice-table th,
.notice-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.notice-table th {
  background-color: #f8f8f8;
  font-weight: 600;
}

.notice-table td.title {
  text-align: left;
  width: 50%;
  cursor: pointer;
}

.notice-table td.title a:hover {
  color: #1a9fa9;
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: 4px;
  border: 1px solid #ddd;
  color: #555;
  transition: all 0.2s;
}

.pagination a.active,
.pagination a:hover {
  background-color: #1a9fa9;
  color: #fff;
  border-color: #1a9fa9;
}

/* Footer */
footer {
  background-color: #6b6674;
  color: #fff;
  padding: 20px 0;
}

.footer-info h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-info p {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-copyright {
  font-size: 16px;
  color: #fff;
  text-align: center;
}

.tit_bar {
  width: 100%;
  height: 59px;
  background-image: url('/img/tit_bar_bg1.png');
  display: flex;
  justify-content: start;
  align-items: center;
  line-height: 59px;
}

.box1 {
  width: 60px;
  color: #26bcbd;
  font-size: 30px;
  font-weight: 800;
  height: 59px;
  text-align: center;
  background-image: url('/img/tit_bar_bg1.png?v=1');
  line-height: 59px;
  position: relative;
  display: inline-block;
}

.box1::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
  right: -10px; /* 오른쪽에 배치 */
  width: 10px;
  height: 59px;
  background-image: url('/img/tit_bar_bg2.png?v=1');
  background-size: cover;
  background-position: center;
}

.box2 {
  height: 59px;
  background-image: url('/img/tit_bar_bg1.png?v=1');
  line-height: 59px;
  padding-left: 20px;
  font-size: 24px;
  font-weight: 600;
}

.box2 span {
  color: #230f20;
  font-size: 20px;
  font-weight: 400;
}

h3.dot-heading {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  padding-left: 22px;
  display: flex;
  align-items: center;
}

h3.dot-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 52%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #20b2aa;
  border-radius: 50%;
}

.info-item p {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 400;
}

.request-info p {
  margin-left: 20px;
  font-size: 22px;
}

/* 반응형 스타일 */
@media (max-width: 1280px) {
  .hero-container {
    /* 화면이 1280px보다 작을 때는 단순 배경색으로 설정 */
    background: #1a2340;
  }
}
/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    margin-bottom: 40px;
  }

  .hero-image {
    justify-content: center;
  }

  .service-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header .container {
    height: 50px;
  }

  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #fff;
    transition: left 0.2s ease-out; /* 더 빠른 애니메이션 */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    left: 0;
  }
  nav ul.main-menu {
    flex-direction: column;
    padding: 20px;
  }

  nav ul.main-menu li {
    margin: 0;
    margin-bottom: 15px; /* 대메뉴 간격 추가 */
    border-bottom: 1px solid #eee; /* 구분선 추가 */
    padding-bottom: 0;
  }

  nav ul.main-menu li:last-child {
    border-bottom: none;
  }

  nav ul.main-menu li a.main-menu-item {
    font-size: 18px;
    padding: 10px 0; /* 패딩 추가 */
  }

  /* 모바일에서 서브메뉴 스타일 */
  nav ul.submenu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important; /* 애니메이션 제거 */
    box-shadow: none;
    background-color: #f8f9fa;
    margin-top: 10px;
    border-radius: 4px;
    padding: 0;
    display: none; /* 기본적으로 숨김 */
  }

  nav ul.submenu li a {
    padding: 10px 20px;
    padding-left: 40px; /* 들여쓰기 효과 */
    font-size: 16px;
  }

  /* 모바일에서 화살표 표시 및 변경 */
  nav ul.main-menu li.has-submenu > a.main-menu-item::after {
    content: '▶';
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s;
    display: inline-block;
  }

  nav ul.main-menu li.has-submenu.submenu-open > a.main-menu-item::after {
    transform: rotate(90deg);
  }

  nav ul.main-menu li a.main-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-menu-btn {
    display: block;
  }

  h1 {
    font-size: 32px;
  }

  .notice-table th:nth-child(3),
  .notice-table td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 576px) {
  .service-item {
    flex-direction: column;
  }

  .service-number {
    width: 100%;
    padding: 10px 0;
  }

  .notice-table th:nth-child(4),
  .notice-table td:nth-child(4) {
    display: none;
  }
}

/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  width: 80%;
  max-width: 800px;
  position: relative;
  animation: slideDown 0.4s;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: #333;
}

#modalTitle {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1a2a47;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.modal-info {
  display: flex;
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
}

.modal-info span {
  margin-right: 15px;
}

#modalContent {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
}
#modalContent img {
  max-width: 100%;
}

/* 모달 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 첨부파일 관련 스타일 */
.modal-files {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.file-list-header {
  font-size: 16px;
  font-weight: 600;
  color: #1a2a47;
  margin-bottom: 10px;
}

.file-list {
  padding-left: 10px;
}

.file-item {
  margin-bottom: 8px;
}

.file-link {
  display: inline-flex;
  align-items: center;
  color: #1a9fa9;
  transition: color 0.2s;
  font-size: 14px;
  cursor: pointer;
}

.file-link:hover {
  color: #26bcbd;
  text-decoration: underline;
}

.file-link i {
  margin-right: 5px;
  font-size: 16px;
}

/* 모바일 환경 개선을 위한 반응형 스타일 */
@media screen and (max-width: 768px) {
  /* 헤더 및 일반 요소 */
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .section-title {
    font-size: 30px;
  }
  .section-title::after {
    top: 11px;
    height: 26px;
  }
  .info-item {
    flex-direction: column;
    gap: 0;
  }
  .info-item p {
    margin-top: 0px;
    font-size: 20px;
    margin-left: 20px;
  }
  /* 테이블 반응형 처리 */
  .notice-table {
    display: block;
    width: 100%;
  }

  .notice-table thead {
    display: none; /* 모바일에서는 테이블 헤더 숨김 */
  }

  .notice-table tbody,
  .notice-table tr {
    display: block;
    width: 100%;
  }

  .notice-table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    position: relative;
  }

  .notice-table td {
    display: block;
    text-align: right;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    position: relative;
  }

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

  .notice-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: 600;
  }

  .notice-table td.title {
    text-align: left;
    padding-left: 10px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
  }

  .notice-table td.title:before {
    content: none;
  }

  /* 페이지네이션 */
  .pagination a {
    width: 30px;
    height: 30px;
    margin: 0 3px;
    font-size: 13px;
  }

  /* 모달 */
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 15px;
  }

  #modalTitle {
    font-size: 18px;
  }

  #modalContent {
    font-size: 14px;
  }

  .close {
    top: 10px;
    right: 15px;
  }

  .modal-info {
    flex-direction: column;
  }

  .modal-info span {
    margin-bottom: 5px;
  }
  .footer-copyright {
    font-size: 14px;
  }

  /* 첨부파일 모바일 스타일 */
  .modal-files {
    margin-top: 15px;
    padding-top: 10px;
  }

  .file-list-header {
    font-size: 14px;
  }

  .file-link {
    font-size: 13px;
  }

  .file-item {
    margin-bottom: 10px;
  }
}
