.atlasblog-category-grid {
	position: relative;
	padding: 46px 64px 44px;
	border-radius: 16px;
	background: #fff;
	direction: rtl;
	overflow: visible;
}

.atlasblog-category-grid::after {
	position: absolute;
	right: 0;
	bottom: -108px;
	left: 0;
	z-index: 0;
	height: 150px;
	background-color: transparent;
	background-image: url("../../img/Exclude-4.svg");
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	content: "";
	pointer-events: none;
}

.atlasblog-category-grid__viewport {
	position: relative;
	z-index: 1;
	overflow: hidden;
}

.atlasblog-category-grid__items {
	--atlasblog-category-grid-columns: 6;
	--atlasblog-category-grid-gap: 34px;
	display: flex;
	gap: var(--atlasblog-category-grid-gap);
	align-items: start;
	direction: rtl;
	scrollbar-width: none;
	will-change: transform;
}

.atlasblog-category-grid__items::-webkit-scrollbar {
	display: none;
}

.atlasblog-category-grid__item {
	display: flex;
	flex: 0 0 calc((100% - (var(--atlasblog-category-grid-gap) * (var(--atlasblog-category-grid-columns) - 1))) / var(--atlasblog-category-grid-columns));
	flex-direction: column;
	align-items: center;
	gap: 16px;
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.atlasblog-category-grid__image-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 94px;
	height: 94px;
	border: 1px solid rgba(36, 44, 76, 0.5);
	border-radius: 50%;
	background: #f8f8fb;
	overflow: hidden;
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.atlasblog-category-grid__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.atlasblog-category-grid__title {
	color: #1e2530;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.8;
	transition: color 0.3s ease, transform 0.3s ease;
}

.atlasblog-category-grid__item:hover .atlasblog-category-grid__image-wrap,
.atlasblog-category-grid__item:focus .atlasblog-category-grid__image-wrap {
	border-color: rgba(36, 44, 76, 0.85);
	transform: translateY(-5px);
}

.atlasblog-category-grid__item:hover .atlasblog-category-grid__image,
.atlasblog-category-grid__item:focus .atlasblog-category-grid__image {
	transform: scale(1.08);
}

.atlasblog-category-grid__item:hover .atlasblog-category-grid__title,
.atlasblog-category-grid__item:focus .atlasblog-category-grid__title {
	transform: translateY(-2px);
}

.atlasblog-category-grid__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0 !important;
	border-radius: 50%;
	background: #ffffff00 !important;
	box-shadow: none !important;
	color: #77808f;
	font-size: 28px;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
	transform: translateY(-50%);
}

.atlasblog-category-grid__arrow:hover,
.atlasblog-category-grid__arrow:focus,
.atlasblog-category-grid__arrow:active {
	border: 0 !important;
	outline: 0 !important;
	background: #ffffff00 !important;
	box-shadow: none !important;
	color: #77808f;
	text-decoration: none !important;
}

.atlasblog-category-grid__arrow::before {
	position: absolute;
	top: 50%;
	z-index: -1;
	width: 36px;
	height: 117px;
	background-image: url("../../img/Curve-Arrow.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	content: "";
	transform: translateY(-50%);
}

.atlasblog-category-grid__arrow--prev {
	right: -20px;
}

.atlasblog-category-grid__arrow--prev::before {
	right: 15px;
	transform: translateY(-50%) rotate(359deg);
}

.atlasblog-category-grid__arrow--next {
	left: -20px;
}

.atlasblog-category-grid__arrow--next::before {
	left: 15px;
	transform: translateY(-50%) rotate(179deg);
}

@media (max-width: 1024px) {
	.atlasblog-category-grid {
		padding: 40px 0 78px;
	}

	.atlasblog-category-grid__viewport {
		padding-inline: 16px;
	}

	.atlasblog-category-grid__items {
		--atlasblog-category-grid-columns: 3;
	}

	.atlasblog-category-grid__arrow--prev {
		right: 0;
	}

	.atlasblog-category-grid__arrow--next {
		left: 0;
	}

	.atlasblog-category-grid__arrow--prev::before {
		right: 0;
		background-position: right center;
		background-size: 36px 117px;
	}

	.atlasblog-category-grid__arrow--next::before {
		left: 0;
		background-position: left center;
		background-size: 36px 117px;
	}
}

@media (max-width: 767px) {
	.elementor-widget-atlasblog-category-grid > .elementor-widget-container {
		overflow: visible;
		margin-inline: -20px;
		width: calc(100% + 40px);
		max-width: none;
	}

	.atlasblog-category-grid {
		padding: 34px 0 72px;
		border-radius: 0 !important;
	}

	.atlasblog-category-grid__viewport {
		padding-inline: 14px;
	}

	.atlasblog-category-grid__items {
		--atlasblog-category-grid-columns: 2;
		--atlasblog-category-grid-gap: 22px;
	}

	.atlasblog-category-grid__arrow {
		width: 34px;
		height: 34px;
		font-size: 22px;
	}

	.atlasblog-category-grid__arrow--prev {
		right: 0;
	}

	.atlasblog-category-grid__arrow--next {
		left: 0;
	}

	.atlasblog-category-grid__arrow--prev::before {
		right: 0;
		width: 36px;
		height: 117px;
		background-position: right center;
		background-size: 36px 117px;
		transform: translateY(-50%) rotate(359deg);
	}

	.atlasblog-category-grid__arrow--next::before {
		left: 0;
		width: 36px;
		height: 117px;
		background-position: left center;
		background-size: 36px 117px;
		transform: translateY(-50%) rotate(179deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.atlasblog-category-grid__image-wrap,
	.atlasblog-category-grid__image,
	.atlasblog-category-grid__title {
		transition: none;
	}

	.atlasblog-category-grid__item:hover .atlasblog-category-grid__image-wrap,
	.atlasblog-category-grid__item:focus .atlasblog-category-grid__image-wrap,
	.atlasblog-category-grid__item:hover .atlasblog-category-grid__image,
	.atlasblog-category-grid__item:focus .atlasblog-category-grid__image,
	.atlasblog-category-grid__item:hover .atlasblog-category-grid__title,
	.atlasblog-category-grid__item:focus .atlasblog-category-grid__title {
		transform: none;
	}
}
