/* Official Partners for Elementor — Frontend Styles
   Author: Hamed Mahzoon */

.ope-wrapper {
	position: relative;
	padding: 48px 56px;
	background: linear-gradient(135deg, #f7f7f8 0%, #fbfbfc 60%, #ffffff 100%);
	overflow: hidden;
	box-sizing: border-box;
}

.ope-wrapper * {
	box-sizing: border-box;
}

/* ---------- Header ---------- */
.ope-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.ope-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #9a9a9a;
	margin-bottom: 8px;
}

.ope-title {
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 10px;
	color: #1a1a1a;
}

.ope-description {
	font-size: 14px;
	line-height: 1.6;
	color: #8a8a8a;
	max-width: 480px;
	margin: 0;
}

.ope-view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #1a1a1a;
	text-decoration: none;
	white-space: nowrap;
	margin-top: 4px;
	transition: opacity 0.2s ease;
}

.ope-view-all:hover {
	opacity: 0.6;
}

.ope-view-all-arrow {
	display: inline-block;
	transition: transform 0.2s ease;
}

.ope-view-all:hover .ope-view-all-arrow {
	transform: translateX(4px);
}

/* ---------- Carousel ---------- */
.ope-carousel {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 12px;
}

.ope-track {
	position: relative;
	flex: 1 1 auto;
	overflow: hidden;
	width: 100%;
}

.ope-page {
	display: none;
	width: 100%;
	animation: ope-fade 0.35s ease;
}

.ope-page-active {
	display: block;
}

@keyframes ope-fade {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---------- Grid ---------- */
.ope-grid {
	display: grid;
	grid-template-columns: repeat(9, 1fr);
	width: 100%;
}

.ope-grid-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100px;
	padding: 12px;
	text-decoration: none;
	color: inherit;
}

.ope-dividers .ope-grid-item {
	border-right: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ope-dividers .ope-grid-item:nth-last-child(-n+100) {
	border-bottom-color: transparent;
}

.ope-grid-item img {
	max-width: 70%;
	max-height: 70%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.ope-grid-item.ope-grayscale img {
	filter: grayscale(100%);
	opacity: 0.75;
}

.ope-grid-item.ope-grayscale:hover img {
	filter: grayscale(0%);
	opacity: 1;
	transform: scale(1.04);
}

.ope-grid-item-name {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	text-align: center;
}

.ope-grid-item-empty {
	pointer-events: none;
}

/* ---------- Arrows ---------- */
.ope-arrow {
	flex: 0 0 auto;
	align-self: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
	color: #1a1a1a;
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	z-index: 2;
}

.ope-arrow:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
	transform: translateY(-1px);
}

.ope-arrow:active {
	transform: translateY(0);
}

.ope-arrow span {
	transform: translateY(-1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ope-wrapper {
		padding: 36px 28px;
	}

	.ope-title {
		font-size: 28px;
	}

	.ope-grid-item {
		height: 90px;
	}
}

@media (max-width: 767px) {
	.ope-wrapper {
		padding: 28px 18px;
	}

	.ope-header {
		flex-direction: column;
		gap: 12px;
	}

	.ope-title {
		font-size: 24px;
	}

	.ope-grid-item {
		height: 76px;
		padding: 8px;
	}

	.ope-arrow {
		width: 32px;
		height: 32px;
		font-size: 16px;
	}
}
