/* BF Insights. Values are copied from sections/BF Insights.dc.html (its <style> blocks and inline styles).
   Where the design's two phone blocks disagree, the values here are the ones the design renders (checked in a browser).

   Deliberate change from the design, at the client's request: the slider pages through whole cards, 3 per view on
   desktop, 2 on tablet, 1 on phone (--fp-per), sized to fill the content width. The design's track instead bled to
   the window edge with fixed 400px / 300px cards and a partial card peeking in. */

.fp-insights { --fp-per: 3; position: relative; max-width: 1280px; margin: 0 auto; padding: 60px 24px 120px; }

.fp-insights-head { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.fp-insights-head .bf-btn { flex: none; }
.fp-insights-titles { position: relative; max-width: 720px; }
.fp-insights-headline { position: relative; }
.fp-insights-headline .bf-glitch { left: -70px; top: -6px; width: 160px; height: 40px; }
.fp-insights-headline .bf-glitch span:nth-child(1) { top: 0; left: 0; width: 120px; background: rgba(255,255,255,0.25); }
.fp-insights-headline .bf-glitch span:nth-child(2) { top: 11px; left: 30px; width: 90px; background: rgba(255,255,255,0.5); }
.fp-insights-headline .bf-glitch span:nth-child(3) { top: 22px; left: 10px; width: 140px; background: rgba(255,255,255,0.18); }
.fp-insights-grad { background: linear-gradient(90deg, #29ABE2, #8DC63F); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Track */
.fp-insights-track { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; align-items: stretch; scroll-padding-left: 2px; padding: 54px 2px 10px; }
.fp-insights-track::-webkit-scrollbar { display: none; }

/* Cards: --fp-per whole cards fill the track; swipes snap to the first card of each page (set by insights.js). */
.fp-blog-card { flex: 0 0 calc((100% - (var(--fp-per) - 1) * 24px) / var(--fp-per)); scroll-snap-align: none; text-decoration: none; display: flex; flex-direction: column; background: #04202F; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; transition: border-color .35s ease, background .35s ease; }
.fp-blog-card.is-page-start { scroll-snap-align: start; }
.fp-blog-card:hover { border-color: rgba(141,198,63,0.5); background: #062838; }
.fp-blog-card:focus-visible { outline: 2px solid #8DC63F; outline-offset: 4px; }
.fp-blog-top { position: relative; min-height: 190px; padding: 26px 26px 20px; display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; overflow: hidden; }
.fp-blog-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; pointer-events: none; }
.fp-blog-tag { position: relative; font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #8DC63F; }
.fp-blog-title { position: relative; font-size: 22px; line-height: 1.25; font-weight: 800; color: #FFFFFF; text-transform: uppercase; letter-spacing: 0.01em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; max-width: 290px; }
.fp-blog-body { display: flex; flex-direction: column; gap: 22px; padding: 22px 26px 26px; flex: 1; }
.fp-blog-body p { margin: 0; font-size: 15px; line-height: 1.6; color: #C4D5E0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(15px * 1.6 * 4); }
.fp-blog-cta { margin-top: auto; font-size: 14.5px; font-weight: 700; color: #FFFFFF; display: inline-flex; align-items: center; gap: 8px; }
.fp-blog-cta span { font-size: 13px; color: #A5D45E; }

/* Controls */
.fp-insights-controls { display: flex; align-items: center; gap: 24px; margin-top: 44px; }
.fp-insights-arrows { display: flex; gap: 12px; }
.fp-insights-arrows button { cursor: pointer; width: 52px; height: 52px; border-radius: 50%; background: transparent; display: flex; align-items: center; justify-content: center; }
.fp-insights-prev { border: 1.5px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.55); }
.fp-insights-prev:hover { border-color: #8DC63F; color: #8DC63F; }
.fp-insights-next { border: 1.5px solid #8DC63F; color: #8DC63F; }
.fp-insights-next:hover { background: rgba(141,198,63,0.12); }
.fp-insights-arrows button:focus-visible { outline: 2px solid #8DC63F; outline-offset: 3px; }
.fp-insights-bar { flex: 1; height: 2px; background: rgba(255,255,255,0.14); border-radius: 2px; overflow: hidden; }
.fp-insights-bar > div { height: 100%; background: linear-gradient(90deg, #0096E1, #8DC63F); border-radius: 2px; transition: width 0.4s cubic-bezier(0.22,0.61,0.36,1); }
.fp-insights-count { font-size: 17px; color: #FFFFFF; font-variant-numeric: tabular-nums; flex: none; }
.fp-insights-page { font-weight: 800; font-size: 21px; }
.fp-insights-total { color: rgba(255,255,255,0.55); }

@media (min-width: 768px) and (max-width: 1023px) {
	.fp-insights { --fp-per: 2; }
	#insights { padding: 100px 32px 100px !important; }
}

@media (max-width: 767px) {
	.fp-insights { --fp-per: 1; }
	#insights { padding: 80px 20px 80px !important; }
	#insights h2 { font-size: clamp(26px, 7vw, 32px) !important; }
}
