/**
 * Stylesheet: A Trust Badges & Value Pillars Bar
 * UX Builder Category: A Elements
 * @package Flatsome Child
 */

:root {
	--a-tb-max-w: 1250px;
	--a-tb-bg: transparent;
	--a-tb-border: rgba(255, 255, 255, 0.08);
	--a-tb-radius: 12px;
	--a-tb-icon-color: #4e82f7;
	--a-tb-icon-size: 44px;
	--a-tb-highlight-color: #4e82f7;
	--a-tb-text-color: #ffffff;
	--a-tb-divider: rgba(255, 255, 255, 0.08);
}

/* Master Wrapper */
.a-trust-badges {
	position: relative;
	width: 100%;
	max-width: var(--a-tb-max-w, 1250px);
	margin: 0 auto;
	box-sizing: border-box;
}

/* Container Box */
.a-trust-badges-inner {
	position: relative;
	width: 100%;
	background: var(--a-tb-bg, transparent);
	border: 1px solid var(--a-tb-border, rgba(255, 255, 255, 0.08));
	border-radius: var(--a-tb-radius, 12px);
	box-sizing: border-box;
	overflow: hidden;
}

/* Grid Layout */
.a-trust-badges-grid {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	box-sizing: border-box;
}

/* Individual Badge Item */
.a-tb-item {
	flex: 1;
	min-width: 0;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 26px 14px;
	box-sizing: border-box;
	text-align: center;
	transition: background-color 0.3s ease;
}

.a-tb-item:hover {
	background-color: rgba(255, 255, 255, 0.02);
}

/* Vertical Divider Between Items */
.a-tb-item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 15%;
	bottom: 15%;
	width: 1px;
	background: var(--a-tb-divider, rgba(255, 255, 255, 0.08));
	pointer-events: none;
}

/* Item Link wrapper */
.a-tb-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	text-decoration: none !important;
	color: inherit;
	cursor: pointer;
}

.a-tb-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

/* Icon Box */
.a-tb-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--a-tb-icon-size, 44px);
	height: var(--a-tb-icon-size, 44px);
	margin-bottom: 15px;
	color: var(--a-tb-icon-color, #4e82f7);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.a-tb-icon-svg {
	width: 100%;
	height: 100%;
	display: block;
	filter: drop-shadow(0 0 10px rgba(78, 130, 247, 0.45));
	transition: transform 0.3s ease, filter 0.3s ease;
}

.a-tb-item:hover .a-tb-icon-wrap {
	transform: translateY(-3px) scale(1.08);
}

.a-tb-item:hover .a-tb-icon-svg {
	filter: drop-shadow(0 0 16px rgba(78, 130, 247, 0.8));
}

.a-tb-custom-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* Title Lines */
.a-tb-title-top {
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	color: var(--a-tb-highlight-color, #4e82f7);
	line-height: 1.25;
	margin-bottom: 4px;
	text-align: center;
	letter-spacing: 0.3px;
	transition: color 0.3s ease;
}

.a-tb-title-bottom {
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--a-tb-text-color, #ffffff);
	line-height: 1.25;
	text-align: center;
	letter-spacing: 0.2px;
	transition: color 0.3s ease;
}

.a-tb-item:hover .a-tb-title-bottom {
	color: #ffffff;
}

/* Responsive - Tablet (max-width: 991px) */
@media (max-width: 991px) {
	.a-trust-badges-grid {
		flex-wrap: wrap;
	}

	.a-tb-item {
		flex: 0 0 33.333%;
		max-width: 33.333%;
		padding: 22px 10px;
	}

	.a-tb-item:not(:last-child)::after {
		display: none;
	}

	/* Tablet 3x2 Grid Dividers */
	.a-tb-item:nth-child(1),
	.a-tb-item:nth-child(2),
	.a-tb-item:nth-child(4),
	.a-tb-item:nth-child(5) {
		border-right: 1px solid var(--a-tb-divider, rgba(255, 255, 255, 0.08));
	}

	.a-tb-item:nth-child(1),
	.a-tb-item:nth-child(2),
	.a-tb-item:nth-child(3) {
		border-bottom: 1px solid var(--a-tb-divider, rgba(255, 255, 255, 0.08));
	}
}

/* Responsive - Mobile (max-width: 600px) */
@media (max-width: 600px) {
	.a-tb-item {
		flex: 0 0 50% !important;
		max-width: 50% !important;
		padding: 20px 8px;
		border-right: none !important;
		border-bottom: none !important;
	}

	/* Mobile 2x3 Grid Dividers */
	.a-tb-item:nth-child(odd) {
		border-right: 1px solid var(--a-tb-divider, rgba(255, 255, 255, 0.08)) !important;
	}

	.a-tb-item:nth-child(1),
	.a-tb-item:nth-child(2),
	.a-tb-item:nth-child(3),
	.a-tb-item:nth-child(4) {
		border-bottom: 1px solid var(--a-tb-divider, rgba(255, 255, 255, 0.08)) !important;
	}

	.a-tb-icon-wrap {
		width: calc(var(--a-tb-icon-size, 44px) * 0.9);
		height: calc(var(--a-tb-icon-size, 44px) * 0.9);
		margin-bottom: 12px;
	}

	.a-tb-title-top {
		font-size: 15px;
	}

	.a-tb-title-bottom {
		font-size: 13px;
	}
}
