/* OPA Work Principles Engine CSS */
.opa-work {
	background-color: #FFFFFF;
	padding: 120px 4% 120px;
	color: #0F172A;
}

.opa-work__container {
	max-width: 1200px;
	margin: 0 auto;
}

/* Header */
.opa-work__header {
	text-align: center;
	margin-bottom: 60px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.opa-work__badge {
	display: inline-block;
	background: rgba(201, 161, 74, 0.1);
	color: #C9A14A;
	padding: 6px 16px;
	border-radius: 50px;
	font-family: var(--opa-font-heading, 'Manrope', sans-serif);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.opa-work__title {
	font-family: var(--opa-font-heading, 'Manrope', serif);
	font-size: clamp(36px, 4vw, 48px);
	font-weight: 700;
	color: #0F172A;
	margin: 0 0 20px 0;
	line-height: 1.1;
	letter-spacing: -1px;
}

.opa-work__desc {
	font-family: var(--opa-font-body, 'Inter', sans-serif);
	font-size: 17px;
	color: #64748B;
	line-height: 1.6;
	margin: 0;
}

/* Premium 3-Column Grid */
.opa-work__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 40px;
}

/* Center the 7th item on desktop */
.opa-work__item:last-child:nth-child(7n) {
	grid-column: 2;
}

/* Cards */
.opa-work__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 40px 30px;
	border-radius: 24px;
	background: #FFFFFF;
	border: 1px solid rgba(0,0,0,0.02);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.opa-work__item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	height: 3px;
	background: #C9A14A;
	transform: scaleX(0);
	transition: transform 0.4s ease;
	transform-origin: center;
}

.opa-work__item:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
	border-color: rgba(201,161,74,0.15);
}

.opa-work__item:hover::before {
	transform: scaleX(1);
}

/* Icon */
.opa-work__item-icon {
	width: 64px;
	height: 64px;
	background: #F8FAFC;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #C9A14A;
	border: 1px solid rgba(201,161,74,0.2);
	margin-bottom: 24px;
	transition: all 0.4s ease;
}

.opa-work__item-icon svg {
	width: 28px;
	height: 28px;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.opa-work__item:hover .opa-work__item-icon {
	background: #C9A14A;
	color: #FFFFFF;
	transform: scale(1.05);
	box-shadow: 0 10px 20px rgba(201, 161, 74, 0.2);
}

.opa-work__item:hover .opa-work__item-icon svg {
	transform: rotate(5deg) scale(1.1);
}

/* Content */
.opa-work__item-title {
	font-family: var(--opa-font-heading, 'Manrope', serif);
	font-size: 20px;
	font-weight: 700;
	color: #0F172A;
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.opa-work__item-desc {
	font-family: var(--opa-font-body, 'Inter', sans-serif);
	font-size: 15px;
	color: #64748B;
	line-height: 1.6;
	margin: 0;
}

/* CTA */
.opa-work__actions {
	text-align: center;
	margin-top: 40px;
}

.opa-work__actions .opa-cta-button--outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 36px;
	border-radius: 50px;
	font-family: var(--opa-font-body, 'Inter', sans-serif);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: all 0.3s ease;
	background: transparent;
	color: #0F172A;
	border: 2px solid #0F172A;
	width: auto; /* Prevent full width */
}

.opa-work__actions .opa-cta-button--outline:hover {
	background: #0F172A;
	color: #FFFFFF;
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
	.opa-work__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	
	/* Center 7th item on 2 columns by making it span both */
	.opa-work__item:last-child:nth-child(7n) {
		grid-column: 1 / -1;
		max-width: 450px;
		justify-self: center;
	}
}

@media (max-width: 768px) {
	.opa-work {
		padding: 80px 4% 80px;
	}

	.opa-work__header {
		margin-bottom: 40px;
	}

	.opa-work__title {
		font-size: 32px;
	}
}

@media (max-width: 576px) {
	.opa-work__list {
		grid-template-columns: 1fr;
	}
	
	.opa-work__item:last-child:nth-child(7n) {
		grid-column: 1;
		max-width: 100%;
		justify-self: stretch;
	}
	
	.opa-work__item {
		padding: 30px 24px;
	}
}
