.sv__news {
  background: url(/resource/sub/sv__ci.jpg);
}

.news__content {
  position: relative;
  background: #ffffff;
  border-radius: 50px 50px 0 0;
  margin-top: -80px;
  /* about이랑 살짝 겹치게 */
  padding: 100px 0 150px;
  z-index: 1;
}

.news__content .layout__basic {
  width: 1400px;
  margin: 0 auto;
}

@media (max-width:1280px) {
  .news__content {
    margin-top: -60px;
    padding: 100px 0 120px;
  }
}

@media (max-width:1024px) {
  .news__content {
    margin-top: -50px;
    border-radius: 40px 40px 0 0;
    padding: 90px 0 90px;
  }
}

@media (max-width:768px) {
  .news__content {
    margin-top: -45px;
    border-radius: 30px 30px 0 0;
    padding: 70px 0 80px;
  }
}

@media (max-width:390px) {
  .news__content {
    padding: 60px 0 80px;
    border-radius: 24px 24px 0 0;
  }
}

/* 기본 */
.board__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 8px 0 20px;
}

.btn-fill,
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1rem;
  border-radius: 8px;
  font-weight: 600
}

.btn-fill {
  background: #111;
  color: #fff;
  border: 1px solid #111
}

.btn-line {
  background: #fff;
  color: #111;
  border: 1px solid #ddd
}

.bar {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #ddd;
  margin: 0 8px
}

/* 검색 */
.board__head {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 검색 */
.notice__search {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  /* 버튼 absolute 기준 */
}

/* 셀렉트 */
.notice__search select {
  min-width: 92px;
  height: 40px;
  padding: 0 36px 0 18px;
  /* 오른쪽 여백 확보 */
  border-radius: 20px;
  background: #f0f0f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19.28 12.09'%3E%3Cpolyline fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' points='1 1 9.64 11.09 18.28 1'/%3E%3C/svg%3E") no-repeat right 12px center / 12px auto;
  font-size: 14px;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* IE용 화살표 제거 */
.notice__search select::-ms-expand {
  display: none;
}


/* 검색 인풋 */
.notice__search input {
  width: 220px;
  height: 40px;
  padding: 0 40px 0 12px;
  /* 오른쪽 버튼 자리 확보 */
  border-radius: 20px;
  background: #f0f0f0;
  font-size: 14px;
  border: none;
  outline: none;
}

/* 검색 버튼 (인풋 안쪽 우측 배치) */
.notice__search .btn-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  background: #111;
  cursor: pointer;

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21.81 21.81'%3E%3Ccircle fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' cx='8.19' cy='8.19' r='7.69'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' d='M14.46 15.46v.12a2.64 2.64 0 00.76 1.83l3.49 3.49a1.47 1.47 0 002 0l.14-.13a1.46 1.46 0 000-2L17.4 15.24a2.59 2.59 0 00-1.85-.77h-.12Z'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' d='M14.94 15l-1.32-1.32'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21.81 21.81'%3E%3Ccircle fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' cx='8.19' cy='8.19' r='7.69'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' d='M14.46 15.46v.12a2.64 2.64 0 00.76 1.83l3.49 3.49a1.47 1.47 0 002 0l.14-.13a1.46 1.46 0 000-2L17.4 15.24a2.59 2.59 0 00-1.85-.77h-.12Z'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' d='M14.94 15l-1.32-1.32'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 리스트 */
.newslist {
  margin-top: 18px;
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
}

.newsitem {
  list-style: none;
  border-bottom: 1px solid #e9e9e9
}

.newsitem:last-child {
  border-bottom: none;
}

.newsitem__link {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  padding: 30px 10px;
  align-items: center
}

.newsitem__thumb {
  width: 400px;
  height: 250px;
  border-radius: 18px;
  overflow: hidden;
  background: #f5f5f5
}

.newsitem__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.newsitem__body {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  height: 100%;
  padding: 20px 0;
}

.newsitem__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.newsitem__excerpt {
  font-size: 1.125rem;
  color: #555;
}

.newsitem__date {
  color: #999;
  font-size: .875rem;
  margin-top: auto;
}

.board__empty {
  padding: 48px 0;
  text-align: center;
  color: #777
}



/* 바닥 */
.notice__foot {
  display: flex;
  flex-direction: column;
  /* 세로 정렬 */
  gap: 12px;
  margin-top: 24px;
}

/* 페이지네이션: 가운데 정렬 */
.paginate {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.paginate a,
.paginate span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  color: #999;
  transition: all 0.25s ease;
}

.paginate a {
  background: transparent;
  border: none;
}

/* 현재 페이지 */
.paginate .pg_current {
  background: #111;
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  cursor: default;
  border-radius: 50%;
}

/* hover 효과 */
.paginate a:hover:not(.pg_current) {
  color: #000;
  font-weight: 900;
  background: transparent;
}

/* 이전/다음 화살표 */
.paginate .pg_start,
.paginate .pg_prev,
.paginate .pg_next,
.paginate .pg_end {
  font-size: 0;
  position: relative;
}

.paginate .pg_start::before,
.paginate .pg_prev::before,
.paginate .pg_next::before,
.paginate .pg_end::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.paginate .pg_start::before {
  transform: rotate(225deg);
}

.paginate .pg_prev::before {
  transform: rotate(225deg);
}

.paginate .pg_next::before {
  transform: rotate(45deg);
}

.paginate .pg_end::before {
  transform: rotate(45deg);
}

/* 색감 정돈 */
.paginate .pg_start,
.paginate .pg_prev,
.paginate .pg_next,
.paginate .pg_end {
  color: #999;
}

.paginate .pg_start:hover,
.paginate .pg_prev:hover,
.paginate .pg_next:hover,
.paginate .pg_end:hover {
  color: #111;
}

/* 버튼 영역: 오른쪽 정렬 */
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-line,
.btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
}

.btn-line {
  border: 1px solid #ddd;
  color: #333;
  background: #fff;
}

.btn-fill {
  background: #111;
  color: #fff;
}



/* 보기 */
.board-view {
  border-top: 2px solid #000;
  padding-top: 20px;
}

.view__head {
  margin-bottom: 40px;
}

.view__title {
  font-size: 1.5rem;
  text-align: center;
}

.view__meta {
  color: #777;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #eee;
}

.view__content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #222;
  padding-bottom: 30px;
  border-bottom: 2px solid #333;
}

.view__content b,
.view__content strong {
  font-weight: 700 !important;
}

.view__content img {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.view__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px
}

.view__nav {
  display: flex;
  justify-content: space-between;
  margin: 20px 0
}

.view__nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #333
}

.view__nav a span {
  color: #777;
  max-width: 460px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

/* ===== Write form (정렬만, 심플) ===== */

/* 공통 간격 */
.board-write .form__row {
  margin: 16px 0;
  gap: 10px;
}

/* 라벨 */
.form__label {
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  display: block;
}

/* 인풋/셀렉트 기본 */
.form__control,
.board-write input[type="text"],
.board-write input[type="email"],
.board-write input[type="url"],
.board-write select {
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

/* 파일 인풋 최소 정리 */
.board-write input[type="file"] {
  font-size: 14px;
}

/* 에디터 영역 */
.form__editor .wr_content,
.write__content_area {
  min-height: 320px;
}

@media (min-width: 768px) {

  /* 에디터는 라벨 옆 한 칸 전체 사용 */
  .form__editor,
  .write__content_area {
    grid-column: 2 / 3;
  }
}

/* 체크/힌트 */
.form__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 14px;
}

.form__file-hint {
  color: #999;
  font-size: 13px;
}

/* 옵션(공지/비밀) */
.form__options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form__options .opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #444;
}

.form__options input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #ccc;
  border-radius: 2px;
  background: #fff;
  position: relative;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.form__options input[type="checkbox"]:hover {
  border-color: #888;
}

.form__options input[type="checkbox"]:checked {
  background: #111;
  border-color: #111;
}

.form__options input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.form__tip {
  font-size: .875rem;
  color: #cccccc;
  margin-top: 0.5rem;
}

/* 액션 버튼 줄 */
.form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

/* 포커스 가시성(간단) */
.form__control:focus,
.board-write input[type="file"]:focus,
.board-write select:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, .08);
}

/* 접근성 */
.sr-only {
  position: absolute;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap
}

/* 반응형 */
@media (max-width: 768px) {
  .board {
    padding: 16px
  }

  .newsitem__link {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .newsitem__thumb {
    width: 100%;
    height: 200px;
    border-radius: 14px
  }
}

/* ===== 반응형 추가 ===== */

/* 1280px */
@media (max-width: 1280px) {

  .news__content .layout__basic {
    width: 90%;
  }

  .newsitem__link {
    grid-template-columns: 340px 1fr;
    gap: 30px;
  }

  .newsitem__thumb {
    width: 340px;
    height: 220px;
  }
}

/* 1024px */
@media (max-width: 1024px) {

  .newsitem__link {
    grid-template-columns: 300px 1fr;
    gap: 24px;
  }

  .newsitem__thumb {
    width: 300px;
    height: 200px;
  }

  .newsitem__title {
    font-size: 1.35rem;
  }

  .newsitem__excerpt {
    font-size: 1rem;
  }
}

/* 768px */
@media (max-width: 768px) {
  .news__content .layout__basic {
    width: 94%;
  }

  /* 리스트 단일 컬럼 */
  .newsitem__link {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0;
  }

  .newsitem__thumb {
    width: 100%;
    height: 200px;
    border-radius: 14px;
  }

  .newsitem__title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .newsitem__excerpt {
    font-size: 0.95rem;
  }

  /* 검색줄: 한 줄 무너짐 방지 */
  .board__head {
    justify-content: space-between;
    gap: 10px;
  }

  .notice__search input {
    width: 160px;
  }
}

/* 480px */
@media (max-width: 480px) {

  .board__title {
    font-size: 1.35rem;
  }

  .notice__search select {
    min-width: 80px;
    padding: 0 32px 0 14px;
  }

  .notice__search input {
    width: 140px;
  }

  /* 뉴스 리스트 */
  .newsitem__thumb {
    height: 170px;
  }

  .newsitem__title {
    font-size: 1.15rem;
  }

  .newsitem__excerpt {
    font-size: 0.9rem;
  }

  /* 콘텐츠 이미지 */
  .view__content img {
    width: 100%;
  }
}