/* News list + detail — light polish, 150px banner, service rail */

.nybanner.wp-news-banner,
.nybanner.has-bg.wp-news-banner {
  height: 150px !important;
  margin-top: 0;
  background-image: none !important;
  background: linear-gradient(135deg, #599aff 0%, #F6821F 45%, #ff3200 100%) !important;
}

.nybanner.wp-news-banner .ny-title h1,
.nybanner.wp-news-banner .ny-title .ny-banner-label,
.nybanner.wp-news-banner .ny-title p.wow {
  font-size: 28px !important;
  margin: 0 0 6px;
  padding: 0;
  color: #fff !important;
}

.nybanner.wp-news-banner .ny-title p.wow1 {
  font-size: 14px !important;
  margin: 0;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.92) !important;
}

@media screen and (max-width: 768px) {
  .nybanner.wp-news-banner,
  .nybanner.has-bg.wp-news-banner {
    height: 150px !important;
    margin-top: 60px;
    background-image: none !important;
    background: linear-gradient(135deg, #599aff 0%, #F6821F 45%, #ff3200 100%) !important;
  }
  .nybanner.wp-news-banner .ny-title h1,
  .nybanner.wp-news-banner .ny-title .ny-banner-label,
  .nybanner.wp-news-banner .ny-title p.wow {
    font-size: 22px !important;
  }
}

.wp-news-page,
.wp-news-detail {
  --wp-c-ink: #14161c;
  --wp-c-muted: #5b6472;
  --wp-c-line: rgba(20, 22, 28, 0.1);
  --wp-c-soft: #f6f5f3;
  --wp-c-accent: #e51d21;
  --wp-c-dark: #16181f;
  background: #fff;
}

/* ---- List ---- */
.wp-news-page .wp-news-main {
  padding: 28px 0 48px;
}

/* Category tabs — override legacy black active style */
.wp-news-page .news-screen,
.wp-news-detail .news-screen {
  margin: 0 0 28px;
  padding: 0;
  border-bottom: 1px solid var(--wp-c-line);
  float: none;
  display: block;
  justify-content: flex-start;
}

.wp-news-page .news-screen .screenleft,
.wp-news-detail .news-screen .screenleft {
  float: none !important;
  width: 100%;
}

.wp-news-page .news-screen .screenleft ul,
.wp-news-detail .news-screen .screenleft ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wp-news-page .news-screen .screenleft ul li,
.wp-news-detail .news-screen .screenleft ul li {
  float: none !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  margin: 0 !important;
  background: transparent !important;
  text-align: left;
}

.wp-news-page .news-screen .screenleft ul li a,
.wp-news-detail .news-screen .screenleft ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent !important;
  color: var(--wp-c-muted) !important;
  font-size: 15px !important;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.wp-news-page .news-screen .screenleft ul li.on,
.wp-news-page .news-screen .screenleft ul li:hover,
.wp-news-detail .news-screen .screenleft ul li.on,
.wp-news-detail .news-screen .screenleft ul li:hover {
  background: transparent !important;
}

.wp-news-page .news-screen .screenleft ul li.on a,
.wp-news-page .news-screen .screenleft ul li:hover a,
.wp-news-detail .news-screen .screenleft ul li.on a,
.wp-news-detail .news-screen .screenleft ul li:hover a {
  color: var(--wp-c-accent) !important;
  border-bottom-color: var(--wp-c-accent);
  background: transparent !important;
}

.wp-news-page .newslist {
  width: 100%;
}

.wp-news-page .newslist .hotbom,
.wp-news-page .newslist .wp-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* clearfix :before/:after become fake grid cells — kill them */
.wp-news-page .newslist .hotbom.clearfix:before,
.wp-news-page .newslist .hotbom.clearfix:after,
.wp-news-page .newslist .wp-news-grid:before,
.wp-news-page .newslist .wp-news-grid:after {
  content: none !important;
  display: none !important;
}

.wp-news-page .newslist .hotbom .item,
.wp-news-page .newslist .item {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  border-radius: 0;
  border: 1px solid var(--wp-c-line);
  background: #fff;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.wp-news-page .newslist .item:hover {
  border-color: rgba(229, 29, 33, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 22, 28, 0.06);
}

.wp-news-page .newslist .item a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.wp-news-page .newslist .item .tmain {
  padding: 22px 20px;
}

.wp-news-page .newslist .item .tmain .time {
  display: block;
  font-size: 13px;
  color: var(--wp-c-muted);
  line-height: 1.4;
  padding-left: 0;
  background: none;
  margin-bottom: 10px;
}

.wp-news-page .newslist .item .tmain .title {
  display: block;
  font-size: 17px !important;
  font-weight: 500;
  color: var(--wp-c-ink);
  margin: 0 0 10px;
  height: auto;
  line-height: 1.45;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wp-news-page .newslist .item .tmain .h3,
.wp-news-page .newslist .item .tmain p.h3 {
  font-size: 14px !important;
  color: var(--wp-c-muted) !important;
  height: auto;
  margin: 0;
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.wp-news-page .pglist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 36px 0 0;
  padding: 0;
  text-align: center;
}

.wp-news-page .pglist a,
.wp-news-page .pglist span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--wp-c-line);
  background: #fff;
  color: var(--wp-c-ink);
  font-size: 14px;
  text-decoration: none;
  line-height: 1;
}

.wp-news-page .pglist a:hover,
.wp-news-page .pglist .hover,
.wp-news-page .pglist .on {
  border-color: var(--wp-c-accent);
  background: var(--wp-c-accent);
  color: #fff;
}

/* ---- Detail ---- */
.wp-news-detail .wp-news-detail-main {
  padding: 28px 0 40px;
}

.wp-news-detail .wp-news-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  gap: 36px;
  align-items: start;
}

.wp-news-detail .news-screen {
  margin: 0 0 24px;
}

.wp-news-detail .news-details,
.wp-news-detail .news-detailss {
  float: none !important;
  width: auto !important;
  margin: 0;
  padding: 32px 28px;
  border-radius: 0;
  border: 1px solid var(--wp-c-line);
  background: #fff;
}

.wp-news-detail .news-details .tou,
.wp-news-detail .news-detailss .tou,
.wp-news-detail .news-details h1.tou {
  margin: 0 0 12px;
  padding: 0 !important;
  font-size: clamp(24px, 2.4vw, 32px) !important;
  line-height: 1.35 !important;
  font-weight: 500;
  color: var(--wp-c-ink);
}

.wp-news-detail .news-details .date,
.wp-news-detail .news-detailss .date {
  display: block;
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--wp-c-line);
  font-size: 13px;
  color: var(--wp-c-muted);
}

.wp-news-detail .news-details p,
.wp-news-detail .news-detailss p {
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: #333;
  margin: 0 0 1.1em;
}

.wp-news-detail .news-details img,
.wp-news-detail .news-detailss img {
  max-width: 100%;
  height: auto;
}

.wp-news-detail .news-text {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--wp-c-line);
}

.wp-news-detail .news-text p {
  margin: 0 0 8px;
  font-size: 14px !important;
  color: var(--wp-c-muted);
}

.wp-news-detail .news-text a {
  color: var(--wp-c-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wp-news-detail .news-text a:hover {
  color: var(--wp-c-accent);
}

/* Service card rail */
.wp-news-detail .sidebar,
.wp-news-detail .wp-news-rail {
  float: none !important;
  width: auto !important;
  position: sticky;
  top: 96px;
}

.wp-news-rail__block {
  margin: 0 0 22px;
  padding: 18px 16px;
  border: 1px solid var(--wp-c-line);
  background: var(--wp-c-soft);
}

.wp-news-rail__block:last-child {
  margin-bottom: 0;
}

.wp-news-rail__title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--wp-c-ink);
  letter-spacing: 0.02em;
}

.wp-news-svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.wp-news-svc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--wp-c-line);
  color: var(--wp-c-ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wp-news-svc-list a:hover {
  border-color: rgba(229, 29, 33, 0.45);
  color: var(--wp-c-accent);
  transform: translateX(2px);
}

.wp-news-svc-list a span {
  flex: 1;
  min-width: 0;
}

.wp-news-svc-list a i {
  flex: 0 0 auto;
  font-style: normal;
  color: var(--wp-c-accent);
  font-size: 12px;
}

.wp-news-detail .section04 {
  padding-top: 8px;
}

/* Related news strip on detail */
.wp-news-detail .wp-news-related,
.wp-news-detail.contain .section04.wp-news-related {
  background: #fff !important;
  padding: 48px 0 56px !important;
  overflow: visible;
}

.wp-news-detail .wp-news-eyebrow {
  margin: 0 0 8px;
  font-size: 12px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp-c-accent);
  font-weight: 500 !important;
}

.wp-news-detail .wp-news-related__head {
  text-align: left;
  max-width: 40em;
  margin: 0 0 28px;
}

.wp-news-detail .wp-news-related__head h2,
.wp-news-detail .wp-news-related__head h5 {
  margin: 0 0 10px;
  padding: 0;
  font-size: clamp(24px, 2.4vw, 32px) !important;
  font-weight: 500;
  color: var(--wp-c-ink);
  line-height: 1.3;
}

.wp-news-detail .wp-news-related__head p {
  margin: 0;
  color: var(--wp-c-muted);
  font-size: 15px !important;
  line-height: 1.7;
}

.wp-news-detail .wp-news-related__list,
.wp-news-detail .wp-news-related .index-news {
  padding-top: 0;
  margin-bottom: 0;
  position: relative;
  text-align: center;
}

.wp-news-detail .wp-news-related .index-news .item,
.wp-news-detail .wp-news-related #owl-demo2 .item {
  margin: 0 8px !important;
  padding: 0 !important;
  max-width: none;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.wp-news-detail .wp-news-related .index-news .item:hover {
  box-shadow: none !important;
  transform: none !important;
}

.wp-news-related__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 210px;
  padding: 22px 20px;
  border: 1px solid var(--wp-c-line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.wp-news-related__card:hover {
  border-color: rgba(229, 29, 33, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 22, 28, 0.06);
  color: inherit;
}

.wp-news-related__card .time {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  background: none !important;
  font-size: 13px;
  color: var(--wp-c-muted);
  line-height: 1.4;
}

.wp-news-related__card .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px;
  height: auto !important;
  font-size: 17px !important;
  font-weight: 500;
  line-height: 1.45;
  color: var(--wp-c-ink);
  white-space: normal;
}

.wp-news-related__card .h3,
.wp-news-related__card p.h3 {
  flex: 1;
  margin: 0 0 16px !important;
  height: auto !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: var(--wp-c-muted) !important;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.wp-news-related__card em {
  margin-top: auto;
  font-style: normal;
  font-size: 13px;
  color: var(--wp-c-accent);
}

.wp-news-related__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto 0;
  padding: 0 22px;
  min-height: 42px;
  position: static;
  left: auto;
  bottom: auto;
  width: auto;
  height: auto;
  font-size: 14px !important;
  color: var(--wp-c-ink);
  text-decoration: none;
  border: 1px solid var(--wp-c-line);
  background: #fff;
  border-radius: 0;
  background-image: none !important;
}

.wp-news-related__more:hover {
  border-color: var(--wp-c-accent);
  color: var(--wp-c-accent);
  background-image: none !important;
}

/* Hide old sprite MORE if still present */
.wp-news-detail .wp-news-related .indexmore {
  display: none !important;
}

/* Carousel controls */
.wp-news-detail .wp-news-related .owl-theme .owl-controls {
  margin-top: 18px;
  text-align: center;
}

.wp-news-detail .wp-news-related .owl-theme .owl-controls .owl-buttons {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.wp-news-detail .wp-news-related .owl-theme .owl-controls .owl-buttons div,
.wp-news-detail .wp-news-related .section04 .owl-theme .owl-controls .owl-buttons div {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  opacity: 1 !important;
  border-radius: 0 !important;
  border: 1px solid var(--wp-c-line);
  background-color: #fff !important;
  background-image: none !important;
  font-size: 0;
}

.wp-news-detail .wp-news-related .owl-theme .owl-controls .owl-buttons div:hover {
  border-color: var(--wp-c-accent);
  background-color: #fff !important;
}

.wp-news-detail .wp-news-related .owl-theme .owl-controls .owl-buttons .owl-prev::before,
.wp-news-detail .wp-news-related .owl-theme .owl-controls .owl-buttons .owl-next::before {
  font-size: 16px;
  line-height: 1;
  color: var(--wp-c-ink);
}

.wp-news-detail .wp-news-related .owl-theme .owl-controls .owl-buttons .owl-prev::before {
  content: "←";
}

.wp-news-detail .wp-news-related .owl-theme .owl-controls .owl-buttons .owl-next::before {
  content: "→";
}

.wp-news-detail .wp-news-related .owl-theme .owl-controls .owl-buttons div:hover::before {
  color: var(--wp-c-accent);
}

@media screen and (max-width: 1024px) {
  .wp-news-page .newslist .hotbom,
  .wp-news-page .newslist .wp-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wp-news-detail .wp-news-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wp-news-detail .sidebar,
  .wp-news-detail .wp-news-rail {
    position: static;
  }
}

@media screen and (max-width: 640px) {
  .wp-news-page .newslist .hotbom,
  .wp-news-page .newslist .wp-news-grid {
    grid-template-columns: 1fr;
  }

  .wp-news-page .news-screen .screenleft ul,
  .wp-news-detail .news-screen .screenleft ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wp-news-page .news-screen .screenleft ul li a,
  .wp-news-detail .news-screen .screenleft ul li a {
    white-space: nowrap;
    padding: 0 14px;
    font-size: 14px !important;
  }

  .wp-news-detail .news-details,
  .wp-news-detail .news-detailss {
    padding: 22px 16px;
  }
}
