/**
 * Alumni Grid Styles
 * Uniform grid layout for alumni stories
 */

.sa-alumni-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
	margin: 2rem 0;
}

/* Card base styles */
.sa-alumni-card {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 0.5rem;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	aspect-ratio: 1 / 1;
	min-height: 300px;
}

.sa-alumni-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Overlay for better text readability */
.sa-alumni-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.2) 0%,
		rgba(0, 0, 0, 0.6) 100%
	);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.5rem;
	transition: background 0.3s ease;
}

.sa-alumni-card:hover .sa-alumni-card__overlay {
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.3) 0%,
		rgba(0, 0, 0, 0.75) 100%
	);
}

/* Content styles */
.sa-alumni-card__content {
	color: #ffffff;
}

.sa-alumni-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.5rem 0;
	line-height: 1.3;
	color: #ffffff !important;
}

.sa-alumni-card__subtitle {
	font-size: 0.95rem;
	margin: 0 0 1rem 0;
	line-height: 1.4;
	opacity: 0.95;
}

.sa-alumni-card__button {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	font-size: 0.9rem;
	font-weight: 400;
	text-decoration: none !important;
	border-radius: 0;
	transition: all 0.3s ease;
	background-color: #002678;
	color: #ffffff !important;
	border: 2px solid #002678;
}

.sa-alumni-card__button:hover {
	background-color: #001a5c;
	border-color: #001a5c;
	color: #ffffff !important;
	text-decoration: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.sa-alumni-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 1rem;
	}

	.sa-alumni-card {
		min-height: 250px;
	}
}

@media (max-width: 576px) {
	.sa-alumni-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.sa-alumni-card {
		min-height: 280px;
	}
}

/* See More button */
.sa-alumni-grid__see-more {
	text-align: center;
	margin-top: 2rem;
	padding: 1rem 0;
}

.sa-alumni-grid__see-more-btn {
	background-color: #002678;
	color: #ffffff !important;
	border: 2px solid #002678;
	padding: 0.75rem 2rem;
	font-size: 1rem;
	font-weight: 400;
	border-radius: 0;
	text-decoration: none !important;
	transition: all 0.3s ease;
}

.sa-alumni-grid__see-more-btn:hover {
	background-color: #001a5c;
	border-color: #001a5c;
	color: #ffffff !important;
	text-decoration: none !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 38, 120, 0.3);
}

/* Empty state */
.sa-alumni-grid__empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #6c757d;
	font-size: 1.1rem;
}

/* Fallback for cards without featured images */
.sa-alumni-card[style*="background-image: url('')"],
.sa-alumni-card[style*='background-image: url("")'] {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
