/* Teams card styling */
.teams-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: 10px;
	position: relative;
	/* Required for pseudo-element positioning */
}

.masculino .teams-card {
	background-color: var(--blue) !important;
}

.femenino .teams-card {
	background-color: var(--red) !important;
}

.teams-card::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 8px;
	background-color: var(--gold);
	/* Border color */
	border-bottom-left-radius: 0.5rem;
	/* Match the border-radius */
	border-bottom-right-radius: 0.5rem;
}

.border-gold {
	background-color: var(--gold);
	height: 5px;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

/* Card hover effect */
.teams-card:hover {
	transform: scale(1.05);
	/* Slightly increase the size of the whole card */
}

/* Header styling */
.teams-card-header {
	color: white;
	padding: 8px;
	width: 100%;
	font-size: 14px;
	font-weight: bold;
	text-transform: uppercase;
	padding-bottom: 15px;
	text-align: center;
}

/* Image container */
.teams-card-img-top {
	width: 100%;
	height: 150px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 15px;

	overflow: hidden;
	transition: transform 0.3s ease-in-out;
	/* Smooth transition for hover effect */
}

/* Image hover effect, enlarges when the card is hovered */
.teams-card:hover .teams-card-img-top img {
	transform: scale(1.1);
	/* Zoom in effect for the image */
}

/* Image styling */
.teams-card-img-top img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease-in-out;
	/* Smooth transition effect */
}

/* Center alignment for text */
.text-center {
	text-align: center;
}

/* Margin for spacing */
.mt-4 {
	margin-top: 1.5rem !important;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
	.teams-card {
		margin-bottom: 1rem;
		height: 200px;
		padding: 5px;
		/* Adjusted padding for smaller screens */
	}

	.teams-card-img-top {
		height: 130px;
	}

	.teams-card-header h5 {
		font-size: 15px !important;
	}
}