/**
 * Resource Card Component
 *
 * @package FIGORA_One
 */

.resource-card{
	display:flex;
	flex-direction:column;
	height:100%;
	background:#fff;
	border:1px solid #e5e7eb;
	border-radius:16px;
	overflow:hidden;
	box-shadow:0 4px 16px rgba(0,0,0,.05);
	transition:transform .25s ease, box-shadow .25s ease;
}

.resource-card:hover{
	transform:translateY(-6px);
	box-shadow:0 12px 32px rgba(0,0,0,.10);
}

.resource-card__image{
	aspect-ratio:16 / 9;
	overflow:hidden;
	background:#f8fafc;
}

.resource-card__image img{
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
	transition:transform .35s ease;
}

.resource-card:hover .resource-card__image img{
	transform:scale(1.05);
}

.resource-card__content{
	display:flex;
	flex-direction:column;
	flex:1;
	padding:24px;
}

.resource-card__badge{

	display:inline-flex;

	align-items:center;

	align-self:flex-start;

	margin-bottom:14px;

	padding:5px 10px;

	border-radius:999px;

	background:#eef6ff;

	color:#0f5db8;

	font-size:.72rem;

	font-weight:700;

	text-transform:uppercase;

	letter-spacing:.04em;

	line-height:1;
}

.resource-card__title{
	margin:0 0 18px;
	font-size:1.25rem;
	font-weight:700;
	line-height:1.35;
	color:#111827;
}

.resource-card__description{
	flex:1;
	margin-bottom:24px;
	color:#4b5563;
	line-height:1.7;
}

.resource-card__button{

	display:flex;

	width:100%;

	align-items:center;
	justify-content:center;

	gap:.55rem;

	padding:.75rem 1rem;

	background:var(--color-primary);

	color:#fff;

	border-radius:8px;

	font-size:.95rem;

	font-weight:600;

	text-decoration:none;

	transition:all .25s ease;

	box-sizing:border-box;
}

.resource-card__button:hover{
	background:var(--figora-primary-dark, #003f87);
	color:#fff;
	text-decoration:none;
}

.resource-card__button span{
	transition:transform .25s ease;
}

.resource-card__button:hover span{
	transform:translateX(4px);
}

@media (max-width:768px){

	.resource-card__content{
		padding:20px;
	}

	.resource-card__title{
		font-size:1.1rem;
	}

}

/* ==========================================
   Actions
========================================== */

.resource-card__actions{
	margin-top:auto;
	padding-top:1rem;
}

.resource-card__button{

	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:.65rem;

	margin-top:auto;

	text-decoration:none;
}

.resource-card__button svg{

	width:18px;
	height:18px;

	flex-shrink:0;

	transition:transform .25s ease;

}

.resource-card__button:hover svg{

	transform:translateY(2px);

}

.resource-card__button span{

	white-space:nowrap;

}
.resource-card__actions{

	margin-top:2rem;
}