/**
 * mod_partnership - inline (relative) button
 */

/* Compress Joomla template chrome (.well wrapper) when it hosts our module */
.well:has(> .mod-partnership) {
	margin: 0 !important;
	min-height: 0 !important;
}

.mod-partnership {
	position: relative;
	display: block;
	margin: 0;
	max-width: 100%;
	font-family: inherit;
	line-height: 1;
	box-sizing: border-box;
}

.mod-partnership *,
.mod-partnership *::before,
.mod-partnership *::after {
	box-sizing: border-box;
}

.mod-partnership--align-left   { text-align: left; }
.mod-partnership--align-center { text-align: center; }
.mod-partnership--align-right  { text-align: right; }

.mod-partnership__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 0 10px 0;
	padding: 12px 22px;
	background: var(--mp-bg, #5E4B8B);
	color: var(--mp-color, #ffffff) !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1.2;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	transition: background 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.mod-partnership--full .mod-partnership__btn {
	display: flex;
	width: 100%;
	max-width: 100%;
}

.mod-partnership__btn:hover,
.mod-partnership__btn:focus {
	color: var(--mp-color, #ffffff) !important;
	text-decoration: none !important;
	outline: none;
	filter: brightness(1.08);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.mod-partnership__btn:active {
	filter: brightness(0.95);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.mod-partnership__label {
	white-space: nowrap;
}

.mod-partnership__heart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	transform-origin: center;
	animation: mod-partnership-heartbeat 2.6s ease-in-out infinite;
	will-change: transform;
}

.mod-partnership__heart svg {
	width: 100%;
	height: 100%;
	display: block;
	fill: currentColor;
}

.mod-partnership__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	line-height: 1;
	opacity: 0.85;
	transition: transform 0.2s ease, opacity 0.2s ease;
	will-change: transform;
}

.mod-partnership__arrow svg {
	width: 100%;
	height: 100%;
	display: block;
}

.mod-partnership__btn:hover .mod-partnership__arrow,
.mod-partnership__btn:focus .mod-partnership__arrow {
	transform: translateX(3px);
	opacity: 1;
}

@keyframes mod-partnership-heartbeat {
	0%, 60%, 100% { transform: scale(1);    }
	8%            { transform: scale(1.18); }
	16%           { transform: scale(1);    }
	24%           { transform: scale(1.12); }
	32%           { transform: scale(1);    }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
	.mod-partnership__btn,
	.mod-partnership__btn:hover,
	.mod-partnership__btn:focus,
	.mod-partnership__arrow,
	.mod-partnership__heart {
		animation: none !important;
		transition: none !important;
	}
}

@media (max-width: 768px) {
	.mod-partnership__btn {
		font-size: 12px;
		padding: 10px 16px;
		letter-spacing: 0.5px;
	}
}
