/* Aeronics Site — home hero (Elementor Pro "Slides" widget with class .arCustomSlider) */
.arCustomSlider {
	--hero-navy: 10, 20, 50;
	--hero-crimson: #a70e2d;
	--hero-autoplay: 6.5s;
	position: relative;
}

/* Replace the old flat black gradient from Customizer CSS. */
.arCustomSlider .swiper-slide-inner::before { display: none !important; }

.arCustomSlider .swiper-slide { overflow: hidden; }
.arCustomSlider .elementor-background-overlay {
	background:
		linear-gradient(90deg, rgba(var(--hero-navy), .9) 0%, rgba(var(--hero-navy), .62) 42%, rgba(var(--hero-navy), .08) 78%),
		linear-gradient(0deg, rgba(var(--hero-navy), .75) 0%, rgba(var(--hero-navy), 0) 38%) !important;
	opacity: 1 !important;
}

/* Portrait photos: keep the subject in frame. */
.arCustomSlider .swiper-slide-bg { background-position: center 45% !important; }

/* Content */
.arCustomSlider .swiper-slide-inner {
	align-items: center !important;
	padding: 0 max(24px, calc((100vw - 1200px) / 2)) !important;
}
.arCustomSlider .swiper-slide-contents { position: relative; padding-top: 34px; }
.arCustomSlider .swiper-slide-contents::before {
	content: "Aeronics Technologies";
	position: absolute;
	top: 0;
	left: 0;
	padding-left: 48px;
	background: linear-gradient(#ff8aa1, #ff8aa1) left center / 36px 2px no-repeat;
	color: #ff8aa1;
	font: 600 13px/1 "Poppins", sans-serif;
	letter-spacing: .18em;
	text-transform: uppercase;
	white-space: nowrap;
}
.arCustomSlider .elementor-slide-heading {
	color: #fff !important;
	letter-spacing: -.02em;
	line-height: 1.08 !important;
	text-wrap: balance;
	text-shadow: 0 2px 30px rgba(var(--hero-navy), .35);
}
.arCustomSlider .elementor-slide-description {
	max-width: 560px;
	color: rgba(255, 255, 255, .85) !important;
	line-height: 1.7 !important;
}
.arCustomSlider .elementor-slide-button {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	padding: 17px 30px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--hero-crimson) !important;
	color: #fff !important;
	font-family: "Poppins", sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	box-shadow: 0 14px 30px -12px rgba(167, 14, 45, .7);
	transition: background-color .25s, color .25s, gap .25s, transform .25s !important;
}
.arCustomSlider .elementor-slide-button::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.arCustomSlider .elementor-slide-button:hover {
	gap: 14px;
	background: #fff !important;
	color: #1b2a5c !important;
	transform: translateY(-2px);
}

/* Staggered entrance on the active slide */
.arCustomSlider .swiper-slide .swiper-slide-contents > *,
.arCustomSlider .swiper-slide .swiper-slide-contents::before {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.arCustomSlider .swiper-slide-active .swiper-slide-contents > *,
.arCustomSlider .swiper-slide-active .swiper-slide-contents::before { opacity: 1; transform: none; }
.arCustomSlider .swiper-slide-active .swiper-slide-contents::before { transition-delay: .25s; }
.arCustomSlider .swiper-slide-active .elementor-slide-heading { transition-delay: .4s; }
.arCustomSlider .swiper-slide-active .elementor-slide-description { transition-delay: .55s; }
.arCustomSlider .swiper-slide-active .elementor-slide-button { transition-delay: .7s, 0s, 0s, 0s !important; }

/* Pagination: progress bars that fill with the autoplay timer */
.arCustomSlider .swiper-pagination {
	left: max(24px, calc((100vw - 1200px) / 2)) !important;
	right: auto !important;
	bottom: 44px !important;
	display: flex;
	gap: 10px;
	width: auto !important;
}
.arCustomSlider .swiper-pagination-bullet {
	position: relative;
	width: 54px !important;
	height: 3px !important;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 3px !important;
	background: rgba(255, 255, 255, .3) !important;
	opacity: 1 !important;
	transition: width .35s;
}
.arCustomSlider .swiper-pagination-bullet::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	transform: scaleX(0);
	transform-origin: left;
}
.arCustomSlider .swiper-pagination-bullet-active { width: 86px !important; }
.arCustomSlider .swiper-pagination-bullet-active::after { animation: hero-progress var(--hero-autoplay) linear forwards; }
.arCustomSlider:hover .swiper-pagination-bullet-active::after { animation-play-state: paused; }
@keyframes hero-progress { to { transform: scaleX(1); } }

/* Arrows: frosted round buttons, bottom right */
.arCustomSlider .elementor-swiper-button {
	top: auto !important;
	bottom: 26px !important;
	display: grid !important;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #fff !important;
	transform: none !important;
	transition: background-color .25s, border-color .25s, color .25s;
}
.arCustomSlider .elementor-swiper-button svg { width: 18px; height: 18px; fill: currentColor; }
.arCustomSlider .elementor-swiper-button-prev { left: auto !important; right: calc(max(24px, (100vw - 1200px) / 2) + 64px) !important; }
.arCustomSlider .elementor-swiper-button-next { right: max(24px, calc((100vw - 1200px) / 2)) !important; }
.arCustomSlider .elementor-swiper-button:hover { border-color: #fff; background: #fff; color: #1b2a5c !important; }

@media (max-width: 767px) {
	.arCustomSlider .swiper-slide-inner { align-items: flex-end !important; padding: 0 20px 110px !important; }
	.arCustomSlider .elementor-background-overlay {
		background: linear-gradient(0deg, rgba(var(--hero-navy), .95) 0%, rgba(var(--hero-navy), .55) 55%, rgba(var(--hero-navy), .15) 100%) !important;
	}
	.arCustomSlider .elementor-slide-button { padding: 15px 24px !important; }
	.arCustomSlider .swiper-pagination { left: 20px !important; bottom: 40px !important; }
	.arCustomSlider .swiper-pagination-bullet { width: 32px !important; }
	.arCustomSlider .swiper-pagination-bullet-active { width: 56px !important; }
	.arCustomSlider .elementor-swiper-button { width: 44px; height: 44px; bottom: 26px !important; }
	.arCustomSlider .elementor-swiper-button-prev { right: 72px !important; }
	.arCustomSlider .elementor-swiper-button-next { right: 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.arCustomSlider .swiper-slide .swiper-slide-contents > *,
	.arCustomSlider .swiper-slide .swiper-slide-contents::before { opacity: 1; transform: none; transition: none; }
	.arCustomSlider .swiper-pagination-bullet-active::after { animation: none; transform: scaleX(1); }
}
