/* AWM Working Process — front-end styles */

.awm-working-process {
	display: flex;
	align-items: stretch;
	width: 100%;
	gap: var(--awm-gap, 20px);
	box-sizing: border-box;
}

.awm-working-process * {
	box-sizing: border-box;
}

.awm-wp-box {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	height: var(--awm-height, 380px);
	overflow: hidden;
	background-color: var(--awm-box-bg, #ffffff);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	cursor: pointer;
	outline: none;
	transition: flex-grow 0.5s ease, flex-basis 0.5s ease;
	box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.09);
}

.awm-wp-box.awm-wp-open {
	flex-grow: var(--awm-open-flex, 3);
}

.awm-wp-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 0.5s ease, transform 0.6s ease;
}

.awm-wp-box.awm-wp-open .awm-wp-bg {
	opacity: 1;
	transform: scale(1);
}

.awm-wp-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(181.24deg, rgba(255, 255, 255, 0) 46%, #ffffff 82%);
	opacity: 0;
	transition: opacity 0.5s ease;
}

.awm-wp-box.awm-wp-open .awm-wp-overlay {
	opacity: 1;
}

.awm-wp-content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 28px;
}

.awm-wp-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.awm-wp-number {
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	color: var(--awm-number-color, #dcd8ce);
	transition: color 0.3s ease, opacity 0.3s ease;
}

.awm-wp-box.awm-wp-open .awm-wp-number {
	opacity: 0.85;
}

.awm-wp-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.05);
	flex-shrink: 0;
	transition: background 0.3s ease;
}

.awm-wp-box.awm-wp-open .awm-wp-icon {
	background: rgba(255, 255, 255, 0.15);
}

.awm-wp-icon img.awm-wp-img {
	max-width: 55%;
	max-height: 55%;
	display: block;
}

.awm-wp-bottom {
	position: relative;
}

.awm-wp-title {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--awm-title-color, #1c1c1c);
	transition: color 0.3s ease;
	white-space: normal;
}

/*.awm-wp-box.awm-wp-open .awm-wp-title {
	color: var(--awm-title-color-active, #ffffff);
}*/
.awm-wp-box.awm-wp-open .awm-wp-desc {
	color: rgba(95, 108, 91, 0.74);
}
.awm-wp-box .awm-wp-icon,
.awm-wp-box.awm-wp-open .awm-wp-icon {
	width:50px;
	height:50px;
	display: inline-block;
	margin-bottom:8px;
}
.awm-wp-box .awm-wp-icon img,
.awm-wp-box.awm-wp-open .awm-wp-icon img {
	max-width: 100%;
	max-height: 100%;
}

.awm-wp-desc {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	margin-top: 0;
	color: var(--awm-desc-color, #f1f1f1);
	font-size: 14px;
	line-height: 1.6;
	transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.awm-wp-desc p {
	margin: 0 0 8px;
}

.awm-wp-box.awm-wp-open .awm-wp-desc {
	max-height: 240px;
	opacity: 1;
	margin-top: 10px;
}

.awm-wp-link {
	display: inline-block;
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	text-decoration: underline;
	opacity: 0;
	transition: opacity 0.35s ease 0.1s;
}

.awm-wp-box.awm-wp-open .awm-wp-link {
	opacity: 1;
}

/* Closed boxes hide title wrapping issues on very narrow widths */
.awm-wp-box:not(.awm-wp-open) .awm-wp-title {
	font-size: 18px;
}

/* Responsive: stack on small screens */
@media (max-width: 767px) {
	.awm-working-process {
		flex-direction: column;
	}

	.awm-wp-box {
		flex: none !important;
		height: 90px;
	}

	.awm-wp-box.awm-wp-open {
		height: var(--awm-height, 380px);
	}

	.awm-wp-content {
		padding: 20px;
	}

	.awm-wp-number {
		font-size: 30px;
	}
	.awm-wp-icon {
		display:none !important;
	}
}
