/* Responsive news listing and article pages. */
.news-hero img {
  object-fit: cover;
}

.news .newsmain,
.news .newshead,
.news .newsheadtitle,
.news .newslist,
.news .newslistcontent,
.news .searchmain {
  box-sizing: border-box;
  width: min(1031px, calc(100% - 48px));
}

.news .newsbg {
  height: auto;
  min-height: 760px;
  padding: 1px 0 72px;
}

.news .search {
  height: auto;
  min-height: 66px;
  padding: 8px 0;
  background-color: #151515;
  background-size: cover;
}

.news .searchmain {
  height: auto;
}

.news .searchmain form {
  display: grid;
  grid-template-columns: 150px minmax(240px, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.news .searchinfo {
  float: none;
}

.news-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.news .searchinput {
  box-sizing: border-box;
  float: none;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 14px;
  font-size: 18px;
}

.news .searchbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  float: none;
  min-width: 132px;
}

.news .newshead {
  display: flex;
  align-items: center;
  float: none;
}

.news .newshead img,
.news .newshead font,
.news .newshead span {
  float: none;
}

.news .newshead font {
  flex: 0 0 80px;
}

.news .newshead span {
  margin-top: 0;
}

.news .newslist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  float: none;
}

.news .newsitem {
  box-sizing: border-box;
  float: none;
  width: 100%;
  margin: 0 !important;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease;
}

.news .newsitem:hover {
  border-color: rgba(216, 196, 125, 0.5);
  transform: translateY(-3px);
}

.news .newsimg {
  float: none;
  width: 100%;
  height: auto;
  aspect-ratio: 315 / 220;
  overflow: hidden;
}

.news .newsimg img {
  float: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.news .newsitem:hover .newsimg img {
  transform: scale(1.035);
}

.news .newstitle {
  box-sizing: border-box;
  float: none;
  width: 100%;
  height: auto;
  min-height: 54px;
  margin: 12px 0 0;
  line-height: 27px;
}

.news .newsmark {
  display: flex;
  align-items: center;
  float: none;
  width: 100%;
}

.news .newsmark img,
.news .newsmark font {
  float: none;
}

.news .page {
  position: static;
  display: flex;
  justify-content: center;
  float: none;
  width: 100%;
  height: auto;
  margin: 42px 0 0;
}

.news .link_page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 38px;
  height: 38px;
  margin: 3px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  color: #aaa;
  line-height: 36px;
}

.news .newsheadtitle {
  float: none;
  height: auto;
  min-height: 56px;
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 28px;
  line-height: 1.5;
}

.news .newslistcontent {
  float: none;
  padding: 0 24px 48px;
  color: #ddd;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.news .newslistcontent p {
  margin: 0 0 1.25em;
}

.news .newslistcontent img,
.news .newslistcontent video,
.news .newslistcontent iframe {
  max-width: 100% !important;
  height: auto !important;
}

.news .newslistcontent table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  white-space: normal;
}

@media (max-width: 900px) {
  .news .newslist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news .searchmain form {
    grid-template-columns: 130px minmax(180px, 1fr) auto;
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .news-hero {
    position: relative;
    top: auto;
    z-index: 0;
    float: none;
    height: 220px;
  }

  .news-hero img {
    float: none;
    height: 220px;
  }

  .news {
    float: none;
    margin-top: 0;
    padding-bottom: 64px;
  }

  .news .newsmain,
  .news .newshead,
  .news .newsheadtitle,
  .news .newslist,
  .news .newslistcontent,
  .news .searchmain {
    width: 100%;
  }

  .news .newsbg {
    min-height: 0;
    padding: 1px 14px 52px;
    background-position: top center;
  }

  .news .search {
    padding: 14px;
  }

  .news .searchmain form {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 10px;
  }

  .news .searchinfo {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    font-size: 15px;
    line-height: 22px;
  }

  .news .searchinput {
    height: 44px;
    font-size: 16px;
  }

  .news .searchbtn {
    min-width: 0;
    height: 44px;
    padding: 0 10px;
    border-width: 1px;
    font-size: 14px;
  }

  .news .newshead {
    height: auto;
    margin: 30px 0 24px;
  }

  .news .newshead img {
    width: 44px;
    height: auto;
  }

  .news .newshead font {
    display: none;
  }

  .news .newshead span {
    margin-left: 14px;
    font-size: 25px;
  }

  .news .newslist {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news .newsitem {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 10px;
    border-radius: 10px;
  }

  .news .newsitem:hover {
    transform: none;
  }

  .news .newsimg {
    grid-row: 1 / span 2;
    width: 118px;
    height: 92px;
    aspect-ratio: auto;
    border-radius: 7px;
  }

  .news .newstitle {
    min-height: 48px;
    margin: 0;
    color: #ddd;
    font-size: 15px;
    line-height: 24px;
  }

  .news .newsmark {
    align-self: end;
    margin: 0;
    font-size: 12px;
  }

  .news .newsmark img {
    width: 16px;
    height: 15px;
  }

  .news .newsmark font {
    margin-left: 7px;
  }

  .news .page {
    margin-top: 28px;
    overflow-x: auto;
  }

  .news .link_page {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    line-height: 34px;
  }

  .news-detail .newsbg {
    padding-top: 18px;
  }

  .news .newsheadtitle {
    margin: 0 0 22px;
    padding: 0 4px 20px;
    font-size: 22px;
    line-height: 1.45;
    text-align: left;
  }

  .news .newslistcontent {
    padding: 0 2px 24px;
    font-size: 15px;
    line-height: 1.85;
  }
}

@media (max-width: 380px) {
  .news .newsitem {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .news .newsimg {
    width: 96px;
    height: 82px;
  }
}
