/**
 * Animated Service Box — Style 1: Hover Lift Reveal
 *
 * A clean light card that lifts on hover. An accent bar grows across the top,
 * the icon tile scales and tilts, and an underline sweeps in beneath the title.
 *
 * @package captain-widgets-kit
 * @since   1.6.0
 */

.captwiki-anibox.captwiki-style-1 {
	padding: 34px 30px;
	background: #ffffff;
	border: 1px solid #eceef3;
	border-radius: 18px;
	box-shadow: 0 8px 24px -18px rgba( 17, 24, 39, 0.4 );
	transition: transform var( --captwiki-ab-speed ) cubic-bezier( 0.22, 1, 0.36, 1 ), box-shadow var( --captwiki-ab-speed ) ease, border-color var( --captwiki-ab-speed ) ease;
}

.captwiki-anibox.captwiki-style-1::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	transform: scaleX( 0 );
	transform-origin: left center;
	background: linear-gradient( 90deg, var( --captwiki-ab-accent ), var( --captwiki-ab-accent-2 ) );
	transition: transform var( --captwiki-ab-speed ) ease;
}

.captwiki-anibox.captwiki-style-1:hover {
	transform: translateY( -10px );
	border-color: transparent;
	box-shadow: 0 30px 50px -26px rgba( 17, 24, 39, 0.45 );
}

.captwiki-anibox.captwiki-style-1:hover::before {
	transform: scaleX( 1 );
}

.captwiki-anibox.captwiki-style-1 .captwiki-anibox__media {
	background: rgba( 109, 94, 252, 0.1 );
	background: color-mix( in srgb, var( --captwiki-ab-accent ) 12%, transparent );
	transition: transform var( --captwiki-ab-speed ) cubic-bezier( 0.34, 1.56, 0.64, 1 );
}

.captwiki-anibox.captwiki-style-1:hover .captwiki-anibox__media {
	transform: scale( 1.08 ) rotate( -6deg );
}

.captwiki-anibox.captwiki-style-1 .captwiki-anibox__title {
	position: relative;
	display: inline-block;
}

.captwiki-anibox.captwiki-style-1 .captwiki-anibox__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 100%;
	height: 2px;
	transform: scaleX( 0 );
	transform-origin: left center;
	background: var( --captwiki-ab-accent );
	transition: transform var( --captwiki-ab-speed ) ease;
}

.captwiki-anibox.captwiki-style-1:hover .captwiki-anibox__title::after {
	transform: scaleX( 1 );
}
