/**
 * About Page Logos — single grid, clipped to 1 full row + half of the second
 */

.about-page-logos {
	position: relative;
	background-color: #fff;
	padding-top: 0 !important;
}

.about-page-logos__layout {
	--about-logos-row-gap: 36px;
	max-width: 1100px;
	margin: 0 auto;
	padding-left: 1rem;
	padding-right: 1rem;
	box-sizing: border-box;
}

.about-page-logos__header {
	display: flex;
	justify-content: center;
	padding: 1.25rem 0 0;
}

.about-page-logos__header[hidden] {
	display: none !important;
}

.about-page-logos__placeholder {
	margin: 0;
	text-align: center;
	color: #6b7280;
	font-size: 0.9375rem;
}

/* Clip: one full row + half of the next, with fade */
.about-page-logos__clip {
	position: relative;
	overflow: hidden;
	max-height: var(--about-logos-clip-height, 10rem);
	transition: max-height 0.45s ease;
}

.about-page-logos.is-open .about-page-logos__clip {
	max-height: none;
	overflow: visible;
}

.about-page-logos__clip-fade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	height: 100%;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.65) 45%,
		#fff 100%
	);
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.about-page-logos__clip-fade[hidden] {
	display: none !important;
}

.about-page-logos.is-open .about-page-logos__clip-fade {
	opacity: 0;
}

/* Outline pill toggle — !important beats Elementor global button styles */
.about-page-logos-block .about-page-logos__toggle,
.about-page-logos-block button.about-page-logos__toggle,
.about-page-logos-block .elementor-widget .about-page-logos__toggle,
.about-page-logos-block .about-page-logos__toggle.elementor-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	padding: 0.75rem 1.75rem !important;
	border-radius: 9999px !important;
	border: 2px solid rgba(9, 10, 11, 0.18) !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #090a0b !important;
	font-family: inherit !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.about-page-logos-block .about-page-logos__toggle:hover,
.about-page-logos-block .about-page-logos__toggle:focus,
.about-page-logos-block button.about-page-logos__toggle:hover,
.about-page-logos-block button.about-page-logos__toggle:focus,
.about-page-logos-block .elementor-widget .about-page-logos__toggle:hover,
.about-page-logos-block .about-page-logos__toggle.elementor-button:hover,
.about-page-logos-block .about-page-logos__toggle.elementor-button:focus {
	border-color: rgba(213, 0, 195, 0.45) !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #090a0b !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.about-page-logos-block .about-page-logos__toggle:focus-visible {
	outline: 2px solid #5511bc;
	outline-offset: 3px;
}

.about-page-logos__chevron {
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	margin-top: -0.15rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s ease, margin-top 0.25s ease;
}

.about-page-logos.is-open .about-page-logos__chevron {
	margin-top: 0.15rem;
	transform: rotate(-135deg);
}

.about-page-logos__grid {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	column-gap: 16px;
	row-gap: var(--about-logos-row-gap);
	justify-items: center;
	align-items: start;
}

.about-page-logos__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
}

.about-page-logos__img {
	display: block;
	height: 48px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

.about-page-logos__item:hover .about-page-logos__img,
.about-page-logos__item:focus-within .about-page-logos__img {
	opacity: 1;
}

@media (max-width: 1023px) {
	.about-page-logos__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.about-page-logos__layout {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	.about-page-logos__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.about-page-logos__layout {
		--about-logos-row-gap: 28px;
	}

	.about-page-logos__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
