/**
 * Foothold Events Elementor – Event cards carousel
 * 3 per screen (desktop), scroll 1 by 1. Style aligned with Personal widget / Foothold warm palette.
 */

/* ========== Section heading (split color) ========== */
.fec-section-heading {
	font-family: var(--e-global-typography-primary-font-family, "SF Pro"), -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica Neue, Helvetica, Arial, sans-serif;
	font-size: clamp(24px, 3.5vw, 42px);
	font-weight: 700;
	line-height: 1.2;
	color: #2D2926;
	text-align: center;
	margin: 0 0 30px 0;
}

.fec-section-heading-before {
	color: inherit;
}

.fec-section-heading-accent {
	color: #b31942;
}

/* ========== Carousel wrapper ========== */
.fec-events-carousel-wrapper {
	position: relative;
	width: 100%;
	font-family: 'Inter', sans-serif;
}

.fec-events-carousel-track {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	gap: 1.5rem;
	padding: 0.5rem 0 2.5rem 0;
	-webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.fec-events-carousel-track::-webkit-scrollbar {
	height: 6px;
}

.fec-events-carousel-track::-webkit-scrollbar-track {
	background: #f0f0f0;
	border-radius: 3px;
}

.fec-events-carousel-track::-webkit-scrollbar-thumb {
	background: #c0c0c0;
	border-radius: 3px;
}

/* ========== Slide ========== */
.fec-event-slide {
	flex: 0 0 calc((100% - 3rem) / 3); /* 3 columns, account for gap */
	scroll-snap-align: start;
	min-width: 0;
}

@media (max-width: 1024px) {
	.fec-event-slide {
		flex: 0 0 calc((100% - 1.5rem) / 2); /* 2 per row on tablet */
	}
}

@media (max-width: 767px) {
	.fec-event-slide {
		flex: 0 0 100%; /* 1 per row on mobile */
	}
}

/* ========== Event card ========== */
.fec-event-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
}

.fec-event-card:hover {
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ========== Image + overlay ========== */
.fec-event-image-wrap {
	position: relative;
	width: 100%;
	padding-bottom: 62.5%; /* 8/5 aspect */
	overflow: hidden;
	background: #f0f0f0;
}

.fec-event-image,
.fec-event-image-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fec-event-image-placeholder {
	background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fec-event-title-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.25rem 1rem;
	background: linear-gradient(170deg, rgba(10, 49, 97, 0) 0%, var(--e-global-color-secondary, #0A3161) 70%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	text-align: center;
}

/* Event title – match Premium carousel template (element 725a805e / event-card-title) */
.fec-event-title-overlay .fec-event-title {
	font-family: var(--e-global-typography-primary-font-family, "SF Pro"), -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica Neue, Helvetica, Arial, sans-serif;
	font-size: 25px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	color: #fff;
	text-align: center;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ========== Details section ========== */
.fec-event-details {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem 1rem 1.5rem;
	background: #fff;
	min-height: 0;
}

.fec-event-detail {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.5rem;
	font-family: var(--e-global-typography-de21c77-font-family, "SF Pro"), -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica Neue, Helvetica, Arial, sans-serif;
	font-size: var(--e-global-typography-de21c77-font-size, 14px);
	line-height: var(--e-global-typography-de21c77-line-height, 1.5);
	letter-spacing: var(--e-global-typography-de21c77-letter-spacing, normal);
}

.fec-event-detail-icon {
	flex-shrink: 0;
	color: var(--e-global-color-primary, #6B6661);
}

.fec-event-detail-icon .material-symbols-outlined {
	font-size: 20px;
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* Content block: default = inline (label + value on same line) for Date, Time, Duration, Location */
.fec-event-detail-content {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25em;
	min-width: 0;
	flex: 1 1 auto;
	width: 100%;
}

/* Stacked: label on first line, value on next line(s) for Main speaker, Host, Event overview */
.fec-event-detail-stacked .fec-event-detail-content {
	flex-direction: column;
	align-items: stretch;
	gap: 0.25rem;
}

.fec-event-detail-label {
	font-weight: 700;
	color: var(--e-global-color-secondary, #2D2926);
}

/* Default value: inline next to label – match Premium template icon-list text */
.fec-event-detail-value {
	font-family: var(--e-global-typography-de21c77-font-family, "SF Pro"), -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica Neue, Helvetica, Arial, sans-serif;
	font-size: var(--e-global-typography-de21c77-font-size, 14px);
	line-height: var(--e-global-typography-de21c77-line-height, 1.6);
	letter-spacing: var(--e-global-typography-de21c77-letter-spacing, normal);
	color: var(--e-global-color-secondary, #6B6661);
	font-weight: 400;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* Stacked value: block, full width so text uses entire row and wraps */
.fec-event-detail-stacked .fec-event-detail-value {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/* Overview: keep 3-line clamp on value only */
.fec-event-detail.fec-event-overview .fec-event-detail-value {
	-webkit-line-clamp: 3;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ========== CTA button ========== */
.fec-event-cta-wrap {
	margin-top: auto;
	padding-top: 1rem;
	text-align: center;
}

/* CTA – match Premium template button (element 44a8251): SF pro 17px 500, cream on primary red */
.fec-event-cta {
	display: inline-block;
	padding: 17px 35px;
	background-color: var(--e-global-color-primary, #b31942);
	color: var(--e-global-color-70e8798, #fff);
	font-family: var(--e-global-typography-accent-font-family, "SF Pro"), -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica Neue, Helvetica, Arial, sans-serif;
	font-size: 17px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 0.25rem;
	transition: background-color 0.3s ease, color 0.3s ease;
	border: none;
	cursor: pointer;
}

.fec-event-cta:hover {
	background-color: #981236;
	color: #fff;
}

/* ========== Carousel arrows ========== */
/* Match Premium Carousel slick-arrow: transparent, no shadow, FontAwesome-style SVG */
.fec-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	color: #2D2926;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	line-height: 0;
	text-decoration: none;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.fec-carousel-arrow:hover {
	color: #b31942;
	background: transparent;
	box-shadow: none;
}

.fec-carousel-arrow:focus {
	outline: 0;
	box-shadow: none;
	border-color: transparent;
}

.fec-carousel-arrow:active {
	transform: translateY(-50%) scale(0.95);
}

.fec-carousel-arrow svg {
	width: 60%;
	height: 60%;
	fill: currentColor;
	display: block;
	transition: fill 0.3s ease-in-out;
}

.fec-carousel-prev {
	left: -16px;
}

.fec-carousel-next {
	right: -16px;
}

@media (max-width: 1024px) {
	.fec-carousel-prev {
		left: 10px;
	}
	.fec-carousel-next {
		right: 10px;
	}
}

@media (max-width: 767px) {
	.fec-carousel-prev {
		left: 5px;
	}
	.fec-carousel-next {
		right: 5px;
	}
}

/* ========== Dots ========== */
.fec-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1rem;
	flex-wrap: wrap;
}

.fec-carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #c0c0c0;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.3s ease;
}

.fec-carousel-dot:hover,
.fec-carousel-dot.is-active {
	background: #b31942;
}

/* ========== Material Symbols ========== */
.material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-feature-settings: 'liga';
	-webkit-font-smoothing: antialiased;
}

/* ========== Team carousel header (EAEL / Swiper-style nav) ========== */
.fec-team-carousel-wrapper .fec-team-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.fec-team-carousel-wrapper .fec-team-header-text {
	flex: 1 1 300px;
	min-width: 0;
	text-align: left;
}

.fec-team-carousel-wrapper .fec-team-eyebrow {
	font-family: var(--e-global-typography-primary-font-family, "SF Pro"), -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica Neue, Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #6b6661;
	margin: 0 0 1rem 0;
	line-height: 1.4;
}

.fec-team-carousel-wrapper .fec-section-heading {
	margin: 0;
	text-align: inherit;
}

.fec-team-carousel-wrapper .fec-team-description {
	font-family: var(--e-global-typography-text-font-family, "SF Pro"), -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica Neue, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #6b6661;
	margin: 1rem 0 0 0;
	max-width: 605px;
}

/* Swiper-like: 34x34 circles, light shadow, chevrons from ::after (no inner SVG) */
.fec-team-carousel-wrapper .fec-team-header-arrows {
	display: flex;
	gap: 14px;
	flex-shrink: 0;
	align-items: center;
}

.fec-team-carousel-wrapper .fec-team-header-arrows .fec-carousel-arrow {
	position: static;
	top: auto;
	left: auto;
	right: auto;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #0a3161;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	line-height: 0;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.fec-team-carousel-wrapper .fec-team-header-arrows .fec-carousel-arrow::after {
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	border: solid currentcolor;
	border-width: 0 2px 2px 0;
	box-sizing: content-box;
}

.fec-team-carousel-wrapper .fec-team-header-arrows .fec-carousel-arrow.fec-carousel-prev::after,
.fec-team-carousel-wrapper .fec-team-header-arrows .fec-team-swiper-nav--prev::after {
	transform: rotate(135deg);
	margin-left: 2px;
}

.fec-team-carousel-wrapper .fec-team-header-arrows .fec-carousel-arrow.fec-carousel-next::after,
.fec-team-carousel-wrapper .fec-team-header-arrows .fec-team-swiper-nav--next::after {
	transform: rotate(-45deg);
	margin-right: 2px;
}

.fec-team-carousel-wrapper .fec-team-header-arrows .fec-carousel-arrow:hover {
	color: #fff;
	background: #0a3161;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

.fec-team-carousel-wrapper .fec-team-header-arrows .fec-carousel-arrow:focus {
	outline: 0;
}

.fec-team-carousel-wrapper .fec-team-header-arrows .fec-carousel-arrow:focus-visible {
	outline: 2px solid #0a3161;
	outline-offset: 2px;
}

.fec-team-carousel-wrapper .fec-team-header-arrows .fec-carousel-arrow:active {
	transform: scale(0.95);
}

.fec-team-carousel-wrapper .fec-team-header-arrows .fec-carousel-arrow svg {
	display: none;
}

@media (max-width: 767px) {
	.fec-team-carousel-wrapper .fec-team-header {
		gap: 1rem;
	}

	.fec-team-carousel-wrapper .fec-team-header-arrows {
		order: 2;
		width: 100%;
		justify-content: flex-start;
	}
}

/* ============================================================
   RESOURCES CAROUSEL (frc-)
   eBook / Infographic / Checklist / Report library cards.
   Shares the .fec-events-carousel-* chrome (track, arrows, dots, JS, lazy-load).
   Visual language matches the Foothold custom-widget system:
   - Card surface: white, 8px radius, two-stop shadow, hover lift
   - Cover: brand red panel with rounded top, drop-shadowed cover artwork inside
   - Type badge: .topics-box pill pattern (white pill, navy text, navy hairline border)
   - Title: SF Pro 18/26 600, secondary color, line-clamp 2 — matches legacy Premium slide
   - Description: de21c77 typography token, secondary, line-clamp 4
   - CTA button: identical to .fec-event-cta (brand red 17px/35px pill, hover #981236)
   - Arrows: inherits .fec-carousel-arrow (minimal 32px chevrons)
   ============================================================ */

.frc-resources-carousel.fec-events-carousel-wrapper {
	font-family: 'Inter', sans-serif;
}

/* ---------- Slides per row — driven by widget setting ----------
   Track gap is 1.5rem (matches .fec-events-carousel-track). Slide flex basis
   subtracts (gap × (cols − 1)) so cols slides fit perfectly. CSS custom
   properties --frc-slides / --frc-slides-tablet / --frc-slides-mobile are
   set inline on the wrapper from the widget render — fallbacks are 3/2/1
   if for some reason inline style is stripped. */
.frc-resources-carousel .fec-event-slide {
	flex: 0 0 calc((100% - (1.5rem * (var(--frc-slides, 3) - 1))) / var(--frc-slides, 3));
}

@media (max-width: 1024px) {
	.frc-resources-carousel .fec-event-slide {
		flex: 0 0 calc((100% - (1.5rem * (var(--frc-slides-tablet, 2) - 1))) / var(--frc-slides-tablet, 2));
	}
}

@media (max-width: 767px) {
	.frc-resources-carousel .fec-event-slide {
		flex: 0 0 calc((100% - (1.5rem * (var(--frc-slides-mobile, 1) - 1))) / var(--frc-slides-mobile, 1));
	}
}

.frc-resource-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.frc-resource-card:hover {
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* ---------- Cover panel (brand red, rounded top — matches legacy Premium slide) ---------- */
.frc-resource-cover {
	position: relative;
	width: 100%;
	padding-bottom: 75%;          /* 4:3 portrait — overridden by editor control */
	background: var(--e-global-color-primary, #b31942);
	border-radius: 4px 4px 0 0;
	overflow: hidden;
}

.frc-resource-cover-inner {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.frc-resource-image {
	max-width: 70%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;
	filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

/* No-image placeholder cover — diagonal red→navy gradient with dashed inner card silhouette */
.frc-resource-cover.frc-no-image {
	background: linear-gradient(135deg, var(--e-global-color-primary, #b31942) 0%, var(--e-global-color-secondary, #0A3161) 100%);
}

.frc-resource-cover.frc-no-image .frc-resource-cover-inner::before {
	content: "";
	width: 60%;
	height: 78%;
	background: rgba(255, 255, 255, 0.06);
	border: 1px dashed rgba(255, 255, 255, 0.25);
	border-radius: 6px;
}

/* ---------- Top-left book icon (legacy badge preserved) ---------- */
.frc-resource-book-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	z-index: 2;
}

.frc-resource-book-badge svg {
	width: 18px;
	height: 18px;
	fill: var(--e-global-color-primary, #b31942);
	display: block;
}

/* ---------- Type badge (top-right) — matches .topics-box pill pattern ---------- */
.frc-resource-type-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
	padding: 6px 12px;
	background: #fff;
	color: #0a3161;
	border: 1px solid rgba(10, 49, 97, 0.12);
	border-radius: 20px;
	z-index: 2;
}

/* ---------- Body ---------- */
.frc-resource-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem 1rem 1.5rem;
	background: #fff;
	min-height: 0;
}

/* Title — matches legacy Premium slide title (SF Pro 18/26 600, secondary, centered) */
.frc-resource-title {
	margin: 0;
	font-family: var(--e-global-typography-primary-font-family, "SF Pro"), -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica Neue, Helvetica, Arial, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 26px;
	color: var(--e-global-color-secondary, #2D2926);
	text-align: center;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Description — matches legacy Premium slide (de21c77 typography token, secondary, centered) */
.frc-resource-desc {
	margin: 0;
	font-family: var(--e-global-typography-de21c77-font-family, "SF Pro"), -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica Neue, Helvetica, Arial, sans-serif;
	font-size: var(--e-global-typography-de21c77-font-size, 14px);
	line-height: var(--e-global-typography-de21c77-line-height, 1.6);
	letter-spacing: var(--e-global-typography-de21c77-letter-spacing, normal);
	color: var(--e-global-color-secondary, #6B6661);
	text-align: center;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- CTA button — identical visual spec to .fec-event-cta ---------- */
.frc-resource-cta-wrap {
	margin-top: auto;
	padding-top: 1rem;
	text-align: center;
}

.frc-resource-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 17px 35px;
	background-color: var(--e-global-color-primary, #b31942);
	color: var(--e-global-color-70e8798, #fff);
	font-family: var(--e-global-typography-accent-font-family, "SF Pro"), -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica Neue, Helvetica, Arial, sans-serif;
	font-size: 17px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 0.25rem;
	transition: background-color 0.3s ease, color 0.3s ease;
	border: none;
	cursor: pointer;
}

.frc-resource-cta:hover,
.frc-resource-cta:focus {
	background-color: #981236;
	color: #fff;
	text-decoration: none;
}

.frc-resource-cta-icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.frc-resource-cta-icon .material-symbols-outlined {
	font-size: 18px;
	line-height: 1;
	font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

/* ---------- Mobile tightening ---------- */
@media (max-width: 767px) {
	.frc-resource-body {
		padding: 1rem 0.75rem 1.25rem;
	}
	.frc-resource-cta {
		padding: 14px 28px;
		font-size: 15px;
	}
	.frc-resource-type-badge {
		font-size: 10px;
		padding: 5px 10px;
	}
}
