/**
 * EJTE "Last Articles" cards widget (cards only).
 * Figma: 228:21410 (members) / 228:20662 (non-members).
 */

.atee-ejte-cards {
	font-family: var(--atee-font-family, "Montserrat", sans-serif);
}

.atee-ejte-cards__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	width: 100%;
	align-items: stretch;
}

.atee-ejte-cards__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
}

.atee-ejte-cards__badges {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
}

.atee-ejte-cards__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 12px;
	border-radius: 8px 0 8px 0;
	background: #519fff;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.5px;
}

.atee-ejte-cards__consulted {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 4px 12px;
	border-radius: 0 8px 0 8px;
	background: #d8e9ff;
	color: #525252;
	font-size: 14px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.atee-ejte-cards__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	padding: 24px;
	box-sizing: border-box;
	flex: 1;
}

.atee-ejte-cards__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0.5px;
	color: #132665;
}

.atee-ejte-cards__topic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 12px;
	border-radius: 43px;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.5px;
	color: #19191a;
	text-transform: capitalize;
}

.atee-ejte-cards__date {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0.5px;
	color: #19191a;
}

.atee-ejte-cards__icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.atee-ejte-cards__author {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.atee-ejte-cards__avatar {
	display: block;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 50%;
	overflow: hidden;
}

.atee-ejte-cards__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.atee-ejte-cards__avatar--placeholder {
	background: linear-gradient(135deg, #d6f1ef, #edf5ff);
}

.atee-ejte-cards__author-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.5px;
}

.atee-ejte-cards__author-name {
	font-weight: 700;
	color: #0d2326;
}

.atee-ejte-cards__author-role {
	font-weight: 500;
	color: #368b8e;
}

.atee-ejte-cards__read {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0.5px;
	color: #0a45eb;
	text-decoration: none;
}

.atee-ejte-cards__read:hover {
	color: #0736c4;
}

.atee-ejte-cards__empty {
	margin: 0;
	color: #474748;
}

@media (max-width: 900px) {
	.atee-ejte-cards__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.atee-ejte-cards__grid {
		grid-template-columns: 1fr;
	}
}
