/**
 * Pro Hover Box - Front-end styles
 *
 * @package Pro_Hover_Box
 */

.wk-hoverbox-wrapper {
	position: relative;
	display: block;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 30px;
}

.wk-link-mask {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
}

.wk-hoverbox-inner {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	text-align: inherit;
	background-color: transparent;
	border-radius: inherit;
}

.wk-box-front,
.wk-box-back {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding: 30px;
	overflow: hidden;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
}

.wk-box-front {
	z-index: 2;
}

.wk-box-back {
	z-index: 1;
}

.wk-bg-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.wk-content-wrap {
	position: relative;
	z-index: 5;
	width: 100%;
	display: block;
}

img.wk-front-icon,
.wk-badge-inner img {
	display: block;
	margin: 0 auto !important;
	border: none !important;
	box-shadow: none !important;
	object-fit: contain;
	transform: none !important;
	transition: none !important;
	animation: none !important;
}

.wk-badge-inner img:hover,
img.wk-front-icon:hover {
	transform: none !important;
}

.wk-hoverbox-wrapper h3.wk-custom-title {
	margin: 0 0 10px 0 !important;
	padding: 0 !important;
	font-weight: bold !important;
	line-height: 1.3 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

.wk-custom-desc {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.6 !important;
}

.wk-custom-desc p {
	margin-bottom: 10px;
	color: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}

/* ==========================================================================
   Effect: Smooth Fade
   ========================================================================== */
.wk-effect-fade .wk-box-front {
	opacity: 1;
	transition: opacity 0.5s ease-in-out !important;
}

.wk-effect-fade .wk-box-back {
	opacity: 0;
	transition: opacity 0.5s ease-in-out !important;
}

.wk-hoverbox-wrapper.wk-effect-fade:hover .wk-box-front {
	opacity: 0;
}

.wk-hoverbox-wrapper.wk-effect-fade:hover .wk-box-back {
	z-index: 3;
	opacity: 1;
}

/* ==========================================================================
   Effect: 3D Flip
   ========================================================================== */
.wk-hoverbox-wrapper.wk-effect-flip {
	perspective: 1000px !important;
}

.wk-effect-flip .wk-hoverbox-inner {
	overflow: visible !important;
	transition: transform 0.8s ease-in-out !important;
	transform-style: preserve-3d !important;
}

.wk-hoverbox-wrapper.wk-effect-flip:hover .wk-hoverbox-inner {
	transform: rotateY(180deg) !important;
}

.wk-effect-flip .wk-box-front,
.wk-effect-flip .wk-box-back {
	border-radius: inherit;
	-webkit-backface-visibility: hidden !important;
	backface-visibility: hidden !important;
}

.wk-effect-flip .wk-box-front {
	transform: rotateY(0deg) !important;
}

.wk-effect-flip .wk-box-back {
	transform: rotateY(180deg) !important;
}

/* ==========================================================================
   Effect: Slide Up
   ========================================================================== */
.wk-effect-slide_up .wk-box-front,
.wk-effect-slide_up .wk-box-back {
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wk-effect-slide_up .wk-box-front {
	opacity: 1;
	transform: translateY(0);
}

.wk-effect-slide_up .wk-box-back {
	opacity: 0;
	transform: translateY(40px);
}

.wk-hoverbox-wrapper.wk-effect-slide_up:hover .wk-box-front {
	opacity: 0;
	transform: translateY(-40px);
}

.wk-hoverbox-wrapper.wk-effect-slide_up:hover .wk-box-back {
	z-index: 3;
	opacity: 1;
	transform: translateY(0);
}

/* ==========================================================================
   Effect: Static Banner
   ========================================================================== */
.wk-effect-static .wk-box-front {
	position: relative;
	z-index: 2;
	height: 100%;
	transition: transform 0.3s ease !important;
}

.wk-hoverbox-wrapper.wk-effect-static:hover .wk-box-front {
	transform: scale(1.02) !important;
}

/* ==========================================================================
   Effect: Overlapping Card Badge (native flex layout)
   ========================================================================== */
.wk-card-native-layout {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	overflow: hidden;
}

.wk-card-img-banner {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 45%;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
}

.wk-card-text-body {
	position: relative;
	z-index: 3;
	flex: 1;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding: 24px;
}
