/**
 * Employers Block Styles
 * Employers block styles
 *
 * @package Experis_Academy
 */

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* ===================================
   Container & Layout
   =================================== */

.employers {
	position: relative;
	width: 100%;
	padding: 72px 0;
	background-color: transparent;
	overflow: hidden;
	animation: fadeIn 0.6s ease-out;
}

.employers__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	direction: ltr;
}


/* ===================================
   Image Position Variants
   =================================== */

/* Image on Right (image on right side) */
.employers--image-right .employers__container {
	grid-template-areas: "content image";
}

.employers--image-right .employers__content {
	grid-area: content;
}

.employers--image-right .employers__image-wrapper {
	grid-area: image;
}

/* Image on Left (image on left side) */
.employers--image-left .employers__container {
	grid-template-areas: "image content";
}

.employers--image-left .employers__content {
	grid-area: content;
}

.employers--image-left .employers__image-wrapper {
	grid-area: image;
}

/* ===================================
   Content Section
   =================================== */

.employers__content {
	display: flex;
	flex-direction: column;
	gap: 24px;
	direction: rtl;
	text-align: right;
}

/* Header Container (Subtitle + Title) */
.employers__header {
	display: flex;
	flex-direction: column;
	gap: 8px;
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Subtitle */
.employers__subtitle {
	font-family: var(--font-family-hebrew);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-semibold);
	line-height: 1.3;
	color: var(--color-grey-1);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Title */
.employers__title {
	font-family: var(--font-family-hebrew);
	line-height: 1.2;
	margin: 0;
	background: var(--color-violet-primary);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Description */
.employers__description {
	font-family: var(--font-family-hebrew);
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-normal);
	line-height: 1.6;
	color: var(--color-grey-1);
	margin: 0;
	animation: fadeInUp 0.8s ease-out 0.3s both;
}

.employers__description p {
	margin: 0 0 16px 0;
}

.employers__description p:last-child {
	margin-bottom: 0;
}

/* ===================================
   Image Section
   =================================== */

.employers__image-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 400px;
	animation: scaleIn 1s ease-out 0.4s both;
}

.employers__image {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.employers__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	position: relative;
	z-index: 0;
	transition: transform 0.3s ease;
}

/* Hover effect */
.employers__image:hover img {
	transform: scale(1.05);
}

/* ===================================
   Color Overlay on Image
   =================================== */

.employers__image::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	pointer-events: none;
	transition: opacity 0.3s ease;
	background: linear-gradient(180deg, rgba(158, 148, 250, 0.00) 0%, var(--violet-2, rgba(92, 75, 185, 0.70)) 100%);
}

/* ===================================
   Feature Icons
   =================================== */

.employers__feature-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.employers__feature-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.3s ease;
}

.employers__feature:hover .employers__feature-icon img {
	transform: scale(1.1);
}

/* ===================================
   Features Grid
   =================================== */

.employers__features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px;
	margin: 24px 0;
	animation: fadeInUp 0.8s ease-out 0.5s both;
}

.employers__feature {
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.employers__feature-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.employers__feature:hover {
	transform: translateY(-2px);
}

.employers__feature-title {
	font-family: var(--font-family-hebrew);
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-bold);
	color: var(--color-grey-1);
	margin: 0;
	line-height: 1.3;
}

.employers__feature-description {
	font-family: var(--font-family-hebrew);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-normal);
	color: var(--color-grey-1);
	margin: 0;
	line-height: 1.5;
}


/* ===================================
   Buttons
   =================================== */

.employers__buttons {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 24px;
	animation: fadeInUp 0.8s ease-out 0.7s both;
}

.employers__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 32px;
	border-radius: 108px;
	font-family: var(--font-family-hebrew);
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-normal);
	line-height: 1.3;
	text-decoration: none;
	transition: all var(--transition-base);
	cursor: pointer;
	white-space: nowrap;
}

.employers__button svg {
	display: none;
}

/* Primary Button */
.employers__button--primary {
	background: var(--color-violet-primary);
	color: var(--color-white);
	border: none;
}

.employers__button--primary:hover {
	background: linear-gradient(90deg, var(--color-violet-gradient-end) 0%, var(--color-violet-gradient-mid) 50%, var(--color-violet-gradient-start) 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(92, 75, 185, 0.3);
}

.employers__button--primary:focus {
	outline: 2px solid var(--color-violet-primary);
	outline-offset: 2px;
}

.employers__button--primary:active {
	transform: translateY(0);
}

/* Secondary Button */
.employers__button--secondary {
	background: transparent;
	border: 1px solid var(--color-violet-primary);
	color: var(--color-violet-primary);
}

.employers__button--secondary:hover {
	background: var(--color-violet-primary);
	color: var(--color-white);
	border-color: transparent;
}

.employers__button--secondary:focus {
	outline: 2px solid var(--color-violet-primary);
	outline-offset: 2px;
}

.employers__button--secondary:active {
	transform: translateY(0);
}


/* ===================================
   Tablet Responsive (max-width: 1024px)
   =================================== */

@media (max-width: 1024px) {
	.employers {
		padding: 60px 0;
	}
	
	.employers__container {
		gap: 40px;
		padding: 0 32px;
	}
	
	.employers__subtitle {
		font-size: var(--font-size-sm);
	}
}

/* ===================================
   Mobile Responsive (max-width: 768px)
   =================================== */

@media (max-width: 768px) {
	.employers {
		padding: 56px 0;
	}
	
	/* Always stack image on top on mobile */
	.employers__container,
	.employers--image-right .employers__container,
	.employers--image-left .employers__container {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 0 16px;
		grid-template-areas: 
			"image"
			"content";
	}
	
	.employers__subtitle {
		font-size: var(--font-size-xs);
	}
		
	.employers__description {
		font-size: var(--font-size-base);
	}
	
	.employers__image-wrapper {
		min-height: 300px;
	}
	
	/* Features mobile */
	.employers__features {
		grid-template-columns: 1fr;
		gap: 16px;
		margin: 16px 0;
	}
	
	.employers__feature-title {
		font-size: var(--font-size-base);
	}
	
	.employers__feature-description {
		font-size: var(--font-size-sm);
	}
	
	/* Buttons mobile */
	.employers__buttons {
		gap: 12px;
		margin-top: 16px;
	}
	
	.employers__button {
		flex: 1;
		padding: 14px 28px;
		font-size: var(--font-size-base);
	}
}

/* ===================================
   Accessibility Enhancements
   =================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
	.employers__button {
		border-width: 3px;
	}
	
	.employers__image {
		border: 2px solid currentColor;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.employers,
	.employers__header,
	.employers__description,
	.employers__image-wrapper,
	.employers__features,
	.employers__buttons,
	.employers__feature,
	.employers__image img,
	.employers__button {
		animation: none;
		transition: none;
	}
	
	.employers__image:hover img {
		transform: none;
	}
	
	.employers__button:hover {
		transform: none;
	}
	
	.employers__feature:hover {
		transform: none;
	}
}

/* Print styles */
@media print {
	.employers {
		padding: 20px 0;
		page-break-inside: avoid;
	}
	
	.employers__button {
		border: 1px solid #000;
		text-decoration: underline;
	}
	
	.employers__image::before {
		display: none;
	}
	
	.employers__icons {
		display: none;
	}
}

/* ===================================
   Performance Optimizations
   =================================== */

/* GPU acceleration for animations */
.employers__image img,
.employers__button {
	will-change: transform;
}

/* Content visibility for below-fold content */
.employers {
	content-visibility: auto;
	contain-intrinsic-size: auto 600px;
}
