.wrap {
  position: relative;
}

/* 공지사항 컨텐츠 영역 */
.noticeContent {
  width: 1180px;
  margin: 0 auto;
  padding: 70px 0 80px;
}

.noticeTitle {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 30px;
}

/* 공지사항 테이블 */
.noticeTable {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid #000;
}

.noticeTable thead th {
  background-color: #f8f9fa;
  font-weight: 500;
  font-size: 15px;
  text-align: center;
  height: 50px;
  border-bottom: 1px solid #ddd;
  color: #333;
}

.noticeTable thead th:nth-child(1) {
  width: 10%;
}

.noticeTable thead th:nth-child(2) {
  width: 60%;
}

.noticeTable thead th:nth-child(3) {
  width: 30%;
}

.noticeTable tbody tr {
  border-bottom: 1px solid #efefef;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.noticeTable tbody tr:hover {
  background-color: #f8f9fa;
}

.noticeTable tbody td {
  font-size: 15px;
  height: 55px;
  padding: 0 15px;
  color: #666;
}

.noticeTable tbody td:nth-child(1) {
  text-align: center;
  color: #999;
}

.noticeTable tbody td:nth-child(2) {
  text-align: left;
  color: #333;
  font-weight: 400;
}

.noticeTable tbody td:nth-child(3) {
  text-align: center;
}

/* 공지사항 없을 때 */
.noNotice {
  text-align: center;
  padding: 60px 0;
  color: #999;
  font-size: 15px;
}

/* 모달 스타일 */
.noticeModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.noticeModal.show {
  display: flex !important;
}

.noticeModalContent {
  background-color: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.noticeModalHeader {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 24px;
  position: relative;
  flex-shrink: 0;
}

.noticeModalHeader h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  padding-right: 40px;
  line-height: 1.4;
}

.noticeModalClose {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.noticeModalClose::before,
.noticeModalClose::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background-color: white;
  transform-origin: center;
}

.noticeModalClose::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.noticeModalClose::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.noticeModalClose:hover::before,
.noticeModalClose:hover::after {
  background-color: rgba(255, 255, 255, 0.7);
}

.noticeModalBody {
  padding: 30px 24px;
  overflow-y: auto;
  flex: 1;
}

.noticeModalDate {
  /* color: #999; */
  color: black;
  font-size: 14px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #efefef;
}

.noticeModalText {
  /* color: #555; */
  color: black;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.smallMenu {
  display: none;
}

/* 반응형 - 태블릿 */
@media screen and (min-width: 1024px) and (max-width: 1440px) {
  .noticeContent {
    width: 88%;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .noticeContent {
    width: 88%;
  }

  .noticeTable thead th:nth-child(1) {
    width: 12%;
  }

  .noticeTable thead th:nth-child(2) {
    width: 55%;
  }

  .noticeTable thead th:nth-child(3) {
    width: 33%;
  }

  .noticeTable tbody td {
    font-size: 14px;
    padding: 0 10px;
  }
}

/* 반응형 - 모바일 */
@media screen and (min-width: 481px) and (max-width: 767px) {
  .noticeContent {
    width: 90%;
    padding: 50px 0 60px;
  }

  .noticeTitle {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .noticeTable thead th {
    font-size: 14px;
    height: 45px;
  }

  .noticeTable thead th:nth-child(1) {
    width: 15%;
  }

  .noticeTable thead th:nth-child(2) {
    width: 50%;
  }

  .noticeTable thead th:nth-child(3) {
    width: 35%;
  }

  .noticeTable tbody td {
    font-size: 14px;
    height: 50px;
    padding: 0 8px;
  }

  .noticeModalContent {
    max-width: 95%;
  }

  .noticeModalHeader {
    padding: 18px 20px;
  }

  .noticeModalHeader h3 {
    font-size: 16px;
  }

  .noticeModalBody {
    padding: 24px 20px;
  }

  .noticeModalText {
    font-size: 14px;
  }
}

@media screen and (min-width: 0px) and (max-width: 480px) {
  .noticeContent {
    width: 90%;
    padding: 40px 0 50px;
  }

  .noticeTitle {
    font-size: 17px;
    margin-bottom: 15px;
  }

  .noticeTable thead th {
    font-size: 13px;
    height: 40px;
    padding: 0 5px;
  }

  .noticeTable thead th:nth-child(1) {
    width: 15%;
  }

  .noticeTable thead th:nth-child(2) {
    width: 50%;
  }

  .noticeTable thead th:nth-child(3) {
    width: 35%;
  }

  .noticeTable tbody td {
    font-size: 13px;
    height: 45px;
    padding: 0 5px;
  }

  .noticeModalContent {
    max-width: 95%;
    max-height: 85vh;
  }

  .noticeModalHeader {
    padding: 16px 18px;
  }

  .noticeModalHeader h3 {
    font-size: 15px;
  }

  .noticeModalClose {
    width: 24px;
    height: 24px;
    right: 15px;
  }

  .noticeModalClose::before,
  .noticeModalClose::after {
    width: 16px;
  }

  .noticeModalBody {
    padding: 20px 18px;
  }

  .noticeModalDate {
    font-size: 13px;
    margin-bottom: 15px;
    padding-bottom: 12px;
  }

  .noticeModalText {
    font-size: 14px;
    line-height: 1.7;
  }

  .noNotice {
    padding: 40px 0;
    font-size: 14px;
  }
}
