/* info.css */

/* 게시판 리스트 스타일 */
.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-table .col-num {
  width: 10%;
}
.board-table .col-date {
  width: 15%;
}
.board-table .col-cate {
  width: 10%;
}
.board-table .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: 1; /* 아이콘 색상 조정을 위한 투명도 */
}

/* 페이지네이션 스타일 */
.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;
}

/* video grid 스타일 */

#content3 .video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}

#content3 .video-card {
  display: block;
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

#content3 .video-card:hover {
  transform: translateY(-5px);
}

#content3 .video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 비율 */
  overflow: hidden;
}

#content3 .video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#content3 .video-info {
  padding: 16px;
}

#content3 .video-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

#content3 .video-date {
  font-size: 14px;
  color: #666;
}

#content3 .video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* 게시글 상세 스타일 */
.category {
  display: block;
  color: #4b7bec;
  font-size: 14px;
  margin-bottom: 10px;
}

.post-info {
  display: flex;
  gap: 20px;
  color: #666;
  font-size: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.post-content {
  min-height: 300px;
  padding: 40px 0;
  border-bottom: 1px solid #ddd;
  line-height: 1.6;
}

.file-attachments {
  padding: 20px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.file-label {
  color: #666;
}

.file-link {
  color: #4b7bec;
  text-decoration: none;
}

.btn-list {
  padding: 12px 30px;
  background-color: #666;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-list:hover {
  background-color: #555;
}

/* 비디오 콘텐츠 스타일 */
.video-content {
  margin: 40px 0;
}

.video-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f8f9ff;
  border-radius: 8px;
  overflow: hidden;
}

.video-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 반응형 스타일 */
@media screen and (max-width: 1280px) {
  #content3 .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .search-area {
    max-width: 100%;
  }

  #content3 .video-grid {
    grid-template-columns: 1fr;
  }

  .search-input {
    width: 100%;
  }

  .board-header {
    flex-direction: column;
    gap: 10px;
  }

  .search-area {
    width: 100%;
  }
}

.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;
}

/* 비디오 리스트 스타일 */
.video-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
}

.video-card {
  display: flex;
  gap: 24px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.video-card:hover {
  background-color: #f8f9ff;
}

.video-thumbnail {
  position: relative;
  width: 280px;
  flex-shrink: 0;
  height: 157px; /* 16:9 비율 */
  border-radius: 8px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.video-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-title {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.video-date {
  font-size: 14px;
  color: #666;
}

/* 반응형 스타일 */
@media screen and (max-width: 768px) {
  .video-card {
    flex-direction: column;
    gap: 16px;
  }

  .video-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .video-info {
    padding: 0;
  }
}
