@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;
}

/* list.skin.php */
.list__top input[type=text]:focus,
.list__top input[type=password]:focus,
.list__top textarea:focus,
.list__top select:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.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;
  }
}

/* write.skin.php */
.contact input[type=text]:focus,
.contact input[type=password]:focus,
.contact textarea:focus,
.contact select:focus {
  border: 1px solid #cccccc !important;
  outline: none !important;
  box-shadow: none !important;
}

.contact {
  padding: 80px 0 0;
}

.contact .inner__sub {
  border-radius: 140px 140px 0 0;
  background-color: #f7f7f7;
}

.contact form {
  padding: 100px 70px 60px;
}

.contact__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
}

.contact__row {
  margin-bottom: 32px;
}

.contact__row__grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.contact__row__grid span {
  display: flex;
  align-items: center;
  color: #cccccc;
  font-size: 1.125rem;
  font-weight: 500;
}

.contact label {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  color: #3e3a39;
  margin-bottom: 10px;
}

.contact label strong {
  color: var(--c-sub);
}

.contact input,
.contact textarea,
.contact select {
  width: 100%;
  border: 1px solid #cccccc;
  font-size: 1.25rem;
  color: #666;
  padding: 10px 8px;
}

.contact select {
  padding: 9px 8px;
}

.contact textarea {
  resize: none;
  height: 300px;
}

.contact input:focus {
  outline: none;
}

/* 전체 캡챠 영역 */
#captcha.captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
}

#captcha legend {
  display: none;
}

/* 캡챠 이미지 */
#captcha #captcha_img {
  width: 120px;
  height: 40px;
  object-fit: cover;
  border: 1px solid #cccccc;
}

#captcha #captcha_key {
  width: 130px;
  height: 40px;
  padding: 10px 8px;
  font-size: 1.25rem;
  border-radius: 0;
}

#captcha #captcha_key.required {
  background-image: none !important;
}

#captcha #captcha_mp3,
#captcha #captcha_reload {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid #cccccc;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  text-indent: -9999px;
  /* 글자 숨김 */
  overflow: hidden;
}

#captcha_mp3:hover,
#captcha_reload:hover {
  background: #f5f5f5;
}

#captcha #captcha_mp3::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/common/icon_volumeup.svg') no-repeat center;
  background-size: 18px 18px;
}

#captcha #captcha_reload::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/common/icon_refresh.svg') no-repeat center;
  background-size: 18px 18px;
}

#captcha_info {
  display: none;
}

.contact__submit__wrap {
  text-align: center;
  margin: 80px 0;
}

.contact__submit__wrap p {
  margin-bottom: 20px;
}

.contact__submit__wrap label {
  font-size: 1rem;
  font-weight: 300;
}

.contact__submit__check {
  position: absolute;
  opacity: 0;
  left: 0;
}

.contact__submit__check + label {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  display: inline-block;
}

/* 바깥 박스(테두리) */
.contact__submit__check + label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 1px solid #3e3a39;
  background: #fff;
}

/* 안쪽 채움(기본은 숨김) */
.contact__submit__check + label::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--c-sub);
  opacity: 0;
}

.contact__submit__check:checked + label::after {
  opacity: 1;
}

.contact__submit__wrap button {
  background-color: var(--c-sub);
  color: #ffffff;
  padding: 18px 50px;
  text-transform: uppercase;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 999px;
}

/* --- Contact Us 페이지 반응형 --- */

/* 1. 노트북 (1440px) */
@media screen and (max-width: 1440px) {
  .contact .inner__sub {
    width: 95%;
    margin: 0 auto;
  }

  .contact form {
    padding: 80px 50px 50px;
  }

  .contact__grid {
    gap: 40px;
  }
}

/* 2. 소형 노트북 (1280px) */
@media screen and (max-width: 1280px) {
  .contact .inner__sub {
    border-radius: 80px 80px 0 0;
  }

  .contact input,
  .contact textarea {
    font-size: 1.1rem;
  }

  .contact label {
    font-size: 1.1rem;
  }
}

/* 3. 태블릿 가로 (1024px) */
@media screen and (max-width: 1024px) {
  .contact {
    padding: 40px 0 0;
  }

  .contact .inner__sub {
    border-radius: 50px 50px 0 0;
  }

  .contact form {
    padding: 60px 30px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    /* 2열에서 1열로 전환 */
    gap: 0;
  }
}

/* 4. 태블릿 세로 (768px) */
@media screen and (max-width: 768px) {
  .contact label {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .contact input,
  .contact textarea {
    padding: 12px;
    font-size: 1rem;
  }

  .contact textarea {
    height: 200px;
  }

  .contact__row__grid {
    gap: 10px;
  }

  /* 캡챠 영역 반응형 */
  #captcha.captcha {
    flex-wrap: wrap;
    /* 캡챠 요소가 넘치면 다음 줄로 */
    gap: 8px;
  }

  #captcha input {
    width: 100%;
    margin-top: 5px;
  }

  /* 입력창을 아래로 가득 채움 */

  .contact__submit__wrap {
    margin: 40px 0;
  }

  .contact__submit__wrap button {
    width: 100%;
    /* 버튼을 가로로 꽉 채움 */
    padding: 15px;
    font-size: 1.1rem;
  }
}

/* 5. 스마트폰 (480px) */
@media screen and (max-width: 480px) {
  .contact form {
    padding: 40px 20px;
  }

  .contact__row__grid {
    gap: 4px;
  }

  /* 체크박스 텍스트 가독성 */
  .contact__submit__wrap label {
    font-size: 0.9rem;
    letter-spacing: -0.5px;
  }

  #captcha_img {
    width: 100px;
    height: 40px;
  }

  #captcha_mp3,
  #captcha_reload {
    width: 40px;
    height: 40px;
  }
}

/* 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;
}