/*
Theme Name: Themify Ultra Child
Description: A child theme of Themify Ultra
Template: themify-ultra
Author: pravin@studiobarkingdog.com (pravin@studiobarkingdog.com)
*/

/* Woohoo! Let's customize! */

/* Override Themify default focus outline */
:is(button, a, input, select, textarea, .button):focus {
	outline: none;
}

/* Theme button — diagonal skew swipe from top-left (#B8002F) */
.theme-btn .builder_button {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: #B8002F !important;
	border: 1px solid #B8002F !important;
	background: transparent !important;
	box-shadow: none !important;
	transform: none !important;
	transition: color 0.35s ease 0.15s;
}

.theme-btn .builder_button::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 150%;
	height: 100%;
	background-color: #B8002F;
	transform: skewX(-25deg) translateX(-105%);
	transform-origin: top left;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
}

.theme-btn .builder_button:hover,
.theme-btn .builder_button:focus-visible {
	color: #fff !important;
	border-color: #B8002F !important;
	background: transparent !important;
	box-shadow: none !important;
	transform: none !important;
	transition: color 0.25s ease;
}

.theme-btn .builder_button:hover::before,
.theme-btn .builder_button:focus-visible::before {
	transform: skewX(-25deg) translateX(0);
}

/* Theme button (white) — for dark backgrounds */
.theme-btn-white .builder_button,
.theme-btn-white .builder_button:hover,
.theme-btn-white .builder_button:focus,
.theme-btn-white .builder_button:focus-visible,
.theme-btn-white .builder_button:active {
	border: 1px solid #fff !important;
	border-color: #fff !important;
	outline: none !important;
	box-shadow: none !important;
}

.theme-btn-white .builder_button {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: #fff !important;
	background: transparent !important;
	transform: none !important;
	transition: color 0.35s ease 0.15s;
}

.theme-btn-white .builder_button::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 150%;
	height: 100%;
	background-color: #fff;
	transform: skewX(-25deg) translateX(-105%);
	transform-origin: top left;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
}

.theme-btn-white .builder_button:hover,
.theme-btn-white .builder_button:focus-visible {
	color: #B8002F !important;
	background: transparent !important;
	transform: none !important;
	transition: color 0.25s ease;
}

.theme-btn-white .builder_button:hover::before,
.theme-btn-white .builder_button:focus-visible::before {
	transform: skewX(-25deg) translateX(0);
}

/* Theme button (banner) — white fill + border, theme swipe on hover */
.theme-btn.banner-btn .builder_button {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: #B8002F !important;
	border: 1px solid #fff !important;
	background: #fff !important;
	box-shadow: none !important;
	transform: none !important;
	transition: color 0.35s ease 0.15s, border-color 0.35s ease;
}

.theme-btn.banner-btn .builder_button::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 150%;
	height: 100%;
	background-color: #B8002F;
	transform: skewX(-25deg) translateX(-105%);
	transform-origin: top left;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
}

/* Click and Back leave :focus/:active. Keep the resting look so the label stays visible. */
.theme-btn.banner-btn .builder_button:focus,
.theme-btn.banner-btn .builder_button:active {
	color: #B8002F !important;
	border: 1px solid #fff !important;
	border-color: #fff !important;
	background: #fff !important;
	box-shadow: none !important;
	transform: none !important;
	outline: none !important;
}

.theme-btn.banner-btn .builder_button:focus::before,
.theme-btn.banner-btn .builder_button:active::before {
	transform: skewX(-25deg) translateX(-105%);
}

.theme-btn.banner-btn .builder_button:hover,
.theme-btn.banner-btn .builder_button:focus-visible {
	color: #fff !important;
	border: 1px solid #B8002F !important;
	border-color: #B8002F !important;
	background: #fff !important;
	box-shadow: none !important;
	transform: none !important;
	outline: none !important;
	transition: color 0.25s ease, border-color 0.35s ease;
}

.theme-btn.banner-btn .builder_button:hover::before,
.theme-btn.banner-btn .builder_button:focus-visible::before {
	transform: skewX(-25deg) translateX(0);
}

/* On-white button — solid brand fill; white swipe + brand text on hover */
.on-white .builder_button {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: #fff !important;
	border: 1px solid #B8002F !important;
	background: #B8002F !important;
	box-shadow: none !important;
	outline: none !important;
	transform: none !important;
	transition: color 0.35s ease 0.15s;
}

.on-white .builder_button::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 150%;
	height: 100%;
	background-color: #fff;
	transform: skewX(-25deg) translateX(-105%);
	transform-origin: top left;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
}

/* Click and Back leave :focus/:active. Keep white text on the brand fill. */
body .on-white .builder_button:focus,
body .on-white .builder_button:active {
	color: #fff !important;
	border: 1px solid #B8002F !important;
	border-color: #B8002F !important;
	background: #B8002F !important;
	box-shadow: none !important;
	outline: none !important;
	transform: none !important;
}

body .on-white .builder_button:focus::before,
body .on-white .builder_button:active::before {
	transform: skewX(-25deg) translateX(-105%);
}

.on-white .builder_button:hover,
.on-white .builder_button:focus-visible {
	color: #B8002F !important;
	border-color: #B8002F !important;
	background: #B8002F !important;
	box-shadow: none !important;
	outline: none !important;
	transform: none !important;
	transition: color 0.25s ease;
}

.on-white .builder_button:hover::before,
.on-white .builder_button:focus-visible::before {
	transform: skewX(-25deg) translateX(0);
}

/* Gravity Form submit — same swipe as .on-white */
.theme-form .gform_button.button,
.theme-form button.gform_button,
.theme-form input.gform_button {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	appearance: none;
	cursor: pointer;
	color: #fff !important;
	border: 1px solid #B8002F !important;
	background: #B8002F !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	transform: none !important;
	box-sizing: border-box;
	height: auto !important;
	min-height: 0 !important;
	border-radius: 0 !important;
	padding: 12px 50px !important;
	font-family: "Montserrat", sans-serif !important;
	font-weight: 600 !important;
	font-size: 16px !important;
	line-height: 24px !important;
	transition: color 0.35s ease 0.15s;
}

.theme-form .gform_button.button::before,
.theme-form button.gform_button::before,
.theme-form input.gform_button::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 150%;
	height: 100%;
	background-color: #fff;
	transform: skewX(-25deg) translateX(-105%);
	transform-origin: top left;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
	pointer-events: none;
}

body .theme-form .gform_button.button:focus,
body .theme-form .gform_button.button:active,
body .theme-form button.gform_button:focus,
body .theme-form button.gform_button:active,
body .theme-form input.gform_button:focus,
body .theme-form input.gform_button:active {
	color: #fff !important;
	border: 1px solid #B8002F !important;
	border-color: #B8002F !important;
	background: #B8002F !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	transform: none !important;
}

body .theme-form .gform_button.button:focus::before,
body .theme-form .gform_button.button:active::before,
body .theme-form button.gform_button:focus::before,
body .theme-form button.gform_button:active::before,
body .theme-form input.gform_button:focus::before,
body .theme-form input.gform_button:active::before {
	transform: skewX(-25deg) translateX(-105%);
}

.theme-form .gform_button.button:hover,
.theme-form .gform_button.button:focus-visible,
.theme-form button.gform_button:hover,
.theme-form button.gform_button:focus-visible,
.theme-form input.gform_button:hover,
.theme-form input.gform_button:focus-visible {
	color: #B8002F !important;
	border-color: #B8002F !important;
	background: #B8002F !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	transform: none !important;
	transition: color 0.25s ease;
}

.theme-form .gform_button.button:hover::before,
.theme-form .gform_button.button:focus-visible::before,
.theme-form button.gform_button:hover::before,
.theme-form button.gform_button:focus-visible::before,
.theme-form input.gform_button:hover::before,
.theme-form input.gform_button:focus-visible::before {
	transform: skewX(-25deg) translateX(0);
}

/* Feature column — corner triangle + arrow image on hover (bottom-right) */
.module_column.feature-corner,
.feature-corner {
	position: relative;
	overflow: hidden;
}

.module_column.feature-corner::after,
.feature-corner::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 100px;
	height: 100px;
	background-image: url('http://inits33.sg-host.com/wp-content/uploads/2026/06/hover-tringle.svg');
	background-repeat: no-repeat;
	background-position: bottom right;
	background-size: cover;
	opacity: 0;
	z-index: 2;
	pointer-events: none;
}

.module_column.feature-corner:hover::after,
.module_column.feature-corner:focus-within::after,
.feature-corner:hover::after,
.feature-corner:focus-within::after {
	opacity: 1;
}

/* Keep column content above the corner image */
.module_column.feature-corner > .module,
.module_column.feature-corner .tb-column-inner,
.module_column.feature-corner .tb_holder {
	position: relative;
	z-index: 2;
}

/* Desktop — hover bg/text transitions */
@media (min-width: 1101px) {
	.module_column.feature-corner:hover,
	.module_column.feature-corner:focus-within,
	.feature-corner:hover,
	.feature-corner:focus-within {
		background: #fff !important;
		transition: background-color 0.4s ease;
	}

	.module_column.feature-corner:hover h4,
	.module_column.feature-corner:hover p,
	.module_column.feature-corner:focus-within h4,
	.module_column.feature-corner:focus-within p,
	.feature-corner:hover h4,
	.feature-corner:hover p,
	.feature-corner:focus-within h4,
	.feature-corner:focus-within p {
		color: #000 !important;
	}

	.module_column.feature-corner:hover .module-buttons .builder_button,
	.module_column.feature-corner:focus-within .module-buttons .builder_button,
	.feature-corner:hover .module-buttons .builder_button,
	.feature-corner:focus-within .module-buttons .builder_button {
		background: #fff !important;
		border-color: #fff !important;
		color: #B8002F !important;
	}

	.module_column.feature-corner:hover .module-image .image-wrap,
	.module_column.feature-corner:focus-within .module-image .image-wrap,
	.feature-corner:hover .module-image .image-wrap,
	.feature-corner:focus-within .module-image .image-wrap {
		background: #fff !important;
	}
}

/* Touch / tablet — corner image always visible, no hover color changes */
@media (max-width: 1100px) {
	.module_column.feature-corner::after,
	.feature-corner::after {
		opacity: 1;
	}
}

/* Purpose column — 260px box, white V-notch, reveal text, image color */
.module_column.purpose {
	--purpose-brand: #B8002F;
	--purpose-gray: #d9d9d9;
	--purpose-notch: 28px;
	--purpose-height: 260px;
	display: flex;
	flex-direction: column;
	position: relative;
	background: transparent;
	transition: background-color 0.4s ease;
}

.module_column.purpose > .module {
	margin: 0 !important;
}

.module_column.purpose > .module-text,
.module_column.purpose > .module-html {
	background: transparent !important;
	padding: 0 !important;
}

.module_column.purpose .tb_text_wrap {
	margin: 0;
	padding: 0;
}

/* Single HTML snippet wrapper — paste markup below into one Text (HTML) module */
.module_column.purpose .purpose-box {
	box-sizing: border-box;
	height: var(--purpose-height);
	min-height: var(--purpose-height);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background: var(--purpose-gray);
	padding: 20px;
	overflow: hidden;
	position: relative;
	z-index: 2;
	transition: background-color 0.4s ease, clip-path 0.4s ease;
}

.module_column.purpose .purpose-box h3 {
	color: var(--purpose-brand) !important;
	font-weight: 600 !important;
	font-size: 30px !important;
	line-height: 38px !important;
	margin: 0;
	flex-shrink: 0;
	transition: color 0.35s ease;
}

.module_column.purpose .purpose-reveal h4 {
	margin: 0 0 12px;
	font-weight: 700 !important;
	font-size: 18px !important;
	line-height: 26px !important;
}

.module_column.purpose .purpose-reveal p {
	margin: 0;
	font-size: 16px;
	line-height: 22px;
}

.module_column.purpose .purpose-reveal {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	margin: 0;
	width: 100%;
	transition:
		max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.4s ease,
		margin 0.4s ease;
}

/* Image sits below box; overlaps collapsed reveal area */
.module_column.purpose > .module-image {
	position: relative;
	z-index: 3;
	margin-top: calc(-1 * var(--purpose-height) * 0.22);
	transition: margin-top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.module_column.purpose > .module-image img {
	display: block;
	width: 100%;
	filter: grayscale(100%);
	transition: filter 0.45s ease;
}

/* Desktop — hover reveal */
@media (min-width: 1101px) {
	.module_column.purpose:hover,
	.module_column.purpose:focus-within {
		background: #F1F2F2 !important;
	}

	.module_column.purpose:hover .purpose-box,
	.module_column.purpose:focus-within .purpose-box {
		background: var(--purpose-brand) !important;
		justify-content: center;
		gap: 12px;
		margin-top: 0;
		padding: 20px;
		clip-path: polygon(
			0 0,
			50% var(--purpose-notch),
			100% 0,
			100% 100%,
			0 100%
		);
	}

	.module_column.purpose:hover .purpose-box h3,
	.module_column.purpose:focus-within .purpose-box h3 {
		color: #fff !important;
	}

	.module_column.purpose:hover .purpose-reveal,
	.module_column.purpose:focus-within .purpose-reveal {
		max-height: 200px;
		opacity: 1;
		margin-top: 4px;
	}

	.module_column.purpose:hover .purpose-reveal h4,
	.module_column.purpose:hover .purpose-reveal p,
	.module_column.purpose:focus-within .purpose-reveal h4,
	.module_column.purpose:focus-within .purpose-reveal p {
		color: #fff !important;
	}

	.module_column.purpose:hover > .module-image,
	.module_column.purpose:focus-within > .module-image {
		margin-top: 0;
	}

	.module_column.purpose:hover > .module-image img,
	.module_column.purpose:focus-within > .module-image img {
		filter: grayscale(0%);
	}
}

/* Touch / tablet — reveal always visible, no hover transitions */
@media (max-width: 1100px) {
	.module_column.purpose {
		background: #F1F2F2 !important;
		transition: none;
	}

	.module_column.purpose .purpose-box {
		background: var(--purpose-brand) !important;
		justify-content: center;
		gap: 14px;
		padding: 20px;
		clip-path: polygon(
			0 0,
			50% var(--purpose-notch),
			100% 0,
			100% 100%,
			0 100%
		);
		transition: none;
	}

	.module_column.purpose .purpose-box h3 {
		color: #fff !important;
		font-size: 24px !important;
		line-height: 32px !important;
		transition: none;
	}

	.module_column.purpose .purpose-reveal {
		max-height: 200px;
		opacity: 1;
		margin-top: 4px;
		transition: none;
	}

	.module_column.purpose .purpose-reveal h4,
	.module_column.purpose .purpose-reveal p {
		color: #fff !important;
	}

	.module_column.purpose > .module-image {
		margin-top: 0;
		transition: none;
	}

	.module_column.purpose > .module-image img {
		filter: grayscale(0%);
		transition: none;
	}
}

/* Purpose — tablet landscape (769–1100px) */
@media (min-width: 769px) and (max-width: 1100px) {
	.module_column.purpose {
		--purpose-height: 340px;
	}
}

/* Purpose — small tablet (681–768px) */
@media (min-width: 681px) and (max-width: 768px) {
	.module_column.purpose .purpose-box {
		padding: 14px;
	}

	.module_column.purpose .purpose-box h3 {
		font-size: 20px !important;
		line-height: 24px !important;
	}

	.module_column.purpose .purpose-reveal h4 {
		font-size: 16px !important;
		line-height: 20px !important;
	}

	.module_column.purpose .purpose-reveal p {
		font-size: 14px;
		line-height: 20px;
	}
}

/* Theme tab — equal-height nav + content (desktop) */
@media (min-width: 769px) {
	.module.module-tab.theme-tab.vertical {
		align-items: stretch !important;
	}

	.module.module-tab.theme-tab.vertical > .tab-nav {
		display: flex !important;
		flex-direction: column;
		align-self: stretch !important;
		height: auto !important;
		min-height: 400px;
		margin: 0 !important;
		box-sizing: border-box;
	}

	.module.module-tab.theme-tab.vertical > .tab-nav > li {
		flex: 1 1 0;
		display: flex;
		flex-direction: column;
		min-height: 0;
		margin: 0 !important;
	}

	.module.module-tab.theme-tab.vertical > .tab-nav > li > a {
		flex: 1 1 auto;
		display: flex;
		align-items: center;
		width: 100%;
		box-sizing: border-box;
	}

	.module.module-tab.theme-tab.vertical > .tab-content {
		align-self: stretch !important;
		height: auto !important;
		min-height: 400px;
		box-sizing: border-box;
	}

	.module.module-tab.theme-tab.vertical > .tab-content > .module_subrow,
	.module.module-tab.theme-tab.vertical > .tab-content > .themify_builder_sub_row {
		height: 100%;
	}
}

/* Theme tab — nav item borders (collapse shared bottom/top) */
.module.module-tab.theme-tab.vertical > .tab-nav > li {
	border: 1px solid #333;
	border-bottom: none;
	box-sizing: border-box;
}

.module.module-tab.theme-tab.vertical > .tab-nav > li:last-child {
	border-bottom: 1px solid #333;
}

.module.module-tab.theme-tab > .tab-content {
	margin-top: 0 !important;
}

.module.module-tab.theme-tab.ui .tab-nav .current {
	transform: none !important;
}

/* Solution tabs — 6 tabs, 3 per row */
.module-tab.solution-tab .tab-nav {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.module-tab.solution-tab .tab-nav li a {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: transparent;
	background-image: url('http://inits33.sg-host.com/wp-content/uploads/2026/08/tab-background.png');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	border: 1px solid #646B74;
}

.module-tab.solution-tab .tab-nav li.current a,
.module-tab.solution-tab .tab-nav li.current a:hover,
.module-tab.solution-tab .tab-nav li.current a:focus {
	background-image: none;
	background-color: #b8002f;
}

/* Mobile — horizontal scroll for tab titles */
@media (max-width: 680px) {
	.module-tab.solution-tab .tab-nav {
		display: flex;
		flex-wrap: nowrap;
		gap: 12px;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.module-tab.solution-tab .tab-nav::-webkit-scrollbar {
		display: none;
	}

	.module-tab.solution-tab .tab-nav > li {
		flex: 0 0 auto;
		width: max-content;
		min-width: 140px;
		scroll-snap-align: start;
	}

	.module-tab.solution-tab .tab-nav > li > a {
		white-space: nowrap;
		width: 100%;
		box-sizing: border-box;
	}
}

/* Software industry tabs — titles scroll in one row below 680px */
@media (max-width: 680px) {
	.module.module-tab.software-ind-tab > .tab-nav-current-active {
		display: none !important;
	}

	.module.module-tab.software-ind-tab > ul.tab-nav {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: stretch;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch;
		position: relative !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		width: 100% !important;
		max-height: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		box-shadow: none !important;
		scrollbar-width: none;
	}

	.module.module-tab.software-ind-tab > ul.tab-nav::-webkit-scrollbar {
		display: none;
	}

	.module.module-tab.software-ind-tab > ul.tab-nav > li {
		flex: 0 0 auto !important;
		display: flex !important;
		float: none !important;
		width: auto !important;
		min-width: max-content;
		margin: 0 !important;
		border-right: 1px solid #979797 !important;
	}

	.module.module-tab.software-ind-tab > ul.tab-nav > li > a {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: auto !important;
		white-space: nowrap !important;
		box-sizing: border-box;
	}
}

/* Icon box — hide image on hover, reveal caption */
.module_column.icon_box,
.module_column.icon-box,
.icon_box,
.icon-box {
	position: relative;
	padding: 16px;
	transition: background-color 0.35s ease;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.module_column.icon_box .module-image,
.module_column.icon-box .module-image,
.icon_box .module-image,
.icon-box .module-image {
	width: 100%;
}

.module_column.icon_box .module-image .image-caption,
.module_column.icon-box .module-image .image-caption,
.icon_box .module-image .image-caption,
.icon-box .module-image .image-caption {
	display: none;
}

.module_column.icon_box .module-image .image-content,
.module_column.icon-box .module-image .image-content,
.icon_box .module-image .image-content,
.icon-box .module-image .image-content {
	margin: 0;
	padding-block: 0;
}

.module_column.icon_box .module-image .image-title a,
.module_column.icon_box .module-image .image-title a:hover,
.module_column.icon_box .module-image .image-title a:focus,
.module_column.icon-box .module-image .image-title a,
.module_column.icon-box .module-image .image-title a:hover,
.module_column.icon-box .module-image .image-title a:focus,
.icon_box .module-image .image-title a,
.icon_box .module-image .image-title a:hover,
.icon_box .module-image .image-title a:focus,
.icon-box .module-image .image-title a,
.icon-box .module-image .image-title a:hover,
.icon-box .module-image .image-title a:focus {
	color: inherit !important;
	text-decoration: none;
}

.module_column.icon_box:hover,
.module_column.icon-box:hover,
.icon_box:hover,
.icon-box:hover {
	background-color: #b8002f;
}

.module_column.icon_box:hover .module-image .image-wrap,
.module_column.icon-box:hover .module-image .image-wrap,
.icon_box:hover .module-image .image-wrap,
.icon-box:hover .module-image .image-wrap {
	display: none;
}

.module_column.icon_box:hover .module-image .image-title,
.module_column.icon_box:hover .module-image .image-title a,
.module_column.icon_box:hover .module-image .image-title a:hover,
.module_column.icon_box:hover .module-image .image-title a:focus,
.module_column.icon-box:hover .module-image .image-title,
.module_column.icon-box:hover .module-image .image-title a,
.module_column.icon-box:hover .module-image .image-title a:hover,
.module_column.icon-box:hover .module-image .image-title a:focus,
.icon_box:hover .module-image .image-title,
.icon_box:hover .module-image .image-title a,
.icon_box:hover .module-image .image-title a:hover,
.icon_box:hover .module-image .image-title a:focus,
.icon-box:hover .module-image .image-title,
.icon-box:hover .module-image .image-title a,
.icon-box:hover .module-image .image-title a:hover,
.icon-box:hover .module-image .image-title a:focus {
	color: #fff !important;
}

.module_column.icon_box:hover .module-image .image-caption,
.module_column.icon-box:hover .module-image .image-caption,
.icon_box:hover .module-image .image-caption,
.icon-box:hover .module-image .image-caption {
	display: block;
	color: #fff;
}

/* Used by icon-box-height.js to measure hover state */
.module_column.icon_box.icon-box-measure,
.module_column.icon-box.icon-box-measure,
.icon_box.icon-box-measure,
.icon-box.icon-box-measure {
	background-color: #b8002f;
}

.module_column.icon_box.icon-box-measure .module-image .image-wrap,
.module_column.icon-box.icon-box-measure .module-image .image-wrap,
.icon_box.icon-box-measure .module-image .image-wrap,
.icon-box.icon-box-measure .module-image .image-wrap {
	display: none;
}

.module_column.icon_box.icon-box-measure .module-image .image-caption,
.module_column.icon-box.icon-box-measure .module-image .image-caption,
.icon_box.icon-box-measure .module-image .image-caption,
.icon-box.icon-box-measure .module-image .image-caption {
	display: block;
}

/* Hide Themify hover tooltips */
.tf_tooltip_wrap,
.tf_tooltip_wrap .tf_tooltip {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Icon box CTA button */
.img-btn {
	display: inline-block;
	background: #fff;
	color: #B8002F;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.4;
	padding: 10px 20px;
	border: none;
	cursor: pointer;
	transition: color 0.25s ease, background-color 0.25s ease;
}

.img-btn:hover,
.img-btn:focus {
	color: #B8002F;
	background: #fff;
	text-decoration: none;
}

/* Advanced Posts — title */
.module-advanced-posts .module-post-title {
	min-height: 96px;
}

.module-advanced-posts h3.tbp_title {
	margin-bottom: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Advanced Posts — excerpt */
.module-advanced-posts .module-post-content {
	min-height: 98px;
}

.module-advanced-posts .module-post-content .tb_text_wrap {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* CookieYes — accept and reject use the theme color */
.cky-btn-reject,
.cky-btn-accept,
.cky-btn-reject:hover,
.cky-btn-accept:hover,
.cky-btn-reject:focus,
.cky-btn-accept:focus,
.cky-btn-reject:focus-visible,
.cky-btn-accept:focus-visible {
	background: #B8002F !important;
	background-color: #B8002F !important;
	border: 1px solid #B8002F !important;
	border-color: #B8002F !important;
}

/* Service card — red corner arrow on hover. Only .all-service-card. */
body .themify_builder .all-service-card,
body .all-service-card {
	position: relative !important;
	overflow: hidden !important;
}

body .themify_builder .all-service-card > .module_column,
body .themify_builder .all-service-card > .subrow_inner,
body .all-service-card > .module_column,
body .all-service-card > .subrow_inner {
	position: relative;
	z-index: 1;
}

body .themify_builder .all-service-card::after,
body .all-service-card::after {
	content: '' !important;
	display: block !important;
	position: absolute !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 104px !important;
	height: 102px !important;
	margin: 0 !important;
	background-color: transparent !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='161' height='158' viewBox='0 0 161 158' fill='none'%3E%3Cpath d='M0 157.813L161.5 0V157.813H0Z' fill='%23B8002F'/%3E%3Cpath d='M83.3311 113.566H139.377' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M122.416 92.9175L140.114 113.566L122.416 133.477' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right bottom !important;
	background-size: 104px 102px !important;
	opacity: 0;
	transform: translate(28px, 28px);
	transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
	z-index: 20 !important;
	pointer-events: none !important;
}

body .themify_builder .all-service-card:hover::after,
body .themify_builder .all-service-card:focus-within::after,
body .all-service-card:hover::after,
body .all-service-card:focus-within::after {
	opacity: 1 !important;
	transform: translate(0, 0) !important;
}

@media (max-width: 680px) {
	body .themify_builder .all-service-card::after,
	body .all-service-card::after {
		width: 84px !important;
		height: 82px !important;
		background-size: 84px 82px !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* Post card */
.ptb_loops_wrapper .ptb_post {
	margin-bottom: 0 !important;
}

.ptb_loops_wrapper {
	gap: 1.2em !important;
}

.post_card {
	border: 1px solid #333;
}

.post_card .ptb_module {
	margin: 0 !important;
}

.post_card .ptb_post_title {
	font-size: 21px;
	line-height: 28px;
	font-weight: 600;
	margin-top: 20px;
	padding-left: 20px;
	padding-right: 20px;
	min-height: 56px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post_card .ptb_post_title a {
	color: #333;
	text-decoration: none;
}

.post_card .ptb_post_title a:hover,
.post_card .ptb_post_title a:focus-visible {
	color: #B8002F;
}

.post_card .ptb_excerpt {
	padding-left: 20px;
	padding-right: 20px;
}

.post_card .ptb_excerpt [itemprop="articleBody"] {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 78px;
}

.post_card .ptb_thumbnail,
.post_card .ptb_post_image,
.post_card .ptb_post_image a {
	display: block;
	width: 100%;
	margin: 0;
}

.post_card .ptb_post_image img {
	display: block;
	width: 100% !important;
	height: 216px !important;
	max-width: none !important;
	object-fit: cover;
}

/* Read More — same swipe as .on-white */
.post_card .ptb_permalink .ptb_link_button {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: inline-block;
	color: #fff !important;
	border: 1px solid #B8002F !important;
	background: #B8002F !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	text-decoration: none !important;
	border-radius: 0 !important;
	margin-top: 20px !important;
	margin-left: 20px !important;
	margin-right: 20px !important;
	margin-bottom: 20px !important;
	font-family: "Montserrat", sans-serif !important;
	font-size: 16px !important;
	line-height: 24px !important;
	font-weight: 600 !important;
	transform: none !important;
	transition: color 0.35s ease 0.15s;
}

.post_card .ptb_permalink .ptb_link_button::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 150%;
	height: 100%;
	background-color: #fff;
	transform: skewX(-25deg) translateX(-105%);
	transform-origin: top left;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
	pointer-events: none;
}

body .post_card .ptb_permalink .ptb_link_button:focus,
body .post_card .ptb_permalink .ptb_link_button:active {
	color: #fff !important;
	border: 1px solid #B8002F !important;
	border-color: #B8002F !important;
	background: #B8002F !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	transform: none !important;
}

body .post_card .ptb_permalink .ptb_link_button:focus::before,
body .post_card .ptb_permalink .ptb_link_button:active::before {
	transform: skewX(-25deg) translateX(-105%);
}

.post_card .ptb_permalink .ptb_link_button:hover,
.post_card .ptb_permalink .ptb_link_button:focus-visible {
	color: #B8002F !important;
	border-color: #B8002F !important;
	background: #B8002F !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	transform: none !important;
	transition: color 0.25s ease;
}

.post_card .ptb_permalink .ptb_link_button:hover::before,
.post_card .ptb_permalink .ptb_link_button:focus-visible::before {
	transform: skewX(-25deg) translateX(0);
}

/* Post pagination */
.ptb_pagenav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	margin: 28px 0 0;
	text-align: center;
}

.ptb_pagenav .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	min-width: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #333;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
}

.ptb_pagenav .page-numbers.current {
	background: #B8002F !important;
	color: #fff !important;
}

.ptb_pagenav a.page-numbers:hover,
.ptb_pagenav a.page-numbers:focus-visible {
	color: #B8002F;
	text-decoration: none;
}

.ptb_pagenav .page-numbers.prev,
.ptb_pagenav .page-numbers.next {
	position: relative;
	border: 1px solid #333;
	color: transparent !important;
	font-size: 0 !important;
}

.ptb_pagenav .page-numbers.prev::before,
.ptb_pagenav .page-numbers.next::before,
.ptb_pagenav .page-numbers.prev::after,
.ptb_pagenav .page-numbers.next::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	margin: 0;
	border: 0;
	border-top: 2px solid #333;
	border-right: 2px solid #333;
	background: none;
	transform: translate(-65%, -50%) rotate(45deg);
}

.ptb_pagenav .page-numbers.prev::before {
	transform: translate(-35%, -50%) rotate(-135deg);
}

.ptb_pagenav .page-numbers.prev::after,
.ptb_pagenav .page-numbers.next::after {
	display: none;
}

.ptb_pagenav .page-numbers.prev:hover,
.ptb_pagenav .page-numbers.next:hover,
.ptb_pagenav .page-numbers.prev:focus-visible,
.ptb_pagenav .page-numbers.next:focus-visible {
	border-color: #B8002F;
}

.ptb_pagenav .page-numbers.prev:hover::before,
.ptb_pagenav .page-numbers.next:hover::before,
.ptb_pagenav .page-numbers.prev:focus-visible::before,
.ptb_pagenav .page-numbers.next:focus-visible::before {
	border-color: #B8002F;
}
