body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #333;
}

/*header 스타일*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f8f8;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
}

/*푸터 스타일*/
#footer {
  background-color: #f8f8f8;
  text-align: center;
  padding: 20px;
  color: #666;
  border-top: 2px solid #ddd;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* 로고 스타일 */
header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    width: 50px; /* 로고 크기 */
    margin-right: 10px;
}

header .logo h1 {
    font-size: 1.5em;
    font-weight: bold;
    color: #004d40;
    
}

/* 네비게이션 링크 스타일 */
nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav li{
    list-style: none;
}

nav a {
    text-decoration: none;
    font-size: 1em;
    color: #333;
    transition: color 0.3s;
}

nav a:hover {
    color: #004d40; /* 링크 호버 색상 */
}

/* 중앙 사진 섹션 배경과 텍스트 스타일 */
.hero {
    background-image: url("main-image.png");
    background-repeat: no-repeat;
    background-size: 100% 150%;
    color: white;
    padding: 50px 20px;
    padding-top: 200px;
    margin-top: 60px;
    height: 200px;
}

/* 카드 섹션 */
.card-section {
    display: flex;
    justify-content: space-around; /*간격조정*/
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px;
    background-color: #f9f9f9;
  }
  
  .card {
    width: 18%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 10px;
    padding: 15px;
    transition: transform 0.5s;
    text-decoration: none; /* 링크 밑줄 제거 */
    color: inherit; /* 기본 텍스트 색상 유지 */
    display: block; /* 카드 전체가 클릭 가능하도록 설정 */
  }

  .card:hover{
    transform: translate(0px, -20px)
  }
  
  .card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 5px;
  }
  
  .card h2 {
    margin-top: 10px;
    font-size: 1.2em;
    color: #006400;
  }
  
  .card p {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
  }
  
  /* 반응형 */
  @media (max-width: 768px) {
    .card {
      width: 45%;
    }
  }
  
  @media (max-width: 480px) {
    .card {
      width: 100%;
    }
  }


/* ------ 그림 섹션 ------*/
/* 전체 섹션 */
.overlay-section {
  width: 100%;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

/* 이미지 컨테이너 */
.image-container {
  position: relative;
  width: 100%;
  height: 400px; /* 원하는 높이로 조정 가능 */
  overflow: hidden;
  border-radius: 10px; /* 부드러운 모서리 효과 */
}

/* 이미지 스타일 */
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 그림자 오버레이 */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)); /* 왼쪽 진하고 오른쪽 연해지는 그림자 */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
}

/* 텍스트 스타일 */
.overlay-text p {
  font-size: 1.2em;
  line-height: 1.6;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .image-container {
      height: 250px; /* 모바일에서 높이 조정 */
  }

  .overlay-text h1 {
      font-size: 1.8em;
  }

  .overlay-text p {
      font-size: 1em;
  }
}

/*------ contact 섹션 ------*/
/* Social Info Section */
#social-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 40px;
  background-color: #f9f9f9;
}

.info-section {
  display: flex;
  gap: 40px;
  width: 100%;
  justify-content: space-between;
}

.info-item {
  flex: 1;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.info-item h2 {
  font-size: 1.8em;
  color: #006400;
  margin-bottom: 10px;
}

.info-item p {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icons a img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: transform 0.3s;
}

.social-icons a img:hover {
  transform: scale(1.1);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.action-buttons .button {
  padding: 10px 20px;
  background-color: #004d40;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.action-buttons .button:hover {
  background-color: #00796b;
}

/* Responsive Design */
@media (max-width: 768px) {
  #social-info {
      flex-direction: column;
      align-items: center;
  }

  .info-section {
      flex-direction: column;
      gap: 20px;
  }
}


/* ======= About 페이지 스타일 =======*/
.page-content main {
  padding-top: 100px; /* 헤더 공간 확보 */
  max-width: 900px;
  margin: auto;
}

.page-content main section {
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-content main h2 {
  color: #006400;
  border-bottom: 2px solid #ddd;
}

/*========= Timeline 페이지 ======= */

/*----- 연혁 가로 -----*/
/* ===== 가로 타임라인 연도 바 ===== */
.years-bar {
  position: relative;
  max-width: 900px;
  margin: 40px auto 30px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.years-line {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #ddd;
  z-index: 0;
}

.year-marker {
  position: relative;
  text-align: center;
  font-size: 13px;
  color: #444;
  font-weight: 500;
  flex: 1;
}

/* 점 (marker 원) */
.year-marker::before {
  content: '';
  width: 12px;
  height: 12px;
  background-color: #4caf50;
  border-radius: 50%;
  display: block;
  margin: 0 auto 6px;
  z-index: 1;
  position: relative;
}



/*----- 연혁 세로 -----*/
.timeline {
  background: #fdf7f0;
  padding: 40px 20px;
  font-family: 'Helvetica Neue', sans-serif;
}

.timeline h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

.timeline-container {
  display: flex;
  flex-direction: column; /* 수직 정렬로 변경 */
  gap: 20px;               /* 카드 간 간격 */
  max-width: 800px;        /* 전체 너비 제한 */
  margin: 0 auto;          /* 가운데 정렬 */
}

.timeline-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  width: 100%;             /* 부모의 최대 너비를 따라감 */
  box-sizing: border-box;  /* padding 포함한 크기 계산 */
  border-left: 6px solid #4caf50;
}

.timeline-year {
  font-size: 24px;
  font-weight: bold;
  color: #4caf50;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.timeline-content p {
  font-size: 14px;
  margin: 10px 0;
  line-height: 1.5;
}

.timeline-content strong {
  color: #ff9800;
}

/* --- timeline-entry 클릭 가능하게 하기 --- */
.timeline-entry {
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  padding: 10px;
  border-radius: 6px;
}

.timeline-entry:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* --- 모달 기본 스타일 --- */
.modal {
  display: none; /* 기본은 숨김 */
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

/* --- 모달 내용 (이미지들) --- */
.modal-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* --- 모달 안 이미지 스타일 --- */
.modal-content img {
  max-width: 300px;
  max-height: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.modal-content img:hover {
  transform: scale(1.05);
}

/* --- 닫기 버튼 --- */
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.modal-close:hover {
  color: #ff9800;
}


/*====== news 페이지 ======*/

.news-page main {
  background: #ffffff;
  padding: 40px 20px;
  font-family: 'Helvetica Neue', sans-serif;
  box-sizing: border-box;
}

/* ===== 제목 스타일: timeline의 h2와 통일 ===== */
/* ===== 전체 배경 ===== */
.news-section main {
  background: #fdf7f0;
  padding: 40px 20px;
  margin-top: 80px; /* 헤더와 겹치지 않게 */
  font-family: 'Helvetica Neue', sans-serif;
  box-sizing: border-box;
  text-align: center;
}

/* ===== 제목 (timeline과 동일한 스타일) ===== */
.news-section h1 {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 40px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ccc;
  display: inline-block;
}

/* ===== 설명 문단도 중앙 정렬 ===== */
.news-page main p {
  text-align: center;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

/* ===== 뉴스 카드 컨테이너: 세로 정렬, 중앙 정렬 ===== */
.news-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ===== 뉴스 카드 디자인: timeline-item과 동일하게 ===== */
.news-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  border-left: 6px solid #4caf50;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

.news-card:hover {
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

.news-card img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

/* 텍스트 내용 부분 */
.news-card .news-content {
  text-align: left;
}

/* 카드 제목 */
.news-card h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #4caf50;
}

/* 카드 본문 */
.news-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* Read more 버튼 */
.news-card .read-more {
  align-self: flex-start;
  text-decoration: none;
  color: #ff9800;
  font-weight: bold;
  font-size: 14px;
  transition: color 0.3s ease;
}

.news-card .read-more:hover {
  color: #e65100;
}


/* Responsive Design */
@media (max-width: 768px) {
  .news-card img {
      height: 150px;
  }
}

