@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@200..900&display=swap');

.sv__notice {
  background: url(/assets/img/sub/sv_customer.jpg);
}

section {
  padding: 80px 0 100px;
}

input[type=text]:focus,
input[type=password]:focus,
textarea:focus,
select:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* list.skin.php */
.list__top {
  display: flex;
  justify-content: end;
  margin-bottom: 50px;
}

.list__search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  padding: 6px;
  padding-right: 20px;
  border-radius: 999px;
}

.list__search__input {
  border: none;
  outline: none;
  padding: 6px 12px;
  font-size: 1.125rem;
  width: 300px;
  background-color: transparent;
  color: #222;
}

.list__search__input::placeholder {
  color: #ccc;
}

.list__search__btn img {
  width: 18px;
  transform: translateY(-1px);
}

.list__wrap {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #333333;
  margin-bottom: 50px;
}

/* list 칸 분배 */
.list__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 26px 0;
}

.list__meta__num {
  width: 150px;
  text-align: center;
}

.list__meta__title {
  flex: 1;
}

.list__meta__date {
  width: 200px;
  text-align: center;
}

.list__meta__views {
  width: 100px;
  text-align: center;
}

/* list header */
.list__header {
  background-color: #fafafa;
  border-bottom: 1px solid #cccccc;
  color: #1a1a1a;
  font-size: 1.125rem;
  font-weight: 500;
}

.list__header .list__meta__title {
  text-align: center;
}

/* list content */
.list__item {
  font-size: 1.125rem;
  font-weight: 400;
  color: #1a1a1a;
  border-bottom: 1px solid #cccccc;
  transition: all .3s;
  cursor: pointer;
}

.list__item:hover {
  background: #fcfcfc;
}

.list__item .list__meta__notice {
  color: #fff;
  background-color: var(--c-sub);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 1.125rem;
  font-weight: 400;
}

.list__item .list__meta__date,
.list__item .list__meta__views {
  color: #999999;
}

.board__empty {
  grid-column: 1 / -1;
  padding: 80px 0;
  text-align: center;
  color: #9b9b9b;
  font-size: 1.125rem;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
}

/* --- 게시판 리스트 반응형 --- */

/* 1. 노트북 (1440px) */
@media screen and (max-width: 1440px) {
  .list__meta__num {
    width: 100px;
  }

  .list__meta__date {
    width: 150px;
  }

  .list__meta__views {
    width: 80px;
  }
}

/* 2. 소형 노트북 (1280px) */
@media screen and (max-width: 1280px) {
  .list__search__input {
    width: 220px;
  }

  .list__item,
  .list__header {
    font-size: 1rem;
  }
}

/* 3. 태블릿 가로 (1024px) */
@media screen and (max-width: 1024px) {
  section {
    padding: 60px 0 80px;
  }

  .list__top {
    margin-bottom: 30px;
  }

  .list__search {
    width: 100%;
    justify-content: space-between;
  }

  .list__search__input {
    flex: 1;
  }

  /* 헤더(번호, 제목, 날짜 등 라벨) 숨기기 - 모바일은 카드형 느낌으로 감 */
  .list__header {
    display: none;
  }
}

/* 4. 태블릿 세로 (768px) */
@media screen and (max-width: 768px) {
  .list__meta {
    flex-wrap: wrap;
    /* 줄바꿈 허용 */
    padding: 20px 15px;
    gap: 10px;
  }

  /* 번호 숨기기 (공지사항 아이콘일 때는 유지) */
  .list__meta__num {
    display: none;
  }

  .list__item .list__meta__num {
    display: block;
    width: auto;
    text-align: left;
  }

  .list__meta__title {
    width: 100%;
    flex: none;
    /* 제목이 한 줄을 다 차지하게 함 */
    font-weight: 500;
    font-size: 1.1rem;
    order: 1;
    /* 가장 위로 */
  }

  .list__meta__date {
    width: auto;
    text-align: left;
    font-size: 0.85rem;
    order: 2;
  }

  .list__meta__views {
    width: auto;
    text-align: left;
    font-size: 0.85rem;
    order: 3;
    position: relative;
    padding-left: 10px;
  }

  /* 날짜와 조회수 사이에 구분점 넣기 */
  .list__meta__views::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 10px;
    background-color: #ddd;
  }
}

/* 5. 스마트폰 (480px) */
@media screen and (max-width: 480px) {
  .list__meta {
    padding: 15px 10px;
  }

  .list__meta__title {
    font-size: 1rem;
  }

  .list__search {
    padding: 4px 15px;
  }

  .list__search__input {
    font-size: 0.95rem;
  }

  .list__item .list__meta__notice {
    font-size: 0.85rem;
    padding: 3px 10px;
  }
}

/* 3. 글쓰기 폼 (Write) */
.write__form {
  width: 100%;
}

.write__row {
  margin-bottom: 30px;
  border-bottom: 1px solid #e9e9e9;
  padding-bottom: 20px;
}

.write__row label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #000;
}

.write__row input[type="text"],
.write__row select {
  width: 100%;
  border: none;
  padding: 5px 0;
  font-size: 1.15rem;
  background: transparent;
  outline: none;
  font-weight: 500;
}

.write__row .help {
  margin-top: 10px;
  font-size: 12px;
  color: #aaa;
}

/* 4. 상세보기 (View) */
.view__wrap {
  border-top: 1px solid #eee;
  margin-top: 20px;
  margin-bottom: 80px;
}

.view__head {
  padding: 20px 0;
  border-bottom: 1px solid #f2f2f2;
}

.view__cate {
  display: block;
  font-size: 13px;
  color: #9b9b9b;
  font-weight: 700;
  margin-bottom: 8px;
}

.view__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #231815;
  letter-spacing: -0.5px;
}

.view__meta {
  font-size: 13px;
  color: #bbb;
}

.view__meta span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  background: #eee;
  margin: 0 12px;
}

/* 다운로드 영역 (버튼식) */
.view__download-wrap {
  padding: 20px 0;
  border-bottom: 1px solid #f2f2f2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: #f8f8f8;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.2s;
}

.btn-download:hover {
  background: #231815;
  border-color: #231815;
}

.dw-name {
  font-size: 14px;
  color: #444;
  font-weight: 500;
}

.dw-count {
  font-size: 12px;
  color: #999;
  margin-left: 8px;
}

.btn-download:hover .dw-name {
  color: #fff;
}

.btn-download:hover .dw-count {
  color: rgba(255, 255, 255, 0.5);
}

/* 본문 */
.view__body {
  padding: 50px 0 0;
}

.view__thumb {
  width: 800px;
  margin: 0 auto;
  margin-bottom: 20px;
}

.view__thumb img {
  width: 100%;
  height: auto;
  border: 1px solid #eee;
}

.view__content {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #333;
}

/* 5. 페이지네이션 및 하단 버튼 통합 (Foot) */
.board__bottom {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 60px;
}

/* 페이지네이션 스타일 */
.board__bottom .paginate {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.board__bottom .paginate a,
.board__bottom .paginate strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  font-size: 0.95rem;
  font-weight: 600;
  background-color: transparent;
  color: #999999;
  transition: 0.2s;
  border-radius: 50%;
  text-decoration: none;
}

.board__bottom .paginate strong {
  background: var(--c-sub);
  color: #fff;
}

.board__bottom .paginate a {
  transform: none !important;
  transition: background-color 0.2s, color 0.2s !important;
}

.board__bottom .paginate a:hover {
  background-color: none;
}

.pg_start,
.pg_end {
  background: none;
  position: relative;
}

.pg_start::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 70%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #cccccc;
  border-right: 2px solid #cccccc;
  transform: translate(-50%, -50%) rotate(-135deg);
}

.pg_end::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 30%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #cccccc;
  border-right: 2px solid #cccccc;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 글쓰기/수정/삭제 등 액션 버튼 위치 */
.board__bottom .actions {
  display: flex;
  justify-content: end;
  gap: 8px;
}

/* 버튼 공통 규격 */
.board__bottom .btn-line,
.board__bottom .btn-fill,
.board__bottom .btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  height: 50px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  box-sizing: border-box;
}

.board__bottom .btn-line {
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
}

.board__bottom .btn-line:hover {
  background: #f9f9f9;
  border-color: #bbb;
}

.board__bottom .btn-fill {
  background: #231815;
  color: #fff;
  border: 1px solid #231815;
}

.board__bottom .btn-fill:hover {
  background: #444;
  border-color: #444;
}

.board__bottom .btn-red {
  border: 1px solid #ff4848;
  background: #fff;
  color: #ff4848;
}

.board__bottom .btn-red:hover {
  background: #ffd0d0;
  border-color: #ff8686;
}