h3 p {
  font-weight: 500;
  transform: translateY(-10px);
  text-align: center;
}

/* photo */
.content_inner {
  overflow: hidden;
}
.photo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.photo .swiper-slide {
  width: calc(25% - 10px);
  /* 4개 슬라이드 표시 시 25% 너비로 설정 */
}
/* Swiper 기본 점 스타일을 숨기기 */
.swiper-pagination-bullets {
  display: none; /* Swiper 기본 점 스타일을 제거 */
}

/* 커스텀 페이지 네이션 스타일 */
.swiper-pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  opacity: 1;
  /* max-width: 300px;
    width: 100%; */
}

.swiper-pagination span {
  /* width: 40px;
    height: 40px; */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8em;
  aspect-ratio: 1/1;
  line-height: 1;
  background-color: #feec9c;
  color: #7a7979;
  font-size: 25px;
  font-weight: 700;
  border-radius: 50%;
  /* display: inline-block; */
  text-align: center;
  margin: 0 5px;
  cursor: pointer;
  opacity: 1;
}

/* 선택된 페이지 스타일 */
.swiper-pagination span.swiper-pagination-bullet-active {
  background-color: #000; /* 선택된 페이지 배경을 검은색으로 */
  color: #fff; /* 선택된 페이지 숫자를 흰색으로 */
  font-weight: bold;
}

.photo li {
  display: flex;
  flex-direction: column;
  line-height: 0;
}
.photo li img {
  width: 100%;
}
/*  tv*/
.tv {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* gap: 20px; */
}
.tv li {
  display: flex;
  flex-direction: column;
  line-height: 0;
}

.cm_img_wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.cm_img_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TV·언론·학술·기부: 호버 시 이미지 약 10% 확대 + 페이드인, 이탈 시 페이드아웃 */
.tv .cm_img_wrap img,
.news .cm_img_wrap img,
.seminar .cm_img_wrap img,
.donation .cm_img_wrap img {
  display: block;
  transform: scale(1);
  opacity: 0.88;
  transform-origin: center center;
  transition:
    transform 0.45s ease,
    opacity 0.45s ease;
}
.tv a:hover .cm_img_wrap img,
.tv .tv_card_no_link:hover .cm_img_wrap img,
.news a:hover .cm_img_wrap img,
.seminar a:hover .cm_img_wrap img,
.donation a:hover .cm_img_wrap img {
  transform: scale(1.1);
  opacity: 1;
}

/* TV: 링크 없음 — 카드 버튼(썸네일 모달) */
.tv .tv_card_no_link {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
}
.tv .tv_card_no_link:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}

/* TV 썸네일 확대 모달 */
.tv_img_modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.tv_img_modal.is-open {
  display: flex;
}
.tv_img_modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}
.tv_img_modal__dialog {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.tv_img_modal__dialog img {
  max-width: 100%;
  max-height: min(78vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}
.tv_img_modal__title {
  margin: 0;
  max-width: 100%;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  text-align: center;
}
.tv_img_modal__close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.tv_img_modal__close:hover {
  background: #f5f5f5;
}

.cm_txt {
  font-size: 18px;
  margin-top: 1rem;
  line-height: 1.5;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/*  news*/
.news-swiper-container {
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}
/* .news-swiper-container .swiper-slide {height: calc((100% - 30px) / 2) !important;} */
.news .cm_img_wrap {
  aspect-ratio: 4/3;
}
.news li {
  display: flex;
  flex-direction: column;
  line-height: 0;
}
/*  seminar*/

.seminar li {
  display: flex;
  flex-direction: column;
  line-height: 0;
}
/* 공지사항 */
.notice_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.notice_table th,
.notice_table td {
  border-bottom: 1px solid #ececec;
  padding: 15px 0;
  font-size: 15px;
  text-align: center;
}
.notice_table th {
  /* padding: 12px 0; */
  border-top: 1px solid #ececec;
  background-color: #fbfbfb;
  font-weight: 400;
}
.notice_table thead tr:hover {
  border-left: 0px solid #3b3b3b;
}
.notice_table tr:hover {
  background: #fffdf3;
  border-left: 1px solid #3b3b3b;
}
.notice_table td.td_num {
  width: 50px;
}
.notice_table td.td_name {
  max-width: 120px;
  text-decoration: none;
  white-space: nowrap; /* 텍스트가 한 줄로 유지되게 설정 */
  overflow: hidden; /* 넘칠 때 숨기기 */
  text-overflow: ellipsis;
}
.notice_table td.td_date {
  width: 120px;
}
.notice_table td.title {
  text-align: left;
  width: 70%;
  max-width: 150px;
  font-weight: 700;
}
.notice_table td.title a {
  color: #222;
  text-decoration: none;
  display: block; /* inline 요소를 block처럼 동작하도록 변경 */
  width: 100%; /* 부모의 너비를 채우게 설정 */
  white-space: nowrap; /* 텍스트가 한 줄로 유지되게 설정 */
  overflow: hidden; /* 넘칠 때 숨기기 */
  text-overflow: ellipsis; /* 넘친 텍스트를 '...'으로 표시 */
}
.notice_summary {
  margin-bottom: 15px;
  font-size: 14px;
  color: #555;
}

.notice_summary .total_info {
  font-weight: bold;
}
.seminarPagination {
  position: relative;
  padding-top: 3rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination a {
  padding: 10px 15px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
}

.pagination a:hover {
  background-color: #f5f5f5;
}
.pagination a.active,
.pagination a.active:hover {
  background-color: #555;
  color: white;
}

.pagination a:disabled {
  color: #ccc;
}

.notice_table {
  width: 100%;
  border-collapse: collapse;
}
.notice_content {
  text-align: left !important;
}

@media (min-width: 0px) and (max-width: 1280px) {
  .photo,
  .tv,
  .news,
  .seminar {
    grid-template-columns: repeat(2, 1fr);
  }
  .cm_txt {
    font-size: 17px;
    word-break: normal;
  }
}
@media (min-width: 0px) and (max-width: 500px) {
  .cm_txt {
    font-size: 14px;
    word-break: normal;
  }

  .swiper-pagination {
    margin: auto;
    max-width: 300px;
    width: 100%;
  }
  .swiper-pagination span {
    font-size: 17px;
  }
  /* .news-swiper-container .swiper-slide {height: calc((100% - 30px) / 2) !important;} */
  .news-swiper-container.swiper-grid-column > .swiper-wrapper {
    flex-wrap: wrap;
    flex-direction: row;
  }
  .seminar-swiper-container.swiper-grid-column > .swiper-wrapper {
    flex-wrap: wrap;
    flex-direction: row;
  }
  .news-swiper-container.swiper-grid-column > .swiper-wrapper a {
    padding: 5px;
  }
  .seminar-swiper-container.swiper-grid-column > .swiper-wrapper a {
    padding: 5px;
  }
  .notice_table thead {
    display: none;
  }
  .notice_table tr {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    border-bottom: 1px solid #ececec;
  }
  .notice_table tr:first-child {
    border-top: 1px solid #ececec;
  }
  .notice_table th,
  .notice_table td {
    padding: 0 !important;
    border-bottom: none !important;
  }
  .notice_table td.td_num {
    display: none;
  }
  .notice_table td.title {
    width: 100%;
    display: block;
    max-width: 300px;
    padding-bottom: 5px !important;
  }
  .notice_table td.td_name {
    max-width: 150px !important;
  }
}
@media (min-width: 0px) and (max-width: 320px) {
  .photo,
  .tv,
  .news,
  .seminar {
    grid-template-columns: repeat(1, 1fr);
  }
}
