@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/advice-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: #333; */
}

.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;
}
.advice-list {
  padding: 13rem 0 15rem;
}
.advice-list h3 {
  margin-bottom: 6rem;
  font-size: clamp(1.4rem, 1.3vw, 1.6rem);
  color: #5C5C5C;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* 게시글 리스트 테이블 */
.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: #092251;
  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: #5b99d1;
}

/* 검색창 */
.search-form {
  display: flex;
  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.7rem 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: #092251;
  color: #fff;
  border-color: #092251;
}

.modal {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.modal-content {
  background: white; padding: 2rem; border-radius: 1rem;
  width: 300px; text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.modal-content input {
  width: 100%; padding: 1rem; font-size: 1.4rem;box-sizing: border-box;
  margin: 1rem 0; border-radius: 0.5rem; border: 1px solid #ccc;
}
.modal-content .btn-wrap {
  display: flex; justify-content: space-between; gap: 1rem;
}
.modal-content .btn-wrap button {
  flex: 1;
  padding: 0.8rem 0;
  font-size: 1.4rem;
  border: none; border-radius: 0.5rem;
  cursor: pointer;
}
.modal-content .btn-wrap button:first-child {
  background-color: #092251; color: white;
}
.modal-content .btn-wrap button:last-child {
  background-color: #ddd; color: black;
}




.mobile-br {
  display: none;
}


/* 태블릿 반응형 */
@media only screen and (max-width: 1280px) {
  [class $= "inner"] {
    padding: 0 3rem;
  }
  #main {
    padding: 0;
  }
  .slide-banner {
    background: url('../img/advice-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;
  }
  .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;
  }
  


  .advice-list {
    padding: 8rem 0;
  }
  .advice-list h3 {
    margin-bottom: 3rem;
    text-align: center;
  }
  .top-bar {
    display: block;
  }


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

  .board-table th {
    background-color: #f0f4f8;
    padding: 1.2rem 0;
    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.3rem 0.8rem;
    border-radius: 2rem;
    color: #fff;
    font-size: 1rem;
  }

  .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 {
    width: 100%;
  }

  .write-btn:hover {
    background-color: #5b99d1;
  }

  /* 검색창 */
  .search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .search-form select {
    width: 25%;
  }
  .search-form input {
    width: 55%;
  }
  .search-form button {
    width: 20%;
  }



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

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

  [class $= "inner"] {
    padding: auto 2rem;
  }


}

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

  [class $= "inner"] {
    padding: 0 1.5rem;
  }



}