/**
 * 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 — color logo on white plate (mint/sage washes out logo-light) */
.h10-footer .footer-col-1 .pgl-footer-logo,
.footer-4 .pgl-footer-logo,
.footer-4 .award-logo-area .pgl-footer-logo {
	margin-bottom: 20px;
}
.footer-4 .pgl-footer-logo,
.footer-4 .award-logo.pgl-footer-logo,
.h10-footer .pgl-footer-logo {
	display: inline-block !important;
	background: #fff !important;
	border-radius: 10px;
	padding: 10px 14px;
	line-height: 0;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.footer-4 .pgl-footer-logo .pgl-brand-logo,
.footer-4 .pgl-footer-logo img,
.h10-footer .pgl-footer-logo .pgl-brand-logo,
.h10-footer .pgl-footer-logo img {
	max-width: 200px;
	width: 200px;
	max-height: 52px;
	height: auto;
	object-fit: contain;
	background: none !important;
	filter: none !important;
}

/* Copyright bar — match PGL DigitalST logo credit */
.h10-footer .copyright-content-area,
.footer-4 .tj-copyright-area-4 .copyright-content-area {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	direction: ltr;
}
.h10-footer .copyright-powered,
.h10-footer .copyright-text,
.footer-4 .copyright-powered,
.footer-4 .copyright-text {
	margin: 0;
}
.h10-footer .copyright-powered p,
.h10-footer .copyright-text p,
.footer-4 .copyright-powered p,
.footer-4 .copyright-text p {
	margin: 0;
}
.h10-footer .copyright-powered,
.footer-4 .copyright-powered {
	text-align: left;
}
.h10-footer .copyright-text,
.footer-4 .copyright-text {
	text-align: right;
}
.pgl-digitalst-credit {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
	opacity: .92;
	transition: opacity .2s ease;
}
.pgl-digitalst-credit:hover {
	opacity: 1;
}
.pgl-digitalst-credit img {
	display: block;
	width: 110px;
	height: auto;
	max-height: 34px;
	object-fit: contain;
}

/* Header — original-color logo, no white plate/background */
.pgl-brand-logo,
.pgl-brand-logo.pgl-logo-color,
.pgl-brand-logo.pgl-logo-on-dark,
.h10-header .site_logo,
.h10-header .site_logo .logo,
.h10-header .site_logo .pgl-brand-logo {
	background: none !important;
	background-color: transparent !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;
}

/* WOW leaves homepage blocks visibility:hidden forever under RTL + ScrollSmoother */
.tj-project-section-4 .wow,
.tj-project-section-4 .project-wrapper,
.tj-project-section-4 .swiper-slide,
.tj-blog-section-4 .wow,
.tj-contact-section .wow,
.h8-testimonial-wrapper.wow,
.section-gap .wow.fadeInUp,
.section-gap .wow.fadeInLeft,
.section-gap .wow.fadeInRight {
	opacity: 1 !important;
	visibility: visible !important;
	animation: none !important;
	transform: none !important;
}

.tj-project-section-4 .project-wrapper {
	min-height: 420px;
}

.tj-project-section-4 .project-item.h4-project-item {
	opacity: 1 !important;
	visibility: visible !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);
}

/* Project section heading: theme uses flex+space-between for title|filters.
   Portfolio only has badge+h2, so space-between flings the title to the far side
   (left under RTL). Stack instead. */
.tj-project-section .sec-heading.text-center {
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.65rem;
}
html[dir="rtl"] .tj-project-section .sec-heading:not(.text-center) {
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-start;
	gap: 0.65rem;
}

/* Weisberg brand primary (#9eccb9) — readable CTAs on light mint */
:root {
	--tj-color-theme-primary: #9eccb9;
	/* Slightly deeper mint so white cards / logos don't wash out */
	--tj-color-theme-bg: #d5e8e0;
	--tj-color-theme-bg-2: #c5ddd3;
	--tj-color-border-5: rgba(158, 204, 185, 0.15);
}

.tj-primary-btn .btn-text,
.tj-primary-btn .btn-text span {
	color: #0c1e21 !important;
}

.tj-primary-btn:hover {
	background-color: #79a093;
}

.tj-primary-btn:hover .btn-text span {
	color: #0c1e21 !important;
}

.tj-primary-btn .btn-icon {
	background-color: #0c1e21;
}

.tj-primary-btn .btn-icon i {
	color: #9eccb9;
}

.tj-primary-btn:hover .btn-icon i {
	color: #9eccb9;
}

.pgl-lang-link.active,
.header-duplicate .pgl-lang-link.active {
	background: #9eccb9 !important;
	border-color: #9eccb9 !important;
	color: #0c1e21 !important;
}

/* White sticky/solid headers: inactive EN was white-on-white */
.header-area.header-1:not(.header-absolute) .pgl-lang-link,
.header-area.header-duplicate .pgl-lang-link,
.header-area.header-sticky.sticky .pgl-lang-link,
.header-area.header-1.header-duplicate .pgl-lang-link {
	color: #1a2744 !important;
	border-color: #c5ccd8 !important;
	background: transparent;
}
.header-area.header-1:not(.header-absolute) .pgl-lang-link.active,
.header-area.header-duplicate .pgl-lang-link.active,
.header-area.header-sticky.sticky .pgl-lang-link.active,
.header-area.header-1.header-duplicate .pgl-lang-link.active {
	background: #9eccb9 !important;
	border-color: #9eccb9 !important;
	color: #0c1e21 !important;
}

/* Homepage highlights — stack as normal Bootstrap cards (avoid h4-blog CSS grid clash) */
.weisberg-blog-row {
	margin-inline: 0;
}

.weisberg-blog-row > [class*="col-"] {
	display: flex;
}

.weisberg-blog-row .blog-item.style-2 {
	display: flex !important;
	-webkit-box-orient: vertical !important;
	-webkit-box-direction: normal !important;
	-ms-flex-direction: column !important;
	flex-direction: column !important;
	-ms-flex-wrap: nowrap !important;
	flex-wrap: nowrap !important;
	width: 100% !important;
	padding: 0 !important;
	overflow: hidden;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(12, 30, 33, 0.06);
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

.weisberg-blog-row .blog-item.style-2 .blog-thumb {
	width: 100% !important;
	min-height: 200px !important;
	max-height: 220px !important;
	height: 200px !important;
	border-radius: 14px 14px 0 0;
	overflow: hidden;
}

.weisberg-blog-row .blog-item.style-2 .blog-thumb a,
.weisberg-blog-row .blog-item.style-2 .blog-thumb img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.weisberg-blog-row .blog-item.style-2 .blog-content {
	width: 100% !important;
	padding: 22px 22px 20px !important;
	text-align: start;
}

/* RTL-safe titles: kill SplitText letter-spacing that breaks Hebrew / years */
html[dir="rtl"] .text-anim,
html[dir="rtl"] .title-anim,
html[dir="rtl"] .banner-title,
html[dir="rtl"] .sec-title {
	word-break: normal;
	overflow-wrap: anywhere;
}

html[dir="rtl"] .text-anim .split-char,
html[dir="rtl"] .title-anim .split-char,
html[dir="rtl"] .split-char {
	display: inline !important;
	unicode-bidi: plaintext;
}

/*
 * index-4 hero fidelity (match Bexon Template/index-4.html):
 * - diagonal pattern on the LEFT
 * - teal orb glow on the RIGHT
 * - inset photo with top radius (section padding), not full-bleed
 * RTL text stays RTL; decorative layout stays as in the LTR demo.
 */
.h4-banner-section {
	overflow: hidden;
	max-width: 100%;
}

.h4-banner-area,
.h4-banner-content {
	overflow: visible;
	max-width: 100%;
}

.h4-banner-content .banner-title {
	max-width: 100%;
}

/* Pin orb to physical right like the LTR template */
.h4-banner-content::before {
	inset-inline-end: auto !important;
	inset-inline-start: auto !important;
	right: -8% !important;
	left: auto !important;
	bottom: -20%;
}

@media only screen and (min-width: 576px) and (max-width: 767px),
	(max-width: 575px) {
	.h4-banner-content::before {
		right: -2% !important;
		bottom: -15px;
	}
}

/* Pin pattern shapes to physical corners like the LTR template */
.h4-banner-section .bg-shape-1 {
	inset-inline-start: auto !important;
	inset-inline-end: auto !important;
	left: 0 !important;
	right: auto !important;
	top: 0;
}

.h4-banner-section .bg-shape-2 {
	inset-inline-start: auto !important;
	inset-inline-end: auto !important;
	left: auto !important;
	right: 0 !important;
	bottom: 0;
	top: auto;
}

.h4-banner-section .bg-shape-1 img,
.h4-banner-section .bg-shape-2 img {
	transform: none !important;
}

/* Keep the stock inset photo + top radius from main.css */
.h4-banner-section .banner-img-area {
	margin-inline: 0;
}

.h4-banner-section .banner-img-area .banner-img {
	overflow: hidden;
	border-radius: 0;
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
}

.h4-banner-section .banner-img-area .banner-img img {
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

/* Vignette from physical left like the LTR template */
.h4-banner-section .banner-img-area .banner-img::before {
	inset-inline-start: auto !important;
	left: 0 !important;
	right: auto !important;
	background: linear-gradient(
		90deg,
		rgb(12, 30, 33) 0%,
		rgba(12, 30, 33, 0.4) 50%,
		rgba(12, 30, 33, 0) 100%
	) !important;
}

/* Rating box: keep on physical left like the demo */
.h4-banner-section .banner-img-area .h4-rating-box {
	inset-inline-start: auto !important;
	left: 30px !important;
	right: auto !important;
}

@media only screen and (min-width: 576px) and (max-width: 767px),
	(max-width: 575px) {
	.h4-banner-section .banner-img-area .h4-rating-box {
		left: 15px !important;
	}
}

/* index-4 header-1 chrome (home + inner) */
.header-area.header-1 .site_logo .pgl-brand-logo {
	display: block;
	width: 200px !important;
	max-width: 200px;
	max-height: 52px;
	height: auto;
	object-fit: contain;
	background: transparent !important;
}

.header-area.header-1.header-duplicate .site_logo .pgl-brand-logo {
	width: 180px !important;
	max-width: 180px;
	max-height: 46px;
}

.header-area.header-1 .header-wrapper {
	align-items: center;
}

.header-area.header-1 .pgl-lang-switch {
	display: inline-flex;
	gap: 6px;
	margin-inline-start: 12px;
}

html[dir="rtl"] .header-area.header-1 .header-wrapper {
	direction: rtl;
}

/* Inner pages: solid header-1 (no pill nav from h10) */
.header-area.header-1:not(.header-absolute):not(.header-duplicate) {
	background-color: var(--tj-color-common-white, #fff);
	position: relative;
	z-index: 99;
}

.header-area.header-1 .mainmenu > ul {
	background: transparent !important;
	border-radius: 0 !important;
	padding: 0 !important;
}

/* About + client strip: real photos, readable contrast on mint bg */
.tj-about-section-2 .sec-title.title-highlight img {
	height: 48px;
	width: auto;
	max-width: 140px;
	object-fit: cover;
	border-radius: 6px;
	vertical-align: middle;
	box-shadow: 0 2px 8px rgba(12, 30, 33, 0.18);
}

.tj-about-section-2 .about-btn-area-2 .tj-primary-btn.transparent-btn {
	background-color: var(--tj-color-common-white);
	border: 1px solid rgba(12, 30, 33, 0.18);
	color: var(--tj-color-theme-dark, #0c1e21);
}

.tj-about-section-2 .about-btn-area-2 .tj-primary-btn.transparent-btn .btn-text {
	color: var(--tj-color-theme-dark, #0c1e21);
}

.client-slider-3 .client-logo.pgl-client-logo {
	flex-direction: column;
	gap: 8px;
	padding: 10px 12px;
	background-color: #0c1e21;
	border: 1px solid rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.client-slider-3 .client-logo.pgl-client-logo img {
	display: block;
	width: 100%;
	height: 64px;
	object-fit: cover;
	border-radius: 4px;
	opacity: 0.95;
}

.client-slider-3 .client-logo.pgl-client-logo .pgl-client-text {
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
