/**
 * Projects Listing panel styles.
 */

.panel-projects-listing {
	padding: 48px 0 80px;
	background: #fff;
}

.panel-projects-listing__filter {
	display: flex;
	align-items: center;
	gap: 16px 24px;
	margin-bottom: 40px;
}

.panel-projects-listing__filter-label {
	flex: 0 0 auto;
	margin: 0;
	color: var(--ppi-blue, #089ef7);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.panel-projects-listing__filter-select-wrap {
	position: relative;
	flex: 1 1 auto;
	max-width: 520px;
}

.panel-projects-listing__tag-heading { 
	color: var(--ppi-navy, #1a1a4a);
    font-size: clamp(36px, 4vw, 49px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.735px;
}

.panel-projects-listing__tag-heading::first-letter {
  text-transform: uppercase;
}

.panel-projects-listing__filter-select {
	width: 100%;
	min-height: 43px;
	padding: 10px 44px 10px 20px;
	border: 1px solid #d1d5dc;
	border-radius: 20px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='21' viewBox='0 0 12 21' fill='none'%3E%3Cpath d='M1 1L10 10.5L1 20' stroke='%231a1a4a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' transform='rotate(90 6 10.5)'/%3E%3C/svg%3E") no-repeat right 18px center / 12px 21px;
	color: rgba(99, 102, 111, 0.8);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0.32px;
	appearance: none;
	cursor: pointer;
}

.panel-projects-listing__filter-select:focus {
	outline: 2px solid var(--ppi-blue, #089ef7);
	outline-offset: 2px;
}

.panel-projects-listing__featured {
	margin-bottom: 24px;
}

.panel-projects-listing__featured > a {
	text-decoration: none;
}

.panel-projects-listing__featured > a:hover .panel-projects-listing__card-link {
  color: var(--ppi-blue, #089ef7);
}

.panel-projects-listing__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.panel-projects-listing__grid-item {
	background-color: #f4f4f6;
}

.panel-projects-listing__grid-item > a:hover .panel-projects-listing__card-link {
	color: var(--ppi-blue, #089ef7);
}

.panel-projects-listing__grid-item--hidden {
	display: none;
}

.panel-projects-listing__actions {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.panel-projects-listing__load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 189px;
	min-height: 44px;
	padding: 5px 21px;
	border: 2px solid var(--ppi-blue, #089ef7);
	border-radius: 30px;
	background: transparent;
	color: var(--ppi-navy, #1a1a4a);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.panel-projects-listing__load-more:hover,
.panel-projects-listing__load-more:focus {
	background: var(--ppi-blue, #089ef7);
	color: #fff;
}

/* Shared card */
.panel-projects-listing__card {
	display: flex;
	overflow: hidden;
	background: #f4f4f6;
}

.panel-projects-listing__grid-item > a {
	text-decoration: none;
}

.panel-projects-listing__card-media {
	overflow: hidden;
	background-color: #fff;
	background-size: cover;
	background-position: 50% 50%;
}

.panel-projects-listing__card-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
}

.panel-projects-listing__card-location {
	margin: 0;
	color: var(--ppi-navy, #1a1a4a);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}

.panel-projects-listing__card-title {
	margin: 0;
	color: var(--ppi-navy, #1a1a4a);
	font-weight: 400;
	line-height: 1.1;
}

.panel-projects-listing__card-description {
	margin: 0;
	color: #72728f;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0.32px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.panel-projects-listing__card-link {
	margin-top: 8px;
	color: var(--ppi-navy, #1a1a4a);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.panel-projects-listing__card-link:hover,
.panel-projects-listing__card-link:focus {
	color: var(--ppi-blue, #089ef7);
}

/* Featured card */
.panel-projects-listing__card--featured {
	flex-direction: row;
	align-items: stretch;
	min-height: 331px;
	background: #e6f5fe;
}

.panel-projects-listing__card--featured .panel-projects-listing__card-media {
	flex: 0 0 46%;
	max-width: 570px;
	min-height: 280px;
	margin: 26px 0 26px 22px;
}

.panel-projects-listing__card--featured .panel-projects-listing__card-content {
	justify-content: center;
	gap: 16px;
	padding: 32px 40px 32px 32px;
}

.panel-projects-listing__card--featured .panel-projects-listing__card-title {
	font-size: 31px;
	letter-spacing: -0.155px;
}

/* Compact cards */
.panel-projects-listing__card--compact {
	flex-direction: row-reverse;
	min-height: 255px;
	height:100%;
}

.panel-projects-listing__card--compact .panel-projects-listing__card-content {
	flex: 1 1 55%;
	gap: 8px;
	padding: 28px 24px 28px 32px;
}

.panel-projects-listing__card--compact .panel-projects-listing__card-media {
	flex: 0 0 223px;
	width: 223px;
	height: 223px;
	margin: 16px 16px 16px 0;
}

.panel-projects-listing__card--compact .panel-projects-listing__card-title {
	font-size: 25px;
	letter-spacing: -0.25px;
}

@media only screen and (max-width: 1199px) {
	.panel-projects-listing__card--compact {
	  flex-direction: column;
	  height: auto;
	}

	.panel-projects-listing__card--compact .panel-projects-listing__card-media {
		flex: 0 0 calc(100% - 32px);
    width: calc(100% - 32px);
    height: auto;
    margin: 16px;
    aspect-ratio: 1;
	}

	.panel-projects-listing__card--compact .panel-projects-listing__card-content {
    padding: 0 16px 25px 16px;
	}

	.panel-projects-listing__grid-item {
    position: relative;
    padding-bottom: 30px;
	}

	.panel-projects-listing__card--compact .panel-projects-listing__card-link {
		position: absolute;
    bottom: 20px;
	}

}

@media only screen and (max-width: 1024px) {
	.panel-projects-listing__card--featured {
		flex-direction: column;
		min-height: 0;
	}

	.panel-projects-listing__card--featured .panel-projects-listing__card-media {
		flex: none;
		width: calc(100% - 44px);
		max-width: none;
		min-height: 240px;
		margin: 22px 22px 0;
	}

	.panel-projects-listing__card--featured .panel-projects-listing__card-content {
		padding: 24px 32px 32px;
	}
}

@media only screen and (max-width: 767px) {
	.panel-projects-listing {
		padding: 40px 0 64px;
	}

	.panel-projects-listing__filter {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 32px;
	}

	.panel-projects-listing__filter-select-wrap {
		width: 100%;
		max-width: none;
	}

	.panel-projects-listing__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.panel-projects-listing__card--compact {
		flex-direction: column;
		min-height: 0;
	}

	.panel-projects-listing__card--featured .panel-projects-listing__card-content {
    padding: 0 16px 20px 16px;
	}

	.panel-projects-listing__card--featured .panel-projects-listing__card-media {
		margin: 16px 0 16px 16px;
	}

	.panel-projects-listing__card--compact .panel-projects-listing__card-media {
		flex: none;
		width: 100%;
		height: 200px;
		margin: 0;
	}

	.panel-projects-listing__card--compact .panel-projects-listing__card-content {
		padding: 24px;
	}

	.panel-projects-listing__actions {
		margin-top: 32px;
	}
}
