* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  font-family: "Kanit", sans-serif;
  background: #134f83;
  background: -moz-linear-gradient(90deg, #0072ff 0%, #00c6ff);
  background: -webkit-linear-gradient(90deg, #0072ff 0%, #00c6ff);
  background: linear-gradient(90deg, #0072ff 0%, #00c6ff);
}
.allnews-wrap {
  min-height: 100%;
}
.allnews-main {
  overflow: auto;
  padding-bottom: 100px;
}
.cmt-news {
  margin: 0 100px 10px;
  background: transparent;
}
.head-news-title {
  text-align: center;
  padding: 40px 0 20px;
}
.head-news-title > h1 {
  position: relative;
  text-align: center;
  color: #fff;
  font-weight: bold;
  font-size: 2.5em;
}
.news-container {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 15px;
}
.list-news {
  /* max-width: 25vw; */
  flex: 0 0 calc(90% / 3);
  max-width: calc(90% / 3);
  /* padding: 15px; */
  margin: calc(10% / 6);
  background: #ffffff;
  /* box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); */
}

.news-img > a > img {
  width: 100%;
  height: 16vw;
  object-fit: cover;
}
.news-title-box {
  position: relative;
  height: 5.6em;
  padding: 10px 10px;
}
.news-title {
  text-align: left;
  line-height: 1.4em;
  word-wrap: break-word;
  overflow: hidden;
  max-height: 4.2em;
  padding: 0 10px;
}
.news-line:before {
  content: " ";
  width: 4px;
  left: 0;
  height: calc(100% - 20px);
  position: absolute;
  left: 10px;
  background: #ff6f4c;
}
.news-title > a {
  color: #111111;
  text-decoration: none;
  transition: ease 0.4s;
}
.news-title > a:hover {
  color: #ff6f4c;
  transition: ease 0.4s;
}
.nav-page-link {
  text-align: center;
  margin-bottom: 20px;
}
.list-page-number {
  text-align: center;
}
.list-page-number > a {
  color: #ffffff;
  text-decoration: none;
}
.list-page-number > a:hover {
  color: #ff6f4c;
}
.page-numbers {
  display: inline-block;
  background: #000;
  background-clip: padding-box;
  border-radius: 50%;
  text-align: center;
  padding: 0 1rem;
  min-height: 50px;
  min-width: 50px;
  line-height: 50px;
  font-size: 1em;
}
.current {
  color: #ff6f4c;
}
.next {
  background: transparent;
}
.next > span {
  color: #111111;
  font-weight: bold;
}

/* smaller screen */
@media (max-width: 900px) {
  .allnews-main {
    padding-bottom: 60px;
  }
  .cmt-news {
    padding-top: 70px;
    margin: 0 25px 10px;
    background: transparent;
  }
  .head-news-title {
    padding: 10px 0;
    /* background: #134f83; */
    transition: linear 0.4s;
  }
  .list-news {
    flex: 0 0 48%;
    max-width: 48%;
    margin-left: 1%;
    margin-right: 1%;
    /* padding: 15px 10px; */
  }
  .news-img > a > img {
    width: 100%;
    height: 25vw;
    object-fit: cover;
  }
  .news-title {
    margin-top: 0;
    text-align: left;
    padding: 0 20px 0 10px;
  }
  .news-title > a {
    color: #111111;
    text-decoration: none;
    transition: ease 0.4s;
  }
}

@media (max-width: 650px) {
  .list-news {
    flex: 0 0 98%;
    max-width: 98%;
    margin-left: 1%;
    margin-right: 1%;
    /* padding: 15px 10px; */
  }
  .news-img > a > img {
    width: 100%;
    height: 50vw;
    object-fit: cover;
  }
  .page-numbers {
    min-height: 35px;
    min-width: 35px;
    line-height: 35px;
    font-size: 1em;
    padding: 0;
  }
}
