/**
 * Next Event Card Styles
 * Card layout with responsive design
 */

.nts-event-cards-container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	width: 100%;
}

.nts-event-card {
	flex: 1 1 calc(25% - 15px);
	min-width: 250px;
	height: auto;
	display: flex;
	padding: 0;
	justify-content: center;
	flex-direction: column;
}

@media screen and (max-width: 1024px) {
	.nts-event-card {
		flex: 1 1 calc(33.333% - 14px);
	}
}

@media screen and (max-width: 768px) {
	.nts-event-card {
		flex: 1 1 calc(50% - 10px);
	}
}

@media screen and (max-width: 480px) {
	.nts-event-card {
		flex: 1 1 100%;
	}
}

.nts-event-card__link {
	display: flex;
	flex-direction: column;
	position: relative;
	text-decoration: none;
	color: inherit;
	border-radius: 0;
	overflow: hidden;
	transition: background-color 0.3s ease;
	width: 100%;
	height: 100%;
	padding-top: 14px;
}

.nts-event-card__link:hover {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: rgb(18 9 0 / 50%);
}

.nts-event-card__link:hover .nts-event-card__image {
	border-radius: 10px;
}

.nts-event-card__image {
	position: relative;
	width: auto;
	height: 400px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nts-event-card__image img {
	width: auto;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.nts-event-card__link:hover .nts-event-card__image img {
	transform: scale(1.05) translateY(-4px);
}

.nts-event-card__no-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--theme-palette-color-1) 0%, var(--theme-palette-color-2) 100%);
	color: white;
	font-size: 16px;
	font-weight: 500;
}

.nts-event-card__overlay {
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-grow: 1;
	text-align: center;
}

.nts-event-card__title-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.nts-event-card__title {
	margin: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.nts-event-card__arrow {
	font-size: 20px;
	color: #fff;
	font-weight: 600;
	transition: transform 0.3s ease, color 0.3s ease;
	display: inline-block;
}

.nts-event-card__link:hover .nts-event-card__arrow {
	transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.nts-event-card {
		width: 100%;
		height: auto;
	}

	.nts-event-card__image {
		width: 100%;
		height: 65vh;
	}

	.nts-event-card__link {
		height: auto;
	}

	.nts-event-card__title {
		font-size: 16px;
	}

	.nts-event-card__overlay {
		min-height: 70px;
		padding: 16px;
	}
}
