/* ==========================================================================
   Amazing Carousel — Base Styles
   ========================================================================== */

.aec-carousel-wrapper {
	--aec-accent: #6C5CE7;
	--aec-accent-2: #00CFFD;
	--aec-title-color: #1a1a2e;
	--aec-desc-color: #6b7280;
	--aec-card-bg: #ffffff;
	position: relative;
	width: 100%;
	padding: 0 8px;
	box-sizing: border-box;
}

.aec-carousel-wrapper * {
	box-sizing: border-box;
}

.aec-swiper {
	width: 100%;
	padding-bottom: 46px; /* room for pagination dots */
	overflow: hidden;
}

.aec-carousel-wrapper .swiper-slide {
	height: auto;
	display: flex;
}

.aec-card {
	position: relative;
	width: 100%;
	background: var(--aec-card-bg);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 30px rgba(20, 20, 43, 0.08);
	transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}

.aec-image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eee;
}

.aec-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}

.aec-content {
	padding: 22px 22px 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-grow: 1;
}

.aec-title {
	margin: 0;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--aec-title-color);
}

.aec-desc {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--aec-desc-color);
	flex-grow: 1;
}

.aec-btn {
	--btn-bg: var(--aec-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 8px;
	padding: 11px 22px;
	width: fit-content;
	background: var(--btn-bg);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 999px;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
	box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35);
}

.aec-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 22px rgba(108, 92, 231, 0.45);
	color: #fff;
}

/* Gradient mode: SaaS-style two-tone gradient buttons + arrows, animated on hover */
.aec-gradient-yes .aec-btn {
	background: linear-gradient(135deg, var(--aec-accent) 0%, var(--aec-accent-2) 100%);
	background-size: 160% 160%;
	background-position: 0% 50%;
	box-shadow: 0 8px 22px color-mix(in srgb, var(--aec-accent) 40%, transparent);
}
.aec-gradient-yes .aec-btn:hover {
	background-position: 100% 50%;
	box-shadow: 0 12px 30px color-mix(in srgb, var(--aec-accent-2) 55%, transparent);
	transform: translateY(-4px) scale(1.03);
}
.aec-gradient-yes .aec-swiper-arrow:hover {
	background: linear-gradient(135deg, var(--aec-accent) 0%, var(--aec-accent-2) 100%) !important;
	color: #fff !important;
}
.aec-btn {
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, background-position 0.5s ease;
}

/* Arrows */
.aec-swiper-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: var(--aec-accent, #6C5CE7);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(20, 20, 43, 0.15);
	z-index: 10;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.aec-swiper-arrow:hover {
	background: var(--aec-accent, #6C5CE7);
	color: #fff;
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 12px 28px color-mix(in srgb, var(--aec-accent) 45%, transparent);
}

.aec-swiper-arrow:active {
	transform: translateY(-50%) scale(0.96);
}

.aec-arrow-prev { left: -6px; }
.aec-arrow-next { right: -6px; }

@media (max-width: 767px) {
	.aec-swiper-arrow { display: none; }
}

/* Pagination dots */
.aec-carousel-wrapper .swiper-pagination {
	bottom: 4px !important;
}

.aec-carousel-wrapper .swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	background: var(--aec-accent, #6C5CE7);
	opacity: 0.25;
	transition: all 0.3s ease;
}

.aec-carousel-wrapper .swiper-pagination-bullet-active {
	opacity: 1;
	width: 26px;
	border-radius: 6px;
}


/* ==========================================================================
   STYLE 1 — Classic Card (clean, generous shadow, hover lift)
   ========================================================================== */
.aec-style-1 .aec-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(20, 20, 43, 0.16);
}
.aec-style-1 .aec-card:hover .aec-image { transform: scale(1.06); }


/* ==========================================================================
   STYLE 2 — Rounded Shadow Card (extra rounded, soft colored shadow)
   ========================================================================== */
.aec-style-2 .aec-card {
	border-radius: 28px;
	box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--aec-accent) 45%, transparent);
}
.aec-style-2 .aec-image-wrap { border-radius: 22px; margin: 10px 10px 0; width: calc(100% - 20px); aspect-ratio: 4/3; }
.aec-style-2 .aec-card:hover { transform: translateY(-6px) scale(1.01); }
.aec-style-2 .aec-title { text-align: center; }
.aec-style-2 .aec-content { align-items: center; text-align: center; }


/* ==========================================================================
   STYLE 3 — Gradient Overlay (title/button float over image)
   ========================================================================== */
.aec-style-3 .aec-card { background: transparent; box-shadow: none; }
.aec-style-3 .aec-image-wrap { aspect-ratio: 3/4; border-radius: 18px; }
.aec-style-3 .aec-image-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.85) 100%);
}
.aec-style-3 .aec-content {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 24px;
	z-index: 2;
}
.aec-style-3 .aec-title, .aec-style-3 .aec-desc { color: #fff; }
.aec-style-3 .aec-desc { color: rgba(255,255,255,0.8); }
.aec-style-3 .aec-card:hover .aec-image { transform: scale(1.08); }


/* ==========================================================================
   STYLE 4 — Glassmorphism (frosted glass content panel over image)
   ========================================================================== */
.aec-style-4 .aec-card {
	background: transparent;
	box-shadow: none;
}
.aec-style-4 .aec-image-wrap { aspect-ratio: 1/1; border-radius: 20px; }
.aec-style-4 .aec-content {
	position: absolute;
	left: 12px; right: 12px; bottom: 12px;
	background: rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 16px;
	padding: 16px 18px;
	z-index: 2;
}
.aec-style-4 .aec-title, .aec-style-4 .aec-desc { color: #fff; }
.aec-style-4 .aec-desc { color: rgba(255,255,255,0.85); }
.aec-style-4 .aec-btn { background: rgba(255,255,255,0.9); color: #1a1a2e; }


/* ==========================================================================
   STYLE 5 — Neon Glow (dark card, glowing accent border on hover)
   ========================================================================== */
.aec-style-5 .aec-card {
	background: #0f0f1a;
	border: 1px solid rgba(255,255,255,0.08);
	box-shadow: 0 0 0 rgba(108,92,231,0);
}
.aec-style-5 .aec-title { color: #fff; }
.aec-style-5 .aec-desc { color: rgba(255,255,255,0.55); }
.aec-style-5 .aec-card:hover {
	border-color: var(--aec-accent);
	box-shadow: 0 0 26px 2px color-mix(in srgb, var(--aec-accent) 55%, transparent), 0 0 60px 8px color-mix(in srgb, var(--aec-accent) 25%, transparent);
	transform: translateY(-4px);
}
.aec-style-5 .aec-btn { background: transparent; border: 1.5px solid var(--aec-accent); box-shadow: none; }
.aec-style-5 .aec-btn:hover { background: var(--aec-accent); box-shadow: 0 0 20px color-mix(in srgb, var(--aec-accent) 60%, transparent); }


/* ==========================================================================
   STYLE 6 — Circle Frame (round image, centered, minimal card)
   ========================================================================== */
.aec-style-6 .aec-card {
	box-shadow: none;
	background: transparent;
	align-items: center;
	text-align: center;
}
.aec-style-6 .aec-image-wrap {
	width: 150px;
	height: 150px;
	aspect-ratio: 1/1;
	border-radius: 50%;
	margin: 26px auto 0;
	border: 4px solid #fff;
	box-shadow: 0 10px 26px rgba(20,20,43,0.18);
}
.aec-style-6 .aec-content { align-items: center; }
.aec-style-6 .aec-desc { text-align: center; }
.aec-style-6 .aec-card:hover .aec-image-wrap { transform: scale(1.06); box-shadow: 0 16px 34px rgba(20,20,43,0.24); }
.aec-style-6 .aec-image-wrap { transition: transform 0.35s ease, box-shadow 0.35s ease; }


/* ==========================================================================
   STYLE 7 — Split Content (image left, text right, horizontal card)
   ========================================================================== */
.aec-style-7 .aec-card { flex-direction: row; align-items: stretch; }
.aec-style-7 .aec-image-wrap { width: 42%; aspect-ratio: auto; flex-shrink: 0; }
.aec-style-7 .aec-content { width: 58%; justify-content: center; }
@media (max-width: 600px) {
	.aec-style-7 .aec-card { flex-direction: column; }
	.aec-style-7 .aec-image-wrap, .aec-style-7 .aec-content { width: 100%; }
	.aec-style-7 .aec-image-wrap { aspect-ratio: 4/3; }
}


/* ==========================================================================
   STYLE 8 — Bottom Slide Reveal (content panel slides up on hover)
   ========================================================================== */
.aec-style-8 .aec-card { background: transparent; box-shadow: none; }
.aec-style-8 .aec-image-wrap { aspect-ratio: 3/4; border-radius: 18px; }
.aec-style-8 .aec-content {
	position: absolute;
	left: 0; right: 0; bottom: -58%;
	background: #fff;
	border-radius: 18px 18px 0 0;
	padding: 22px;
	transition: bottom 0.4s cubic-bezier(.2,.8,.2,1);
	z-index: 2;
	max-height: 100%;
}
.aec-style-8 .aec-card:hover .aec-content { bottom: 0; }
.aec-style-8 .aec-title { color: #1a1a2e; }


/* ==========================================================================
   STYLE 9 — Zoom Hover (image zooms, subtle tint, simple caption)
   ========================================================================== */
.aec-style-9 .aec-image-wrap { border-radius: 14px 14px 0 0; }
.aec-style-9 .aec-card { transition: box-shadow 0.35s ease; }
.aec-style-9 .aec-card:hover { box-shadow: 0 24px 48px rgba(20,20,43,0.2); }
.aec-style-9 .aec-card:hover .aec-image { transform: scale(1.14) rotate(0.5deg); }
.aec-style-9 .aec-btn { width: 100%; border-radius: 10px; justify-content: center; }


/* ==========================================================================
   STYLE 10 — Dark Mode Minimal (flat dark card, thin accent underline)
   ========================================================================== */
.aec-style-10 .aec-card {
	background: #17171f;
	box-shadow: none;
	border-radius: 12px;
}
.aec-style-10 .aec-image-wrap { border-radius: 12px 12px 0 0; }
.aec-style-10 .aec-title { color: #f5f5f7; position: relative; padding-bottom: 12px; }
.aec-style-10 .aec-title::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	width: 36px; height: 3px;
	background: var(--aec-accent);
	border-radius: 3px;
	transition: width 0.3s ease;
}
.aec-style-10 .aec-card:hover .aec-title::after { width: 64px; }
.aec-style-10 .aec-desc { color: rgba(245,245,247,0.55); }
.aec-style-10 .aec-btn { background: transparent; color: var(--aec-accent); box-shadow: none; padding-left: 0; }
.aec-style-10 .aec-btn:hover { transform: translateX(4px); color: var(--aec-accent); }


/* ==========================================================================
   STYLE 11 — 3D Coverflow feel (scale + fade on non-active slides)
   ========================================================================== */
.aec-style-11 .swiper-slide {
	opacity: 0.55;
	transform: scale(0.92);
	transition: transform 0.5s ease, opacity 0.5s ease;
}
.aec-style-11 .swiper-slide-active,
.aec-style-11 .swiper-slide-visible.swiper-slide-active {
	opacity: 1;
	transform: scale(1);
}
.aec-style-11 .aec-card { box-shadow: 0 24px 50px rgba(20,20,43,0.22); }


/* ==========================================================================
   STYLE 12 — Polaroid Tilt (white border frame, slight rotation)
   ========================================================================== */
.aec-style-12 .aec-card {
	background: #fff;
	padding: 14px 14px 0;
	border-radius: 6px;
	box-shadow: 0 14px 30px rgba(20,20,43,0.18);
	transform: rotate(-2deg);
}
.aec-style-12 .swiper-slide:nth-child(even) .aec-card { transform: rotate(2deg); }
.aec-style-12 .aec-card:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); }
.aec-style-12 .aec-image-wrap { border-radius: 2px; aspect-ratio: 1/1; }
.aec-style-12 .aec-content { padding: 16px 6px 22px; }
.aec-style-12 .aec-title { font-family: inherit; }


/* ==========================================================================
   IMAGE SHAPE UTILITIES (Style tab > Image > Image Shape)
   ========================================================================== */
.aec-img-square .aec-image-wrap { border-radius: 0 !important; }
.aec-img-rounded .aec-image-wrap { border-radius: 14px !important; }
.aec-img-xl .aec-image-wrap { border-radius: 28px !important; }
.aec-img-circle .aec-image-wrap {
	border-radius: 50% !important;
	aspect-ratio: 1/1 !important;
	width: 140px;
	margin: 24px auto 0;
}
.aec-img-circle .aec-content { text-align: center; align-items: center; }

/* Optional tint overlay set via Style > Image > Overlay Tint color control */
.aec-image-wrap { position: relative; }
.aec-image-wrap::before { opacity: 0; }
.aec-card:hover .aec-image-wrap::before { opacity: 0.35; }


/* ==========================================================================
   IMAGE HOVER EFFECT UTILITIES (Style tab > Image > Image Hover Effect)
   ========================================================================== */
.aec-hover-zoom .aec-card:hover .aec-image { transform: scale(1.1); }

.aec-hover-tilt .aec-image-wrap { perspective: 600px; }
.aec-hover-tilt .aec-card:hover .aec-image { transform: rotate3d(0.5, 1, 0, 10deg) scale(1.05); }

.aec-hover-mono .aec-image { filter: grayscale(1); transition: filter 0.5s ease, transform 0.6s ease; }
.aec-hover-mono .aec-card:hover .aec-image { filter: grayscale(0); transform: scale(1.05); }

.aec-hover-bright .aec-image { filter: brightness(0.92); }
.aec-hover-bright .aec-card:hover .aec-image { filter: brightness(1.08); transform: scale(1.04); }


/* ==========================================================================
   STYLE 13 — Gradient Border Glow (animated gradient border ring)
   ========================================================================== */
.aec-style-13 .aec-card {
	position: relative;
	border-radius: 18px;
	background: var(--aec-card-bg);
	box-shadow: 0 10px 30px rgba(20,20,43,0.1);
}
.aec-style-13 .aec-card::before {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 20px;
	padding: 2px;
	background: linear-gradient(135deg, var(--aec-accent), var(--aec-accent-2));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.35s ease;
	z-index: 3;
	pointer-events: none;
}
.aec-style-13 .aec-card:hover::before { opacity: 1; }
.aec-style-13 .aec-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px color-mix(in srgb, var(--aec-accent) 30%, transparent); }
.aec-style-13 .aec-image-wrap { border-radius: 14px 14px 0 0; }


/* ==========================================================================
   STYLE 14 — SaaS Feature Card (icon-style image chip, badge look, punchy CTA)
   ========================================================================== */
.aec-style-14 .aec-card {
	border-radius: 20px;
	background: var(--aec-card-bg);
	padding: 6px;
}
.aec-style-14 .aec-image-wrap {
	width: 64px;
	height: 64px;
	aspect-ratio: 1/1;
	border-radius: 16px;
	margin: 20px 0 0 20px;
	box-shadow: 0 10px 20px color-mix(in srgb, var(--aec-accent) 35%, transparent);
}
.aec-style-14 .aec-content { padding: 18px 24px 26px; }
.aec-style-14 .aec-title { font-size: 19px; }
.aec-style-14 .aec-btn { padding: 9px 18px; font-size: 13px; border-radius: 10px; }
.aec-style-14 .aec-card:hover { box-shadow: 0 18px 36px rgba(20,20,43,0.14); transform: translateY(-5px); }
.aec-style-14 .aec-card:hover .aec-image-wrap { transform: rotate(-6deg) scale(1.05); }


/* ==========================================================================
   STYLE 15 — Magazine Bold (large oversized title, diagonal accent slice)
   ========================================================================== */
.aec-style-15 .aec-card { border-radius: 10px; overflow: hidden; }
.aec-style-15 .aec-image-wrap { aspect-ratio: 16/9; }
.aec-style-15 .aec-title {
	font-size: 26px;
	letter-spacing: -0.5px;
	line-height: 1.15;
	position: relative;
	padding-left: 16px;
}
.aec-style-15 .aec-title::before {
	content: '';
	position: absolute;
	left: 0; top: 3px; bottom: 3px;
	width: 5px;
	background: linear-gradient(180deg, var(--aec-accent), var(--aec-accent-2));
	border-radius: 3px;
}
.aec-style-15 .aec-content { padding: 24px 24px 28px; }
.aec-style-15 .aec-card:hover .aec-image { transform: scale(1.08); }


/* ==========================================================================
   STYLE 16 — Stacked Depth (peeking card shadow layers behind main card)
   ========================================================================== */
.aec-style-16 .swiper-slide { padding: 10px 6px 16px; }
.aec-style-16 .aec-card {
	position: relative;
	border-radius: 18px;
	z-index: 2;
}
.aec-style-16 .aec-card::before,
.aec-style-16 .aec-card::after {
	content: '';
	position: absolute;
	left: 8px; right: 8px;
	height: 100%;
	border-radius: 18px;
	background: var(--aec-card-bg);
	z-index: -1;
	transition: transform 0.35s ease, opacity 0.35s ease;
}
.aec-style-16 .aec-card::before { top: 10px; opacity: 0.6; }
.aec-style-16 .aec-card::after { top: 20px; opacity: 0.3; }
.aec-style-16 .aec-card:hover { transform: translateY(-4px); }
.aec-style-16 .aec-card:hover::before { transform: translateY(-4px); }
.aec-style-16 .aec-card:hover::after { transform: translateY(-8px); }


/* ==========================================================================
   STYLE 17 — 3D Tilt on Hover (whole card perspective tilt, premium feel)
   ========================================================================== */
.aec-style-17 { perspective: 1200px; }
.aec-style-17 .aec-card {
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	transform-style: preserve-3d;
}
.aec-style-17 .aec-card:hover {
	transform: rotateX(4deg) rotateY(-6deg) translateY(-6px) scale(1.02);
	box-shadow: 0 30px 50px rgba(20,20,43,0.22);
}
.aec-style-17 .aec-image-wrap { border-radius: 14px 14px 0 0; }
.aec-style-17 .aec-btn { transform: translateZ(20px); }


/* ==========================================================================
   STYLE 18 — Soft Pastel SaaS (light tinted bg, big rounded, airy spacing)
   ========================================================================== */
.aec-style-18 .aec-card {
	background: color-mix(in srgb, var(--aec-accent) 6%, #ffffff);
	border-radius: 24px;
	box-shadow: none;
	border: 1px solid color-mix(in srgb, var(--aec-accent) 14%, transparent);
}
.aec-style-18 .aec-image-wrap { border-radius: 18px; margin: 16px 16px 0; width: calc(100% - 32px); }
.aec-style-18 .aec-content { padding: 20px 24px 28px; gap: 12px; }
.aec-style-18 .aec-title { font-size: 21px; }
.aec-style-18 .aec-card:hover {
	background: color-mix(in srgb, var(--aec-accent) 12%, #ffffff);
	transform: translateY(-5px);
	box-shadow: 0 16px 32px color-mix(in srgb, var(--aec-accent) 18%, transparent);
}


/* ==========================================================================
   STYLE 19 — Minimal Outline (no shadow, thin border, corner accent mark)
   ========================================================================== */
.aec-style-19 .aec-card {
	box-shadow: none;
	border: 1.5px solid rgba(20,20,43,0.1);
	border-radius: 14px;
	background: transparent;
}
.aec-style-19 .aec-image-wrap { border-radius: 10px 10px 0 0; }
.aec-style-19 .aec-card::after {
	content: '';
	position: absolute;
	top: -1.5px; right: -1.5px;
	width: 26px; height: 26px;
	border-radius: 0 14px 0 14px;
	background: var(--aec-accent);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.aec-style-19 .aec-card:hover { border-color: var(--aec-accent); }
.aec-style-19 .aec-card:hover::after { opacity: 1; }
.aec-style-19 .aec-btn { background: transparent; border: 1.5px solid var(--aec-accent); color: var(--aec-accent); box-shadow: none; }
.aec-style-19 .aec-btn:hover { background: var(--aec-accent); color: #fff; }


/* ==========================================================================
   STYLE 20 — Play Overlay (dark scrim + centered play button, video/feature feel)
   ========================================================================== */
.aec-style-20 .aec-card { background: transparent; box-shadow: none; }
.aec-style-20 .aec-image-wrap { aspect-ratio: 16/9; border-radius: 16px; }
.aec-style-20 .aec-image-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(10,10,20,0.32);
	transition: background 0.3s ease;
}
.aec-style-20 .aec-image-wrap .aec-play-icon {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255,255,255,0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: transform 0.3s ease, background 0.3s ease;
}
.aec-style-20 .aec-card:hover .aec-image-wrap::after { background: rgba(10,10,20,0.5); }
.aec-style-20 .aec-card:hover .aec-play-icon { transform: scale(1.12); background: var(--aec-accent); }
.aec-style-20 .aec-card:hover .aec-play-icon svg path { fill: #fff; }
.aec-style-20 .aec-content { padding-top: 18px; }
