/**
 * Theme Four packaged overrides.
 * Base styles load from this theme4 CSS pack (theme45 stack).
 */

/* Equal breadcrumb ">" gaps on detail pages */
.breadcrumb-section .breadcrumb-text ul li {
	margin: 0 !important;
	padding: 0;
}

.breadcrumb-section .breadcrumb-text ul li a {
	padding-right: 0 !important;
	margin-right: 0 !important;
}

.breadcrumb-section .breadcrumb-text ul li a::after {
	content: none !important;
	display: none !important;
}

.breadcrumb-section .breadcrumb-text ul li:not(:last-child)::after {
	content: ">";
	display: inline-block;
	margin: 0 12px;
	position: static;
	transform: none;
	font-weight: 600;
	color: #fff;
}

/* Contact form: side padding on mobile (inputs were flush left/right) */
@media (max-width: 991px) {
	.contact-section.contact-page .contact-form,
	.he11-contact-section .contact-form {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

/* Testimonials: equal quote boxes + dots below content */
.theme-home-four .testimonial-slider-two .testimonial-item .content {
	flex: 1 1 auto;
	min-height: 220px;
	box-sizing: border-box;
}

.theme-home-four .testimonial-slider-two .testimonial-item .author {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	margin-top: auto;
	flex-shrink: 0;
}

.theme-home-four .testimonial-area .slick-dots,
.theme-home-four .testimonial-slider-two .slick-dots {
	position: static !important;
	bottom: auto !important;
	display: flex !important;
	width: 100%;
	margin-top: 28px;
	margin-left: 0;
	padding-top: 8px;
	padding-bottom: 8px;
	justify-content: center;
	line-height: 1;
}

/* FAQ-only boxed layout (no video column) */
.theme-home-four .content-boxed.content-boxed--faq-only {
	padding: 80px 60px;
	justify-content: flex-start;
}

.theme-home-four .content-boxed.content-boxed--faq-only .content-right {
	max-width: 100%;
	flex: 1 1 100%;
	width: 100%;
}

@media (max-width: 991px) {
	.theme-home-four .content-boxed.content-boxed--faq-only {
		padding: 50px 30px;
	}
}

/* Homepage Insights cards — equal height in a row; CTA sits at bottom */
.theme-home-four .triangle-pattern-right .row > [class*="col-"] {
	display: flex;
}

.theme-home-four .triangle-pattern-right .latest-post-box.thumbnail-left {
	width: 100%;
	height: 100%;
	align-items: stretch;
}

.theme-home-four .triangle-pattern-right .latest-post-box.thumbnail-left .post-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
}

.theme-home-four .triangle-pattern-right .latest-post-box.thumbnail-left .post-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.theme-home-four .triangle-pattern-right .latest-post-box.thumbnail-left .post-content > p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	flex: 1 1 auto;
}

.theme-home-four .triangle-pattern-right .latest-post-box.thumbnail-left .post-content .template-btn {
	margin-top: auto;
	align-self: flex-start;
}


/* Contact page phone — match email/address color; keep readable size on Theme 4 */
.theme-home-four .contact-section.contact-page .contact-info .contact-info-content ul li {
	font-size: 20px !important;
	line-height: 1.5 !important;
}

.theme-home-four .contact-section.contact-page .contact-info .contact-info-content ul li.phone,
.theme-home-four .contact-section.contact-page .contact-info .contact-info-content ul li.phone a,
.theme-home-four .contact-section.contact-page .contact-info .contact-info-content ul li.phone .contact-info-values,
.theme-home-four .contact-section.contact-page .contact-info .contact-info-content ul li.phone .contact-info-values a,
.theme-home-four .he11-contact-section .contact-info-content ul li.phone,
.theme-home-four .he11-contact-section .contact-info-content ul li.phone a {
	color: #616161 !important;
	font-weight: 600 !important;
	font-size: 20px !important;
	line-height: 1.5 !important;
}

.theme-home-four .contact-section.contact-page .contact-info .contact-info-content ul li > .contact-info-values,
.theme-home-four .he11-contact-section .contact-info-content ul li > .contact-info-values {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
	gap: 2px;
	font-size: 20px !important;
	line-height: 1.5 !important;
}

.theme-home-four .contact-section.contact-page .contact-info .contact-info-content ul li > .contact-info-values > a {
	flex: 0 0 auto !important;
	font-size: 20px !important;
	line-height: 1.5 !important;
	color: #616161 !important;
}

.theme-home-four .contact-section.contact-page .contact-info .contact-info-content ul li.phone i,
.theme-home-four .he11-contact-section .contact-info-content ul li.phone i {
	font-size: 18px !important;
	color: var(--main-color) !important;
}

/* Homepage Featured Projects — perfect cover in thumb containers */
.theme-home-four .portfolio-section .portfolio-items-two .portfolio-thumb {
	position: relative;
	width: 100%;
	height: 220px;
	min-height: 220px;
	max-height: 220px;
	aspect-ratio: auto;
	overflow: hidden;
	background-color: #e8edf2;
}

.theme-home-four .portfolio-section .portfolio-items-two .portfolio-thumb img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center center !important;
	display: block;
}


/* Contact page illustration — square cover for any upload size */
.contact-section.contact-page .contact-info .illustration-img,
.he11-contact-section .contact-info .illustration-img {
	width: 100%;
	max-width: 480px;
	aspect-ratio: 1 / 1;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
	border-radius: 0;
}

.contact-section.contact-page .contact-info .illustration-img img,
.he11-contact-section .contact-info .illustration-img img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center center !important;
}


/* Contact icons — align with first text line (same horizontal row) */
.contact-section.contact-page .contact-info .contact-info-content ul li,
.he11-contact-section .contact-info-content ul li {
	display: flex !important;
	align-items: flex-start !important;
	line-height: 1.5 !important;
}

.contact-section.contact-page .contact-info .contact-info-content ul li > i,
.he11-contact-section .contact-info-content ul li > i {
	width: 22px !important;
	height: 1.5em !important;
	line-height: 1.5em !important;
	font-size: 18px !important;
	margin-top: 0 !important;
	margin-right: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	color: var(--main-color) !important;
}

.contact-section.contact-page .contact-info .contact-info-content ul li > span,
.contact-section.contact-page .contact-info .contact-info-content ul li > a,
.contact-section.contact-page .contact-info .contact-info-content ul li > .contact-info-values,
.he11-contact-section .contact-info-content ul li > span,
.he11-contact-section .contact-info-content ul li > a {
	line-height: 1.5 !important;
	padding-top: 0 !important;
	margin-top: 0 !important;
}
