/* ==========================================================
   Aramco Hero Slider — Frontend Styles
   پشتیبانی کامل از راست‌چین (RTL) و چپ‌چین (LTR)
========================================================== */

.ahs-slider-wrap {
	--ahs-accent: #FD9C29;
	--ahs-accent-2: #FD9C29;
	--ahs-dark: #031833;
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--ahs-dark);
	font-family: inherit;
}

/* جهت پیش‌فرض: راست‌چین */
.ahs-slider-wrap,
.ahs-slider-wrap[dir="rtl"] {
	direction: rtl;
}

.ahs-slider-wrap[dir="ltr"] {
	direction: ltr;
}

.ahs-slider {
	position: relative;
	width: 100%;
	height: 600px;
	overflow: hidden;
}

/* ---------- Slide ---------- */
.ahs-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease;
	pointer-events: none;
}

.ahs-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
}

.ahs-slide__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: var(--ahs-dark);
	transform: scale(1.06);
	transition: transform 7s ease;
}

.ahs-slide.is-active .ahs-slide__bg {
	transform: scale(1);
}

.ahs-slide__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to left, rgba(3,24,51,.94) 0%, rgba(3,24,51,.78) 45%, rgba(3,24,51,.4) 75%, rgba(3,24,51,.18) 100%);
}

.ahs-slider-wrap[dir="ltr"] .ahs-slide__overlay {
	background: linear-gradient(to right, rgba(3,24,51,.94) 0%, rgba(3,24,51,.78) 45%, rgba(3,24,51,.4) 75%, rgba(3,24,51,.18) 100%);
}

.ahs-slide__inner {
	position: relative;
	z-index: 2;
	max-width: 1400px;
	margin: 0 auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 60px;
	gap: 48px;
}

/* ---------- Text content (سمت راست در حالت راست‌چین) ---------- */
.ahs-slide__content {
	max-width: 620px;
	width: 100%;
	color: #fff;
	text-align: right;
}

.ahs-slider-wrap[dir="ltr"] .ahs-slide__content {
	text-align: left;
}

.ahs-slide__eyebrow {
	color: #cfd9e6;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 20px;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .6s ease .25s, transform .6s ease .25s;
	position: relative;
	padding-inline-start: 34px;
}

.ahs-slide__eyebrow::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 2px;
	background: var(--ahs-accent);
}

.ahs-slide__title {
	font-size: 46px;
	line-height: 1.35;
	font-weight: 600;
	margin: 0 0 36px;
	color: #fff;
	letter-spacing: -.2px;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s ease .35s, transform .7s ease .35s;
}

.ahs-slide.is-active .ahs-slide__eyebrow,
.ahs-slide.is-active .ahs-slide__title,
.ahs-slide.is-active .ahs-cta {
	opacity: 1;
	transform: translateY(0);
}

.ahs-cta {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	text-decoration: none;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s ease .45s, transform .7s ease .45s;
}

.ahs-cta__text {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .2px;
}

.ahs-cta__circle {
	width: 46px;
	height: 46px;
	min-width: 46px;
	border-radius: 50%;
	border: 1.5px solid #fff;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	transition: color .4s ease, border-color .4s ease, transform .3s ease;
}

.ahs-cta__circle::before {
	content: '';
	position: absolute;
	inset: 0;
	background: #fff;
	border-radius: 50%;
	transform: scale(0);
	transition: transform .4s cubic-bezier(.65,0,.35,1);
	z-index: 0;
}

.ahs-cta__circle svg {
	width: 18px;
	height: 18px;
	position: relative;
	z-index: 1;
	transition: transform .4s cubic-bezier(.65,0,.35,1);
}

/* در راست‌چین پیکان به‌صورت افقی آینه می‌شود تا هم‌راستا با جهت خواندن باشد */
.ahs-slider-wrap[dir="rtl"] .ahs-cta__circle svg {
	transform: scaleX(-1);
}

.ahs-cta:hover .ahs-cta__circle::before {
	transform: scale(1);
}

.ahs-slider-wrap[dir="rtl"] .ahs-cta:hover .ahs-cta__circle svg {
	transform: scaleX(-1) rotate(45deg);
}

.ahs-slider-wrap[dir="ltr"] .ahs-cta:hover .ahs-cta__circle svg {
	transform: rotate(45deg);
}

.ahs-cta:hover .ahs-cta__circle {
	transform: scale(1.06);
}

/* ---------- Circular visual (سمت چپ در حالت راست‌چین) ---------- */
.ahs-visual {
	position: relative;
	width: 480px;
	height: 480px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ahs-visual__mask {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 30px 60px rgba(0,0,0,.35);
	background: var(--ahs-dark);
	transform: scale(.9);
	opacity: 0;
	transition: transform .9s cubic-bezier(.22,1,.36,1) .2s, opacity .9s ease .2s;
}

.ahs-slide.is-active .ahs-visual__mask {
	transform: scale(1);
	opacity: 1;
}

.ahs-visual__mask img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* حلقه‌ی چرخان با گرادینت رنگ تاکیدی برند */
.ahs-visual::after {
	content: '';
	position: absolute;
	inset: -14px;
	border-radius: 50%;
	padding: 1px;
	background: conic-gradient(from 0deg, var(--ahs-accent), var(--ahs-accent-2), transparent, var(--ahs-accent));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: ahs-rotate 26s linear infinite;
	opacity: .9;
	pointer-events: none;
}

@keyframes ahs-rotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* ---------- نوار پایینی: تب‌ها + دکمه‌های قبلی/بعدی ---------- */
.ahs-bottom-bar {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1400px;
	margin: 0 auto;
	padding: 22px 60px 26px;
	gap: 24px;
}

.ahs-tabs {
	display: flex;
	gap: 44px;
	overflow-x: auto;
	scrollbar-width: none;
	flex: 1 1 auto;
	min-width: 0;
}

.ahs-tabs::-webkit-scrollbar { display: none; }

.ahs-tab {
	background: none;
	border: none;
	cursor: pointer;
	color: rgba(255,255,255,.55);
	text-align: right;
	padding: 0 0 12px;
	white-space: nowrap;
	position: relative;
	flex-shrink: 0;
	transition: color .3s ease;
}

.ahs-slider-wrap[dir="ltr"] .ahs-tab {
	text-align: left;
}

.ahs-tab.is-active {
	color: #fff;
}

.ahs-tab__label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.ahs-tab__bar {
	display: block;
	width: 100%;
	min-width: 90px;
	height: 2px;
	background: rgba(255,255,255,.18);
	position: relative;
	overflow: hidden;
	border-radius: 2px;
}

.ahs-tab__bar-fill {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--ahs-accent), var(--ahs-accent-2));
	border-radius: 2px;
}

.ahs-tab.is-active .ahs-tab__bar-fill {
	transition: width linear;
}

.ahs-tab:not(.is-active) .ahs-tab__bar-fill {
	width: 0% !important;
	transition: none;
}

/* دکمه‌های قبلی/بعدی — کنار تب‌ها، بدون همپوشانی با تصویر دایره‌ای */
.ahs-nav-group {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	padding-bottom: 12px;
}

.ahs-nav {
	width: 44px;
	height: 44px;
	min-width: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.35);
	background: rgba(255,255,255,.06);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	transition: opacity .3s ease, background .3s ease, border-color .3s ease, color .3s ease;
}

.ahs-nav:hover {
	background: var(--ahs-accent);
	color: var(--ahs-dark);
	border-color: var(--ahs-accent);
}

.ahs-nav svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* در راست‌چین، پیکان‌های قبلی/بعدی به‌صورت افقی آینه می‌شوند تا با جهت خوانش هم‌سو باشند */
.ahs-slider-wrap[dir="rtl"] .ahs-nav svg {
	transform: scaleX(-1);
}

/* ==========================================================
   Responsive
========================================================== */
@media (max-width: 1024px) {
	.ahs-slide__inner {
		padding: 0 32px;
		gap: 28px;
	}
	.ahs-visual {
		width: 300px;
		height: 300px;
	}
	.ahs-slide__title {
		font-size: 32px;
	}
	.ahs-bottom-bar {
		padding: 18px 32px 22px;
		gap: 20px;
	}
	.ahs-tabs {
		gap: 30px;
	}
}

@media (max-width: 767px) {
	.ahs-slider {
		height: auto !important;
		min-height: 560px;
	}
	.ahs-slide {
		position: relative;
	}
	.ahs-slide:not(.is-active) {
		display: none;
	}
	.ahs-slide__inner {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		padding: 48px 24px 32px;
		gap: 28px;
	}
	.ahs-slide__content {
		max-width: 100%;
		text-align: center;
	}
	.ahs-slide__eyebrow {
		padding-inline-start: 0;
		display: inline-flex;
		align-items: center;
	}
	.ahs-slide__eyebrow::before {
		position: relative;
		inset-inline-start: 0;
		margin-inline-end: 10px;
	}
	.ahs-cta {
		justify-content: center;
		width: 100%;
	}
	.ahs-visual {
		width: 220px;
		height: 220px;
	}
	.ahs-slide__title {
		font-size: 26px;
	}
	.ahs-bottom-bar {
		flex-direction: column;
		align-items: stretch;
		padding: 16px 20px 20px;
		gap: 14px;
	}
	.ahs-tabs {
		gap: 22px;
	}
	.ahs-tab__label {
		font-size: 10px;
	}
	.ahs-nav-group {
		justify-content: center;
		padding-bottom: 0;
	}
}
