/* DeeOne homepage news section */

.deeone-news-shell {
  background: #fff;
}

.news-section {
  max-width: none;
  margin: 0;
  padding: 0;
  background: #fff;
}

.news-header {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(36, 131, 198, 0.06), rgba(162, 32, 32, 0.04));
}

.news-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-heading {
  margin: 0;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: start;
  background: linear-gradient(135deg, #1e1e1e, #444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-viewall,
.news-viewall:visited,
.news-viewall:hover,
.news-viewall:focus {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  padding: 5px 14px;
  border: 1.5px solid #2483c6;
  border-radius: 20px;
  color: #2483c6;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: none;
  transition: all 0.22s ease;
}

.news-viewall:hover,
.news-viewall:focus {
  background: #2483c6;
  color: #fff;
}

.news-header p {
  margin: 0;
  color: #5f6667;
}

.news-header p a {
  color: #2483c6;
}

.news-header p a:hover {
  color: #a22020;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
}

.news-grid::before,
.news-grid::after {
  display: none;
}

.news-card {
  width: auto;
  min-height: 0;
  margin: 0;
  float: none;
}

.news-card__frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.news-card:hover .news-card__frame {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #cfcfcf;
}

.news-card__img-wrap {
  overflow: hidden;
  background: #ddd;
}

.news-card__img-wrap figure,
.news-card__img-wrap .listing-slider {
  margin: 0;
}

.news-card__img-wrap .format-icon {
  display: none;
}

.news-card__img-link,
.news-card__img-wrap a {
  display: block;
  text-decoration: none;
}

.news-card__img-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card__img-wrap img {
  transform: scale(1.04);
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px 16px;
}

.news-card__date {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2483c6;
}

.news-card__title,
.news-card__title .news-card__title-link,
.news-card__title .news-card__title-link:visited {
  margin: 0;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1e1e1e;
}

.news-card__title .news-card__title-link:hover {
  color: #2483c6;
}

.news-card__excerpt {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #777;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__read,
.news-card__read:visited,
.news-card__read:hover,
.news-card__read:focus {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  padding: 6px 16px;
  border: 1.5px solid #2483c6;
  border-radius: 20px;
  background: linear-gradient(135deg, #135c90, #5fafe7) !important;
  color: #fff !important;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: none;
  transition: filter 0.22s ease, border-color 0.22s ease;
}

.news-card__read:hover,
.news-card__read:focus {
  color: #fff !important;
  filter: brightness(1.1);
  border-color: #166197;
}

.nothing-found {
  margin: 0;
}

@media (max-width: 979px) and (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .news-card__body {
    padding: 12px 14px 16px;
    gap: 5px;
  }

  .news-card__title,
  .news-card__title .news-card__title-link,
  .news-card__title .news-card__title-link:visited {
    font-size: 0.84rem;
  }

  .news-card__excerpt {
    font-size: 0.74rem;
  }
}

@media (min-width: 768px) {
  .news-header {
    justify-items: center;
    text-align: center;
  }

  .news-header__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    gap: 14px;
  }

  .news-heading {
    grid-column: 2;
    justify-self: center;
    text-align: center;
    max-width: min(100%, 760px);
  }

  .news-viewall {
    grid-column: 3;
    justify-self: end;
  }

  .news-header p {
    max-width: min(100%, 760px);
  }
}

@media (max-width: 767px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-heading {
    font-size: 1.08rem;
  }
}

@media (max-width: 439px) {
  .deeone-news-shell {
    padding: 0 24px;
  }

  .news-header {
    padding: 12px 14px;
  }

  .news-viewall {
    padding: 5px 12px;
    font-size: 0.72rem;
  }
}
