/**
 * PGL tenant overrides — scoped fixes that must not alter global Bexon theme.
 */

/* Homepage project filter row — uniform button boxes (RTL-safe) */
.h10-project .h10-project-filter {
	width: 100%;
}

.h10-project .h10-project-button-group {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	max-width: 1140px;
	margin-inline: auto;
	align-items: stretch;
}

.h10-project .h10-project-button-group .active-bg {
	display: none;
}

.h10-project .h10-project-button-group button {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 56px;
	height: 56px;
	padding: 8px 12px;
	line-height: 1.25;
	font-size: 14px;
	font-weight: var(--tj-fw-medium, 500);
	white-space: normal;
	text-transform: none;
	text-align: center;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	-webkit-box-pack: center;
}

.h10-project .h10-project-button-group button.active {
	min-height: 56px;
	height: 56px;
	padding: 8px 12px;
}

@media only screen and (max-width: 991px) {
	.h10-project .h10-project-button-group {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 575px) {
	.h10-project .h10-project-button-group {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.h10-project .h10-project-button-group button,
	.h10-project .h10-project-button-group button.active {
		min-height: 48px;
		height: 48px;
		font-size: 13px;
		padding: 8px 10px;
	}
}

/* Footer — logo above email in col-1; copyright bar left/right split */
.h10-footer .footer-col-1 .pgl-footer-logo {
	margin-bottom: 20px;
}

.h10-footer .copyright-content-area {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	direction: ltr;
	padding-inline-end: 72px; /* clear fixed back-to-top on physical right */
}

.h10-footer .copyright-powered,
.h10-footer .copyright-text {
	margin: 0;
}

.h10-footer .copyright-powered p,
.h10-footer .copyright-text p {
	margin: 0;
}

.h10-footer .copyright-powered {
	text-align: left;
}

.h10-footer .copyright-text {
	text-align: right;
}

.h10-footer .copyright-powered a {
	color: inherit;
	text-decoration: none;
}

.h10-footer .copyright-powered a:hover {
	text-decoration: underline;
}

/* Back-to-top: inset-inline-end flips to the left in RTL and covers the DigitalST credit */
#tj-back-to-top,
#tj-back-to-top.active {
	inset-inline-end: auto;
	inset-inline-start: auto;
	left: auto;
	right: 40px;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
	#tj-back-to-top,
	#tj-back-to-top.active {
		right: 30px;
	}
}

@media only screen and (min-width: 768px) and (max-width: 991px),
	only screen and (min-width: 576px) and (max-width: 767px),
	(max-width: 575px) {
	#tj-back-to-top,
	#tj-back-to-top.active {
		right: 20px;
	}
}

/* Header — colored logo + sticky duplicate bar */
.pgl-brand-logo,
.pgl-brand-logo.pgl-logo-color {
	background: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
}

.h10-header.header-duplicate.header-sticky {
	position: fixed;
	top: 0;
	inset-inline-start: 15px;
	inset-inline-end: 15px;
	width: auto;
	left: 15px;
	right: 15px;
	margin-inline: 0;
	z-index: 1002;
	-webkit-transform: translateY(-100%);
	transform: translateY(-100%);
	visibility: hidden;
	transition: transform 0.3s ease, visibility 0.3s ease;
}

.h10-header.header-duplicate.header-sticky.sticky {
	-webkit-transform: translateY(0);
	transform: translateY(0);
	visibility: visible;
}

.h10-header.header-duplicate.header-sticky .header-bottom {
	border-bottom: 0;
}

.h10-header.header-duplicate .header-wrapper {
	align-items: center;
	min-height: 72px;
}

.h10-header.header-duplicate .site_logo {
	flex: 0 0 auto;
	display: block;
	width: auto;
	min-width: 160px;
	z-index: 2;
}

.h10-header.header-duplicate .site_logo .logo {
	display: block;
	width: auto;
	max-width: 220px;
	line-height: 0;
}

.h10-header.header-duplicate .site_logo .pgl-brand-logo,
.h10-header.header-duplicate .site_logo .pgl-logo-color {
	display: block;
	width: 220px !important;
	max-width: 220px;
	max-height: 56px;
	height: auto;
	object-fit: contain;
}

.h10-header.header-absolute .site_logo .pgl-logo-color {
	width: 260px !important;
	max-width: 260px;
	max-height: 66px;
}

html[dir="rtl"] .h10-header.header-duplicate.header-sticky,
html[dir="ltr"] .h10-header.header-duplicate.header-sticky {
	left: 15px;
	right: 15px;
}

@media only screen and (max-width: 575px) {
	.h10-header.header-duplicate.header-sticky,
	.h10-header.header-duplicate.header-sticky.section-gap-x {
		left: 0;
		right: 0;
		inset-inline-start: 0;
		inset-inline-end: 0;
		width: 100%;
	}
}

/* ScrollSmoother breaks Bexon SplitText + ScrollTrigger text-anim (titles stay at autoAlpha:0) */
.text-anim,
.title-anim,
.sec-title.text-anim,
.banner-title.text-anim,
.h10-footer-title.text-anim,
.h10-service .sec-title,
.h10-project .sec-title,
.h10-testimonial .sec-title,
.h10-blog .sec-title {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

.text-anim *,
.title-anim *,
.text-anim .split-line,
.text-anim .split-char,
.text-anim .split-word,
.split-line,
.split-char,
.split-word {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

/* Team/testimonial section — dark bg; ensure revealed titles stay light */
.h10-testimonial .sec-heading.style-3 .sec-title {
	color: var(--tj-color-common-white, #fff);
}

/* Team page — never hide member cards behind WOW/GSAP */
.pgl-team-page .wow,
.pgl-team-page .team-item,
.pgl-team-page .sec-heading .sub-title,
.pgl-team-page .sec-heading .sec-title,
.pgl-team-page .sec-heading .desc {
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
}
.pgl-team-page .team-img-inner {
	aspect-ratio: 4 / 5;
	background: #e8ebe9;
}
.pgl-team-page .team-img-inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}
.pgl-team-page .pgl-team-grid {
	margin-top: 2rem;
}

/* No sticky green hover wash that hides faces / looks broken */
.pgl-team-page .team-item:hover .team-img::before,
.pgl-team-page .team-item:hover .team-img::after,
.pgl-team-page .team-item.active .team-img::before,
.pgl-team-page .team-item.active .team-img::after {
	opacity: 0 !important;
}
.pgl-team-page .team-item:hover .social-links,
.pgl-team-page .team-item.active .social-links {
	opacity: 0 !important;
	visibility: hidden !important;
}
.pgl-team-page .team-content {
	text-align: center;
}
.pgl-team-page .team-content .title {
	width: 100%;
	margin: 0;
}
.pgl-team-page .team-content .designation {
	display: block !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	max-width: 100% !important;
	font-size: 13px !important;
	line-height: 1.35 !important;
}

/* Section titles — keep phrases on one line (no GSAP/span forced wraps) */
.sec-heading .sec-title,
.tj-contact-area .sec-heading .sec-title,
.pgl-team-page .sec-heading .sec-title {
	white-space: nowrap;
}
.sec-heading .sec-title span {
	display: inline !important;
}
@media only screen and (max-width: 575px) {
	.sec-heading .sec-title,
	.tj-contact-area .sec-heading .sec-title,
	.pgl-team-page .sec-heading .sec-title {
		white-space: normal;
	}
	.pgl-team-page .team-content .designation {
		white-space: normal;
	}
}
