/* ==========================================================================
   News & Insights ("Unfiltered") landing page
   Scoped under .sc-news so it never collides with the corespin theme.
   Rendered inside the theme's #main (full width, fixed header above it).
   ========================================================================== */

.sc-news {
  --sc-blue: #002f6c;
  --sc-blue-dark: #08254a;
  --sc-cyan: #24a9e0;
  --sc-orange: #f4762d;
  --sc-text: #222;
  --sc-muted: #707070;
  --sc-border: #d9dee5;
  --sc-soft: #f5f7fa;
  --sc-max: 1200px;

  font-family: Arial, Helvetica, sans-serif;
  color: var(--sc-text);
  line-height: 1.45;
}

.sc-news *,
.sc-news *::before,
.sc-news *::after {
  box-sizing: border-box;
}

.sc-news a {
  color: inherit;
  text-decoration: none;
}

.sc-news__shell {
  width: min(var(--sc-max), calc(100% - 48px));
  margin: 0 auto;
}

/* ---- Hero band (full-bleed) --------------------------------------------- */
.sc-news__hero {
  background:
    linear-gradient(100deg, rgba(0, 47, 108, .92), rgba(8, 37, 74, .84)),
    radial-gradient(circle at 85% 20%, rgba(36, 169, 224, .45), transparent 34%);
  color: #fff;
  padding: 48px 0 42px;
}

.sc-news__eyebrow {
  color: var(--sc-orange);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .09em;
  margin: 0 0 8px;
}

.sc-news__title {
  font-size: clamp(34px, 4vw, 58px);
  line-height: .98;
  margin: 0;
  letter-spacing: -.04em;
  color: #fff;
}

.sc-news__title-accent {
  color: var(--sc-orange);
}

.sc-news__intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

/* ---- Body / toolbar ----------------------------------------------------- */
.sc-news__body {
  padding: 42px 0 70px;
}

.sc-news__toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 310px) 1fr minmax(230px, 280px);
  align-items: center;
  gap: 22px;
  margin-bottom: 34px;
}

.sc-news__dropdown,
.sc-news__search-wrap {
  position: relative;
}

.sc-news__filter-label {
  position: absolute;
  left: 14px;
  top: -9px;
  background: #fff;
  padding: 0 6px;
  font-size: 11px;
  color: var(--sc-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 800;
  z-index: 2;
}

.sc-news__dropdown-trigger {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #bfc7d1;
  background: #fff;
  padding: 0 14px;
  color: #344252;
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.sc-news__dropdown-trigger:hover {
  border-color: #9aa7b5;
}

.sc-news__dropdown.is-open .sc-news__dropdown-trigger,
.sc-news__dropdown-trigger:focus-visible {
  border-color: var(--sc-blue);
  box-shadow: 0 0 0 3px rgba(36, 169, 224, .16);
  outline: none;
}

.sc-news__dropdown-trigger-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-news__dropdown-trigger-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sc-news__dropdown-count {
  color: var(--sc-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.sc-news__dropdown-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #7b8794;
  border-bottom: 2px solid #7b8794;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}

.sc-news__dropdown.is-open .sc-news__dropdown-chevron {
  transform: rotate(225deg) translateY(-1px);
}

.sc-news__dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #d5dce5;
  box-shadow: 0 16px 36px rgba(8, 37, 74, .14);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.sc-news__dropdown.is-open .sc-news__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sc-news__dropdown-menu[hidden] {
  display: block; /* animated via opacity/visibility; JS toggles [hidden] for a11y only */
}

.sc-news__dropdown-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  padding: 11px 12px;
  color: #344252;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.sc-news__dropdown-option:hover,
.sc-news__dropdown-option:focus-visible {
  background: var(--sc-soft);
  color: var(--sc-blue-dark);
  outline: none;
}

.sc-news__dropdown-option[aria-selected="true"] {
  background: rgba(0, 47, 108, .06);
  color: var(--sc-blue-dark);
}

.sc-news__dropdown-option-count {
  color: #8a95a3;
  font-size: 12px;
  font-weight: 800;
}

.sc-news__dropdown-option[aria-selected="true"] .sc-news__dropdown-option-count {
  color: var(--sc-orange);
}

.sc-news__search-wrap {
  display: flex;
  align-items: center;
}

.sc-news__search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a95a3;
  pointer-events: none;
}

.sc-news input[type="search"] {
  width: 100%;
  height: 44px;
  border: 1px solid #bfc7d1;
  background: #fff;
  border-radius: 0;
  padding: 0 14px 0 42px;
  color: #344252;
  font-size: 16px;
  outline: none;
}

.sc-news input[type="search"]:focus {
  border-color: var(--sc-blue);
  box-shadow: 0 0 0 3px rgba(36, 169, 224, .16);
}

.sc-news__result-summary {
  color: var(--sc-muted);
  font-size: 14px;
  text-align: center;
}

.sc-news__editor-preview {
  margin: -12px 0 26px;
  padding: 12px 16px;
  border-left: 4px solid var(--sc-orange);
  background: #fff7e7;
  color: #5c4313;
  font-size: 14px;
  font-weight: 700;
}

.sc-news__editor-preview code {
  background: rgba(0, 0, 0, .06);
  padding: 1px 5px;
}

/* ---- Results / cards ---------------------------------------------------- */
/* The fade is applied to the stage CONTENT (not the stage itself) so the
   loading overlay stays fully visible while the cards fade out. */
.sc-news__results-stage {
  position: relative;
}

.sc-news__results-stage > .sc-news__grid,
.sc-news__results-stage > .sc-news__empty {
  transition: opacity .28s ease;
}

.sc-news__results-stage.is-fading > .sc-news__grid,
.sc-news__results-stage.is-fading > .sc-news__empty {
  opacity: 0;
}

/* ---- Loading (feed AJAX: filters, search, pagination) ------------------- */
.sc-news__results-stage.is-loading {
  min-height: 220px;
}

.sc-news__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 64px;
  background: rgba(255, 255, 255, .72);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: 2;
}

.sc-news__results-stage.is-loading > .sc-news__loader {
  opacity: 1;
  visibility: visible;
}

.sc-news__spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(0, 47, 108, .18);
  border-top-color: var(--sc-orange);
  border-radius: 50%;
  animation: sc-news-spin .7s linear infinite;
}

@keyframes sc-news-spin {
  to { transform: rotate(360deg); }
}

.sc-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px 30px;
}

.sc-news__card {
  min-width: 0;
  position: relative;
}

.sc-news__card[hidden] {
  display: none;
}

.sc-news__card-link {
  display: block;
}

.sc-news__thumb {
  width: 100%;
  aspect-ratio: 1.52 / 1;
  overflow: hidden;
  background: #dfe6ee;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-news__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform .28s ease, filter .28s ease;
}

.sc-news__card:hover .sc-news__thumb img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.sc-news__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  color: rgba(8, 37, 74, .35);
  background:
    linear-gradient(135deg, rgba(0, 47, 108, .10), rgba(36, 169, 224, .18));
}

.sc-news__card-title {
  font-size: 20px;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 3px;
  color: #2b2f34;
  font-weight: 800;
}

.sc-news__card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sc-news__card-type {
  margin: 0;
  color: var(--sc-orange);
  font-size: 14px;
  font-weight: 800;
  /* text-transform: uppercase; */
  letter-spacing: .09em;
}

.sc-news__card-sub {
  margin: 4px 0 0;
  color: var(--sc-muted);
  font-size: 13px;
}

.sc-news__status-badge {
  font-size: 11px;
  line-height: 1;
  padding: 5px 7px;
  color: #fff;
  background: #6c7682;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .04em;
}

.sc-news__status-draft { background: #7c5aa6; }
.sc-news__status-pending { background: #bb7419; }
.sc-news__status-scheduled { background: #0d7490; }
.sc-news__status-expired { background: #747474; }

.sc-news__empty {
  display: none;
  padding: 60px 24px;
  text-align: center;
  background: var(--sc-soft);
  color: var(--sc-muted);
  border: 1px dashed var(--sc-border);
}

.sc-news__empty.is-visible {
  display: block;
}

/* ---- Pagination --------------------------------------------------------- */
.sc-news__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  font-size: 14px;
  font-weight: 700;
}

.sc-news__pagination[hidden] {
  display: none;
}

/* No page hopping while a feed request is in flight. */
.sc-news__pagination.is-loading {
  opacity: .45;
  pointer-events: none;
}

.sc-news__page-btn {
  background: none;
  border: 0;
  padding: 4px 8px;
  color: #30343a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sc-news__page-btn:hover:not(:disabled) {
  color: var(--sc-orange);
}

.sc-news__page-btn.is-active {
  color: var(--sc-orange);
}

.sc-news__page-btn:disabled {
  color: #b6bec7;
  cursor: default;
}

.sc-news__page-ellipsis {
  color: #30343a;
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .sc-news__dropdown-trigger,
  .sc-news__dropdown-chevron,
  .sc-news__dropdown-menu,
  .sc-news__dropdown-option,
  .sc-news__results-stage > .sc-news__grid,
  .sc-news__results-stage > .sc-news__empty,
  .sc-news__loader,
  .sc-news__thumb img {
    transition: none !important;
  }

  .sc-news__results-stage.is-fading > .sc-news__grid,
  .sc-news__results-stage.is-fading > .sc-news__empty {
    opacity: 1;
  }

  .sc-news__spinner {
    animation-duration: 1.4s;
  }
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .sc-news__toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .sc-news__result-summary {
    grid-column: 1 / -1;
    order: 3;
    text-align: left;
  }

  .sc-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .sc-news__shell {
    width: min(100% - 32px, var(--sc-max));
  }

  .sc-news__toolbar {
    grid-template-columns: 1fr;
  }

  .sc-news__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .sc-news__hero {
    padding: 36px 0 32px;
  }

  .sc-news__body {
    padding-top: 30px;
  }
}
