/* ── Hero Career block ── */

.herocareer-block {
	padding: 0 20px;
}

.herocareer-block__wrap {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	background: var(--hcr-bg, var(--green-main, #748039));
	padding: clamp(70px, 9vw, 130px) 0 clamp(80px, 10vw, 150px);
	min-height: clamp(500px, 500px, 760px);
	display: flex;
	align-items: center;
}

/* ── Decorative side grids ── */

.herocareer-deco {
	position: absolute;
	top: 0;
	height: 100%;
	width: auto;
	pointer-events: none;
	z-index: 0;
}

.herocareer-deco.-left {
	left: 0;
}

.herocareer-deco.-right {
	right: 0;
}

/* ── Header ── */

.herocareer__header {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(16px, 2vw, 24px);
	margin-inline: auto;
}

.herocareer__label.section-label {
	color: rgba(255, 255, 255, 0.75);
	border-color: rgba(255, 255, 255, 0.22);
	background: transparent;
}

.herocareer__title {
	margin: 0 auto;
	max-width: 760px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 0.28em;
	color: var(--white, #FFF);
	text-align: center;
	font-family: var(--font-base);
	font-size: 74px;
	font-style: normal;
	font-weight: 500;
	line-height: 74px;
	letter-spacing: -1.48px;
}

.herocareer__word {
	display: block;
}

.herocareer__desc {
	max-width: clamp(320px, 46vw, 600px);
}

.herocareer__desc p {
	color: var(--white, #FFF);
	text-align: center;
	opacity: 0.7;
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 140%;
	margin: 0;
}

/* ── Cards (corner-positioned) ── */

.herocareer__cards {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.herocareer__card {
	position: absolute;
	pointer-events: auto;
	opacity: 0;
	transition:
		transform 0.9s cubic-bezier(0.34, 1.3, 0.64, 1),
		opacity 0.55s ease;
}

/* Corner anchors */
.herocareer__card.pos--top-left {
	top: 0;
	left: clamp(8px, 3vw, 56px);
}

.herocareer__card.pos--top-right {
	top: clamp(8px, 3vw, 40px);
	right: 0;
	display: flex;
	justify-content: flex-end;
}

.herocareer__card.pos--bottom-left {
	bottom: 0;
	left: clamp(8px, 3vw, 56px);
}

.herocareer__card.pos--bottom-right {
	bottom: 0;
	right: clamp(8px, 3vw, 56px);
	display: flex;
	justify-content: flex-end;
}

/* Initial state — pushed out toward each corner (slides in on reveal) */
.herocareer__card.pos--top-left {
	transform: translate(-110px, -90px) rotate(0);
}

.herocareer__card.pos--top-right {
	transform: translate(110px, -90px) rotate(0);
}

.herocareer__card.pos--bottom-left {
	transform: translate(-110px, 90px) rotate(-0);
}

.herocareer__card.pos--bottom-right {
	transform: translate(110px, 90px) rotate(0);
}

/* Revealed state — slid into final position */
.herocareer__cards.is-revealed .herocareer__card {
	opacity: 1;
}

.herocareer__cards.is-revealed .pos--top-left {
	transform: translate(0, 0) rotate(0);
}

.herocareer__cards.is-revealed .pos--top-right {
	transform: translate(0, 0) rotate(0);
}

.herocareer__cards.is-revealed .pos--bottom-left {
	transform: translate(0, 0) rotate(-0);
}

.herocareer__cards.is-revealed .pos--bottom-right {
	transform: translate(0, 0) rotate(0);
}

/* Staggered entrance */
.herocareer__cards.is-revealed .herocareer__card {
	transition-delay: 0.05s;
}

.herocareer__cards.is-revealed .pos--top-right {
	transition-delay: 0.16s;
}

.herocareer__cards.is-revealed .pos--bottom-left {
	transition-delay: 0.27s;
}

.herocareer__cards.is-revealed .pos--bottom-right {
	transition-delay: 0.38s;
}

/* ── Card image ── */

/* Wrapper is transparent to layout — img stays a direct box of the card */
.herocareer__card-pic {
	display: contents;
}

.herocareer__card-img {
	display: block;
	width: 50%;
	height: 50%;
	border-radius: 14px;
}

/* ── Responsive ── */

@media (max-width: 1100px) {
	.herocareer__card {
		width: clamp(150px, 22vw, 220px);
	}
	.herocareer__title{
		font-size: 58px;
    font-style: normal;
    font-weight: 500;
    line-height: 58px;
	max-width: 700px;
	}
	.herocareer__card-img {
    display: block;
    width: 86%;
    height: 50%;
    border-radius: 14px;
}
}

@media (max-width: 767px) {
	.herocareer-block {
		padding: 0;
	}
	.herocareer__card-img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 14px;
    }

	.herocareer-block__wrap {
		border-radius: 0;
		min-height: 0;
		padding: 80px 16px 60px;
		display: block;
	}

	.herocareer-deco {
		opacity: 0.5;
	}

	.herocareer__title {
		font-size: 48px;
		line-height: 50px;
		letter-spacing: -0.96px;
	}
	.herocareer__cards{
		gap: 0 !important;
	}

	/* Stack cards below the header in a simple 2-col grid, no rotation */
	.herocareer__cards,
	.herocareer__cards.is-revealed .herocareer__card {
		position: static;
		inset: auto;
		transform: none;
		transition-delay: 0s;
	}

	.herocareer__cards {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: clamp(28px, 7vw, 44px) clamp(16px, 4vw, 24px);
		margin-top: 56px;
	}

	.herocareer__card {
		width: 100%;
		transform: none;
	}

	.herocareer-deco {
		display: none;
	}

	.herocareer-block__wrap {
		padding: 192px 0;
	}

	.herocareer__cards {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		margin: 0;
	}

	.pos--bottom-left,
	.pos--bottom-right {
		display: flex;
		align-items: flex-end;
	}

	.herocareer-block {
		overflow: hidden;
		max-width: calc(100% - 16px);
		margin-left: 8px;
		border-radius: 6px;
	}

	.herocareer__card img{
		height: max-content;
		position: relative;
	}
	.herocareer__card.pos--top-left img{
		top: -60px;
		left: 10px;
	}
	.herocareer__card.pos--top-right img{
		top: 25px;
		right: -45px;
	}	
	.herocareer__card.pos--bottom-left img{
		left: 10px;
		bottom: -60px;
	}
	.herocareer__card.pos--bottom-right img{
		right: -30px;
		bottom: -20px;
	}

}