/* HIFA Insights Slider — all styles are scoped to the plugin */
.hifa-insights-slider {
  width: min(100%, var(--hifa-max-width, 1200px));
  margin: 0 auto 24px;
  color: var(--hifa-text, #424b56);
  font: inherit;
  position: relative;
}
.hifa-insights-slider,
.hifa-insights-slider * { box-sizing: border-box; }
.hifa-insights-slider .hifa-slider-track { position: relative; }
.hifa-insights-slider .hifa-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(34%, 0.9fr);
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  min-height: var(--hifa-min-height, 300px);
  padding: clamp(20px, 3vw, 38px);
  background: var(--hifa-bg, #eef0f5);
  border-radius: 3px;
  overflow: hidden;
}
.hifa-insights-slider .hifa-slide[hidden] { display: none !important; }
.hifa-insights-slider .hifa-slide-content { min-width: 0; max-width: 620px; }
.hifa-insights-slider .hifa-slide-eyebrow {
  margin: 0 0 10px;
  color: var(--hifa-heading, #234e76);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hifa-insights-slider .hifa-slide-title {
  margin: 0 0 14px;
  padding: 0;
  color: var(--hifa-heading, #234e76);
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.hifa-insights-slider .hifa-slide-title a {
  color: inherit;
  text-decoration: none;
}
.hifa-insights-slider .hifa-slide-title a:hover,
.hifa-insights-slider .hifa-slide-title a:focus-visible { text-decoration: underline; }
.hifa-insights-slider .hifa-slide-excerpt {
  margin: 0 0 20px;
  color: var(--hifa-text, #424b56);
  font-size: clamp(.92rem, 1.15vw, 1.05rem);
  line-height: 1.65;
}
.hifa-insights-slider .hifa-slide-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 5px;
  background: var(--hifa-button, #638fc8);
  color: var(--hifa-button-text, #fff);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: filter .18s ease;
}
.hifa-insights-slider .hifa-slide-button:hover { filter: brightness(.93); color: var(--hifa-button-text, #fff); }
.hifa-insights-slider .hifa-slide-button:focus-visible,
.hifa-insights-slider button:focus-visible,
.hifa-insights-slider a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.hifa-insights-slider .hifa-slide-image-link {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 9px;
  aspect-ratio: 4 / 3;
  background: rgba(35, 78, 118, .08);
}
.hifa-insights-slider .hifa-slide-image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.hifa-insights-slider .hifa-slide-image-placeholder {
  display: grid;
  place-items: center;
  min-height: 190px;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(35,78,118,.12), rgba(99,143,200,.18));
  color: var(--hifa-heading, #234e76);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.hifa-insights-slider .hifa-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -1px;
  position: relative;
  z-index: 2;
}
.hifa-insights-slider .hifa-slider-controls button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: var(--hifa-button, #638fc8);
  color: var(--hifa-button-text, #fff);
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.hifa-insights-slider .hifa-slider-controls button:hover { filter: brightness(.93); }
.hifa-insights-slider .hifa-slider-controls .hifa-slider-pause { font-size: 1rem; }
.hifa-insights-slider .hifa-slider-counter {
  min-width: 48px;
  color: var(--hifa-text, #424b56);
  font-size: .8rem;
  text-align: center;
}
@media (max-width: 768px) {
  .hifa-insights-slider { margin-bottom: 20px; }
  .hifa-insights-slider .hifa-slide {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: clamp(14px, 4vw, 22px);
  }
  .hifa-insights-slider .hifa-slide-image-link {
    grid-row: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 260px;
  }
  .hifa-insights-slider .hifa-slide-image { aspect-ratio: 16 / 9; }
  .hifa-insights-slider .hifa-slide-content { grid-row: 2; max-width: none; }
  .hifa-insights-slider .hifa-slide-title { font-size: clamp(1.2rem, 5vw, 1.65rem); line-height: 1.25; }
  .hifa-insights-slider .hifa-slide-excerpt { font-size: 1rem; line-height: 1.55; margin-bottom: 16px; }
  .hifa-insights-slider .hifa-slide-button { min-height: 44px; }
  .hifa-insights-slider .hifa-slider-controls { margin-top: 10px; }
  .hifa-insights-slider .hifa-slide-image-placeholder { grid-row: 1; aspect-ratio: 16 / 9; min-height: 140px; }
}
@media (max-width: 380px) {
  .hifa-insights-slider .hifa-slide { padding: 13px; }
  .hifa-insights-slider .hifa-slide-title { font-size: 1.18rem; }
  .hifa-insights-slider .hifa-slider-controls button { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .hifa-insights-slider *,
  .hifa-insights-slider *::before,
  .hifa-insights-slider *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
