/* ===== 주요 래핑 (좌:목록 / 우:내용) ===== */
.notice-section-wrap {
  display: flex;
  flex-direction: row;
  gap: 30px;
  max-width: 1490px;
  margin: 0 auto;
  background: #fff;
  padding-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
}

/* ===== 좌측: 공지사항 목록 ===== */
.notice-list-section {
  flex: 1 0 45%;      /* grow: 1, shrink: 1, basis: 43%(640px)  */
  /* min-width: 450px; */
  /* max-width: 640px; */     /* 고정폭 */
  padding: 10px;
  border: 1px solid #dae4f3;
  border-radius: 10px;
  background: #f7fafd;
  box-sizing: border-box;
}
.notice-list-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}
.notice-list-title h3 {
  font-size: 1.16rem;
  font-weight: 500;
  margin: 0;
}
.notice-list-title img {
  width: 22px; height: 22px;
}

/* ===== 검색 영역 ===== */
.notice-search-area {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 0 10px;
  /* padding: 0px 20px 0px 20px; */
  margin-bottom: 8px;
  /* flex-wrap: wrap; */
}

.notice-search-controls {
  display: flex;
  /* flex-direction: column; */
  flex: 5 1 0;
  gap: 7px;
  min-width: 0;
}

.serch-btn-wrap {
  /* display: flex;
  flex: 5 1 0;
  align-items: center;
  justify-content: center; */
  min-width: 110px;
}

.notice-search-type,
#searchTerm {
  height: 40px;
  font-size: 1.03rem;
  border: 1px solid #0799F4;
  border-radius: 5px;
  padding: 0px 10px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.17s, background 0.17s;
  box-sizing: border-box;
}

#searchTerm {
  width: 250px;
}
.notice-search-type {
  min-width: 200px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  letter-spacing: 0.15em;
  background: #fff url('/resources/images/comm/icon/arrow_down.svg') no-repeat right 10px center/24px 24px;
  cursor: pointer;
}
.notice-search-type:focus {
  border-color: #43a2f7;
  background: #eef7fe;
  box-shadow: 0 0 0 2px #bae2ff;
  background: #eaf2fe url('/resources/images/comm/icon/arrow_down.svg') no-repeat right 5px center/30px 30px;
  box-shadow: 0 0 0 2px #bae2ff;
}
.notice-search-type::-ms-expand { display: none; }

/* 포커스 시 효과 */
#searchTerm:focus {
  border-color: #43a2f7;          /* 더 진한 파랑 */
  background: #eef7fe;            /* 연한 파랑 배경 */
  box-shadow: 0 0 0 2px #bae2ff;  /* 부드러운 외곽선 강조 */
}

.btn-notice-serch {
  height: 40px;
  font-size: 1.05rem;
  font-weight: 400;
  display: flex;
}
.btn-notice-serch img {
  width: 28px;
  height: 28px;
  margin-bottom: 5px;
  align-self: flex-end;
}
.btn-notice-serch:hover {
  background: #529efc;
}

/* ===== 목록 테이블 ===== */
.notice-table-area {
  /* width: 100%; */
  overflow-x: auto;
  padding: 0px 10px 0px 10px;
}
.notice-table {
  width: 100%;
  border-collapse: collapse;
  font-weight: 300;
  /* background: #fff; */
  table-layout: fixed; /* <-- 고정 테이블 레이아웃으로 너비 균등화 */
}
.notice-table-thead {
	background: #dbe6f6;
}
.notice-table-body {
	background: #8a50f703;
}

.notice-table thead.notice-table-thead tr.notice-thead-row th,
.notice-table tbody.notice-table-body tr.notice-tbody-row td {
  padding: 9px 8px;
  border: 1px solid #0799F4;
  font-size: 1.01rem;
  white-space: nowrap;
  letter-spacing: 0.09rem;
}
.notice-table thead.notice-table-thead tr.notice-thead-row th {
 /*  background: #eaf1fb; */
  font-weight: 400;
  text-align: center;
  color: #343a40;
}
.notice-thead-type, .notice-tbody-type { width: 120px;  text-align: left; }
.notice-thead-subject               { min-width: 180px; text-align: center; }
.notice-tbody-subject               {
  min-width: 180px;
  text-align: left;
  padding-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.notice-thead-wrdate, .notice-tbody-date   { width: 115px; text-align: center; }

.notice-tbody-row:not(.notice-tbody-row-empty):hover {
  background: #e2ebfa;
  cursor: pointer;
}

.notice-tbody-row-empty {
  background: transparent !important;
  cursor: default;
}

.notice-tbody-row-empty:hover {
  background: transparent !important;
}

/* 공지유형 셀도 말줄임 */
.notice-tbody-type {
  max-width: 120px;          /* 테이블에서 이미 width:120px; 잡았으니 맞춰줌 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 8px;
}

/* 제목은 이미 비슷하게 되어 있으니 이 정도만 보강 */
.notice-tbody-subject {
  min-width: 180px;
  text-align: left;
  padding-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* ===== 페이지네이션 ===== */
/* .pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 16px;
}
.pagination a {
  padding: 3px 10px;
  border-radius: 5px;
  text-decoration: none;
  color: #3072b3;
  border: 1px solid #b3c9e6;
  background: #fff;
  font-size: 0.96rem;
  transition: background 0.13s;
}
.pagination a.active, .pagination a:hover {
  background: #eaf1fb;
  color: #25549a;
} */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

/* 숫자(전체 원형) */
.pagination .page-num {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #2196f3;
  color: #2196f3;
  font-weight: 400;
  font-size: 1.03rem;
  background: #fff;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, font-weight 0.13s;
  margin: 0 1.5px;
  box-sizing: border-box;
  cursor: pointer;
}
/* 숫자 호버/포커스 */
.pagination .page-num:hover,
.pagination .page-num:focus {
  /* background: #f2f9fd; */   /* 버튼이랑 어울리는 아주 연한 파랑 */
  /* color: #1976d2; */        /* 메인 파랑보다 살짝 진한 색 */
  /* box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.12); */
  background: #e1f1ff;               /* 눈에 확 띄는 연파랑 */
  color: #0f62b7;                    /* 좀 더 진한 파랑 */
  border: 2px solid #2196f3;
  border-color: #2196f3;             /* 테두리도 같이 진하게 */
  transform: translateY(-1px);       /* 살짝 위로 */
  box-shadow: 0 2px 6px rgba(15, 98, 183, 0.25);
  outline: none;
  
}
/* 선택 페이지만 진한 배경+흰색+굵은 폰트 */
.pagination .page-num.active {
  background: #2196f3;
  color: #fff;
  font-weight: 600;
  border-color: #2196f3;
  z-index: 2;
}

/* Hover 효과 */
.pagination .page-num:not(.active):hover {
  background: #f2f9fd;
  color: #1976d2;
}

/* 이전/다음 버튼 */
.pagination .page-btn {
  padding: 0 8px;
  height: 30px;
  border-radius: 20px;
  background: #dfc8f6;
  color: #33376b;
  font-weight: 400;
  font-size: 1.03rem;
  border: 1px solid #2196f3;
  outline: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.14s, color 0.13s;
}
.pagination .page-btn:hover,
.pagination .page-btn:focus {
  background: #bb88ef;
  color: #fff;
}

.page-btn .icon-double-arrow {
  font-size: 1.03em;      /* 원하는 크기로 조절 (1.3em~2em도 가능) */
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  /* margin: 0 4px; */
  color: #33376b;         /* 필요시 색상 맞춤 */
  font-weight: 400;
}

/* ===== 우측: 상세내용 ===== */
.notice-contents-section {
  min-width: 450px;
  flex: 1 1 55%;
  border: 1px solid #dae4f3;
  border-radius: 10px;
  padding: 10px;
  background: #f7fafd;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 826px;
  /* overflow: hidden; */
}

.notice-contents-title {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 30px;
}
.notice-contents-title h3 {
  font-size: 1.16rem;
  font-weight: 500;
  margin: 0;
}
.notice-contents-title img {
  width: 22px; height: 22px;
}

/* ===== 상세 메타정보 (2행 2열 정렬) ===== */
.notice-contents-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0px 10px 0px 10px;
  margin-bottom: 5px;
  
}
.notice-meta-row {
  display: flex;
  flex-direction: row;
  gap: 30px;
  width: 100%;
}
.notice-meta-col {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
}
.notice-label {
  font-size: 1.03rem;
  font-weight: 400;
  color: #343a40;
  min-width: 76px;
  text-align: right;
}
.notice-value,
.notice-date-box {
  font-weight: 300;
  color: #21295b;
  min-width: 110px;
  display: inline-block;
}
.notice-date-box {
  background: #f4f8ff;
  border-radius: 4px;
  /* padding: 1px 8px; */
  text-align: left;
  /* margin: 0 2px; */
  min-width: 120px;
}
.notice-tilde {
  margin: 0 8px;
  color: #888;
  font-size: 1.15em;
}

/* ===== 상세내용 본문 ===== */
.notice-contents-body {
  flex: 1 1 auto;          /* 남는 세로공간 차지 */
  min-height: 0px;
  margin: 0px 20px 0px 20px;
  font-size: 1.03rem;
  color: #222;
  word-break: break-all;
  font-weight: 300;
  overflow-y: auto;
}

/* ===== 기타 ===== */
hr {
  margin: 5px 5px;
  border: none;
  border-top: 2px solid #43a2f7;
}

/* ===== 반응형 ===== */
@media (max-width: 1200px) {
  .notice-section-wrap { flex-direction: column; }
  .notice-list-section {
    flex: 1 1 0;            /* flex-grow 허용, basis 0 */
    min-width: 0;           /* 최소폭 해제 */
    max-width: 100%;        /* 최대폭 해제 */
    width: 100%;            /* 전체 */
  }
  .notice-contents-section {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .notice-section-wrap {
    padding: 4vw 0 10vw 0;
    gap: 10px;
  }
  .notice-list-section,
  .notice-contents-section {
    padding: 7px 2vw;
    font-size: 0.92rem;
  }
  .notice-list-title h3,
  .notice-contents-title h3 { font-size: 0.97rem; }
  .notice-tbody-subject { max-width: 50vw; }
}