/* ********** intro bg + setting ********** */
#intro {
  background-image: url(../img/service/bg.png);
}

.con_box {
  padding-top: 50px;
}

/* ********** content1 ********** */
/* 검색창 */
#content .searchs {
  width: 100%;
  height: 100px;
  overflow: hidden;
  background-color: #f5f5f5;
  position: relative;
}

/* 글쓰기 및 삭제버튼 */
#content .search_box .btn_box {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
}

#content .search_box button {
  width: 50px;
  height: 50px;
  background-color: #fff;
  box-sizing: border-box;
  border-radius: 5px;
  font-size: 2rem;
  box-shadow: none;
  margin: 0;
  margin-right: 10px;
}

#content .write {
  color: #2e77cc;
  border: 2px solid #2e77cc;
}

#content .del {
  color: #cc2e43;
  border: 2px solid #cc2e43;
}

#content .write:hover {
  background-color: #2e77cc;
  color: #fff;
  transition: all 0.3s;
}

#content .del:hover {
  background-color: #cc2e43;
  color: #fff;
  transition: all 0.3s;
}

/* 셀렉트박스 */
#content .select_box {
  display: flex;
  position: absolute;
  width: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 셀렉트 꾸미기 */
#content .select {
  position: relative;
  display: flex;
  overflow: hidden;
  width: 15%;
  height: 50px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background-color: #fff;
  margin-right: 10px;
}

#content .select::after {
  content: "\25BC";
  display: inline-block;
  text-align: center;
  line-height: 50px;
  position: absolute;
  right: 5px;
  color: #aaa;
  transition: 0.25s all ease;
  pointer-events: none;
  width: auto;
}

#content select {
  /* Reset Select */
  appearance: none;
  outline: 0;
  border: 0;
  padding: 0 1em;
  color: #1c1c1c;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
}

#content select::-ms-expand {
  display: none;
}

/* 검색창 */
#content .search {
  width: 80%;
  display: flex;
  justify-content: space-between;
}

#content .search input {
  height: 50px;
  outline: none;
  border: 1px solid #ccc;
  font-size: 1.6rem;
}

.search input::placeholder {
  font-size: 16px;
  color: #aaa;
  font-weight: 500;
}

.search input:first-child {
  width: 500px;
  padding-left: 10px;
}

.search input:last-child {
  width: 100px;
  background-color: #545454;
  color: #fff;
  border: none;
}

/* ********** content2 ********** */
/* 공지사항 */
#content article {
  display: block;
}

#content .check {
  position: relative;
  margin: 10px 50px;
  font-size: 1.8rem;
}

#content .check input[type="checkbox"] {
  left: -30px;
  top: 10px;
}

#content .con_box:nth-of-type(2) article .notice_box li {
  width: 25%;
  height: 300px;
  margin-bottom: 40px;
  float: left;
}

#content .notice {
  width: 90%;
  height: 100%;
  margin: auto;
  border: 1px solid #ccc;
  position: relative;
  cursor: pointer;
}

#content .notice::after {
  content: "";
  display: block;
  position: absolute;
  top: -1px;
  bottom: -1px;
  right: -1px;
  left: -1px;
  border: 5px solid #465dff;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s;
}

#content .notice:hover::after {
  visibility: visible;
  opacity: 1;
}

#content .notice a {
  color: #1c1c1c;
  display: block;
  padding: 50px 30px;
}

#content .notice a h1 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 2rem;
  line-height: 2.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-all;
}

#content .notice p {
  /* display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; */
  font-size: 1.6rem;
  font-weight: 500;
  color: #555;
  line-height: 2.2rem;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-all;
}

#content .notice a .etc {
  width: 80%;
  position: absolute;
  display: flex;
  justify-content: space-between;
  bottom: 10%;
  font-size: 1.8rem;
}

#content .notice a .etc span {
  color: #555;
  font-weight: 500;
}

#content .notice a .etc i {
  color: #465dff;
  font-size: 20px;
}

/* 체크박스 */
input[type="checkbox"] {
  position: absolute;
  z-index: 1;
  top: 10%;
  transform: translateY(-50%);
  left: 4%;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  outline: 0;
  appearance: none;
  border: 1px solid #dbdbdb;
  text-align: center;
  margin-right: 10px;
  cursor: pointer;
  margin-left: 0px;
}

input[type="checkbox"]::after {
  content: "\f00c";
  font-family: FontAwesome;
  color: #dbdbdb;
  text-align: center;
  line-height: 2rem;
}

input[type="checkbox"]:checked {
  background: #2e77cc;
  border-color: #2e77cc;
}

input[type="checkbox"]:checked::after {
  color: #fff;
}

/* 페이지이동버튼 */
#content .move {
  width: 100%;
  overflow: hidden;
  margin-top: 30px;
}

#content .move ul {
  margin: auto;
  text-align: center;
  display: flex;
  justify-content: center;
  font-size: 1.6rem;
}

#content .move li {
  float: left;
  margin-left: 10px;
  border: 1px solid #ccc;
}

#content .move li:first-child {
  margin-left: 0;
}

#content .move li a {
  width: 40px;
  height: 40px;
  line-height: 4rem;
  display: block;
  color: #999;
}

#content .move li.active {
  background-color: #555;
  border: none;
}

#content .move li.active a {
  color: #fff;
}

@media screen and (max-width: 1240px) {
  #content .con_box:nth-of-type(2) article .notice_box li {
    width: 33.33%;
    margin-bottom: 20px;
  }

  #content .notice {
    width: 94%;
  }
}

@media screen and (max-width: 1024px) {
  #content .btn_box,
  input[type="checkbox"],
  .check {
    display: none;
  }

  #content .con .select_box {
    justify-content: center;
  }
  #content .select {
    width: auto;
  }

  #content select {
    padding: 0 20px;
    padding-right: 30px;
  }

  #content .select_box {
    width: 80%;
  }

  #content .search input:first-child {
    width: 100%;
    margin-right: 10px;
  }

  #content .search input:last-child {
    width: 20%;
  }
}

@media screen and (max-width: 860px) {
  #content .con_box:nth-of-type(2) article .notice_box li {
    height: 280px;
  }

  #content .notice a {
    padding: 40px 20px;
  }
}

@media screen and (max-width: 760px) {
  #content .con_box:nth-of-type(2) article .notice_box li {
    width: 50%;
  }

  #content .con_box:nth-of-type(2) article .notice_box li {
    height: 260px;
  }
}

@media screen and (max-width: 620px) {
  #content .select_box {
    width: 90%;
  }

  #content select {
    padding: 0 20px;
    padding-right: 30px;
  }

  #content .search {
    width: 75%;
  }
  #content .search input:first-child {
    margin-right: 5px;
  }
  #content .search input:last-child {
    width: 30%;
  }
  #content .select_box {
    justify-content: space-between;
  }

  #content .select {
    margin-right: 0;
  }
}

@media screen and (max-width: 480px) {
  #content .con_box:nth-of-type(2) article .notice_box li {
    width: 100%;
  }

  #content .select_box {
    flex-wrap: wrap;
  }

  #content .select {
    width: 100%;
    margin-bottom: 5px;
  }
  #content .search {
    width: 100%;
  }

  #content .searchs {
    height: 150px;
  }
}
