@layer reset, var, header, footer, contents-header;

@import url("config.css");
@import url("article.css") layer(contents-header);

.page-wrapper {
  overflow: hidden;
} /* end of .page-wrapper */

.index {
  width: 100%;
  height: 18.75rem;
  background-image: url("../img/news.jpg");
  background-position: center;
  background-size: cover;
  padding-top: 17.275rem;
} /* end of .index */

.index .spotNav {
  width: 17rem;
  background-color: #000;
  padding: 0 10px;
} /* end of .index .spotNav */

.index .spotNav span {
  color: var(--bg-color5);
  font-weight: 600;
  font-size: var(--font-size5);
} /* end of .index .spotNav span */

/*========== 게시판 본문 영역 ==========*/
.news {
  padding-top: 3.75rem;
  margin-bottom: 10rem;
} /* end of .terms */

.news .news_wrap {
  width: 100%;
  border-top: 2px solid var(--fgcolor);
} /* end of .news .news_wrap */

.news .news_wrap .list > div {
  border-bottom: 1px solid #ddd;
} /* end of .news .news_wrap .list > div */

.news .news_wrap .list > div:last-child {
  border-bottom: none;
} /* end of .news .news_wrap .list > div:last-child */

.news .news_wrap .list > div.top {
  border-bottom: 1px solid #ddd;
} /* end of .news .news_wrap .list > div.top */

.news .news_wrap .list {
  border-bottom: 1px solid var(--fgcolor);
} /* end of .news .news_wrap .list */

.news .news_wrap .list .top {
  display: grid;
  font-size: 1.2rem;
  /* 조회수 있을 시 그리드 비율 */
  /*grid-template-columns: 11% 52% 16% 12% 9%;*/
  /* 조회수 없을 시 그리드 비율 */
  grid-template-columns: 8% 64% 16% 12%;
} /* end of .news .news_wrap .list .top */

.news .news_wrap .list .top div {
  color: var(--fgcolor);
} /* end of .news .news_wrap .list .top div */

.news .news_wrap .list a > div {
  display: grid;
  font-size: 1.2rem;
  /* 조회수 있을 시 그리드 비율 */
  /*grid-template-columns: 11% 52% 16% 12% 9%;*/
  /* 조회수 없을 시 그리드 비율 */
  grid-template-columns: 8% 64% 16% 12%;
  color: #000;
} /* end of .news .news_wrap > div > div */

.news .news_wrap .list div div {
  text-align: center;
  padding: 0.6rem 0;
} /* end of .news .news_wrap .list .top .title */

.news .news_wrap .list .top {
  font-weight: 600;
} /* end of .news .news_wrap .list .top .title */

.news .news_wrap .list .content .title {
  text-align: left;
  text-wrap: wrap;
} /* end of .news .news_wrap .list .content .title */

.news .news_wrap .list .content .title #cnt {
  margin-left: 1rem;
  color: #fff;
  background-color: var(--font-color2);
  padding: 0 1rem;
  border-radius: 1rem;
} /* end of .news .news_wrap .list .content .title #cnt */

.news .news_wrap .list .content div {
  color: var(--fgcolor);
} /* end of .news .news_wrap .list .content div */

.news .news_wrap .list .content.active div {
  color: var(--bg-color6);
  font-weight: 600;
} /* end of .news .news_wrap .list .content.active */

.news .news_wrap .list .content .title .subject {
  color: #000;
} /* end of .news .news_wrap .list .content .title .subject */

.news .news_wrap .list #empty {
  padding: 1.5rem;
  text-align: center;
  font-size: 1.2rem;
  color: red;
} /* end of .news .news_wrap .list #empty */

/*========== 인포 텍스트 ==========*/
.news .container .news_wrap .infoTxt {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 4rem;
} /* end of .news .container .news_wrap .text */

.news .container .news_wrap .infoTxt .left p {
  color: var(--fgcolor);
} /* end of .news .container .news_wrap .infoTxt .left p */

/*========== 게시판 검색바 영역 ==========*/
.news .container .news_wrap .search {
  margin-top: 1rem;
  width: 100%;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
} /* end of .news .container .news_wrap .search */

.news .container .news_wrap .search .searchBar {
  width: 42rem;
  height: 2.7rem;
  background-color: transparent;
  position: relative;
  display: grid;
  grid-template-columns: 80% 20%;
} /* end of main .search .s */

.news .container .news_wrap .search .searchBar i {
  position: absolute;
  top: 22%;
  left: 0.8rem;
  font-size: 1.6rem;
  color: var(--bg-color6);
} /* end of main .search .searchBar i */

.news .container .news_wrap .search .searchBar #searchIp {
  border: 0.19rem solid #d4d4d4;
  background-color: transparent;
  outline: none;
  padding: 0 3.5rem;
  color: var(--fgcolor);
} /* end of main .search .searchBar #searchIp */

.news .container .news_wrap .search .searchBar #searchIp {
  border-right: none;
  font-size: 1rem;
  background-color: transparent;
} /* end of .news .container .news_wrap .search .searchBar #searchIp */

.news .container .news_wrap .search .searchBar #schBtn {
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  background-color: var(--bg-color6);
  border: 0.19rem solid var(--bg-color6);
  transition: all 0.3s ease-in-out;
} /* end of main .search .searchBar #schBtn */

.news .container .news_wrap .search .searchBar #schBtn:hover {
  background-color: transparent;
  color: var(--bg-color6);
} /* end of main .search .searchBar #schBtn:hover */

.news .container .news_wrap .search .searchBar #listBtn {
  color: #fff;
  font-weight: 600;
  background-color: var(--font-color2);
  border: 0.19rem solid var(--font-color2);
  transition: all 0.3s ease-in-out;
  margin-left: 1rem;
  font-size: 1.2rem;
} /* end of main .search .search #listBtn */

.news .container .news_wrap .search .searchBar #listBtn:hover {
  background-color: #fff;
  color: var(--font-color2);
} /* end of main .search .searchBar #listBtn:hover */

/*========== 게시판 인포 영역 ==========*/
.news .container .news_wrap .info {
  display: flex;
  justify-content: center;
} /* end of .news .container .news_wrap .info */

.news .container .news_wrap .info .writeBtn {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
} /* end of .news .container .news_wrap .info */

.news .container .news_wrap .info .writeBtn button {
  padding: 0.6rem 3.5rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  background-color: var(--bg-color6);
  border: 0.19rem solid var(--bg-color6);
  transition: all 0.3s ease-in-out;
} /* end of .news .container .news_wrap .info .writeBtn button */

.news .container .news_wrap .info .writeBtn button:hover {
  background-color: var(--bgcolor);
  color: var(--bg-color6);
} /* end of .news .container .news_wrap .info writeBtn button:hover */

.news .container .news_wrap .info .writeBtn #listBtn2 {
  margin-left: 1rem;
  color: #fff;
  background-color: var(--font-color2);
  border: 0.19rem solid var(--font-color2);
} /* end of .news .container .news_wrap .info .writeBtn button */

.news .container .news_wrap .info .writeBtn #listBtn2:hover {
  background-color: var(--bgcolor);
  color: var(--font-color2);
} /* end of .news .container .news_wrap .info writeBtn button:hover */

/*========== 페이지네이션 ==========*/
.news .container .news_wrap .infoTxt .right .downSide {
  display: flex;
  justify-content: flex-end;
  align-items: center;
} /* end of .news .container .news_wrap .downSide */

.news .container .news_wrap .infoTxt .right .downSide .pagenation a {
  display: inline-block;
  text-decoration: none;
  color: var(--bg-color6);
  padding: 0.5rem 0.8rem;
  border: thin solid #d4d4d4;
  transition: all 0.3s;
  font-size: 0.8rem;
  font-weight: bold;
  margin: 0 0.1rem;
}

.news .container .news_wrap .infoTxt .right .downSide .pagenation a.active {
  background-color: var(--bg-color6);
  color: #fff;
}

.news .container .news_wrap .infoTxt .right .downSide .page-numbers {
  display: inline-block;
}

.news .container .news_wrap .infoTxt .right .downSide .page-numbers a {
  margin: 0 0.1rem;
} /* end of main .page-numbers */

/* ========== Responsive ========== */
/* 테블릿 가로 */
@media (max-width: 992px) {
  .container {
    padding: 0 0.9375rem;
  } /* end of .container */
}

/* 테블릿 세로 */
@media (max-width: 768px) {
  .news .container .news_wrap .list .content .title {
    text-indent: 3rem;
  } /* end of .news .container .news_wrap .list .content .title */

  :is(.news .container .news_wrap .list)
    :is(.top, .content)
    :is(.num, .writer, .count) {
    display: none;
  } /* end of :is(.news .container .news_wrap .list) :is(.top, .content) :is(.num, .writer, .count) */

  :is(.news .container .news_wrap .list) :is(.top, .content) {
    display: grid;
    grid-template-columns: 70% 30%;
  } /* end of :is(.news .container .news_wrap .list) */
}

/* 모바일 */
@media (max-width: 575px) {
  .news .container .news_wrap .list .content .title {
    text-indent: 1rem;
  } /* end of .news .container .news_wrap .list .content .title */

  .news .container .news_wrap .info {
    flex-direction: column;
  }

  .news .container .news_wrap .infoTxt {
    grid-template-columns: 1fr;
  } /* end of .news .container .news_warp .infoTxt */

  .news .container .news_wrap .infoTxt .left {
    display: none;
  } /* end of .news .container .news_wrap .infoTxt .left */
}

/* 모바일 */
@media (min-width: 360px) and (max-width: 574px) {
  .news .container .news_wrap .search .searchBar {
    width: 21rem;
  }
}
