/*
 * /case-studies/ archive — same structure as
 * news-category-template/dist/styles/news-archive.css. No font-family —
 * inherits the sitewide default, same reasoning as the other stylesheets
 * in this project.
 */

/* The theme's own `main { padding-bottom: 50px }` (sitewide default)
 * leaves a visible white gap between the dark Subscribe band and the
 * footer on this page specifically. Safe to zero out here since this
 * stylesheet only loads on is_post_type_archive('case_study') anyway —
 * not touching the sitewide rule. */
main {
	padding-bottom: 0;
}

.cs-archive {
	max-width: 1340px;
	margin: 0 auto;
	padding: 40px 30px 80px;
}

.cs-archive__filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 32px;
}

.cs-archive__filter-label {
	font-weight: 300;
	font-size: 19px;
	color: #004559;
}

.cs-archive__pill {
	font-size: 15px;
	line-height: 1;
	padding: 8px 16px;
	border: 1px solid #004559;
	border-radius: 3px;
	background: transparent;
	color: #004559;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.cs-archive__pill.is-active,
.cs-archive__pill:hover {
	background: #004559;
	color: #fff;
}

.cs-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

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

@media (max-width: 600px) {
	.cs-archive__grid {
		grid-template-columns: 1fr;
	}
}

.cs-archive__grid .element-item {
	width: 100%;
	height: auto;
	float: none;
	padding: 10px;
}

.cs-archive__grid .content-overview {
	max-width: none;
	max-height: 512px;
	margin: 0;
	aspect-ratio: 1 / 1;
}

.cs-archive__grid .content-overview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cs-archive__grid .content-overview figcaption {
	height: auto;
	min-height: 6rem;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cs-archive-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cs-archive-card__tag {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 3px;
	font-size: 11px;
	color: #fff;
	background: #51c3c6;
}

.cs-archive-card__tag--region {
	background: #004559;
}

.cs-archive__loadmore {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.cs-archive__loadmore-btn {
	font-size: 14px;
	padding: 10px 24px;
	border: 1px solid #004559;
	border-radius: 3px;
	background: #004559;
	color: #fff;
	cursor: pointer;
}

.cs-archive__loadmore-btn[disabled] {
	opacity: 0.5;
	cursor: default;
}

.cs-archive-empty {
	text-align: center;
	color: #004559;
	grid-column: 1 / -1;
}

/*
 * Subscribe CTA band — same component as Events/News/single Case Study.
 * See case-study.css's copy of this block for the fuller explanation of
 * why this is duplicated per-stylesheet rather than shared.
 */

.subscribe-cta {
	position: relative;
	background-color: #004559;
	overflow: hidden;
}

.subscribe-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("https://www.senetas.com/wp-content/uploads/ice-bg-2.png") center / cover no-repeat;
}

.subscribe-cta__inner {
	position: relative;
	max-width: 1340px;
	margin: 0 auto;
	padding: 112px 30px;
}

.subscribe-cta__content {
	max-width: 768px;
	display: flex;
	flex-direction: column;
	gap: 32px;
	color: #fff;
}

.subscribe-cta__heading {
	margin: 0;
	font-weight: 400;
	font-size: 48px;
	line-height: 58px;
}

.subscribe-cta__description {
	margin: 0;
	max-width: 484px;
	font-weight: 400;
	font-size: 18px;
	line-height: 26px;
}

.subscribe-cta__form {
	width: 100%;
	max-width: 463px;
}

.subscribe-cta__form label,
.subscribe-cta__form legend,
.subscribe-cta__form .hs-richtext,
.subscribe-cta__form .hs-field-desc,
.subscribe-cta__form p {
	display: block;
	margin-bottom: 4px;
	color: #fff;
	font-size: 14px;
}

.subscribe-cta__form .hs-form-required {
	color: red;
}

.subscribe-cta__form input[type="email"],
.subscribe-cta__form input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	height: 40px;
	padding: 0 12px;
	background: #f5f8fa;
	border: 1px solid #cbd6e2;
	border-radius: 3px;
}

.subscribe-cta__form input[type="submit"],
.subscribe-cta__form .hs-button {
	margin-top: 16px;
	padding: 13px 25px;
	background: #004559;
	border: 1px solid #f5f5f5;
	border-radius: 10px;
	color: #f5f5f5;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	cursor: pointer;
}
