/* ================================================================
   Info Carousel for Elementor — Frontend Styles
   ================================================================ */

/* ── Reset swiper defaults we override ── */
.ic-wrap .swiper-button-prev::after,
.ic-wrap .swiper-button-next::after {
	display: none;
}

/* ── Wrapper ── */
.ic-carousel-wrap {
	position: relative;
	width: 100%;
}

/* ── Slide base ── */
.ic-wrap .swiper-slide {
	background-color: #ffffff;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-sizing: border-box;
	overflow: hidden;
	position: relative;
}

/* ── Overlay ── */
.ic-slide-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

/* ── Inner ── */
.ic-slide-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 40px 32px;
	box-sizing: border-box;
}

/* ── Layouts ── */

/* Stacked (default) */
.ic-layout-stacked .ic-slide-inner {
	flex-direction: column;
	align-items: center;
}
.ic-layout-stacked .ic-slide-media {
	width: 100%;
	display: flex;
	justify-content: center;
}

/* Split left / right */
.ic-layout-split-left .ic-slide-inner,
.ic-layout-split-right .ic-slide-inner {
	flex-direction: row;
	gap: 32px;
}
.ic-layout-split-left .ic-slide-media  { order: 1; }
.ic-layout-split-left .ic-slide-content { order: 2; }
.ic-layout-split-right .ic-slide-media  { order: 2; }
.ic-layout-split-right .ic-slide-content { order: 1; }
.ic-layout-split-left .ic-slide-media,
.ic-layout-split-right .ic-slide-media {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Overlay */
.ic-layout-overlay .ic-slide-inner {
	justify-content: flex-end;
}
.ic-layout-overlay .ic-slide-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.ic-layout-overlay .ic-slide-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ic-layout-overlay .ic-slide-content {
	position: relative;
	z-index: 2;
}

/* ── Media ── */
.ic-slide-media {
	margin-bottom: 24px;
	flex-shrink: 0;
}
.ic-slide-image img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* ── Icon ── */
.ic-slide-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.ic-slide-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	line-height: 1;
	transition: color 0.25s ease;
}
.ic-slide-icon svg {
	width: 1em;
	height: 1em;
}

/* ── Text elements ── */
.ic-slide-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ic-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 100px;
	background-color: #f0f0f0;
	color: #555;
	margin-bottom: 12px;
	align-self: flex-start;
}

.ic-pretitle {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.65;
}

.ic-title {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.ic-description {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.6;
	opacity: 0.8;
}

/* ── Buttons ── */
.ic-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: auto;
}

.ic-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	border-radius: 6px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
	border: 2px solid transparent;
}

/* Style variants */
.ic-btn.ic-btn-style-primary {
	background-color: #1a1aff;
	color: #ffffff;
	border-color: #1a1aff;
}
.ic-btn.ic-btn-style-primary:hover {
	background-color: #0000cc;
	border-color: #0000cc;
}
.ic-btn.ic-btn-style-secondary {
	background-color: #555;
	color: #ffffff;
	border-color: #555;
}
.ic-btn.ic-btn-style-secondary:hover {
	background-color: #333;
	border-color: #333;
}
.ic-btn.ic-btn-style-ghost {
	background-color: transparent;
	color: #1a1aff;
	border-color: #1a1aff;
}
.ic-btn.ic-btn-style-ghost:hover {
	background-color: #1a1aff;
	color: #ffffff;
}
.ic-btn.ic-btn-style-link {
	background-color: transparent;
	color: #1a1aff;
	border-color: transparent;
	padding-left: 0;
	padding-right: 0;
}
.ic-btn.ic-btn-style-link:hover {
	text-decoration: underline;
}

/* ── Navigation arrows ── */
.ic-wrap .swiper-button-prev,
.ic-wrap .swiper-button-next {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #ffffff;
	color: #333333;
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(0,0,0,0.12);
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
	border: none;
	z-index: 10;
}
.ic-wrap .swiper-button-prev:hover,
.ic-wrap .swiper-button-next:hover {
	background-color: #1a1aff;
	color: #ffffff;
	box-shadow: 0 4px 20px rgba(26,26,255,0.3);
}
.ic-wrap .swiper-button-prev { left: 16px; }
.ic-wrap .swiper-button-next { right: 16px; }

/* Arrows outside variant */
.ic-arrows-outside {
	padding-left: 64px;
	padding-right: 64px;
}
.ic-arrows-outside .swiper-button-prev { left: -56px; }
.ic-arrows-outside .swiper-button-next { right: -56px; }

.ic-arrow-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	pointer-events: none;
}
.ic-arrow-icon svg {
	width: 1em;
	height: 1em;
}

/* ── Pagination ── */
.ic-wrap .swiper-pagination {
	position: relative;
	bottom: auto;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 24px;
}

.ic-wrap .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: rgba(0,0,0,0.25);
	opacity: 1;
	transition: background 0.25s ease, width 0.25s ease, height 0.25s ease;
	border-radius: 50%;
}
.ic-wrap .swiper-pagination-bullet-active {
	background: #1a1aff;
}

/* Progress bar */
.ic-wrap .swiper-pagination-progressbar {
	background: rgba(0,0,0,0.15);
	position: relative;
	height: 4px;
	border-radius: 2px;
	overflow: hidden;
	margin-top: 20px;
}
.ic-wrap .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
	background: #1a1aff;
	border-radius: 2px;
}

/* Fraction */
.ic-wrap .swiper-pagination-fraction {
	color: #333;
	font-size: 14px;
	font-weight: 600;
}

/* ── Scrollbar ── */
.ic-wrap .swiper-scrollbar {
	margin-top: 16px;
	height: 4px;
	border-radius: 2px;
	background: rgba(0,0,0,0.1);
	position: relative;
}
.ic-wrap .swiper-scrollbar-drag {
	background: #1a1aff;
	border-radius: 2px;
}

/* ── Swiper overflow clip ── */
.ic-wrap .swiper {
	width: 100%;
	overflow: hidden;
}

/* ══════════════════════════
   Content alignment helpers
   (set via Elementor selector, but helpful defaults)
   ══════════════════════════ */
.ic-slide-content[style*="text-align: center"] .ic-badge,
.ic-slide-content[style*="text-align:center"] .ic-badge {
	align-self: center;
}
.ic-slide-content[style*="text-align: right"] .ic-badge,
.ic-slide-content[style*="text-align:right"] .ic-badge {
	align-self: flex-end;
}
.ic-slide-content[style*="text-align: center"] .ic-buttons,
.ic-slide-content[style*="text-align:center"] .ic-buttons {
	justify-content: center;
}
.ic-slide-content[style*="text-align: right"] .ic-buttons,
.ic-slide-content[style*="text-align:right"] .ic-buttons {
	justify-content: flex-end;
}

/* ── Disabled state for single-slide ── */
.ic-wrap .swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

/* ── Responsive defaults ── */
@media (max-width: 1024px) {
	.ic-arrows-outside {
		padding-left: 0;
		padding-right: 0;
	}
	.ic-arrows-outside .swiper-button-prev { left: 8px; }
	.ic-arrows-outside .swiper-button-next { right: 8px; }
}
@media (max-width: 767px) {
	.ic-layout-split-left .ic-slide-inner,
	.ic-layout-split-right .ic-slide-inner {
		flex-direction: column;
	}
	.ic-layout-split-left .ic-slide-media,
	.ic-layout-split-right .ic-slide-media,
	.ic-layout-split-left .ic-slide-content,
	.ic-layout-split-right .ic-slide-content {
		width: 100% !important;
		order: unset;
	}
	.ic-slide-inner {
		padding: 28px 20px;
	}
}
