.character-list-header {
	padding: 1rem;
	border-bottom: 1px solid var(--bs-card-border-color);
	margin-bottom: 1rem;
}

.character-list-header h3 {
	font-size: 1.5rem;
	letter-spacing: -.025em;
	line-height: 1;
	margin: 0;
}

.character-cards-container {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem; /* Gap between cards */
	justify-content: center; /* Center cards horizontally */
	padding: 1rem;
}

.character-card {
	width: 200px; /* Fixed width for each card */
	border: 1px solid var(--bs-card-border-color);
	border-radius: 0.375rem; /* Bootstrap's default card border-radius */
	overflow: hidden;
	background-color: var(--bs-card-bg);
	color: var(--bs-card-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	cursor: pointer;
}

.character-card:hover {
	transform: scale(1.03); /* Slightly increase size on hover */
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Add shadow on hover */
}

.character-card-image-holder {
	width: 100%;
	height: 200px; /* Fixed height for the image area */
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	background-color: var(--demo-light-grey); /* Grey background for placeholder */
}

.character-card-image-holder img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Cover the area, cropping if necessary */
}

.card-img-top-placeholder {
	width: 100%;
	height: 100%;
	background-color: var(--demo-medium-grey); /* Grey background for placeholder */
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--demo-dark-grey);
	font-style: italic;
}

.character-card .card-body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex-grow: 1;
}

.character-card .card-title {
	font-size: 1.1rem;
	font-weight: bold;
	margin-bottom: 0.5rem;
	text-align: center;
}

.character-card .btn {
	width: 100%;
	margin-top: 0.5rem;
}

.character-list-footer {
	padding: 1rem;
	border-top: 1px solid var(--bs-card-border-color);
	margin-top: 1rem;
	display: flex;
	justify-content: center;
}