/* ===================== 공지사항 (ntc) =====================
   Figma : [AS_Notify]공지사항(1341:3382) / [announcement]공지사항 글상세(1341:3550)
           [M] 목록(1341:3947) / 검색결과 없음(1341:4605) / 상세(1341:4273)
*/
.ntc {
  width: 906px;
  max-width: 100%;
  margin: 0 auto;
  padding: 68px 0 80px;
  color: #343434;
  box-sizing: border-box;
}

.ntc * {
  box-sizing: border-box;
}

.ntc a {
  color: inherit;
  text-decoration: none;
}

.ntcTitle {
  margin: 0 0 40px;
  color: #181818;
  font-weight: 700;
  font-size: 44px;
  line-height: 44px;
  text-align: center;
}

/* ---------- 검색 ---------- */
.ntcControl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 16px;
}

.ntcTotal {
  margin: 0;
  flex-shrink: 0;
  color: #525252;
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
}

.ntcSearch {
  display: flex;
  gap: 6px;
  margin: 0;
}

.ntcSelect {
  position: relative;
  width: 110px;
}

.ntcSelect::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  border-top: 7px solid #575757;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  transform: translateY(-50%);
  pointer-events: none;
}

.ntcSelect select,
.ntcKeyword,
.ntcSearchBtn {
  height: 32px;
  border: 1px solid #c0c0c0;
  border-radius: 2px;
  background-color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.ntcSelect select {
  width: 100%;
  padding: 0 32px 0 12px;
  color: #1c1c1c;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.ntcKeyword {
  width: 137px;
  padding: 0 12px;
  color: #1c1c1c;
}

.ntcKeyword::placeholder {
  color: #6b6b6b;
}

.ntcSelect select:focus,
.ntcKeyword:focus {
  border-color: #3e98ff;
}

.ntcSearchBtn {
  padding: 0 12px;
  border-color: #3e98ff;
  color: #0f7cf9;
  font-weight: 500;
  cursor: pointer;
}

/* ---------- 목록 ---------- */
.ntcTable {
  border-top: 1px solid #333842;
}

.ntcRow {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 50px;
  padding: 13px 10px;
  border-bottom: 1px solid #e8eaee;
  background-color: #fff;
}

a.ntcRow:hover .ntcSubject {
  text-decoration: underline;
}

.ntcHead {
  min-height: 44px;
  padding: 10px;
  border-bottom-color: #333842;
  color: #1d1d1d;
  font-weight: 700;
  font-size: 13px;
  line-height: 24px;
  text-align: center;
}

.ntcNo {
  flex-shrink: 0;
  width: 40px;
  color: #6b6b6b;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}

.ntcSubject {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #343434;
  font-size: 14px;
  line-height: 25px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ntcMeta {
  display: flex;
  flex-shrink: 0;
  gap: 16px;
}

.ntcHit,
.ntcDate {
  flex-shrink: 0;
  color: #6b6b6b;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}

.ntcHit {
  width: 50px;
}

.ntcDate {
  width: 70px;
}

.ntcHead .ntcNo,
.ntcHead .ntcHit,
.ntcHead .ntcDate,
.ntcHead .ntcSubject {
  color: #1d1d1d;
  font-size: 13px;
  line-height: 24px;
}

/* 상단 고정 공지 */
.ntcPinned {
  background-color: #f3f5f7;
}

.ntcPinned .ntcSubject {
  font-weight: 700;
}

.ntcBadge {
  color: #393b61;
  font-weight: 700;
  font-style: normal;
  font-size: 12px;
}

.ntcEmpty {
  margin: 0;
  padding: 40px 0;
  border-bottom: 1px solid #e8eaee;
  color: #7d879b;
  font-size: 14px;
  text-align: center;
}

/* ---------- 페이징 (Common_l::get_paging) ---------- */
.ntcPaging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 40px;
}

.ntcPaging a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #343434;
  font-size: 16px;
  line-height: 16px;
}

.ntcPaging .number {
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 30px;
}

.ntcPaging .number.current {
  background-color: #2d2d2d;
  color: #fff;
  font-weight: 500;
}

.ntcPaging .previous,
.ntcPaging .next {
  color: #6b6b6b;
  font-weight: 500;
  font-size: 14px;
}

/* ===================== 상세 ===================== */
.ntcView {
  width: 1100px;
  padding: 50px 0 80px;
}

.ntcViewTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 20px;
}

.ntcBack {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #838383 !important;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
}

.ntcBack::before {
  content: "";
  width: 7px;
  height: 7px;
  border-bottom: 1.5px solid #838383;
  border-left: 1.5px solid #838383;
  transform: rotate(45deg);
}

.ntcNavBtns {
  display: flex;
  gap: 10px;
}

.ntcNavBtn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #ededed;
  border-radius: 4px;
  background-color: #f6f6f6;
  color: #6b6b6b !important;
  font-weight: 500;
  font-size: 13px;
}

.ntcNavBtn.is-disabled {
  opacity: 0.45;
  cursor: default;
}

.ntcViewHead {
  padding: 18px 10px;
  border-top: 2px solid #727272;
  border-bottom: 1px solid #eaeaea;
}

.ntcViewTitle {
  margin: 0;
  color: #1d1d1d;
  font-weight: 600;
  font-size: 18px;
  line-height: 30px;
  word-break: break-all;
}

.ntcViewInfo {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
  color: #6b6b6b;
  font-size: 12px;
  line-height: 12px;
}

.ntcViewBody {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 10px;
  border-bottom: 1px solid #eaeaea;
}

.ntcContent {
  color: #1d1d1d;
  font-size: 14px;
  line-height: 28px;
  word-break: break-all;
}

.ntcContent img {
  max-width: 100%;
  height: auto;
}

.ntcContent p {
  margin: 0;
}

.ntcFile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.ntcFileName {
  min-width: 0;
  overflow: hidden;
  color: #5d7de8;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ntcFileBtn {
  flex-shrink: 0;
  padding: 4px;
  background-color: #f3f6fc;
  color: #5d7de8;
  font-weight: 500;
  font-size: 13px;
  line-height: 17px;
}

/* PC 에서는 이전/다음 목록·목록 버튼 대신 상단 버튼 사용 */
.ntcAdjacent,
.ntcListBtnArea {
  display: none;
}

/* ===================== 모바일 ===================== */
@media (max-width: 768px) {
  .ntc {
    padding: 40px 20px 40px;
  }

  .ntcTitle {
    margin-bottom: 34px;
    color: #000;
    font-size: 24px;
    line-height: 26px;
  }

  .ntcControl {
    gap: 10px;
    margin-bottom: 14px;
  }

  .ntcTotal {
    font-size: 12px;
    line-height: 12px;
  }

  .ntcSearch {
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
  }

  .ntcSelect {
    flex-shrink: 0;
    width: 71px;
  }

  .ntcSelect::after {
    right: 10px;
    border-top-width: 6px;
    border-right-width: 6px;
    border-left-width: 6px;
  }

  .ntcSelect select,
  .ntcKeyword,
  .ntcSearchBtn {
    border-radius: 6px;
    font-size: 13px;
  }

  .ntcSelect select {
    padding: 0 24px 0 10px;
  }

  .ntcKeyword {
    flex: 1;
    width: auto;
    min-width: 0;
    max-width: 125px;
    padding: 0 10px;
  }

  .ntcSearchBtn {
    flex-shrink: 0;
    padding: 0 8px;
  }

  /* 목록 : 번호/헤더 숨기고 제목 + (조회수, 작성일) 2줄 */
  .ntcHead,
  .ntcNo {
    display: none;
  }

  .ntcRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 0;
    padding: 16px 10px;
  }

  .ntcSubject {
    width: 100%;
    font-size: 13px;
    line-height: 18.2px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .ntcMeta {
    gap: 16px;
  }

  .ntcHit,
  .ntcDate {
    width: auto;
    font-size: 10px;
    line-height: 10px;
  }

  .ntcEmpty {
    padding: 34px 0;
    border-bottom: 0;
    font-size: 12px;
  }

  .ntcPaging {
    gap: 16px;
    margin-top: 22px;
  }

  .ntcPaging a {
    font-size: 12px;
    line-height: 12px;
  }

  .ntcPaging .number {
    min-width: 22px;
    height: 22px;
    background-color: #f9f9fa;
  }

  .ntcPaging .previous,
  .ntcPaging .next {
    font-size: 12px;
  }

  /* 상세 */
  .ntcView {
    padding: 40px 19px 0;
  }

  .ntcViewTop {
    padding-bottom: 20px;
  }

  .ntcBack {
    color: #454c59 !important;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
  }

  .ntcBack::before,
  .ntcNavBtns {
    display: none;
  }

  .ntcViewHead {
    padding: 16px 0;
    border-top: 1px solid #333842;
    border-bottom: 1px solid #dfe2e7;
  }

  .ntcViewTitle {
    font-weight: 700;
    font-size: 18px;
    line-height: 27px;
  }

  .ntcViewBody {
    padding: 20px 0 30px;
    border-bottom: 0;
  }

  .ntcContent {
    line-height: 22.4px;
  }

  .ntcAdjacent {
    display: block;
    margin: 0 1px;
  }

  .ntcAdjRow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px;
    border-top: 1px solid #e8eaee;
  }

  .ntcAdjRow:last-child {
    border-bottom: 1px solid #e8eaee;
  }

  .ntcAdjLabel {
    flex-shrink: 0;
    width: 30px;
    color: #6b6b6b;
    font-size: 11px;
    line-height: 24px;
    text-align: center;
  }

  .ntcAdjTitle {
    min-width: 0;
    overflow: hidden;
    color: #343434;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .ntcAdjRow.is-empty .ntcAdjTitle {
    color: #99a2b2;
  }

  .ntcListBtnArea {
    display: flex;
    justify-content: flex-end;
    padding: 12px 1px 60px;
  }

  .ntcListBtn {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #99a2b2;
    border-radius: 8px;
    background-color: #f6f6f6;
    color: #454c59 !important;
    font-weight: 500;
    font-size: 12px;
  }
}
