/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

.sitewide-legal-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

.sitewide-legal-row p {
	margin: 0;
}

.sitewide-terms-link {
	color: inherit !important;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sitewide-terms-link:hover,
.sitewide-terms-link:focus-visible {
	color: var(--global-palette-highlight, #b62025);
}

/* Contact page: replace the Third Pole title with a proportionate, aligned logo. */
.elementor-element-5f8fe11 .third-pole-logo-link {
	display: block;
	width: min(100%, 360px);
	line-height: 0;
}

.elementor-element-5f8fe11 .third-pole-contact-logo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 240px;
	object-fit: contain;
	object-position: left center;
}

@media (max-width: 480px) {
	.sitewide-legal-row {
		gap: 8px 14px;
	}
}

/* Homepage: show four evenly aligned partner logos in a looping row. */
.elementor-element-0ef5b56 .qodef-qi-clients-list {
	max-width: 100%;
	overflow: hidden;
}

.elementor-element-0ef5b56 > .e-con-inner {
	gap: 10px !important;
	padding-top: 30px !important;
	padding-bottom: 20px !important;
}

.elementor-element-0ef5b56 .elementor-element-79167ef {
	width: 100% !important;
	max-width: 100% !important;
}

.elementor-element-0ef5b56 .elementor-element-79167ef .qodef-m-text {
	margin-top: 8px;
}

/* This Elementor container is empty and otherwise adds unwanted space. */
.elementor-element-0ef5b56 > .e-con-inner > .elementor-element-c45c328 {
	display: none !important;
}

.elementor-element-0ef5b56 .qodef-grid-inner {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 20px;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 8px 0 16px;
	box-sizing: border-box;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.elementor-element-0ef5b56 .qodef-grid-inner::-webkit-scrollbar {
	display: none;
}

.elementor-element-0ef5b56 .qodef-grid-inner > .qodef-grid-item {
	flex: 0 0 calc((100% - 60px) / 4);
	width: calc((100% - 60px) / 4);
	box-sizing: border-box;
	max-width: none;
}

.elementor-element-0ef5b56 .qodef-e-inner > a,
.elementor-element-0ef5b56 .qodef-e-images-holder,
.elementor-element-0ef5b56 .qodef-e-main-image,
.elementor-element-0ef5b56 .qodef-e-hover-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.elementor-element-0ef5b56 .qodef-e-images-holder {
	min-height: 150px;
}

.elementor-element-0ef5b56 .qodef-e-main-image img,
.elementor-element-0ef5b56 .qodef-e-hover-image img {
	width: 100% !important;
	height: 150px !important;
	object-fit: contain;
}

/* Match the homepage partners carousel on the dedicated Partners page. */
.lahaul-partners-carousel {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.lahaul-partners-track {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
	padding: 8px 0 16px;
	overflow-x: auto;
	overflow-y: hidden;
	-ms-overflow-style: none;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.lahaul-partners-track::-webkit-scrollbar {
	display: none;
}

.lahaul-partner-item {
	display: flex;
	flex: 0 0 calc((100% - 60px) / 4);
	align-items: center;
	justify-content: center;
	width: calc((100% - 60px) / 4);
	min-height: 180px;
	box-sizing: border-box;
}

.lahaul-partner-item a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 170px;
}

.lahaul-partner-item img {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: contain;
}

/* Remove the empty text widget above the second footer menu so both menus align. */
.site-footer .site-footer-middle-section-2 #block-9 {
	display: none !important;
}

/* Give mobile partner logos enough width to remain readable. */
@media (max-width: 767px) {
	.elementor-element-0ef5b56 > .e-con-inner {
		padding-bottom: 8px !important;
	}

	.elementor-element-0ef5b56 .elementor-element-2b14d8b > .e-con-inner {
		padding-bottom: 0 !important;
	}

	.elementor-element-0ef5b56 .qodef-grid-inner {
		gap: 12px;
		padding-bottom: 4px;
	}

	.elementor-element-0ef5b56 .qodef-grid-inner > .qodef-grid-item {
		flex: 0 0 calc((100% - 12px) / 2) !important;
		width: calc((100% - 12px) / 2) !important;
	}

	.elementor-element-0ef5b56 .qodef-e-inner {
		width: 100%;
		padding: 8px !important;
		box-sizing: border-box;
	}

	.elementor-element-0ef5b56 .qodef-e-images-holder,
	.elementor-element-0ef5b56 .qodef-e-main-image,
	.elementor-element-0ef5b56 .qodef-e-hover-image {
		width: 100% !important;
	}

	.elementor-element-0ef5b56 .qodef-e-images-holder {
		min-height: 130px;
	}

	.elementor-element-0ef5b56 .qodef-e-main-image img,
	.elementor-element-0ef5b56 .qodef-e-hover-image img {
		height: 125px !important;
	}

	.lahaul-partners-track {
		gap: 12px;
	}

	.lahaul-partner-item {
		flex-basis: calc((100% - 12px) / 2);
		width: calc((100% - 12px) / 2);
		min-height: 150px;
	}

	.lahaul-partner-item a {
		height: 140px;
	}

	.lahaul-partner-item img {
		height: 130px;
	}
}
