/* SamSam Facebook Carousel Block - front end styles */

.sfc-section {
	background: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	position: relative;
}

/* Full-bleed background, same pattern as the rest of the plugin. */
.sfc-section-bleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
}

/* ---------- Wave dividers ---------- */
.sfc-wave-top,
.sfc-wave-bottom {
	display: block;
	width: 100%;
	height: 70px;
	line-height: 0;
	overflow: hidden;
	background-color: #ffffff;
}

.sfc-wave-top svg,
.sfc-wave-bottom svg {
	display: block;
	width: 100%;
	height: 100%;
}

.sfc-wave-top path,
.sfc-wave-bottom path {
	fill: #ffffff;
}

@media (max-width: 600px) {
	.sfc-wave-top,
	.sfc-wave-bottom {
		height: 40px;
	}
}

.sfc-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 70px 24px;
}

.sfc-heading {
	margin: 0 0 18px;
	color: #4a9b7f;
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

.sfc-subheading {
	max-width: 760px;
	margin: 0 auto 50px;
	color: #333333;
	font-size: 15px;
	line-height: 1.7;
	text-align: center;
}

/* ---------- Carousel ---------- */
.sfc-carousel {
	position: relative;
}

.sfc-track {
	display: flex;
	align-items: stretch;
	gap: 24px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 6px 6px 22px;
	margin: -6px -6px -22px;
	cursor: grab;

	scrollbar-width: none;
	-ms-overflow-style: none;
}

.sfc-track::-webkit-scrollbar {
	display: none;
	height: 0;
}

.sfc-track.sfc-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
}

/* Each card is a portrait (reel-shaped) frame: the iframe fills it via
   aspect-ratio, so any Facebook video/reel link sits in a tall 9:16
   box regardless of its own native size. */
.sfc-card {
	flex: 0 0 auto;
	width: 260px;
	scroll-snap-align: start;
	-webkit-user-drag: none;
}

.sfc-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	border-radius: 16px;
	overflow: hidden;
	background: #0f0f0f;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.sfc-card-media iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* Small "now playing" ring while a card is the active/autoplaying one. */
.sfc-card.sfc-active .sfc-card-media {
	box-shadow: 0 0 0 3px #4a9b7f, 0 10px 30px rgba(0, 0, 0, 0.14);
}

.sfc-card-title {
	margin: 12px 4px 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: #222222;
	text-align: center;
}

.sfc-card-empty {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	text-align: center;
	padding: 20px;
}

/* ---------- Nav arrows (dark grey, only rendered once there are more
   than 3 videos) ---------- */
.sfc-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: #4a4a4a;
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 3;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.sfc-arrow:hover {
	background: #2f2f2f;
}

.sfc-arrow svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sfc-arrow-prev {
	left: -14px;
}

.sfc-arrow-next {
	right: -14px;
}

.sfc-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

@media (max-width: 640px) {
	.sfc-arrow {
		display: none;
	}
}

/* ---------- Scroll progress bar ---------- */
.sfc-progress-track {
	position: relative;
	max-width: 220px;
	height: 5px;
	margin: 26px auto 0;
	background: rgba(74, 74, 74, 0.16);
	border-radius: 10px;
	overflow: hidden;
}

.sfc-progress-thumb {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 33%;
	background: #4a4a4a;
	border-radius: 10px;
	transition: left 0.1s linear, width 0.1s linear;
}

/* ---------- Call to action button ---------- */
.sfc-cta-wrap {
	margin-top: 40px;
	text-align: center;
}

.sfc-btn {
	display: inline-block;
	background: #4a9b7f;
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 15px 34px;
	border-radius: 24px;
	transition: background-color 0.15s ease, transform 0.15s ease;
	border: none;
	cursor: pointer;
}

.sfc-btn:hover,
.sfc-btn:focus {
	background: #3f8870;
	color: #ffffff;
	transform: translateY(-1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.sfc-container {
		padding: 50px 20px;
	}

	.sfc-card {
		width: 62vw;
		max-width: 240px;
	}
}
