/* ==========================================================
   BFMS - Newsletter page
   (hero/CTA from services.css, carousel from industries.css)
   ========================================================== */

/* ---------- Why Subscribe section ---------- */
.nl-why-section {
	padding: 96px 0 88px;
}

.nl-why-section .section-title {
	margin-bottom: 40px;
}

.nl-why-list {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--line);
}

.nl-why-row {
	display: grid;
	grid-template-columns: 40px 1fr 1fr;
	align-items: center;
	gap: 24px;
	padding: 28px 0;
	border-bottom: 1px solid var(--line);
	transition: background .2s ease;
}

.nl-why-row:hover {
	background: #fff5ee;
	padding-left: 16px;
	padding-right: 16px;
	margin: 0 -16px;
	border-radius: 8px;
}

.nl-why-arrow {
	font-size: 22px;
	color: var(--orange);
	font-weight: 600;
}

.nl-why-heading {
	font-size: 20px;
	font-weight: 600;
	color: var(--dark);
}

.nl-why-desc {
	font-size: 16px;
	color: var(--text);
}

@media (max-width: 600px) {
	.nl-why-row {
		grid-template-columns: 32px 1fr;
	}
	.nl-why-desc {
		grid-column: 2;
		margin-top: -12px;
		font-size: 14px;
	}
}

/* ---------- Topics section ---------- */
.nl-topics-section {
	padding: 96px 0 88px;
}

.nl-topics-section .section-title {
	margin-bottom: 48px;
}

.nl-topics-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.nl-topic-card {
	padding: 32px 28px;
	border: 1px solid var(--line);
	border-radius: 16px;
	transition: box-shadow .2s ease, border-color .2s ease;
}

.nl-topic-card:hover {
	border-color: var(--orange);
	box-shadow: 0 8px 32px rgba(242,107,15,.08);
}

.nl-topic-icon {
	width: 56px;
	height: 56px;
	background: #fff5ee;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.nl-topic-card h3 {
	font-size: 18px;
	font-weight: 600;
	color: var(--dark);
	margin-bottom: 10px;
}

.nl-topic-card p {
	font-size: 14px;
	color: var(--text);
	line-height: 1.6;
	margin: 0;
}

@media (max-width: 900px) {
	.nl-topics-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 540px) {
	.nl-topics-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Intro + stats (legacy - kept for reference) ---------- */
.nl-intro-section {
	padding: 96px 0 88px;
}

.nl-intro {
	display: grid;
	grid-template-columns: 620px 1fr;
	align-items: center;
	gap: 40px;
}

.nl-intro .section-title {
	margin-bottom: 0;
	line-height: 68px;
}

.nl-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.nl-stat {
	padding: 14px 0 14px 30px;
	border-left: 1px solid var(--line);
}

.nl-stat:first-child {
	padding-left: 0;
	border-left: 0;
}

.nl-stat strong {
	display: block;
	color: var(--heading);
	font-size: 36px;
	font-weight: 600;
	line-height: 1.1;
	margin-bottom: 8px;
}

.nl-stat span {
	color: var(--orange);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .2px;
}

/* ---------- Featured edition ---------- */
.nl-featured-section {
	background: #141414;
	padding: 92px 0 90px;
}

.nl-featured-section .section-title {
	line-height: 68px;
	margin-bottom: 30px;
}

.nl-featured {
	display: grid;
	grid-template-columns: 642px 1fr;
	gap: 52px;
	align-items: start;
}

.nl-featured-image img {
	width: 100%;
	height: 462px;
	object-fit: cover;
}

.nl-featured-content {
	max-width: 480px;
}

.nl-featured-content h3 {
	color: var(--white);
	font-size: 30px;
	font-weight: 400;
	line-height: 40px;
	margin-bottom: 20px;
}

.nl-featured-content p {
	color: #a5a5a5;
	font-size: 20px;
	line-height: 26px;
	margin-bottom: 20px;
}

/* ---------- Past editions ---------- */
.nl-editions-section {
	padding: 96px 0 90px;
}

.nl-editions-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 40px;
}

.nl-editions-section .section-title {
	font-size: 52px;
	margin-bottom: 0;
}

.nl-editions-actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 20px;
	margin-top: 10px;
}

.nl-editions-actions .carousel-arrows {
	gap: 10px;
	padding-right: 0;
}

/* Card width is a share of the track, so whole cards always fit on any screen */
.nl-carousel-track {
	--per-view: 4;
	--gap: 20px;
	display: flex;
	gap: var(--gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.nl-carousel-track::-webkit-scrollbar {
	display: none;
}

.edition-card {
	flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
	min-width: 0;
	scroll-snap-align: start;
	background: #141414;
	display: flex;
	flex-direction: column;
}

.nl-carousel .carousel-progress {
	margin: 28px 0 0;
	background: var(--line);
}

.nl-carousel .carousel-progress span {
	background: var(--orange);
}

@media (max-width: 1199px) {
	.nl-carousel-track {
		--per-view: 3;
	}
}

@media (max-width: 991px) {
	.nl-carousel-track {
		--per-view: 2;
	}
}

@media (max-width: 575px) {
	.nl-carousel-track {
		--per-view: 1;
		--gap: 16px;
	}
}

.edition-image {
	overflow: hidden;
}

.edition-image img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	transition: transform .5s ease;
}

.edition-card:hover .edition-image img {
	transform: scale(1.06);
}

.edition-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.edition-body .btn-pill {
	margin-top: auto;
	align-self: flex-start;
}

.edition-body .newsletter-meta {
	font-size: 10px;
	margin-bottom: 12px;
}

.edition-body .newsletter-meta i {
	width: 3px;
	height: 3px;
}

.edition-body h3 {
	color: var(--white);
	font-size: 20px;
	font-weight: 400;
	line-height: 26px;
	margin-bottom: 14px;
}

.edition-body p {
	color: #a5a5a5;
	font-size: 13px;
	line-height: 17px;
	margin-bottom: 14px;
	flex-grow: 1;
}

.btn-xs {
	height: 28px;
	padding: 0 9px;
	font-size: 11px;
	gap: 5px;
}

.btn-xs img {
	width: 11px;
	height: 11px;
}


/* ---------- LinkedIn block ---------- */
.nl-linkedin-section {
	background: #141414;
	padding: 90px 0;
}

.nl-linkedin {
	display: grid;
	grid-template-columns: 1fr 344px;
	gap: 68px;
	align-items: center;
	max-width: 950px;
	margin: 0 auto;
	padding: 64px 55px 64px 55px;
	border: 1px solid #2a2a2a;
	background: radial-gradient(ellipse at 0% 40%, rgba(242, 107, 15, .38) 0%, rgba(120, 45, 10, .25) 35%, rgba(20, 20, 20, 0) 70%), #111;
}

.nl-linkedin-text span {
	display: block;
	color: var(--orange);
	font-size: 16px;
	margin-bottom: 28px;
}

.nl-linkedin-text h3 {
	color: var(--white);
	font-size: 26px;
	font-weight: 400;
	line-height: 35px;
	margin-bottom: 34px;
}

.nl-linkedin-text p {
	color: #9a9a9a;
	font-size: 16px;
	line-height: 23px;
	margin-bottom: 26px;
}

.nl-linkedin-text .btn-pill {
	height: 38px;
	font-size: 15px;
	padding: 0 12px;
}

.nl-linkedin-card {
	background: #1b1b1b;
	border: 1px solid #2c2c2c;
	padding: 28px 27px;
}

.nl-linkedin-head {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 38px;
}

.nl-linkedin-head img {
	width: 38px;
	height: 38px;
	padding: 5px;
	border-radius: 6px;
	background: #333;
	object-fit: contain;
}

.nl-linkedin-head strong {
	display: block;
	color: var(--white);
	font-size: 15px;
	font-weight: 400;
}

.nl-linkedin-head small {
	color: #8a8a8a;
	font-size: 10px;
}

.nl-linkedin-card p {
	color: #a5a5a5;
	font-size: 15px;
	line-height: 19.5px;
	margin-bottom: 26px;
}

.nl-join-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	border-radius: 3px;
	background: var(--white);
	color: var(--orange);
	font-size: 14px;
	font-weight: 500;
}

.nl-join-btn:hover {
	background: var(--orange);
	color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.nl-intro {
		grid-template-columns: 1fr;
	}

	.nl-featured {
		grid-template-columns: 1fr 1fr;
		gap: 36px;
	}
}

@media (max-width: 991px) {
	.nl-intro .section-title,
	.nl-featured-section .section-title {
		line-height: 1.3;
	}

	.nl-featured {
		grid-template-columns: 1fr;
	}

	.nl-featured-image img {
		height: 380px;
	}

	.nl-featured-content {
		padding-top: 0;
		max-width: none;
	}

	.nl-editions-section .section-title {
		font-size: 40px;
	}

	.nl-linkedin {
		grid-template-columns: 1fr;
		gap: 36px;
		padding: 44px 32px;
	}
}

@media (max-width: 767px) {
	.nl-intro-section,
	.nl-featured-section,
	.nl-editions-section,
	.nl-linkedin-section {
		padding: 60px 0;
	}

	.nl-stats {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.nl-stat {
		padding-left: 14px;
	}

	.nl-stat strong {
		font-size: 22px;
	}

	.nl-stat span {
		font-size: 9px;
	}

	.nl-featured {
		gap: 24px;
	}

	.nl-featured-image img {
		height: 220px;
		border-radius: 6px;
	}

	.nl-featured-content h3 {
		font-size: 20px;
		line-height: 28px;
		margin-bottom: 12px;
	}

	.nl-featured-content p {
		font-size: 15px;
		line-height: 23px;
		margin-bottom: 20px;
	}

	.nl-featured-section .newsletter-meta {
		font-size: 12px;
		margin-bottom: 10px;
	}

	.nl-editions-head {
		flex-direction: column;
		gap: 8px;
		margin-bottom: 24px;
	}

	.nl-editions-section .section-title {
		font-size: 30px;
		margin-bottom: 0;
	}

	.nl-editions-actions {
		width: 100%;
		justify-content: space-between;
		margin-top: 0;
	}

	.nl-linkedin {
		padding: 32px 20px;
	}

	.nl-linkedin-text h3 {
		font-size: 22px;
		line-height: 30px;
	}
}
