/**
 * Geo Smart Ads Carousel – Public styles
 * Full-width desktop, responsive mobile, video + transparent hit area.
 */

.gsacp-carousel {
	position: relative;
	width: 100%;
	max-width: 100% !important;
	overflow: hidden;
	margin: 1rem 0;
	box-sizing: border-box;
}

.gsacp-carousel-track {
	display: flex;
	transition: transform 0.4s ease;
	will-change: transform;
}

.gsacp-slide {
	flex: 0 0 100%;
	min-width: 100%;
	box-sizing: border-box;
	padding: 0;
}

/* Aspect-ratio frame – fills available width */
.gsacp-slide-inner {
	position: relative;
	width: 100%;
	padding-bottom: var(--gsacp-ratio-padding, 56.25%);
	height: 0;
	overflow: hidden;
	background: #0f172a;
	border-radius: 8px;
}

.gsacp-slide-inner.gsacp-empty-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	height: auto;
	min-height: 120px;
	padding: 2rem;
	color: #94a3b8;
	font-size: 0.9rem;
}

/* Ad content fills the frame */
.gsacp-slide-inner > .gsacp-ad {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	display: block;
	text-align: center;
	overflow: hidden;
}

.gsacp-ad {
	position: relative;
	width: 100%;
	height: 100%;
}

/* Image – cover full area on desktop & mobile */
.gsacp-ad-image,
.gsacp-slide-inner img.gsacp-ad-image {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: var(--gsacp-object-fit, cover);
	object-position: center center;
	display: block;
	margin: 0;
	border-radius: 0;
}

/* Linked image wrapper */
a.gsacp-ad-link {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

a.gsacp-ad-link .gsacp-ad-image {
	position: absolute;
	inset: 0;
}

/* Full-area hit removed – only CTA button is clickable */
.gsacp-ad-hit { display: none !important; }

/* CTA – bottom right only (not full creative) */
.gsacp-ad-cta {
	position: absolute;
	right: 12px;
	bottom: 12px;
	left: auto;
	transform: none;
	z-index: 7;
	margin: 0;
	pointer-events: none;
}
.gsacp-cta-btn {
	display: inline-block;
	padding: 0.5rem 1.15rem;
	background: rgba(15, 23, 42, 0.82);
	color: #fff !important;
	text-decoration: none;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.85rem;
	backdrop-filter: blur(6px);
	pointer-events: auto;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
	transition: background 0.2s, transform 0.15s;
}
.gsacp-cta-btn:hover {
	background: rgba(15, 23, 42, 0.95);
	color: #fff !important;
	transform: translateY(-1px);
}

/* Speaker – bottom left (video) */
.gsacp-sound-btn {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 7;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(6px);
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
	padding: 0;
	line-height: 1;
}
.gsacp-sound-btn:hover { background: rgba(15, 23, 42, 0.92); }
.gsacp-sound-btn .gsacp-sound-icon { font-size: 1.05rem; display: none; }
.gsacp-sound-btn.is-on .gsacp-sound-on { display: inline; }
.gsacp-sound-btn.is-off .gsacp-sound-off { display: inline; }
.gsacp-sound-btn.is-on .gsacp-sound-off { display: none; }
.gsacp-sound-btn.is-off .gsacp-sound-on { display: none; }

@media (max-width: 480px) {
	.gsacp-sound-btn { width: 36px; height: 36px; left: 8px; bottom: 8px; }
	.gsacp-ad-cta { right: 8px; bottom: 8px; }
	.gsacp-cta-btn { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
}


/* Video – fill frame (no double ratio padding) */
.gsacp-video-wrap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0 !important;
	margin: 0;
	overflow: hidden;
	background: #000;
	border-radius: 0;
}
.gsacp-video-wrap iframe,
.gsacp-video-wrap video,
.gsacp-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	background: #000;
}

/* Nav arrows */
.gsacp-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.5rem;
	line-height: 1;
	z-index: 8;
	padding: 0;
}
.gsacp-prev { left: 10px; }
.gsacp-next { right: 10px; }
.gsacp-nav:hover { background: rgba(0, 0, 0, 0.75); }

.gsacp-dots {
	text-align: center;
	padding: 0.5rem 0 0;
}
.gsacp-dots button {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: none;
	background: #cbd5e1;
	margin: 0 3px;
	cursor: pointer;
	padding: 0;
}
.gsacp-dots button.active { background: #2271b1; }

/* Sidebar placement can stay narrower */
.gsacp-placement-sidebar {
	max-width: 320px !important;
}

.gsacp-placement-course_top,
.gsacp-placement-course_bottom,
.gsacp-placement-inline,
.gsacp-placement-quiz,
.gsacp-placement-fullwidth,
.gsacp-in-content {
	width: 100%;
	max-width: 100% !important;
}

@media (max-width: 768px) {
	.gsacp-carousel {
		max-width: 100% !important;
		margin: 0.75rem 0;
	}
	.gsacp-nav {
		width: 32px;
		height: 32px;
		font-size: 1.15rem;
	}
	.gsacp-prev { left: 6px; }
	.gsacp-next { right: 6px; }
	.gsacp-slide-inner {
		border-radius: 6px;
	}
}
