/* 공지사항 데스크탑 - 페이지 고유 스타일 */
/* 공통 헤더/푸터는 figma-desktop-common.css, figma-globals.css 참조 */

.sub {
  background-color: #ffffff;
  overflow: hidden;
  width: 100%;
  min-width: 1024px;
  min-height: 1200px;
  position: relative;
}

/* 페이지 타이틀 위치 */
.sub .group {
  left: calc(50.00% - 194px);
  width: 393px;
  height: 169px;
}

.sub .text-wrapper-3 {
  margin-left: -5px;
  height: 78px;
  width: 208px;
  align-self: center;
}

.sub .p {
  width: 389px;
  height: 56px;
}

/* ========================================
   공지사항 목록 영역
   ======================================== */

.notice-container {
  position: absolute;
  top: 500px;
  left: calc(50% - 550px);
  width: 1100px;
}

.notice-container .notice-section-title {
  font-family: "Pretendard-Bold", Helvetica;
  font-weight: 700;
  color: #222222;
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0;
  line-height: normal;
}

/* 공지사항 테이블 */
.notice-container .notice-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid #222222;
}

.notice-container .notice-table th,
.notice-container .notice-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #eeeeee;
  font-family: "Pretendard-Regular", Helvetica;
  font-size: 15px;
  letter-spacing: 0;
  line-height: normal;
}

.notice-container .notice-table th {
  font-family: "Pretendard-SemiBold", Helvetica;
  font-weight: 600;
  color: #222222;
  font-size: 14px;
  background: #f5f5f5;
}

.notice-container .notice-table td {
  color: #444444;
}

.notice-container .notice-table__title {
  color: #222222;
  text-decoration: none;
  transition: color 0.3s ease;
}

.notice-container .notice-table__title:hover {
  color: #eb5f14;
}

.notice-container .notice-table__badge {
  display: inline-block;
  padding: 4px 10px;
  background: #eb5f14;
  color: #ffffff;
  border-radius: 4px;
  font-family: "Pretendard-SemiBold", Helvetica;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
}

.notice-container .notice-table__date {
  color: #999999;
  font-size: 14px;
}

/* 페이지네이션 */
.notice-container .pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.notice-container .pagination__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  font-family: "Pretendard-Regular", Helvetica;
  font-size: 14px;
  color: #666666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.notice-container .pagination__btn:hover,
.notice-container .pagination__btn--active {
  background: #eb5f14;
  border-color: #eb5f14;
  color: #ffffff;
}

/* 데이터 없음 메시지 */
.notice-container .notice-empty {
  text-align: center;
  padding: 60px 0;
  color: #999999;
  font-family: "Pretendard-Regular", Helvetica;
  font-size: 16px;
}

/* ========================================
   공지사항 상세 영역
   ======================================== */

.notice-detail-container {
  position: absolute;
  top: 500px;
  left: calc(50% - 400px);
  width: 800px;
}

.notice-detail-container .notice-detail__header {
  border-bottom: 2px solid #222222;
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.notice-detail-container .notice-detail__title {
  font-family: "Pretendard-Bold", Helvetica;
  font-weight: 700;
  color: #222222;
  font-size: 28px;
  margin-bottom: 16px;
  letter-spacing: 0;
  line-height: 1.4;
}

.notice-detail-container .notice-detail__meta {
  display: flex;
  gap: 24px;
  font-family: "Pretendard-Regular", Helvetica;
  font-size: 14px;
  color: #999999;
}

.notice-detail-container .notice-detail__content {
  font-family: "Pretendard-Regular", Helvetica;
  font-size: 16px;
  line-height: 2;
  color: #222222;
  min-height: 200px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.notice-detail-container .notice-detail__content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.notice-detail-container .notice-detail__content table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

.notice-detail-container .notice-detail__content iframe,
.notice-detail-container .notice-detail__content video {
  max-width: 100%;
  height: auto;
}

.notice-detail-container .notice-detail__content p {
  word-break: break-word;
  overflow-wrap: break-word;
}

.notice-detail-container .notice-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 60px;
  padding: 12px 24px;
  background: #f5f5f5;
  border-radius: 8px;
  font-family: "Pretendard-Medium", Helvetica;
  font-size: 14px;
  font-weight: 500;
  color: #222222;
  text-decoration: none;
  transition: all 0.3s ease;
}

.notice-detail-container .notice-detail__back:hover {
  background: #eb5f14;
  color: #ffffff;
}

.notice-detail-container .notice-detail__back svg {
  transition: fill 0.3s ease;
}

.notice-detail-container .notice-detail__back:hover svg {
  fill: #ffffff;
}
