/* DEF Newsletter — year tabs + 3-column grid */

.def-nl {
	--def-nl-red: #a9101a;
	--def-nl-red-hover: #8f0d16;
	--def-nl-tab-bg: #f9f9fb;
	--def-nl-text: #141617;
	--def-nl-muted: #6b7280;
	--def-nl-border: #e2e5e8;
	--def-nl-radius: 20px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.def-nl *,
.def-nl *::before,
.def-nl *::after {
	box-sizing: border-box;
}

/* ---------- Year tab scroller ---------- */

.def-nl-tabs-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 36px;
}

.def-nl-tabs-viewport {
	flex: 1 1 auto;
	overflow: hidden;
	min-width: 0;
}

.def-nl .custom_tab.def-nl-tabs {
	width: 100%;
}

.def-nl .custom_tab ul.def-nl-tabs-track {
	display: flex !important;
	justify-content: flex-start !important;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	width: max-content;
	will-change: transform;
	transition: transform 0.35s ease;
}

.def-nl:not(.is-scrollable) .custom_tab ul.def-nl-tabs-track {
	justify-content: center !important;
	width: 100%;
}

.def-nl .custom_tab li,
.def-nl .def-nl-tab-item {
	position: relative;
	margin: 0 !important;
	padding: 10px 0 0 !important;
	border: none !important;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

html body .def-nl .custom_tab li a.def-nl-tab,
html body .def-nl a.def-nl-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 110px;
	height: 48px;
	min-height: 48px;
	font-size: 16px !important;
	font-weight: 500;
	line-height: 1;
	color: #6b7280 !important;
	background: var(--def-nl-tab-bg) !important;
	border: none !important;
	padding: 12px 20px !important;
	margin: 0 !important;
	border-radius: 25px !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
	pointer-events: auto;
	white-space: nowrap;
	box-sizing: border-box;
	transition: background 0.2s ease, color 0.2s ease;
}

html body .def-nl .custom_tab li.vc_active,
html body .def-nl .custom_tab li.is-active,
html body .def-nl .def-nl-tab-item.is-active {
	border: none !important;
	padding: 10px 0 0 !important;
	margin: 0 !important;
}

html body .def-nl .custom_tab li.vc_active::before,
html body .def-nl .custom_tab li.is-active::before,
html body .def-nl .def-nl-tab-item.is-active::before,
html body .def-nl .custom_tab li:hover::before,
html body .def-nl .def-nl-tab-item:hover::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 72%;
	height: 3px;
	background: var(--def-nl-red);
	border-radius: 1px;
	pointer-events: none;
}

html body .def-nl .custom_tab li.vc_active a.def-nl-tab,
html body .def-nl .custom_tab li.is-active a.def-nl-tab,
html body .def-nl .def-nl-tab-item.is-active a.def-nl-tab,
html body .def-nl a.def-nl-tab.is-active,
html body .def-nl a.def-nl-tab[aria-selected="true"],
html body .def-nl .custom_tab li:not(.vc_active):not(.is-active) a.def-nl-tab:hover,
html body .def-nl .def-nl-tab-item:not(.is-active) a.def-nl-tab:hover,
html body .def-nl a.def-nl-tab:hover {
	background: var(--def-nl-red) !important;
	color: #fff !important;
	height: 48px;
	min-height: 48px;
	padding: 0 28px !important;
	border-radius: 25px !important;
}

html body .def-nl .custom_tab li.vc_active a.def-nl-tab:hover,
html body .def-nl .custom_tab li.is-active a.def-nl-tab:hover,
html body .def-nl .def-nl-tab-item.is-active a.def-nl-tab:hover,
html body .def-nl a.def-nl-tab.is-active:hover,
html body .def-nl a.def-nl-tab[aria-selected="true"]:hover {
	background: var(--def-nl-red) !important;
	color: #fff !important;
}

.def-nl-arrow {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #141617;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.def-nl-arrow svg {
	display: block;
	width: 32px;
	height: 32px;
}

.def-nl-arrow:hover:not(:disabled),
.def-nl-arrow:focus-visible:not(:disabled) {
	background: transparent;
	border: none;
	color: #a9101a;
}

.def-nl-arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.def-nl:not(.is-scrollable) .def-nl-arrow {
	display: none;
}

/* ---------- 3-column card grid ---------- */

.def-nl-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.def-nl-card {
	background: #fff;
	border: 1.5px solid var(--def-nl-border);
	border-radius: var(--def-nl-radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.def-nl-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
	border-color: #d0d4d9;
}

.def-nl-card-image {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 14px;
	background: #f3f4f6;
}

.def-nl-card-image img {
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}

.def-nl-card-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.def-nl-card-title {
	margin: 16px 4px 6px !important;
	padding: 0;
	font-size: 20px !important;
	line-height: 1.35 !important;
	font-weight: 700 !important;
}

.def-nl-card-title a,
.def-nl-card-title {
	color: var(--def-nl-text) !important;
	text-decoration: none !important;
}

.def-nl-card-title a:hover {
	color: var(--def-nl-red) !important;
}

.def-nl-empty {
	margin: 24px 0;
	color: var(--def-nl-muted);
	text-align: center;
}

.def-nl-panel[hidden] {
	display: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
	.def-nl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	html body .def-nl .custom_tab li a.def-nl-tab,
	html body .def-nl a.def-nl-tab {
		font-size: 16px !important;
	}
}

@media (max-width: 767px) {
	.def-nl-tabs-bar {
		gap: 6px;
		margin-bottom: 24px;
	}

	.def-nl-arrow {
		width: 32px;
		height: 32px;
	}

	.def-nl-arrow svg {
		width: 26px;
		height: 26px;
	}

	.def-nl-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.def-nl-card-title {
		font-size: 18px !important;
	}

	html body .def-nl .custom_tab li a.def-nl-tab,
	html body .def-nl a.def-nl-tab,
	html body .def-nl .custom_tab li.vc_active a.def-nl-tab,
	html body .def-nl .custom_tab li.is-active a.def-nl-tab,
	html body .def-nl .def-nl-tab-item.is-active a.def-nl-tab,
	html body .def-nl a.def-nl-tab.is-active,
	html body .def-nl a.def-nl-tab[aria-selected="true"],
	html body .def-nl a.def-nl-tab:hover {
		min-width: 88px;
		height: 42px;
		min-height: 42px;
		padding: 0 18px !important;
	}
}
