.elementor-widget-treethemes-hover-box,
.elementor-widget-treethemes-hover-box > .elementor-widget-container {
	height: 100%;
}

.tt-hover-box {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 520px;
	height: 100%;
	background: #0b0f14;
}

.tt-hover-box__panels {
	position: absolute;
	inset: 0;
}

.tt-hover-box__panel {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1.03);
	transition: opacity .55s ease, transform .75s ease, filter .45s ease;
	filter: grayscale(8%);
}

.tt-hover-box__panel.is-active {
	opacity: 1;
	transform: scale(1);
	filter: grayscale(0%);
}

.tt-hover-box__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	pointer-events: none;
	transition: background .35s ease;
}

.tt-hover-box__grid {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	min-height: 100%;
	height: 100%;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 0;
}

.tt-hover-box--cols-1 .tt-hover-box__grid { grid-template-columns: 1fr; }
.tt-hover-box--cols-2 .tt-hover-box__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tt-hover-box--cols-4 .tt-hover-box__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tt-hover-box__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 240px;
	height: 100%;
	border: 1px solid rgba(255, 255, 255, 0.5);
	overflow: hidden;
	transition: background .35s ease, border-color .3s ease, transform .35s ease;
	backdrop-filter: blur(0.5px);
}

.tt-hover-box__card.is-active,
.tt-hover-box__card:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.9);
}

.tt-hover-box__content {
	position: relative;
	z-index: 1;
	padding: 28px;
	color: #fff;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 100%;
	height: 100%;
	box-sizing: border-box;
	gap: 10px;
	justify-content: var(--tt-hover-content-justify, flex-end);
}

.tt-hover-box--content-top .tt-hover-box__content { justify-content: flex-start; }
.tt-hover-box--content-center .tt-hover-box__content { justify-content: center; }
.tt-hover-box--content-bottom .tt-hover-box__content { justify-content: flex-end; }

.tt-hover-box--effect-none .tt-hover-box__bg {
	transform: none;
	transition: none;
}

.tt-hover-box--skin-envelope .tt-hover-box__grid {
	align-items: end;
	gap: 8px;
}

.tt-hover-box--skin-envelope .tt-hover-box__card {
	min-height: 180px;
	background: rgba(0, 0, 0, 0.2);
}

.tt-hover-box--skin-envelope .tt-hover-box__card.is-active {
	transform: translateY(-10px);
}

.tt-hover-box--skin-flexure .tt-hover-box__grid {
	grid-template-columns: 1fr;
	max-width: 460px;
	gap: 0;
}

.tt-hover-box--skin-flexure .tt-hover-box__card {
	min-height: 120px;
	border-bottom-width: 0;
	background: rgba(0, 0, 0, 0.35);
}

.tt-hover-box--skin-flexure .tt-hover-box__card:last-child {
	border-bottom-width: 1px;
}

.tt-hover-box--layout-style-2 .tt-hover-box__title {
	font-size: clamp(20px, 2vw, 32px);
	letter-spacing: 0.2em;
}

.tt-hover-box--layout-style-2 .tt-hover-box__label {
	opacity: .8;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tt-hover-box__label {
	font-size: 12px;
	margin-bottom: 10px;
}

.tt-hover-box__title {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.tt-hover-box__desc {
	font-size: 14px;
}

.tt-hover-box__icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-shrink: 0;
	width: 1em;
	height: 1em;
	font-size: 48px;
	line-height: 1;
	color: #fff;
	opacity: 1;
	z-index: 2;
	transition: transform .35s ease, opacity .35s ease;
}

.tt-hover-box__icon i,
.tt-hover-box__icon svg,
.tt-hover-box__icon .e-font-icon-svg {
	display: block;
	width: 1em !important;
	height: 1em !important;
	max-width: 1em;
	max-height: 1em;
	font-size: 1em;
	line-height: 1;
	color: inherit;
	fill: currentColor !important;
	stroke: none !important;
}

.tt-hover-box__icon svg path,
.tt-hover-box__icon svg .cls-1 {
	fill: currentColor !important;
	stroke: none !important;
	stroke-width: 0 !important;
}

.tt-hover-box__card:hover .tt-hover-box__icon,
.tt-hover-box__card.is-active .tt-hover-box__icon {
	opacity: 1;
	transform: scale(1.06);
}

.tt-hover-box__button {
	align-self: flex-start;
	display: inline-flex;
	text-decoration: none;
	border: 1px solid #fff;
	padding: 8px 14px;
	transition: all .25s ease;
}

.tt-hover-box__button:hover {
	background: #fff;
	color: #111;
}

@media (max-width: 1024px), (pointer: coarse) {
	.elementor-widget-treethemes-hover-box,
	.elementor-widget-treethemes-hover-box > .elementor-widget-container,
	.tt-hover-box {
		overflow: hidden;
		max-width: 100%;
		clip-path: inset(0);
		-webkit-clip-path: inset(0);
		contain: paint;
		touch-action: pan-y;
	}

	/* scale(1.03) on idle panels expands iOS page pan through overflow:hidden. */
	.tt-hover-box__panel,
	.tt-hover-box__panel.is-active {
		transform: none;
	}

	.tt-hover-box__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tt-hover-box__grid {
		grid-template-columns: 1fr;
	}
	.tt-hover-box--skin-flexure .tt-hover-box__grid {
		max-width: 100%;
	}
}
