.esn-category-module {
	--esn-accent: #1689f8;
	--esn-title: #07101f;
	--esn-text: #52617a;
	--esn-meta: #8490a6;
	--esn-gap: 28px;
	--esn-row-gap: 34px;
	--esn-radius: 12px;
	width: 100%;
}

.esn-category-module,
.esn-category-module * {
	box-sizing: border-box;
}

.esn-category-module a {
	text-decoration: none;
}

.esn-category-module .jeg_postblock_esn_category {
	margin: 0;
}

/* The module represents one category, so no post repeats its category badge. */
.esn-category-module .jeg_post_category {
	display: none !important;
}

.esn-category-module .jeg_block_heading {
	margin-bottom: 26px;
}

.esn-category-module .jeg_block_title,
.esn-category-module .jeg_block_title a,
.esn-category-module .jeg_block_title span {
	color: var(--esn-title);
}

.esn-category-module .jeg_block_heading .jeg_subcat a.current,
.esn-category-module .jeg_block_heading .jeg_subcat a:hover,
.esn-category-module .jeg_block_heading .jeg_subcat a:focus-visible {
	color: var(--esn-accent);
}

.esn-category-module .jeg_block_container {
	overflow: visible;
}

/*
 * JNews Module 2 normally divides a 12-column module into a 50/50 lead and
 * list. This widget uses a full-width lead followed by its own card grid, so
 * reset those structural rules in both the frontend and Elementor editor.
 */
.esn-category-module .jeg_postblock_esn_category.jeg_postblock .esn-category-module__lead,
.esn-category-module .jeg_postblock_esn_category.jeg_postblock.jeg_col_3o3 .esn-category-module__lead,
.esn-category-module .jeg_postblock_esn_category.jeg_postblock.jeg_col_2o3 .esn-category-module__lead,
.esn-category-module .jeg_postblock_esn_category.jeg_postblock.jeg_col_1o3 .esn-category-module__lead {
	float: none !important;
	clear: both;
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

.esn-category-module .jeg_postblock_esn_category.jeg_postblock .esn-category-module__cards-wrap,
.esn-category-module .jeg_postblock_esn_category.jeg_postblock.jeg_col_3o3 .esn-category-module__cards-wrap,
.esn-category-module .jeg_postblock_esn_category.jeg_postblock.jeg_col_2o3 .esn-category-module__cards-wrap,
.esn-category-module .jeg_postblock_esn_category.jeg_postblock.jeg_col_1o3 .esn-category-module__cards-wrap {
	float: none !important;
	clear: both;
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

.esn-category-module .esn-category-module__lead {
	display: grid !important;
	/* Use the same four tracks as the cards below so their edges align. */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--esn-gap);
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 0;
}

.esn-category-module .esn-category-module__lead::before,
.esn-category-module .esn-category-module__lead::after {
	display: none;
}

.esn-category-module .esn-category-module__lead-media,
.esn-category-module .esn-category-module__card-media {
	position: relative;
	float: none !important;
	overflow: hidden;
	width: 100% !important;
	max-width: none !important;
	margin: 0;
	border-radius: var(--esn-radius);
	background: #eef1f5;
}

.esn-category-module .esn-category-module__lead-media {
	grid-column: span 2;
	aspect-ratio: 2 / 1;
}

.esn-category-module .esn-category-module__lead-content {
	grid-column: span 2;
}

.esn-category-module .esn-category-module__card-media {
	aspect-ratio: 16 / 10;
}

.esn-category-module .esn-category-module__lead-media > a,
.esn-category-module .esn-category-module__card-media > a,
.esn-category-module .esn-category-module__lead-media .thumbnail-container,
.esn-category-module .esn-category-module__card-media .thumbnail-container {
	display: block;
	width: 100%;
	height: 100%;
	padding-bottom: 0 !important;
}

.esn-category-module .esn-category-module__lead-media img,
.esn-category-module .esn-category-module__card-media img {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.esn-category-module .esn-category-module__lead:hover .jeg_thumb img,
.esn-category-module .esn-category-module__card:hover .jeg_thumb img {
	transform: scale(1.025);
}

.esn-category-module .esn-category-module__lead-content,
.esn-category-module .esn-category-module__card-content {
	float: none !important;
	clear: none !important;
	position: static !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.esn-category-module .esn-category-module__lead-title,
.esn-category-module .esn-category-module__card-title {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	font-weight: 800;
	letter-spacing: -0.025em;
	overflow-wrap: anywhere;
}

.esn-category-module .esn-category-module__lead-title,
.esn-category-module .esn-category-module__lead-title > a,
.esn-category-module .esn-category-module__card-title,
.esn-category-module .esn-category-module__card-title > a {
	color: var(--esn-title);
}

.esn-category-module .esn-category-module__lead-title > a:hover,
.esn-category-module .esn-category-module__lead-title > a:focus-visible,
.esn-category-module .esn-category-module__card-title > a:hover,
.esn-category-module .esn-category-module__card-title > a:focus-visible {
	color: var(--esn-accent);
}

.esn-category-module .esn-category-module__lead-title {
	font-size: clamp(2.2rem, 3.25vw, 3.6rem);
	line-height: 1.03;
}

.esn-category-module .esn-category-module__card-title {
	font-size: clamp(1.3rem, 1.78vw, 1.88rem);
	line-height: 1.1;
}

.esn-category-module .jeg_post_excerpt,
.esn-category-module .jeg_post_excerpt p {
	color: var(--esn-text);
}

.esn-category-module .esn-category-module__card-excerpt p {
	margin: 0;
}

.esn-category-module .jeg_post_meta,
.esn-category-module .jeg_post_meta a,
.esn-category-module .jeg_post_meta .fa {
	color: var(--esn-meta);
}

.esn-category-module .esn-category-module__lead-content > .jeg_post_meta {
	margin-top: 14px;
}

.esn-category-module--hide-lead-author .esn-category-module__lead .jeg_meta_author {
	display: none !important;
}

.esn-category-module .esn-category-module__cards-wrap {
	margin-top: var(--esn-row-gap);
}

.esn-category-module .esn-category-module__grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--esn-row-gap) var(--esn-gap);
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.esn-category-module .esn-category-module__card {
	display: block !important;
	float: none !important;
	min-width: 0;
	width: auto !important;
	max-width: none !important;
	margin: 0;
	padding: 0;
	border: 0;
}

.esn-category-module .esn-category-module__card::before,
.esn-category-module .esn-category-module__card::after {
	display: none;
}

.esn-category-module .esn-category-module__card-content {
	width: 100%;
	margin-left: 0 !important;
	padding-top: 14px !important;
}

.esn-category-module .esn-category-module__card-excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 11px;
	font-size: 1.02rem;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.esn-category-module .esn-category-module__card .jeg_post_meta {
	margin-top: 11px;
	font-size: 0.86rem;
}

.esn-category-module .jeg_block_navigation {
	margin-top: 28px;
}

.esn-category-module .jeg_block_loadmore a,
.esn-category-module .jeg_block_nav a:not(.disabled) {
	border-color: var(--esn-accent);
	color: var(--esn-accent);
}

.esn-category-module .jeg_block_loadmore a:hover,
.esn-category-module .jeg_block_nav a:not(.disabled):hover {
	background: var(--esn-accent);
	color: #fff;
}

@media (max-width: 1024px) {
	.esn-category-module .esn-category-module__lead {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.esn-category-module .esn-category-module__lead-media,
	.esn-category-module .esn-category-module__lead-content {
		grid-column: span 1;
	}

	.esn-category-module .esn-category-module__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.esn-category-module .jeg_block_heading {
		align-items: flex-start;
	}

	.esn-category-module .jeg_subcat {
		width: 100%;
		margin-top: 10px;
	}

	.esn-category-module .esn-category-module__lead {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.esn-category-module .esn-category-module__lead-media,
	.esn-category-module .esn-category-module__lead-content {
		grid-column: 1;
	}

	.esn-category-module .esn-category-module__lead-media {
		aspect-ratio: 16 / 10;
	}

	.esn-category-module .esn-category-module__lead-title {
		font-size: clamp(2rem, 9.2vw, 2.72rem);
		line-height: 1.04;
	}

	.esn-category-module .esn-category-module__grid {
		grid-template-columns: 1fr;
	}

	.esn-category-module .esn-category-module__card {
		display: grid !important;
		grid-template-columns: minmax(120px, 40%) minmax(0, 1fr);
		gap: 15px;
		align-items: start;
	}

	.esn-category-module .esn-category-module__card-content {
		padding-top: 0 !important;
	}

	.esn-category-module .esn-category-module__card-title {
		font-size: clamp(1.2rem, 5.8vw, 1.52rem);
		line-height: 1.12;
	}

	.esn-category-module .esn-category-module__card-excerpt {
		display: none;
	}

	.esn-category-module .esn-category-module__card .jeg_post_meta {
		margin-top: 9px;
		font-size: 0.82rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.esn-category-module .esn-category-module__lead-media img,
	.esn-category-module .esn-category-module__card-media img {
		transition: none;
	}

	.esn-category-module .esn-category-module__lead:hover .jeg_thumb img,
	.esn-category-module .esn-category-module__card:hover .jeg_thumb img {
		transform: none;
	}
}
