.news-listing-page {
  padding-bottom: 72px;
  background: #f7f9fa;
}

.news-listing-page .listing-heading span {
  display: block;
  max-width: 720px;
  margin: 8px auto 0;
  color: #667085;
  font-size: 1rem;
}

.news-guide {
  border-left: 4px solid #1479d4;
}

.news-guide-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-toolbar {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, .32fr) minmax(160px, .32fr);
  align-items: end;
  gap: 14px;
}

.news-filter-field {
  min-width: 0;
  margin: 0;
}

.news-filter-field span {
  display: block;
  margin-bottom: 6px;
  color: #344054;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.news-toolbar .form-control {
  min-height: 46px;
  border-color: #cbd5df;
  border-radius: 8px;
}

.news-toolbar .form-control:focus {
  border-color: #1479d4;
  box-shadow: 0 0 0 3px rgba(20, 121, 212, .13);
}

.news-refine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 2px;
}

.news-date-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dce4e9;
  border-radius: 10px;
  background: #fff;
}

.news-date-tabs button {
  min-height: 40px;
  padding: 8px 14px;
  color: #475467;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-weight: 800;
}

.news-date-tabs button:hover,
.news-date-tabs button.is-active {
  color: #1268b4;
  background: #eaf5ff;
}

.news-clear-filters {
  padding: 8px 0;
  color: #1268b4;
  border: 0;
  background: transparent;
  font-weight: 800;
}

.news-listing-page .listing-summary {
  min-height: 42px;
  margin: 0;
  padding: 12px 0;
  color: #667085;
  font-weight: 700;
}

.news-grid > [class*="col-"] {
  display: flex;
}

.news-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px !important;
}

.news-card-img {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8ec;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.025);
}

.news-card-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #17212b;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 12px rgba(16, 24, 40, .12);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.news-card .community-card-meta span,
.news-card .community-card-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-card .community-card-meta i,
.news-card .community-card-foot i {
  color: #1479d4;
}

.news-card h3 a {
  color: inherit;
}

.news-card h3 a:hover,
.news-card h3 a:focus {
  color: #1268b4;
}

.news-card .community-card-body > p {
  overflow-wrap: anywhere;
}

.news-card .community-card-foot .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.news-card .community-card-foot .btn i {
  color: inherit;
  font-size: .75rem;
}

.news-card-featured {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr);
  min-height: 330px;
}

.news-card-featured .news-card-img,
.news-card-featured .news-card-img img {
  height: 100%;
  min-height: 330px;
}

.news-card-featured .community-card-body {
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
}

.news-card-featured h3 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.news-loading,
.news-empty-state {
  width: 100%;
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed #bdc9d2;
  border-radius: 12px;
  background: #fff;
}

.news-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #667085;
  font-weight: 700;
}

.news-empty-state > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #1479d4;
  border-radius: 50%;
  background: #eaf5ff;
  font-size: 1.35rem;
}

.news-empty-state h3 {
  margin: 14px 0 6px;
  color: #17212b;
}

.news-empty-state p {
  margin: 0 0 18px;
  color: #667085;
}

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

  .news-toolbar .listing-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .news-listing-page {
    padding-bottom: 56px;
  }

  .news-card-featured {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .news-card-featured .news-card-img,
  .news-card-featured .news-card-img img {
    height: 220px;
    min-height: 220px;
  }

  .news-card-featured .community-card-body {
    padding: 20px;
  }
}

@media (max-width: 575px) {
  .news-guide-actions,
  .news-guide-actions .btn,
  .news-toolbar {
    width: 100%;
  }

  .news-toolbar {
    grid-template-columns: 1fr;
  }

  .news-toolbar .listing-search {
    grid-column: auto;
  }

  .news-refine-row {
    align-items: stretch;
    flex-direction: column;
  }

  .news-date-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .news-date-tabs button {
    min-width: 0;
    padding: 8px 5px;
    font-size: .75rem;
  }

  .news-clear-filters {
    align-self: flex-start;
  }

  .news-card-featured .news-card-img,
  .news-card-featured .news-card-img img {
    height: 180px !important;
    min-height: 180px !important;
  }

  .news-card-featured h3 {
    font-size: 1.35rem;
  }

  .news-card .community-card-foot {
    align-items: stretch;
  }

  .news-card .community-card-foot .btn {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card-img img {
    transition: none;
  }
}
