/**
 * Theme Five packaged overrides.
 * Base styles load from this theme5 CSS pack (theme45 stack + dark-version).
 */

body.dark-version .summernote-content * {
    color: #fff !important;
    opacity: 0.8;
}

/* Dark contact — phone / email / address: same size, weight, and color (no nested opacity) */
.theme-home-five.dark-version .contact-section.contact-page .contact-info .contact-info-content ul li,
.theme-home-five.dark-version .contact-section.contact-page .contact-info .contact-info-content ul li a,
.theme-home-five.dark-version .contact-section.contact-page .contact-info .contact-info-content ul li > span,
.theme-home-five.dark-version .contact-section.contact-page .contact-info .contact-info-content ul li .contact-info-address,
.theme-home-five.dark-version .contact-section.contact-page .contact-info .contact-info-content ul li.phone,
.theme-home-five.dark-version .contact-section.contact-page .contact-info .contact-info-content ul li.phone a,
.theme-home-five.dark-version .contact-section.contact-page .contact-info .contact-info-content ul li.phone .contact-info-values,
.theme-home-five.dark-version .contact-section.contact-page .contact-info .contact-info-content ul li.phone .contact-info-values a,
.theme-home-five.dark-version .he11-contact-section .contact-info-content ul li,
.theme-home-five.dark-version .he11-contact-section .contact-info-content ul li a,
.theme-home-five.dark-version .he11-contact-section .contact-info-content ul li > span,
.theme-home-five.dark-version .he11-contact-section .contact-info-content ul li.phone,
.theme-home-five.dark-version .he11-contact-section .contact-info-content ul li.phone a {
	color: rgba(255, 255, 255, 0.85) !important;
	opacity: 1 !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
}

/* Services listing — he11 cards keep dark text unless we force light for dark theme */
.theme-home-five.dark-version .he11-service-section .service-boxes .service-box-three .content h5,
.theme-home-five.dark-version .he11-service-section .service-boxes .service-box-three .service-link,
.theme-home-five.dark-version .service-boxes .service-box-three .content h5,
.theme-home-five.dark-version .service-boxes .service-box-three .service-link,
.theme-home-five.dark-version .service-boxes .service-box-three h5,
.theme-home-five.dark-version .service-boxes .service-box-three h5 a {
    color: #fff !important;
}

.theme-home-five.dark-version .he11-service-section .service-boxes .service-box-three:hover .content h5,
.theme-home-five.dark-version .he11-service-section .service-boxes .service-box-three:hover .service-link {
    color: #fff !important;
}

/* Homepage blog tips cards — equal heights in the two-column row */
.theme-home-five .bg-color-primary-7 .row.justify-content-center > [class*="col-"] {
    display: flex;
}

.theme-home-five .bg-color-primary-7 .latest-post-box.thumbnail-left {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.theme-home-five .bg-color-primary-7 .latest-post-box.thumbnail-left .post-thumb {
    align-self: stretch;
    min-height: 280px;
}

.theme-home-five .bg-color-primary-7 .latest-post-box.thumbnail-left .post-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 280px;
}

.theme-home-five .bg-color-primary-7 .latest-post-box.thumbnail-left .post-content .post-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.35em * 2);
}

.theme-home-five .bg-color-primary-7 .latest-post-box.thumbnail-left .post-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: calc(1.6em * 3);
    flex: 1 1 auto;
    margin-bottom: 0;
}

.theme-home-five .bg-color-primary-7 .latest-post-box.thumbnail-left .post-content .template-btn {
    margin-top: auto;
}

@media (max-width: 767px) {
    .theme-home-five .bg-color-primary-7 .latest-post-box.thumbnail-left,
    .theme-home-five .bg-color-primary-7 .latest-post-box.thumbnail-left .post-thumb,
    .theme-home-five .bg-color-primary-7 .latest-post-box.thumbnail-left .post-content {
        min-height: 0;
    }

    .theme-home-five .bg-color-primary-7 .latest-post-box.thumbnail-left .post-thumb {
        min-height: 200px;
    }
}

/* 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-five .testimonial-slider-two .testimonial-item .content {
	flex: 1 1 auto;
	min-height: 220px;
	box-sizing: border-box;
}

.theme-home-five .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-five .testimonial-area .slick-dots,
.theme-home-five .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-five .content-boxed.content-boxed--faq-only {
	padding: 80px 60px;
	justify-content: flex-start;
}

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

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


/* Contact page — phone / email / address same typography */
.theme-home-five .contact-section.contact-page .contact-info .contact-info-content ul li,
.theme-home-five .contact-section.contact-page .contact-info .contact-info-content ul li a,
.theme-home-five .contact-section.contact-page .contact-info .contact-info-content ul li > span,
.theme-home-five .contact-section.contact-page .contact-info .contact-info-content ul li .contact-info-address,
.theme-home-five .contact-section.contact-page .contact-info .contact-info-content ul li.phone,
.theme-home-five .contact-section.contact-page .contact-info .contact-info-content ul li.phone a,
.theme-home-five .he11-contact-section .contact-info-content ul li,
.theme-home-five .he11-contact-section .contact-info-content ul li a,
.theme-home-five .he11-contact-section .contact-info-content ul li > span,
.theme-home-five .he11-contact-section .contact-info-content ul li.phone,
.theme-home-five .he11-contact-section .contact-info-content ul li.phone a {
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
}

.contact-section.contact-page .contact-info .contact-info-content ul li.phone,
.contact-section.contact-page .contact-info .contact-info-content ul li.phone a,
.contact-section.contact-page .contact-info .contact-info-content ul li.phone .contact-info-values,
.contact-section.contact-page .contact-info .contact-info-content ul li.phone .contact-info-values a,
.he11-contact-section .contact-info-content ul li.phone,
.he11-contact-section .contact-info-content ul li.phone a {
	color: #616161;
}

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


/* 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;
}


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

.theme-home-five .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;
}

@media (max-width: 575px) {
	.theme-home-five .portfolio-section .portfolio-items-two .portfolio-thumb {
		max-width: 100%;
		height: auto;
		min-height: 0;
		max-height: none;
		aspect-ratio: 1 / 1;
	}
}
