/* Asoo Widgets — Interactive Services */

.asoo-isv {
	--asoo-accent: #b43e9f;
	--asoo-text: #3c3740;
	--asoo-border: #aaa4ab;
	--asoo-surface: #ffffff;
	--asoo-gap: 92px;
	--asoo-media: 46%;

	color: var(--asoo-text);
}

.asoo-isv *,
.asoo-isv *::before,
.asoo-isv *::after {
	box-sizing: border-box;
}

.asoo-isv--font .asoo-isv__container,
.asoo-isv--font .asoo-isv__container button,
.asoo-isv--font .asoo-isv__container a {
	font-family: "Vazirmatn", Tahoma, sans-serif;
}

/* ---------- Layout ---------- */

.asoo-isv__container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--asoo-gap);
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
}

.asoo-isv__media {
	order: 0;
	flex: 0 0 auto;
	width: var(--asoo-media);
	min-width: 0;
}

.asoo-isv__content {
	order: 1;
	flex: 1 1 300px;
	min-width: 0;
	text-align: start;
}

/* ---------- Media ---------- */

.asoo-isv__card {
	position: relative;
	overflow: hidden;
	margin: 0;
	aspect-ratio: 1 / 1;
	border-radius: 28px;
	background: #f5e7bb;
	box-shadow: 0 25px 60px rgba(62, 39, 58, 0.08);
}

.asoo-isv__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.25s ease, transform 0.35s ease;
}

.asoo-isv__img.is-changing {
	opacity: 0;
	transform: scale(1.03);
}

/* "Use natural image height" */
.asoo-isv--natural .asoo-isv__card {
	aspect-ratio: auto;
}

.asoo-isv--natural .asoo-isv__img {
	height: auto;
	object-fit: initial;
}

.asoo-isv__caption {
	position: absolute;
	inset-inline: 20px;
	bottom: 20px;
	padding: 14px 18px;
	border-radius: 14px;
	color: #fff;
	background: rgba(34, 23, 32, 0.55);
	-webkit-backdrop-filter: blur(9px);
	backdrop-filter: blur(9px);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.asoo-isv--caption-hover .asoo-isv__caption {
	opacity: 0;
	transform: translateY(8px);
}

.asoo-isv--caption-hover .asoo-isv__card:hover .asoo-isv__caption,
.asoo-isv--caption-hover .asoo-isv__card:focus-within .asoo-isv__caption {
	opacity: 1;
	transform: translateY(0);
}

/* ---------- Texts ---------- */

.asoo-isv__title {
	margin: 0 0 22px;
	color: var(--asoo-accent);
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 700;
	line-height: 1.5;
}

.asoo-isv__desc {
	max-width: 650px;
	margin: 0 0 34px;
	font-size: 17px;
	line-height: 2;
}

.asoo-isv__label {
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e1dce0;
	color: var(--asoo-accent);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
}

/* ---------- Buttons ---------- */

.asoo-isv__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.asoo-isv__button {
	min-height: 48px;
	padding: 10px 22px;
	border: 1px solid var(--asoo-border);
	border-radius: 11px;
	background: var(--asoo-surface);
	color: var(--asoo-text);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	text-align: center;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
		transform 0.2s ease, box-shadow 0.2s ease;
}

.asoo-isv__button:hover,
.asoo-isv__button:focus-visible {
	border-color: var(--asoo-accent);
	color: var(--asoo-accent);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(180, 62, 159, 0.12);
}

.asoo-isv__button.is-active {
	border-color: var(--asoo-accent);
	background: var(--asoo-accent);
	color: #fff;
	box-shadow: 0 10px 24px rgba(180, 62, 159, 0.22);
}

/* Keep long labels inside narrow grid cells. */
.asoo-isv__button {
	overflow-wrap: anywhere;
}
