/* ==========================================
   APB Image + Text (Spotlight) Widget CSS
   ========================================== */

.apb-its-section {
	--apb-spotlight-color: #ffffff;
	--apb-spotlight-size: 450px;
	--apb-spotlight-blur: 80px;
	--apb-spotlight-opacity: 0.6;
	--apb-mx: 50%;
	--apb-my: 50%;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	isolation: isolate;
}

/* Mouse-follow spotlight layer */
.apb-spotlight-layer {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.apb-its-section.apb-has-spotlight .apb-spotlight-layer {
	opacity: 1;
	background: radial-gradient(
		circle var(--apb-spotlight-size) at var(--apb-mx) var(--apb-my),
		var(--apb-spotlight-color) 0%,
		transparent 70%
	);
	filter: blur(var(--apb-spotlight-blur));
	will-change: background;
	opacity: var(--apb-spotlight-opacity);
}

.apb-its-grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.apb-its-left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
}

/* Image with zoom animations */
.apb-its-image {
	position: relative;
	width: 45%;
	height: 500px;
	overflow: hidden;
	cursor: pointer;
}

.apb-its-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1);
	transition-property: transform;
	transition-duration: 0.6s;
	transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
	will-change: transform;
}

/* Scroll-triggered zoom: JS toggles .apb-in-view */
.apb-its-image.apb-scroll-zoom img {
	transform: scale(1);
}
.apb-its-image.apb-scroll-zoom.apb-in-view img {
	transform: scale(var(--apb-scroll-scale, 1.15));
}

/* Click-triggered zoom toggle */
.apb-its-image.apb-click-zoom.apb-clicked img {
	transform: scale(var(--apb-click-scale, 1.3));
}

.apb-its-main-btn {
	display: inline-block;
	padding: 16px 32px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.3s ease;
}
.apb-its-main-btn:hover {
	transform: translateY(-2px);
	opacity: 0.85;
}

.apb-its-right {
	display: flex;
	flex-direction: column;
}

.apb-its-heading {
	margin: 0 0 20px;
	line-height: 1.2;
}

.apb-its-text {
	margin: 0 0 24px;
	line-height: 1.7;
}

.apb-episode-list {
	display: flex;
	flex-direction: column;
}

.apb-episode-item {
	border-bottom: 1px solid #d8d8d8;
	padding: 20px 0;
}

.apb-episode-item-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.apb-item-number {
	font-size: 12px;
	letter-spacing: 0.05em;
}

.apb-episode-btn {
	border: 1px solid currentColor;
	border-radius: 30px;
	padding: 6px 16px;
	font-size: 11px;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
	transition: all 0.3s ease;
}
.apb-episode-btn:hover {
	background: currentColor;
}

.apb-item-title {
	margin: 0;
	line-height: 1.3;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.apb-its-grid {
		grid-template-columns: 1fr;
	}
	.apb-its-image {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.apb-episode-item-top {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.apb-its-image img { transition: none; }
	.apb-spotlight-layer { transition: none; }
}
