/* ============================================================
   Module: News & Insights
   ============================================================ */

.news-insights {
  position: relative;
  padding-top: 0;
}

/* When the hero has a background image, push the listing back to normal
   padding from the section's pt class. */
.news-insights .news-insights__listing {
  padding-top: 32px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.news-insights__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Keep top padding to clear the fixed header; trim bottom so vertical
     alignment has real range to move within min-height. */
  padding: clamp(100px, 11vw, 140px) 0 clamp(20px, 3vw, 40px);
  margin-bottom: clamp(40px, 6vw, 80px);
  color: var(--gs-white);
  overflow: hidden;
  isolation: isolate;
}

/* Minimum heights */
.news-insights__hero--h-viewport { min-height: 100vh; }
.news-insights__hero--h-lg       { min-height: 80vh; }
.news-insights__hero--h-md       { min-height: 60vh; }
.news-insights__hero--h-sm       { min-height: 40vh; }

/* No-image background — gradient, matches hero-carousel fallback */
.news-insights__hero:not(.has-bg) {
  background: linear-gradient(135deg, var(--gs-navy-dark) 0%, var(--gs-navy) 55%, var(--gs-navy-light) 100%);
}
.news-insights__hero--overlay-blue:not(.has-bg) {
  background: linear-gradient(135deg, var(--gs-blue-dark) 0%, var(--gs-blue) 55%, var(--gs-blue-dark) 100%);
}

.news-insights__hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

/* Overlay (only renders when an image is set) — same left-to-right
   gradient pattern as hero-carousel; opacity applied inline. */
.news-insights__hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, #0A1F3D 0%, #0088FA85 60%);
  z-index: -1;
}
.news-insights__hero--overlay-blue .news-insights__hero-overlay {
  background-image: linear-gradient(90deg, var(--gs-blue) 0%, #0088FA85 60%);
}

.news-insights__hero-inner {
  width: 100%;
  max-width: var(--gs-container);
}

/* Content block — anchors to the LEFT of the full-width inner with a
   comfortable text width. Center alignment moves it to the middle. */
.news-insights__hero-content {
  max-width: 720px;
}
.news-insights__hero--align-center .news-insights__hero-content {
  margin-inline: auto;
  text-align: center;
}
.news-insights__hero--align-center .news-insights__filter {
  justify-content: center;
}

/* Vertical alignment */
.news-insights__hero--valign-top    { justify-content: flex-start; }
.news-insights__hero--valign-middle { justify-content: center; }
.news-insights__hero--valign-bottom { justify-content: flex-end; }

/* Text color — dark variant for light overlays / no-image light bg */
.news-insights__hero--text-dark                         { color: var(--gs-navy); }
.news-insights__hero--text-dark .news-insights__heading { color: var(--gs-navy); }
.news-insights__hero--text-dark .news-insights__intro   { color: var(--gs-text); }

.news-insights__hero-inner {
  position: relative;
}

.news-insights__heading {
  font-family: var(--gs-font-display);
  font-size: var(--gs-h1);
  font-weight: 700;
  color: var(--gs-white);
  line-height: 1.1;
  text-shadow: var(--gs-text-shadow-hero);
  margin-bottom: 12px;
}

.news-insights__intro {
  font-size: 18px;
  margin-bottom: 32px;
  color: rgba(255,255,255,.92);
}

/* ── Filter pills ─────────────────────────────────────────── */
.news-insights__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.news-insights__pill {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.92);
  color: var(--gs-navy);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
  white-space: nowrap;
}

.news-insights__pill:hover {
  background: var(--gs-white);
  transform: translateY(-1px);
}

.news-insights__pill.is-active {
  background: var(--gs-orange);
  border-color: var(--gs-orange);
  color: var(--gs-white);
}

/* ── Listing wrap ─────────────────────────────────────────── */
.news-insights__listing {
  position: relative;
}

/* ── Featured card ────────────────────────────────────────── */
.news-insights__featured-wrap {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.news-insights__featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--gs-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,25,60,.07);
  transition: box-shadow .25s ease, transform .25s ease;
}

.news-insights__featured:hover {
  box-shadow: 0 16px 44px rgba(15,25,60,.12);
}

.news-insights__featured-media {
  position: relative;
  display: block;
  min-height: 340px;
  background: var(--gs-navy);
  overflow: hidden;
}

.news-insights__featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.news-insights__featured:hover .news-insights__featured-media img {
  transform: scale(1.04);
}

.news-insights__featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: var(--gs-blue);
  color: var(--gs-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
}

.news-insights__featured-body {
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-insights__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.news-insights__date {
  //display: inline-flex;
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--gs-text);
  font-size: 14px;
}

.news-insights__featured-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  color: var(--gs-text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

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

.news-insights__featured-title a:hover { color: var(--gs-blue); }

.news-insights__featured-excerpt {
  color: var(--gs-text);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.news-insights__featured-excerpt p { margin-bottom: 12px; }
.news-insights__featured-excerpt > *:first-child { margin-top: 0; }
.news-insights__featured-excerpt > *:last-child { margin-bottom: 0; }

.news-insights__featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(15,25,60,.08);
}

.news-insights__byline {
  color: var(--gs-text);
  font-size: 14px;
}

.news-insights__read-more {
  display: inline-block;
  color: var(--gs-orange);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.news-insights__read-more-text {
  display: inline-block;
  position: relative;
}

.news-insights__read-more-text::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
  color: var(--gs-orange);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .2s ease, transform .2s ease;
}

/* External / new-window variant: swap the arrow for an external-link icon. */
.news-insights__read-more.is-external .news-insights__read-more-text::after,
.news-insights__read-more[target="_blank"] .news-insights__read-more-text::after {
  content: "";
  vertical-align: -2px;
  width: 14px;
  height: 14px;
  background-color: var(--gs-orange);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/><polyline points='15 3 21 3 21 9'/><line x1='10' y1='14' x2='21' y2='3'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/><polyline points='15 3 21 3 21 9'/><line x1='10' y1='14' x2='21' y2='3'/></svg>") no-repeat center / contain;
}

.news-insights__read-more:hover .news-insights__read-more-text::after,
.news-insights__read-more:focus-visible .news-insights__read-more-text::after {
  opacity: 1;
  transform: translateX(0);
}

/* ── Eyebrow (category label) ─────────────────────────────── */
.news-insights__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-insights__eyebrow--blue   { color: var(--gs-blue); }
.news-insights__eyebrow--orange { color: var(--gs-orange); }
.news-insights__eyebrow--navy   { color: var(--gs-navy); }
.news-insights__eyebrow--gray   { color: var(--gs-text); }

/* ── Grid ─────────────────────────────────────────────────── */
.news-insights__grid {
  display: grid;
  gap: clamp(20px, 2.2vw, 32px);
}

.news-insights__grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-insights__grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-insights__grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1360px) {
  .news-insights__grid--cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .news-insights__grid--cols-3,
  .news-insights__grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .news-insights__grid,
  .news-insights__grid--cols-2,
  .news-insights__grid--cols-3,
  .news-insights__grid--cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ── Card ─────────────────────────────────────────────────── */
.news-insights__card {
  display: flex;
  flex-direction: column;
  background: var(--gs-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15,25,60,.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  border: 1px solid transparent;
}

.news-insights__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15,25,60,.10);
}

.news-insights__card.is-featured {
  border-color: var(--gs-orange);
}

.news-insights__card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e9ecf5 0%, #dde1ee 100%);
  overflow: hidden;
}

.news-insights__card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-insights__card:hover .news-insights__card-media img {
  transform: scale(1.05);
}

.news-insights__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15,25,60,.25);
}

.news-insights__card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-insights__card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.news-insights__card-date {
  //display: inline-flex;
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gs-text);
}

.news-insights__card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gs-text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.news-insights__card.is-featured .news-insights__card-title {
  color: var(--gs-orange);
}

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

.news-insights__card-title a:hover { color: var(--gs-blue); }
.news-insights__card.is-featured .news-insights__card-title a:hover { color: var(--gs-orange-dark); }

.news-insights__card-excerpt {
  color: var(--gs-text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.news-insights__card-excerpt p { margin-bottom: 12px; }
.news-insights__card-excerpt > *:first-child { margin-top: 0; }
.news-insights__card-excerpt > *:last-child { margin-bottom: 0; }

.news-insights__card-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(15,25,60,.08);
  color: var(--gs-text);
  font-size: 13px;
}

.news-insights__card-foot-left { min-width: 0; }
.news-insights__card-foot-right { justify-self: end; }

.news-insights__card-readmore {
  display: inline-block;
  color: var(--gs-orange);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.news-insights__card-readmore-text {
  display: inline-block;
  position: relative;
}

.news-insights__card-readmore-text::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
  color: var(--gs-orange);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .2s ease, transform .2s ease;
}

/* External / new-window variant: swap the arrow for an external-link icon. */
.news-insights__card-readmore.is-external .news-insights__card-readmore-text::after,
.news-insights__card-readmore[target="_blank"] .news-insights__card-readmore-text::after {
  content: "";
  vertical-align: -2px;
  width: 14px;
  height: 14px;
  background-color: var(--gs-orange);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/><polyline points='15 3 21 3 21 9'/><line x1='10' y1='14' x2='21' y2='3'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/><polyline points='15 3 21 3 21 9'/><line x1='10' y1='14' x2='21' y2='3'/></svg>") no-repeat center / contain;
}

.news-insights__card-readmore:hover .news-insights__card-readmore-text::after,
.news-insights__card-readmore:focus-visible .news-insights__card-readmore-text::after {
  opacity: 1;
  transform: translateX(0);
}

/* ── Hidden state for filter ──────────────────────────────── */
.news-insights__item[hidden] { display: none !important; }

/* Reload animation — every still-visible item re-fades-in-and-up after a
   filter click, staggered by --gs-reload-delay so they cascade one after
   the other. Mirrors the grid-cards sortable behavior. */
@keyframes gs-news-insights-reload {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
.news-insights__item.is-reloading,
.news-insights__featured-wrap.is-reloading {
  animation: gs-news-insights-reload .4s ease-out var(--gs-reload-delay, 0s) both;
}

.news-insights__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gs-text);
  font-size: 16px;
}

/* ── Load more ────────────────────────────────────────────── */
.news-insights__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 4vw, 48px);
}

.news-insights__more [data-load-more][hidden] { display: none; }

/* ── Newsletter ───────────────────────────────────────────── */
.news-insights__newsletter-wrap {
  margin-top: clamp(60px, 8vw, 100px);
}

.news-insights__newsletter {
  color: var(--gs-white);
  border-radius: 14px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px);
  text-align: center;
}

/* Background — colors come from the gs-bg--{value} utility classes; the
   utility's white is transparent, so render an explicit white here. */
.news-insights__newsletter--bg-white { background-color: var(--gs-white); }

/* On light backgrounds, flip text colors for legibility. */
.news-insights__newsletter--bg-white,
.news-insights__newsletter--bg-light { color: var(--gs-text); }
.news-insights__newsletter--bg-white .news-insights__newsletter-heading,
.news-insights__newsletter--bg-light .news-insights__newsletter-heading { color: var(--gs-navy); }
.news-insights__newsletter--bg-white .news-insights__newsletter-body,
.news-insights__newsletter--bg-light .news-insights__newsletter-body,
.news-insights__newsletter--bg-white .news-insights__newsletter-disclaimer,
.news-insights__newsletter--bg-light .news-insights__newsletter-disclaimer { color: var(--gs-muted); }

.news-insights__newsletter-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--gs-white);
}

.news-insights__newsletter-body {
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.92);
}

.news-insights__newsletter-mock {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 580px;
  margin: 0 auto;
  background: var(--gs-white);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  align-items: center;
}

.news-insights__newsletter-email {
  flex: 1 1 38px;
  display: block;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--gs-text-dark);
  padding: 12px 0;
}

.news-insights__newsletter-submit {
  display: block;
  border-radius: 999px;
  padding: 12px 28px;
}

.news-insights__newsletter-disclaimer {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

@media (max-width: 640px) {
  .news-insights__featured { grid-template-columns: 1fr; }
  .news-insights__featured-media { min-height: 220px; aspect-ratio: 16 / 10; }
}

@media (max-width: 540px) {
  .news-insights__newsletter-mock {
    border-radius: 14px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .news-insights__newsletter-email { padding: 6px 14px; }
}

/* ============================================================
   Single Insight (single-gs_insight.php)
   ============================================================ */

.insight-single {
  padding: clamp(40px, 6vw, 80px) 0 80px;
}

.insight-single__header-inner {
  max-width: 820px;
  margin-bottom: clamp(24px, 4vw, 40px);
  text-align: left;
}

.insight-single__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--gs-text-dark);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 14px 0 18px;
}

.insight-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--gs-text);
}

.insight-single__hero {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.insight-single__hero-img {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: var(--gs-navy);
  max-width: 820px;
  margin: auto;
}

.insight-single__hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-single__body {
  display: flex;
  justify-content: center;
}

.insight-single__content {
  max-width: 760px;
  width: 100%;
  font-size: 18px;
  line-height: 1.75;
  color: var(--gs-text);
}

.insight-single__content > * + * { margin-top: 1.2em; }
.insight-single__content h2 { font-size: 1.875rem; margin-top: 1.8em; color: var(--gs-text-dark); }
.insight-single__content h3 { font-size: 1.4rem; margin-top: 1.6em; color: var(--gs-text-dark); }
.insight-single__content a  { color: var(--gs-blue); text-decoration: underline; }
.insight-single__content img,
.insight-single__content figure { border-radius: 10px; overflow: hidden; }
.insight-single__content blockquote {
  border-left: 4px solid var(--gs-orange);
  padding-left: 22px;
  font-style: italic;
  color: var(--gs-text-dark);
  margin: 1.5em 0;
}
.insight-single__content ul,
.insight-single__content ol { padding-left: 1.5em; }

.insight-single__back {
  margin-top: clamp(40px, 6vw, 64px);
  text-align: center;
}
