.cards {
	position: relative;
}

.cards__top-content {
	margin-bottom: 50px;
	position: relative;
	z-index: 3;
}

.cards__heading {
	margin-bottom: 30px;
	text-align: center;
}

.cards__heading h2:last-child {
	margin-bottom: 0;
}

.cards-item {
	margin-bottom: 32px;
	position: relative;
}

.card {
	display: block;
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	background: var(--white);
	box-shadow: 3px 3px 22px 0px rgba(0, 0, 0, 0.2);
	text-align: center;
	padding: 20px 20px;
	border: none;
	height: 100%;
	width: 100%;
}

.card__top,
.card__bottom {
	width: 100%;
}

.card__image {
	width: 100%;
	height: 208px;
}

.card__image img {
	object-fit: contain;
}

.card__info {
	margin: 20px 0 15px;
	color: var(--black);
	font-weight: normal;
	padding: 0 20px;
}

.card__info p {
	font-size: 16px;
	line-height: 1.56em;
	font-weight: normal;
}

.cards-item {
	display: none;
}

.loadMore {
	cursor: pointer;
}

.loadMore::after {
	content: "\e900";
}

/* Post counter styling */
.cards__counter {
	margin-bottom: 20px;
	text-align: center;
}

/* Load More wrapper and spinner */
.cards__load-more {
	position: relative;
}
.cards__load-more.loading::before {
	content: "";
	position: absolute;
	bottom: calc(100% + 12px);
	left: 50%;
	width: 24px;
	height: 24px;
	margin-left: -12px;
	border: 3px solid #4582c3;
	border-top-color: transparent;
	border-radius: 50%;
	animation: cardsSpin 1s linear infinite;
}

@keyframes cardsSpin {
	to {
		transform: rotate(360deg);
	}
}

@media (min-width: 768px) {
	.choices__inner {
		height: 55px;
		font-size: 16px;
		padding: 11px 15px !important;
	}

	.choices__list--dropdown .choices__item {
		font-size: 16px;
	}

	.card__info {
		padding: 0 10px;
	}
}

@media (min-width: 1200px) {
	.cards__top-content {
		margin-bottom: 50px;
		display: flex;
		justify-content: space-between;
	}

	.cards__heading {
		margin-bottom: 0;
		text-align: left;
		width: calc(100% - 400px);
	}

	.cards__filter {
		width: 397px;
		z-index: 44;
	}

	.card__info {
		padding: 0 0;
	}

	.card__bottom {
		opacity: 0;
	}

	.card:hover {
		background: var(--white);
		box-shadow: 3px 3px 22px 0px rgba(0, 0, 0, 0.2);
		border: none;
	}

	.card:hover .card__bottom {
		opacity: 1;
	}
}

.case-study__checkbox-container {
	position: absolute;
	top: 0;
	right: calc(var(--bs-gutter-x) * 0.5);
	width: 30px;
	height: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 99;
}

.popup-case-study-request {
	position: fixed;
	bottom: 20px;
	right: 0;
	z-index: -1;
	left: 0;
	margin: auto;
	width: 360px;
	max-width: 90%;
	opacity: 1;
	transform: translateY(0px);
	transition: all 0.5s ease;
}

.popup-case-study-request--active {
	z-index: 99;
	transform: translateY(-20px);
	opacity: 1;
}

p.cpt-listing__description {
	text-align: center;
	opacity: 0.8;
}

/* Popup Form */
/* Background overlay */
#popup-form {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	overflow-y: auto;
}

/* Modal content */
.popup-content {
	position: relative;
	max-width: 600px;
	margin: 5% auto;
	background: #fff;
	border-radius: 12px;
	padding: 30px 20px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
	animation: fadeInUp 0.3s ease;
}

/* Optional: Close button */
.popup-content .close-popup {
	position: absolute;
	top: 12px;
	right: 15px;
	font-size: 24px;
	color: #333;
	cursor: pointer;
}

/* Fade in animation */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive adjustments */
@media (max-width: 640px) {
	.popup-content {
		margin: 10% 20px;
		padding: 20px 15px;
	}
}
