/* =============================================================
 * Easygreen new homepage modules — Testimonials & Case Studies
 * Loaded standalone (outside the theme's webpack pipeline).
 * ============================================================= */

/* ===== Category Navigation (archive sidebar) ================= */

.category-nav__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.category-nav__item {
	margin-bottom: 6px;
}

.category-nav__link {
	display: block;
	font-size: 0.875rem;
	color: #555;
	text-decoration: none;
	padding: 2px 0;
	border-bottom: 1px solid transparent;
	transition: color 150ms ease, border-color 150ms ease;
}

.category-nav__link:hover {
	color: #222;
	text-decoration: none;
}

.category-nav__link--active {
	color: #222;
	font-weight: 600;
	border-bottom-color: #66fe0e;
}

/* ===== Post category tag (single post) ======================= */

.post-category-links {
	margin-bottom: 8px;
}

.post-category-link {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #555;
	text-decoration: none;
	margin-right: 8px;
	border-bottom: 1px solid #66fe0e;
	padding-bottom: 1px;
}

.post-category-link:hover {
	color: #222;
	text-decoration: none;
}

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

.testimonials-carousel {
	padding: 60px 0;
}

.testimonials-carousel__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 60px;
	position: relative;
}

.testimonials-carousel__header {
	text-align: center;
	margin-bottom: 40px;
}

.testimonials-carousel__items {
	position: relative;
}

.testimonials-carousel__slide {
	padding: 50px 40px;
	background: #fff;
	border-radius: 8px;
	text-align: center;
	margin: 10px 4px;
}

.testimonials-carousel__quote {
	font-size: 1.5rem;
	line-height: 1.5;
	margin: 0 0 28px 0;
	color: #222;
	font-style: italic;
	quotes: "\201C" "\201D";
}

.testimonials-carousel__quote::before {
	content: open-quote;
	margin-right: 2px;
}

.testimonials-carousel__quote::after {
	content: close-quote;
	margin-left: 2px;
}

.testimonials-carousel__attribution {
	font-size: 0.95rem;
	color: #666;
	margin-bottom: 28px;
}

.testimonials-carousel__name {
	font-weight: 600;
	color: #222;
}

.testimonials-carousel__name + .testimonials-carousel__company::before {
	content: ", ";
}

.testimonials-carousel__logo {
	margin: 0 auto;
	width: 200px;
	opacity: 0.85;
}

.testimonials-carousel__logo img,
.testimonials-carousel__logo-img {
	display: block;
	width: 200px;
	max-width: 200px;
	height: auto;
	max-height: 80px;
	object-fit: contain;
	margin: 0 auto;
}

/* Slick arrows positioned outside the card */
.testimonials-carousel .slick-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	z-index: 10;
	cursor: pointer;
	width: 40px;
	height: 40px;
	color: #333;
	font-size: 0;
	padding: 0;
	line-height: 1;
}

.testimonials-carousel .slick-arrow:hover {
	color: #000;
}

.testimonials-carousel .slick-prev {
	left: 8px;
}

.testimonials-carousel .slick-next {
	right: 8px;
}

.testimonials-carousel .slick-prev::before,
.testimonials-carousel .slick-next::before {
	font-size: 32px;
	line-height: 1;
	color: inherit;
	font-family: serif;
}

.testimonials-carousel .slick-prev::before {
	content: "\2039"; /* ‹ */
}

.testimonials-carousel .slick-next::before {
	content: "\203A"; /* › */
}

/* Hide default Slick text labels for accessibility — we keep visual symbols */
.testimonials-carousel .slick-arrow .slick-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* Mobile adjustments */
@media (max-width: 600px) {
	.testimonials-carousel__container {
		padding: 0 30px;
	}
	.testimonials-carousel__slide {
		padding: 36px 24px;
	}
	.testimonials-carousel__quote {
		font-size: 1.2rem;
		line-height: 1.45;
	}
	.testimonials-carousel__logo img,
	.testimonials-carousel__logo-img {
		width: 160px;
		max-width: 160px;
		max-height: 60px;
	}
}

/* ===== Case Studies Carousel =================================== */

.case-studies-carousel {
	padding: 60px 0;
}

.case-studies-carousel__header {
	margin-bottom: 40px;
}


.case-studies-carousel__row {
	position: relative;
	overflow: visible;
}

.case-studies-carousel__items {
	position: relative;
}

.case-studies-carousel__slide {
	padding: 0 12px;
}

.case-studies-carousel__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.case-studies-carousel__link:hover {
	color: inherit;
	text-decoration: none;
}

.case-studies-carousel__image {
	margin-bottom: 16px;
	overflow: hidden;
	height: 260px;
}

/* Override intrinsic_image()'s padding-bottom aspect-ratio wrapper */
.case-studies-carousel__image .image-container {
	height: 100% !important;
	padding-bottom: 0 !important;
}

.case-studies-carousel__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 300ms ease;
}

.case-studies-carousel__link:hover .case-studies-carousel__image img {
	transform: scale(1.03);
}

.case-studies-carousel__title {
	font-size: 1.25rem;
	margin: 0 0 12px 0;
	color: #222;
}

.case-studies-carousel__description {
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0 0 12px 0;
	color: #555;
}

.case-studies-carousel__more {
	font-weight: 600;
	color: #222;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
}

/* Case studies arrows */
.case-studies-carousel .slick-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	z-index: 10;
	cursor: pointer;
	width: 40px;
	height: 40px;
	color: #333;
	font-size: 0;
	padding: 0;
	line-height: 1;
}

.case-studies-carousel .slick-prev {
	left: -20px;
}

.case-studies-carousel .slick-next {
	right: -20px;
}

.case-studies-carousel .slick-prev::before,
.case-studies-carousel .slick-next::before {
	font-size: 32px;
	line-height: 1;
	color: inherit;
	font-family: serif;
}

.case-studies-carousel .slick-prev::before {
	content: "\2039";
}

.case-studies-carousel .slick-next::before {
	content: "\203A";
}

/* ===== Case Study Download Button ============================== */

.case-study-download {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid #e0e0e0;
}

.case-study-download__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	border: 1px solid #262626;
	color: #262626;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background 200ms ease, color 200ms ease;
}

.case-study-download__btn::before {
	content: "\2193"; /* ↓ */
	font-size: 1.1em;
	line-height: 1;
}

.case-study-download__btn:hover {
	background: #262626;
	color: #fff;
	text-decoration: none;
}
