/* 페이지 헤더 스타일 */
.page-header {
  width: 1280px;
  margin: 0 auto;
  padding: 40px 0;
  height: 300px; /* nav에서 탭까지의 전체 높이 */
  display: flex;
  flex-direction: column;
  justify-content: center; /* 수직 중앙 정렬 */
  overflow: hidden; /* 배경 이미지가 넘치지 않도록 */
}

.header-bg1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 538px;
  height: 300px;
  background-image: url("../img/header-bg1.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  z-index: 0;
}

.header-bg2 {
  position: absolute;
  top: 0;
  right: 0;
  width: 538px;
  height: 300px;
  background-image: url("../img/header-bg2.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  z-index: 0;
}

.header-bg3 {
  position: absolute;
  top: 0;
  right: 0;
  width: 538px;
  height: 300px;
  background-image: url("../img/header-bg3.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  z-index: 0;
}

.header-bg4 {
  position: absolute;
  top: 0;
  right: 0;
  width: 538px;
  height: 300px;
  background-image: url("../img/header-bg4.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  z-index: 0;
}

.header-bg5 {
  position: absolute;
  top: 0;
  right: 0;
  width: 538px;
  height: 300px;
  background-image: url("../img/header-bg5.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  z-index: 0;
}

.header-bg6 {
  position: absolute;
  top: 0;
  right: 0;
  width: 538px;
  height: 300px;
  background-image: url("../img/header-bg6.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  z-index: 0;
}

.header-bg7 {
  position: absolute;
  top: 0;
  right: 0;
  width: 538px;
  height: 300px;
  background-image: url("../img/header-bg7.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  z-index: 0;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  color: #666;
  font-size: 14px;
  margin-bottom: 30px;
}

.page-title {
  font-size: 54px;
  font-weight: 600;
}

@media screen and (max-width: 1024px) {
  .page-header {
    height: 48px;
    padding: 0 20px;
    border: 1px solid #ddd;
  }

  .header-bg1,
  .header-bg2,
  .header-bg3,
  .header-bg4,
  .header-bg5,
  .header-bg6,
  .header-bg7 {
    display: none; /* 모바일 화면에서 배경 이미지 숨김 */
  }

  .page-title {
    display: none; /* 모바일 화면에서 제목 숨김 */
  }

  .breadcrumb {
    margin-bottom: 0;
  }
}

.tab-menu {
  position: relative;
  width: 100%;
  background: white; /* 배경색 지정 */
}

.tab-menu > div {
  width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 50px; /* 탭 간격 조정 */
}

.tab-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ddd;
}

/* 하단 보더 라인 */
.tab-menu::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ddd;
}

.tab-menu a {
  padding: 20px 0; /* 상하 패딩만 지정 */
  border: none;
  background: none;
  font-family: "ONE-Mobile-Title";
  font-size: 16px;
  color: #585858;
  cursor: pointer;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  text-decoration: none;
}

.tab-menu a.active {
  color: #4169e1;
  font-weight: 500;
}

.tab-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #4169e1;
}

@media screen and (max-width: 1024px) {
  .tab-menu {
    display: none; /* 모바일 화면에서 탭 숨김 */
  }
}

/* 콘텐츠 섹션 스타일 */
.content-section {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 0;
}

/* 탭 콘텐츠 표시 로직 */
body:has(#tab1:checked) .content-section #content1,
body:has(#tab2:checked) .content-section #content2,
body:has(#tab3:checked) .content-section #content3,
body:has(#tab4:checked) .content-section #content4,
body:has(#tab5:checked) .content-section #content5 {
  display: block;
}

.tab-content h2 {
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 50px;
  color: #333;
}

.tab-content .test-box {
  margin-top: 40px;
}

.tab-content ul {
  margin-top: 40px;
}

@media screen and (max-width: 1280px) {
  .content-section {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media screen and (max-width: 1024px) {
  .content-section {
    padding: 40px 20px; /* 모바일 화면에서 패딩 조정 */
  }
  .tab-content h2 {
    font-size: 24px; /* 모바일 화면에서 제목 크기 조정 */
    margin-bottom: 20px;
  }
  .tab-content ul {
    margin-top: 0;
  }
}

/* 게시판 리스트 스타일 */
.board-list table {
  width: 100%;
  border-top: 2px solid #333;
}

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

.board-list th {
  background: #f8f9ff;
}

.board-list td.title {
  text-align: left;
}

.board-list td.type {
  color: #0052cc; /* 더 진한 파란색으로 변경 */
}

.board-list tbody tr {
  cursor: pointer;
}

.board-list tbody tr:hover {
  background-color: #f8f9ff;
}

.board-list .col-num {
  width: 10%;
}
.board-list .col-date {
  width: 15%;
}
.board-list .col-hit {
  width: 10%;
}

@media screen and (max-width: 768px) {
  .board-list th {
    padding: 10px;
    white-space: nowrap;
  }
  .board-list .col-date {
    display: none;
  }

  .board-list .col-cate {
    display: none;
  }

  .board-list .col-hit {
    display: none;
  }
}

/* 검색 영역 스타일 */
.board-header {
  display: flex;
  justify-content: flex-end; /* 오른쪽 정렬 */
  margin-bottom: 20px;
}

.search-area {
  display: flex;
  gap: 10px;
  width: 500px; /* 너비 증가 */
}

.search-select {
  min-width: 120px; /* 셀렉트 박스 너비 증가 */
  padding: 12px 15px; /* 패딩 증가 */
  border: 1px solid #e9e9e9;
  border-radius: 15px; /* border-radius 15px로 설정 */
  font-size: 14px;
  color: #808080;
  background-color: #e9e9e9;
}

.search-input-wrapper {
  display: flex;
  flex-grow: 1;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 15px; /* 패딩 증가 */
  border: 1px solid #e9e9e9;
  border-radius: 15px; /* border-radius 15px로 설정 */
  font-size: 14px;
  color: #808080;
  background-color: #e9e9e9;
}

.search-input::placeholder {
  color: #808080;
}

.search-button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: url("../img/search-icon.png") no-repeat center;
  width: 24px;
  height: 24px;
  border: none;
  cursor: pointer;
  opacity: 0.6; /* 아이콘 색상 조정을 위한 투명도 */
}

/* 페이지네이션 스타일 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 40px;
}

.pages {
  display: flex;
  gap: 5px;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  text-decoration: none;
  color: #666;
}

.pagination .prev,
.pagination .next {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.pagination .prev {
  background-image: url("../img/main/footer/next_arrow.png");
  transform: rotate(180deg); /* prev는 왼쪽을 향하도록 회전 */
}

.pagination .next {
  background-image: url("../img/main/footer/next_arrow.png");
}

.pagination a.active {
  color: #4169e1;
  font-weight: bold;
}

/* 버튼 영역 */
.button-area {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0;
}

.write-btn {
  padding: 10px 24px;
  background: #0052cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
