/**
 * Policy & Regulation Reports section – ad-style promo to drive sign-ups.
 * Used on homepage (after newsletter) and via shortcode [gep_pr_section].
 */

/* Section wrapper – full-bleed attention-grabbing strip */
.gep-pr-section-wrap {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 6vw, 3.5rem);
	background: linear-gradient(145deg, #0d5c36 0%, #1a6b3e 25%, #1d7445 50%, #2d8b54 100%);
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

.gep-pr-section-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M24 0l6 6-6 6-6-6 6-6zM0 24l6 6-6 6-6-6 6-6zM24 24l6 6-6 6-6-6 6-6zM48 24l6 6-6 6-6-6 6-6z'/%3E%3C/g%3E%3C/svg%3E");
	pointer-events: none;
}

.gep-pr-section,
.gep-pr-section-wrap .gep-pr-section {
	max-width: 1140px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	box-sizing: border-box;
	padding-left: clamp(1rem, 4vw, 2rem);
	padding-right: clamp(1rem, 4vw, 2rem);
}

/* Ad card – two columns: left = copy + CTA, right = latest report card */
.gep-pr-ad-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 4vw, 3rem);
	align-items: start;
	background: rgba(255, 255, 255, 0.98);
	border-radius: 20px;
	padding: clamp(2rem, 4vw, 3rem);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.6);
	position: relative;
	backdrop-filter: blur(12px);
}

.gep-pr-ad-card-left {
	min-width: 0;
}

.gep-pr-ad-card-right {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* Premium badge */
.gep-pr-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #1d7445;
	background: linear-gradient(135deg, #f0d876 0%, #e8c94a 100%);
	padding: 0.4rem 0.9rem;
	border-radius: 50px;
	margin-bottom: 1rem;
	box-shadow: 0 2px 12px rgba(240, 216, 118, 0.5);
}

/* Headline – product name */
.gep-pr-section .gep-pr-headline {
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 0.75rem;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

/* Intro / value prop */
.gep-pr-section .gep-pr-intro,
.gep-pr-section .premium-subscribers {
	display: block;
	font-size: clamp(1rem, 2vw, 1.125rem);
	line-height: 1.65;
	color: #4a5568;
	max-width: 640px;
	margin: 0 0 1.5rem;
}

/* Primary CTA button – high contrast, click me */
.gep-pr-section .gep-pr-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 1rem 1.75rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: #14663c !important;
	background: linear-gradient(135deg, #f0d876 0%, #e8c94a 100%);
	border: 2px solid rgba(232, 201, 74, 0.9);
	border-radius: 50px;
	text-decoration: none !important;
	box-shadow: 0 4px 20px rgba(240, 216, 118, 0.45), 0 2px 8px rgba(29, 116, 69, 0.15);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gep-pr-section .gep-pr-cta-btn:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 8px 28px rgba(240, 216, 118, 0.55), 0 4px 12px rgba(29, 116, 69, 0.2);
	background: #fff;
	color: #1d7445 !important;
	border-color: #fff;
}

.gep-pr-section .gep-pr-cta-btn .policy-regulation-reports {
	display: inline-block;
}

.gep-pr-section .gep-pr-cta-arrow,
.gep-pr-section .gep-pr-cta-btn .frame-85 {
	width: 20px;
	height: 20px;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.gep-pr-section .gep-pr-cta-btn:hover .gep-pr-cta-arrow,
.gep-pr-section .gep-pr-cta-btn:hover .frame-85 {
	transform: translateX(4px);
}

/* "Latest report" teaser label – on green strip (standalone); inside card (right column) */
.gep-pr-section-wrap .gep-pr-teaser-label {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
}

/* Inside white card right column – use dark label */
.gep-pr-ad-card-right .gep-pr-teaser-label {
	color: #4a5568;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	margin: 0;
}

/* Listings area – single "Latest report" card (P&R style) */
.gep-pr-section .gep-pr-listings {
	margin-top: 0;
}

.gep-pr-section .gep-pr-listings .gep-pr-latest-report {
	text-decoration: none;
	color: inherit;
	display: block;
	max-width: 100%;
}

/* White card, rounded corners, image on top then content */
.gep-pr-section .gep-pr-listings .gep-pr-latest-report-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.5);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}

/* When inside the white ad card (right column), subtle border so it reads as a card */
.gep-pr-ad-card-right .gep-pr-listings .gep-pr-latest-report-card {
	border: 1px solid rgba(77, 179, 124, 0.2);
	box-shadow: 0 4px 20px rgba(29, 116, 69, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gep-pr-section .gep-pr-listings .gep-pr-latest-report:hover .gep-pr-latest-report-card {
	transform: translateY(-6px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Image – full width, fixed height; text overlay on image to reduce card height */
.gep-pr-section .gep-pr-listings .gep-pr-latest-report-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #1a1a1a;
	position: relative;
}

.gep-pr-section .gep-pr-listings .gep-pr-latest-report-image .pr-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Gradient overlay + text on image (reduces card height) */
.gep-pr-section .gep-pr-listings .gep-pr-latest-report-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.25rem 1.25rem 1rem;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.gep-pr-section .gep-pr-listings .gep-pr-latest-report-title {
	font-size: clamp(1rem, 1.8vw, 1.25rem);
	font-weight: 700;
	color: #fff;
	margin: 0;
	line-height: 1.3;
	letter-spacing: -0.02em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.gep-pr-section .gep-pr-listings .gep-pr-latest-report-meta {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
	line-height: 1.3;
}

.gep-pr-section .gep-pr-listings .gep-pr-latest-report-excerpt {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.45;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 900px) {
	.gep-pr-ad-card {
		grid-template-columns: 1fr;
		padding: 1.5rem 1.25rem;
	}

	.gep-pr-ad-card-right {
		order: 2;
	}
}

@media (max-width: 768px) {
	.gep-pr-section .gep-pr-headline {
		font-size: 1.375rem;
	}

	.gep-pr-section .gep-pr-intro,
	.gep-pr-section .premium-subscribers {
		font-size: 1rem;
		margin-bottom: 1.25rem;
	}

	.gep-pr-section .gep-pr-cta-btn {
		width: 100%;
		justify-content: center;
		padding: 0.9rem 1.5rem;
		font-size: 1rem;
	}

	.gep-pr-section .gep-pr-listings .gep-pr-latest-report-overlay {
		padding: 1rem 1rem 0.75rem;
	}
}

/* When used as shortcode on other pages – still look like an ad */
:not(.gep-pr-section-wrap) > .gep-pr-section {
	padding: 0;
}

:not(.gep-pr-section-wrap) > .gep-pr-section .gep-pr-ad-card {
	background: linear-gradient(145deg, #f8fcf9 0%, #fff 100%);
	border: 2px solid rgba(77, 179, 124, 0.25);
	box-shadow: 0 16px 48px rgba(29, 116, 69, 0.12), 0 6px 20px rgba(0, 0, 0, 0.06);
}

:not(.gep-pr-section-wrap) > .gep-pr-section .gep-pr-teaser-label {
	color: #4a5568;
}
