@charset "UTF-8";
@import url(../css/reset.css);

html {
  font-size: 10px;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: #333;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.2;
  background-color: #fff;
}

/* 공통 wrapper */
.all-wrap {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

[class $= "inner"] {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

button {
  cursor: pointer;
}
#main {
  padding-top: 10rem;
}
/* 메인 배너 */
.slide-banner {
  position: relative;
  width: 100%;
  height: 80vh;
  /* overflow: hidden; */
  background: url('../img/notice-banner.png') center center / cover no-repeat;
}

.slide-banner .inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-text {
  position: absolute;
  left: 0%;
  top: 75%;
  /* transform: translate(-50,-50%); */
  /* margin-top: 60%; */
  text-align: left;
  color: #fff;
}

.hero-text p {
  font-size: clamp(1.8rem, 1.5vw, 2rem);
  margin-bottom: 1rem;
}

.hero-text h2 {
  font-size: clamp(3.5rem, 2vw, 4rem);
  font-weight: 600;
}



textarea:focus,
input:focus {
  outline: none;
}
.notice-list {
  padding: 13rem 0 15rem;
}
.notice-list h3 {
  margin-bottom: 6rem;
  font-size: clamp(1.4rem, 1.3vw, 1.6rem);
  color: #5C5C5C;
  font-weight: 600;
}

/* 게시글 리스트 테이블 */
.board-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 1.4rem;
  background-color: #fefefe;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
}

.board-table th {
  background-color: #f0f4f8;
  padding: 1.2rem;
  font-weight: 500;
  color: #444;
  border-bottom: 1px solid #dce1e7;
}

.board-table td {
  padding: 1.2rem;
  border-bottom: 1px solid #eee;
  text-align: center;
}
/* 제목 칸 넓힘 */
.title-cell {
  width: 40%;
  text-align: left;
}

/* 답변 상태 스타일 */
.status {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  color: #fff;
  font-size: 1.2rem;
}

.status.pending {
  background-color: #5b99d1;
}

.status.complete {
  background-color: #f05a28;
}

.board-table tbody tr:hover {
  background-color: #f0f0ff;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

/* 글쓰기 버튼 */
.write-btn {
  background-color: #3478ff;
  color: #fff;
  border: none;
  padding: 0.8rem 5rem;
  font-size: 1.4rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.write-btn:hover {
  background-color: #1c5fd9;
}

/* 검색창 */
.search-form {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.search-form select,
.search-form input {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1.3rem;
}

.search-form button {
  padding: 0.8rem 1.4rem;
  font-size: 1.3rem;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.search-form button:hover {
  background-color: #444;
}

/* 페이징 영역 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5rem;
}

.pagination a {
  padding: 0.6rem 1.2rem;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.3rem;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background-color: #eee;
}

.pagination a.active {
  background-color: #3478ff;
  color: #fff;
  border-color: #3478ff;
}




.mobile-br {
  display: none;
}


/* 태블릿 반응형 */
@media only screen and (max-width: 1280px) {
  [class $= "inner"] {
    padding: 0 3rem;
  }
  #main {
    padding: 0;
  }
  .slide-banner {
    background: url('../img/notice-banner_m.png') center center / cover no-repeat;
    height: 85vh;
  }
  .hero-text {
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    top: 83%;
    color: #fff;
    width: 100%;
  }
  .hero-text h2 {
    font-size: clamp(2rem, 1.5vw, 3rem);
    font-weight: 600;
    margin-bottom: 2rem;
  }
  .hero-text p {
    font-size: clamp(1.6rem, 2vw, 2.6rem);
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .notice-list {
    padding: 8rem 0 10rem;
  }
  .notice-list h3 {
    margin-bottom: 3rem;
  }

  /* 게시글 리스트 테이블 */
  .board-table {
    font-size: 1.2rem;
  }

  

  /* 글쓰기 버튼 */
  .write-btn {
    padding: 0.8rem 5rem;
    font-size: 1.2rem;
  }

  /* 검색창 */
  .search-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 3rem;
  }
  .search-form input {
    width: 80%;
  }

  .search-form button {
    width: 20%;
  }





  .mobile-br {
    display: block;
  }
  .pc-txt {
    display: none;
  }
}

/* 모바일 반응형 */
@media only screen and (max-width: 768px) {
  html {
    font-size: 9px;
  }

  [class $= "inner"] {
    padding: 0 2rem;
  }
  .notice-list {
    padding: 8rem 0 10rem;
  }

}

/* 작은 모바일 반응형 */
@media only screen and (max-width: 480px) {
  html {
    font-size: 7px;
  }

  [class $= "inner"] {
    padding: 0 1.5rem;
  }
  .notice-list {
    padding: 8rem 0 10rem;
  }


}