/* ==========================================================
Trusted Partner Template Styles
----------------------------------------------------------
- Designed for single-partners.php
- Uses CSS custom properties for easy customization
========================================================== */

:root {
	--primary-color: #1c1c49;
	--accent-color: #29abe2;
	--light-gray: #f8f9fa;
	--medium-gray: #e0e0e0;
	--text-color: #333;
	--tag-bg: #e9ecef;
	--font-family: "Barlow", sans-serif;
	--max-width: 1200px;
	--spacing: 1rem;
}

/* ==========================================================
Global Container
========================================================== */

.trusted-partner-container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: calc(var(--spacing) * 2) var(--spacing);
	font-family: var(--font-family);
	color: var(--text-color);
}

/* ==========================================================
Hero Section
========================================================== */

.partner-hero {
	text-align: center;
	margin-bottom: calc(var(--spacing) * 2);
	background-image: url("../img/hero-background.jpg");
	background-size: cover;
	padding: calc(var(--spacing) * 4);
}

.partner-logos {
	margin-bottom: var(--spacing);
}

.partner-logo {
	height: 100px;
	margin: 0 auto;
	object-fit: contain;
	max-width: 768px;
}

.partner-logo img {
	object-fit: contain;
	height: 100%;
	width: 100%;
	display: block;
}

.partner-name {
	font-size: 4rem;
	font-weight: bold;
	margin-top: 0.5rem;
	color: #fff;
}

.member-since {
	font-size: 0.95rem;
	color: #777;
	margin: 0px;
}

.partner-website {
	display: inline-block;
	color: var(--accent-color);
	text-decoration: underline;
}

.membership-byline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: calc(var(--spacing) * 2);
}
.membership-byline a,
.membership-byline .member-since {
	color: #fff;
	font-family: Barlow;
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: 32px; /* 160% */
	letter-spacing: -0.4px;
}
a.partner-website {
	display: flex;
	align-items: center;
	gap: 0.25em;
}

.membership-byline a:hover {
	color: var(--accent-color);
}

/* ==========================================================
Tag Styling (Industry + Partnership Type)
========================================================== */

.partner-tags svg path {
	stroke: currentColor !important;
}
span.tag-icon svg {
	height: 20px;
}

span.tag-icon {
	display: flex;
	align-items: center;
}

.partner-tags {
	margin-top: var(--spacing);
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: center;
}

.partner-tags .tag {
	display: flex;
	padding: 10px 20px;
	align-items: center;
	gap: 12px;
	border-radius: 60px;
	border: 0.8px solid var(--29-abe-2, #29abe2);
	color: #29abe2;
}

/* ==========================================================
Sidebar Info Block
========================================================== */

.partner-sidebar {
	background: var(--light-gray);
	padding: calc(var(--spacing) * 1.5);
	border-radius: 16px;
	margin-bottom: calc(var(--spacing) * 2);
}

.partner-sidebar ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.partner-sidebar li {
	margin-bottom: 1rem;
	color: var(--primary-color);
	font-family: Barlow;
	font-size: 1rem;
	font-style: normal;
	font-weight: 500;
	line-height: 33px;
}

.partner-sidebar a.btn-contact {
	display: inline-block;
	padding: 0.75rem 1.75rem;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	background: var(--primary-color);
	color: #fff;
	margin-top: 2em;
	display: block;
	text-align: center;
}

li.contact-name, .contact-title, .contact-email {
    font-weight: 700;
    margin-bottom: .1em !important;
    padding: 0px;
    line-height: 1.5em !important;
}

/* ==========================================================
About Section
========================================================== */

.partner-about {
	margin-bottom: calc(var(--spacing) * 2);
}

.partner-resources h2,
.partner-testimonials h2,
.partner-about h2 {
	margin-bottom: var(--spacing);
	color: #1c1c49;
	text-align: center;
	font-family: Barlow;
	font-size: 3rem;
	font-style: normal;
	font-weight: 700;
	line-height: 120%;
}

.about-content {
	line-height: 1.6;
}

/* ==========================================================
Testimonials
========================================================== */

.partner-testimonials {
	margin-bottom: calc(var(--spacing) * 3);
}

.testimonial-block {
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
	border-left: none;
	margin: 0 auto 2rem;
}

.testimonial-text {
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
	color: #1c1c49;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.testimonial-author img {
	width: 60px;
	height: 60px;
	border-radius: 100px;
	object-fit: cover;
}

.author-details {
	display: flex;
	flex-direction: column;
}

.author-name {
	font-weight: 700;
	color: #1c1c49;
	margin: 0;
}

.author-role {
	color: var(--accent-color);
	font-style: italic;
	font-weight: 400;
	font-size: 0.95rem;
	margin: 0;
}

/* ==========================================================
Promo Banner (Discount Area)
========================================================== */

.partner-discount-banner {
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--accent-color)
	);
	background-image: url("../img/special-offer.jpg");
	background-size: cover;

	color: white;
	padding: calc(var(--spacing) * 2);
	text-align: center;
	border-radius: 16px;
	margin-bottom: calc(var(--spacing) * 3);
}

section.partner-discount-banner h3 {
	color: #fff;
	text-align: center;
	font-family: Barlow;
	font-size: 3rem;
	font-style: normal;
	font-weight: 700;
	line-height: 100%;
	margin-bottom: var(--spacing);
}
.partner-discount-text p {
	text-wrap: balance;
    font-size: 1.5rem;
    line-height: 1.25em;
	color: #fff;
}
/* ==========================================================
Partner Discount Banner Buttons
========================================================== */
.partner-discount-banner {
	text-align: center;
	padding: calc(var(--spacing) * 4) calc(var(--spacing) * 2);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.partner-discount-text {
	width: 100%;
}

.partner-discount-banner h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: white;
}

/* Shared button styles */
.partner-discount-banner a {
	display: inline-block;
	padding: 0.75rem 1.75rem;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

/* Contact Partner: bright blue */
.partner-discount-banner .btn-contact {
	background-color: #29abe2;
	color: white;
}

.partner-discount-banner .btn-contact:hover {
	background-color: #1c91c1;
}

/* Visit Website: dark navy */
.partner-discount-banner .btn-visit {
	background-color: #1c1c49;
	color: white;
}

.partner-discount-banner .btn-visit:hover {
	background-color: #121236;
}

/* Side-by-side layout on desktop */
@media screen and (min-width: 600px) {
	.partner-discount-banner {
		flex-direction: row;
		justify-content: center;
	}
}

/* ==========================================================
Additional Resources Section
========================================================== */

.partner-resources {
	margin-bottom: calc(var(--spacing) * 3);
}

.partner-resources h2 {
	font-size: 1.5rem;
	margin-bottom: var(--spacing);
}

.resource-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: calc(var(--spacing) * 1.5);
}

.resource-card {
	background: url(../img/resource-background.jpg) center / cover no-repeat;
	color: #ffffff;
	padding: 2rem 1.5rem;
	border-radius: 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 280px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover animation */
.resource-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Type label (e.g., Blog Post, Case Study) */
.resource-card h4 {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
	color: #ffffff;
}

/* Headline text */
.resource-card p {
	margin: 0 auto 1.5rem;
	color: #fff;
	text-align: center;
	text-shadow: 0px 0px 1.5px #009fd8;
	font-family: Barlow;
	font-size: 1.7rem;
	font-style: normal;
	font-weight: 400;
	line-height: 120%;
}

/* Button style */
.resource-card .btn-learn {
	display: inline-block;
	background-color: #29abe2;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	padding: 0.6rem 1.5rem;
	border-radius: 999px;
	font-size: 1rem;
	transition: background-color 0.3s ease;
}

.resource-card .btn-learn:hover {
	background-color: #1c91c1;
}

/* ==========================================================
Newsletter Form Section
========================================================== */

.partner-newsletter {
	margin: calc(var(--spacing) * 3) 0;
	padding: calc(var(--spacing) * 2);
	background: var(--light-gray);
	border-radius: 16px;
}

.partner-newsletter h2 {
	font-size: 1.75rem;
	text-align: center;
	margin-bottom: var(--spacing);
}

.partner-newsletter-intro {
	margin: 0 auto calc(var(--spacing) * 1.5);
	max-width: 640px;
	text-align: center;
	color: var(--primary-color);
}

.partner-newsletter .gform_wrapper {
	margin: 0 auto;
	max-width: 640px;
}

.partner-newsletter--inactive {
	border: 1px dashed var(--medium-gray);
}

.partner-newsletter-alert {
	margin: 0;
	text-align: center;
	font-style: italic;
	color: var(--primary-color);
}

/* ==========================================================
Dark Mode Logo Toggle
========================================================== */

/* ==========================================================
Layout Container for Sidebar + Content
========================================================== */
.partner-container {
	display: flex;
	align-items: flex-start;
	gap: 2rem;
}

/* Make the sidebar fixed within its scroll zone */
.partner-sidebar {
	position: sticky;
	top: 2rem; /* distance from top of viewport */
	width: 280px;
	flex-shrink: 0;
	background: var(--light-gray);
	padding: 2rem;
	border-radius: 16px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Sidebar content spacing */
.partner-sidebar ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.partner-sidebar li {
	margin-bottom: 1rem;
}

.partner-sidebar strong {
	display: block;
	color: var(--accent-color);
	letter-spacing: 0.5px;
	margin-bottom: 0.25rem;
	leading-trim: both;
	text-edge: cap;
	font-family: Barlow;
	font-size: 18px;
	font-style: normal;
	font-weight: 700;
	line-height: 33px;
	text-transform: uppercase;
}

.partner-sidebar ul ul {
	margin-top: 0.5rem;
	padding-left: 0.75rem;
	font-size: 0.95rem;
}

/* Main content area next to sidebar */
.partner-content {
	flex: 1;
	min-width: 0; /* fixes overflow on some browsers */
}

.partner-content-wrap {
	position: relative;
	background-image: url("../img/hexagons.png"), url("../img/hexagons-2.png");
	background-repeat: no-repeat, no-repeat;
	background-position: bottom left, top right;
	background-size: auto, auto; /* Adjust if needed */
	padding-bottom: 4rem; /* ensure space for bottom image */
}

li.partner-services ul {
	padding: 0px;
}

li.partner-contact ul {
	list-style: none;
	padding: 0;
}

li.partner-contact ul li {
	margin-bottom: 0.35rem;
}

li.service h4 {
	color: #1c1c49;
	leading-trim: both;
	text-edge: cap;
	font-family: Barlow;
	font-size: 1.5rem;
	font-style: normal;
	font-weight: 700;
	line-height: 33px; /* 150% */
}
li.service p {
	color: var(--primary-color);
	font-family: Barlow;
	font-size: 1rem;
	font-style: normal;
	font-weight: 500;
	line-height:1.5em;
}

@media screen and (max-width: 768px) {
	.partner-container {
		flex-direction: column;
	}

	.partner-sidebar {
		position: relative;
		width: 100%;
		top: unset;
		margin-bottom: 2rem;
	}

	.partner-sidebar .partner-logo {
		display: none;
	}
	.gallery-item-thumbnail-wrap {
	    min-height: unset !important;
	}

	.eael-filterable-gallery-item-wrap .eael-gallery-grid-item .gallery-item-thumbnail-wrap > img {
	    min-height: unset !important;
	    width: 100%;
	}
}
