/**
 * Erasmus Mobility – frontend card styles
 * Colors: red #c90000, blue #001b50
 */

.emp-mobilities {
	--emp-red: #c90000;
	--emp-blue: #001b50;
	--emp-gray: #6b6b6b;
	--emp-bar: #eeeeee;
	--emp-line: #d0d0d0;
	--emp-font: "DM Sans", sans-serif;

	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	width: 100%;
	font-family: var(--emp-font);
	color: var(--emp-blue);
	box-sizing: border-box;
}

.emp-mobilities *,
.emp-mobilities *::before,
.emp-mobilities *::after {
	box-sizing: border-box;
}

.emp-card {
	width: 100%;
	border-top: 1px solid var(--emp-line);
	border-bottom: 1px solid var(--emp-line);
	background: #fff;
}

.emp-card__inner {
	position: relative;
	padding: 1.25rem 0 1.5rem;
}

/* Header: badge + action type */
.emp-card__header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
	flex-wrap: wrap;
}

.emp-card__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.1rem;
	height: 2.1rem;
	padding: 0 0.35rem;
	background: var(--emp-red);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}

.emp-card__action {
	color: var(--emp-red);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.35;
}

/* Title bar (grey) + separated visit-style button */
.emp-card__title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 12px 20px;
	margin: 0 0 14px;
}

.emp-card__title {
	flex: 1 1 auto;
	margin: 0;
	padding: 0.85rem 1.1rem;
	background: var(--emp-bar);
	color: var(--emp-blue);
	font-size: clamp(1rem, 1.6vw, 1.25rem);
	font-weight: 700;
	line-height: 1.35;
}

/* Matches .eu-card__visit-btn from erasmusPlugin, wider for longer label */
.emp-card__details-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	align-self: flex-start;
	min-width: 178px;
	width: auto;
	height: 60px;
	padding: 0 28px;
	background: #c90000;
	color: #fff !important;
	text-decoration: none !important;
	font-family: "DM Sans", sans-serif;
	font-size: 16pt;
	font-weight: 700;
	letter-spacing: 0;
	border-radius: 2px;
	border: 0;
	white-space: nowrap;
	text-align: center;
	line-height: 1.15;
	text-transform: uppercase;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.emp-card__details-btn:hover,
.emp-card__details-btn:focus {
	background: #a80000;
	color: #fff !important;
	transform: translateY(-1px);
}

.emp-card__details-btn:active {
	transform: translateY(0);
}

.emp-card__details-btn--disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

/* Meta rows */
.emp-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	max-width: 100%;
	background: transparent;
}

.emp-card__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
}

.emp-card__row--partners {
	align-items: flex-start;
}

.emp-card__label {
	color: var(--emp-gray);
	font-size: 0.95rem;
	font-weight: 400;
	min-width: 9.5rem;
	flex-shrink: 0;
}

.emp-card__value {
	color: var(--emp-blue);
	font-size: 0.95rem;
	font-weight: 500;
}

.emp-pipe {
	color: var(--emp-red);
	font-weight: 400;
	margin: 0 0.15em;
}

.emp-card__piped {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem;
}

/* Partners – same column as other values */
.emp-card__partners {
	flex: 1 1 auto;
	min-width: 0;
}

.emp-card__partners-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.emp-card__partner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.25rem;
	color: var(--emp-blue);
	font-size: 0.92rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

.emp-card__partner-bullet {
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: var(--emp-gray);
	flex-shrink: 0;
	margin-right: 0.25rem;
}

.emp-card__partner-country {
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

.emp-card__flag {
	display: inline-block;
	width: 18px;
	height: 18px;
	object-fit: cover;
	object-position: center;
	vertical-align: middle;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
	flex-shrink: 0;
}

.emp-card__see-all {
	margin: 0.5rem 0 0;
}

.emp-card__see-all a {
	color: var(--emp-red);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
	text-transform: none;
}

.emp-card__see-all a:hover {
	color: #a80000;
}

.emp-empty {
	color: var(--emp-gray);
	font-style: italic;
}

/* Responsive */
@media (max-width: 720px) {
	.emp-card__title-row {
		flex-wrap: wrap;
		align-items: stretch;
	}

	.emp-card__details-btn {
		width: auto;
		min-width: 178px;
	}

	.emp-card__label {
		min-width: 0;
		width: 100%;
	}
}
