/* Homepage Featured Articles (Elementor widget): 1 big article, then 3 small articles in a row.
   Fits the width of the container it is placed in. */

.elementor .rap-fc {
	--rap-green: #00ff00;
	--rap-on-green: #000000;
	--rap-text: #ffffff;
	--rap-sub: #c9c9c9;
	--rap-line: #333333;
	--rap-panel: #262626;
	container-type: inline-size;
	display: block;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	color: var(--rap-text);
	font-family: inherit;
}

.elementor .rap-fc *,
.elementor .rap-fc *::before,
.elementor .rap-fc *::after {
	box-sizing: border-box;
}

.elementor .rap-fc h2,
.elementor .rap-fc h3,
.elementor .rap-fc p,
.elementor .rap-fc ul {
	margin: 0;
	padding: 0;
	font-family: inherit;
}

.elementor .rap-fc a {
	color: inherit;
	text-decoration: none;
}

/* Extra width: reach past the container by --rap-fc-extra on each side,
   but never closer than 20px to the screen edge. */

.elementor .rap-fc.rap-fc--wide {
	--rap-fc-w: max(100%, min(calc(100% + 2 * var(--rap-fc-extra, 0px)), calc(100vw - 40px)));
	width: var(--rap-fc-w);
	max-width: none;
	margin-left: calc((100% - var(--rap-fc-w)) / 2);
	margin-right: calc((100% - var(--rap-fc-w)) / 2);
}

/* Heading */

.elementor .rap-fc-head {
	padding-bottom: 12px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--rap-line);
}

.elementor .rap-fc-heading {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--rap-text);
}

/* Cards: the whole card is clickable through the title link */

.elementor .rap-fc-card {
	position: relative;
	min-width: 0;
}

.elementor .rap-fc-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.elementor .rap-fc-link:focus-visible {
	outline: none;
}

.elementor .rap-fc-card:focus-within {
	outline: 3px solid var(--rap-green);
	outline-offset: 4px;
	border-radius: 6px;
}

.elementor .rap-fc-media {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
	background: var(--rap-panel);
}

.elementor .rap-fc .rap-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.elementor .rap-fc-card:hover .rap-img {
	transform: scale(1.03);
}

.elementor .rap-fc-title {
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--rap-text);
}

.elementor .rap-fc-card:hover .rap-fc-title {
	text-decoration: underline;
	text-decoration-color: var(--rap-green);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.elementor .rap-fc-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 6px;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--rap-sub);
}

.elementor .rap-fc .rap-date {
	display: block;
	margin-top: 6px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--rap-green);
}

/* Big article: image left, text right */

.elementor .rap-fc-big {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 36px;
	align-items: center;
}

.elementor .rap-fc-big .rap-fc-title {
	font-size: clamp(1.5rem, 2.6vw, 2.3rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.elementor .rap-fc-big .rap-fc-excerpt {
	-webkit-line-clamp: 4;
	margin-top: 12px;
	font-size: 1rem;
}

.elementor .rap-fc-big .rap-date {
	margin-top: 12px;
}

/* Small articles: 3 in a row under the big one */

.elementor .rap-fc .rap-fc-row {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 22px;
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid var(--rap-line);
}

.elementor .rap-fc-small .rap-fc-body {
	padding-top: 12px;
}

/* Medium container: big article stacks, small row stays 3 across */

@container (max-width: 820px) {
	.elementor .rap-fc-big {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		align-items: start;
	}

	.elementor .rap-fc-big .rap-fc-title {
		font-size: 1.5rem;
	}

	.elementor .rap-fc-big .rap-fc-excerpt {
		-webkit-line-clamp: 3;
	}
}

/* Narrow container (sidebar, phone): small articles become compact rows */

@container (max-width: 560px) {
	.elementor .rap-fc .rap-fc-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		margin-top: 24px;
		padding-top: 24px;
	}

	.elementor .rap-fc-small {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 14px;
		align-items: start;
	}

	.elementor .rap-fc-small .rap-fc-media {
		aspect-ratio: 1 / 1;
	}

	.elementor .rap-fc-small .rap-fc-body {
		padding-top: 0;
	}

	.elementor .rap-fc-small .rap-fc-title {
		font-size: 1rem;
	}

	.elementor .rap-fc-small .rap-fc-excerpt {
		display: none;
	}

	.elementor .rap-fc-big .rap-fc-title {
		font-size: 1.3rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.elementor .rap-fc *,
	.elementor .rap-fc *::before,
	.elementor .rap-fc *::after {
		transition: none !important;
	}

	.elementor .rap-fc-card:hover .rap-img {
		transform: none;
	}
}
