/**
 * Teachers pages — Male & Female hiring criteria.
 */

/* ── Hero ── */
.as-teachers-hero {
	min-height: 72vh;
	padding-block: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.as-teachers-hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.as-teachers-hero__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
}

.as-teachers-hero__orb--1 {
	width: 380px;
	height: 380px;
	top: -10%;
	right: -5%;
	background: rgba(147, 51, 234, 0.28);
	animation: as-teachers-orb-a 10s ease-in-out infinite alternate;
}

.as-teachers-hero__orb--2 {
	width: 260px;
	height: 260px;
	bottom: -5%;
	left: -4%;
	background: rgba(212, 168, 83, 0.18);
	animation: as-teachers-orb-b 14s ease-in-out infinite;
}

@keyframes as-teachers-orb-a {
	0% { transform: translate(0, 0) scale(1); }
	100% { transform: translate(-20px, 20px) scale(1.08); }
}

@keyframes as-teachers-orb-b {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(18px, -14px); }
}

.as-teachers-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-block: calc(72px + var(--as-space-8)) var(--as-space-8);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.as-teachers-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: var(--as-space-3);
	justify-content: center;
	margin-top: var(--as-space-4);
}

.as-teachers-hero__trust span {
	padding: 6px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	font-size: var(--as-text-xs);
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
	letter-spacing: 0.04em;
}

/* Gender accent colours */
.as-teachers-hero--female .as-teachers-hero__orb--1 {
	background: rgba(212, 168, 83, 0.28);
}
.as-teachers-hero--female .as-teachers-hero__orb--2 {
	background: rgba(147, 51, 234, 0.18);
}

/* ── Criteria section ── */
.as-teachers-criteria {
	background: linear-gradient(180deg, var(--as-off-white) 0%, var(--as-cream) 100%);
	padding-block: var(--as-space-10);
	overflow: hidden;
}

.as-teachers-criteria__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.as-teachers-criteria__mesh {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(ellipse 70% 50% at 15% 20%, rgba(147, 51, 234, 0.05), transparent),
		radial-gradient(ellipse 50% 40% at 85% 80%, rgba(212, 168, 83, 0.06), transparent);
}

.as-teachers-criteria__orb {
	position: absolute;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	filter: blur(90px);
	top: -120px;
	right: -120px;
	background: rgba(147, 51, 234, 0.06);
	pointer-events: none;
}

.as-teachers-criteria__orb--gold {
	background: rgba(212, 168, 83, 0.08);
}

.as-teachers-criteria__calligraphy {
	position: absolute;
	left: 2%;
	bottom: 6%;
	font-family: var(--as-font-arabic);
	font-size: clamp(4rem, 10vw, 8rem);
	color: rgba(147, 51, 234, 0.04);
	pointer-events: none;
	user-select: none;
}

/* ── Cards grid ── */
.as-teachers-criteria__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--as-space-4);
	list-style: none;
	margin: 0 0 var(--as-space-10);
	padding: 0;
	position: relative;
	z-index: 1;
}

.as-teachers-criteria__card {
	perspective: 900px;
}

.as-teachers-criteria__card-inner {
	position: relative;
	padding: var(--as-space-5);
	border-radius: var(--as-radius-lg);
	background: var(--as-white);
	border: 1px solid rgba(147, 51, 234, 0.1);
	box-shadow:
		0 4px 12px rgba(26, 10, 46, 0.05),
		0 16px 40px rgba(26, 10, 46, 0.07),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--as-space-2);
	transition: transform 0.4s var(--as-ease-out), box-shadow 0.4s var(--as-ease-out), border-color 0.4s;
	overflow: hidden;
}

.as-teachers-criteria__card-inner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--as-purple-500), var(--as-gold-light));
	opacity: 0;
	transition: opacity 0.35s;
}

.as-teachers-criteria__card:hover .as-teachers-criteria__card-inner {
	transform: translateY(-8px) translateZ(16px);
	box-shadow:
		0 12px 28px rgba(26, 10, 46, 0.1),
		0 32px 56px rgba(147, 51, 234, 0.14);
	border-color: rgba(147, 51, 234, 0.22);
}

.as-teachers-criteria__card:hover .as-teachers-criteria__card-inner::before {
	opacity: 1;
}

.as-teachers-criteria__card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: var(--as-space-1);
}

.as-teachers-criteria__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(147, 51, 234, 0.12), rgba(168, 85, 247, 0.08));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--as-purple-600);
	flex-shrink: 0;
	transition: background 0.35s, box-shadow 0.35s;
}

.as-teachers-criteria__card:hover .as-teachers-criteria__icon {
	background: linear-gradient(135deg, var(--as-purple-500), var(--as-purple-700));
	color: #fff;
	box-shadow: 0 8px 24px rgba(147, 51, 234, 0.35);
}

.as-teachers-criteria__icon .as-icon-svg {
	width: 28px;
	height: 28px;
}

.as-teachers-criteria__badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: var(--as-text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: rgba(147, 51, 234, 0.08);
	color: var(--as-purple-700);
	border: 1px solid rgba(147, 51, 234, 0.18);
}

.as-teachers-criteria--female .as-teachers-criteria__badge {
	background: rgba(212, 168, 83, 0.1);
	color: #7a5c10;
	border-color: rgba(212, 168, 83, 0.25);
}

.as-teachers-criteria__card-title {
	font-family: var(--as-font-display);
	font-size: var(--as-text-lg);
	color: var(--as-jet);
	margin: 0;
	line-height: 1.25;
}

.as-teachers-criteria__card-desc {
	margin: 0;
	font-size: var(--as-text-sm);
	color: var(--as-text-muted);
	line-height: 1.7;
	flex: 1;
}

.as-teachers-criteria__check {
	position: absolute;
	bottom: var(--as-space-3);
	right: var(--as-space-3);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(34, 197, 94, 0.12);
	color: #16a34a;
	font-size: 0.75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.35s;
}

.as-teachers-criteria__card:hover .as-teachers-criteria__check {
	opacity: 1;
}

/* ── Process panel ── */
.as-teachers-criteria__process {
	position: relative;
	z-index: 1;
	background: linear-gradient(135deg, var(--as-purple-900) 0%, var(--as-purple-700) 50%, var(--as-jet) 100%);
	border-radius: var(--as-radius-xl);
	padding: var(--as-space-8);
	color: var(--as-white);
	overflow: hidden;
}

.as-teachers-criteria__process::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L55 15L55 45L30 60L5 45L5 15Z' fill='none' stroke='%23c084fc' stroke-opacity='0.08'/%3E%3C/svg%3E");
	pointer-events: none;
}

.as-teachers-criteria__process h3 {
	font-family: var(--as-font-display);
	font-size: var(--as-text-2xl);
	margin: 0 0 var(--as-space-6);
	position: relative;
	z-index: 1;
}

.as-teachers-criteria__steps {
	list-style: none;
	margin: 0 0 var(--as-space-6);
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--as-space-4);
	position: relative;
	z-index: 1;
}

.as-teachers-criteria__steps li {
	display: flex;
	flex-direction: column;
	gap: var(--as-space-2);
}

.as-teachers-criteria__step-num {
	font-family: var(--as-font-display);
	font-size: var(--as-text-3xl);
	font-weight: 700;
	background: linear-gradient(120deg, var(--as-purple-300), var(--as-gold-light));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	line-height: 1;
	display: block;
	margin-bottom: var(--as-space-1);
}

.as-teachers-criteria__steps li strong {
	display: block;
	font-size: var(--as-text-sm);
	font-weight: 700;
	color: var(--as-white);
	margin-bottom: 4px;
}

.as-teachers-criteria__steps li p {
	margin: 0;
	font-size: var(--as-text-xs);
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.6;
}

.as-teachers-criteria__process .as-btn--primary {
	position: relative;
	z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.as-teachers-criteria__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.as-teachers-criteria__steps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.as-teachers-criteria__grid {
		grid-template-columns: 1fr;
	}

	.as-teachers-criteria__steps {
		grid-template-columns: 1fr;
	}

	.as-teachers-criteria__process {
		padding: var(--as-space-5);
	}

	.as-teachers-hero__trust {
		flex-direction: column;
		align-items: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.as-teachers-hero__orb {
		animation: none;
	}
}
