/* University Partnerships (page-university-partnerships.php) */

.up-page {
	font-family: 'Lato', sans-serif;
	color: #0f1112;
	background-color: var(--gb-white);
}

/* The global sheets give li, blockquote, figure and headings margins/fonts; reset them here.
   :where() keeps these resets at zero specificity so the component rules below always win. */
:where(.up-page) :is(h1, h2, h3, p, figure, blockquote, ul, li) {
	margin: 0;
	padding: 0;
}

:where(.up-page) ul {
	list-style: none;
}

:where(.up-page) blockquote {
	border: 0;
	background: none;
	font-style: normal;
	quotes: none;
}

:where(.up-page) blockquote::before,
:where(.up-page) blockquote::after {
	content: none;
}

/* Content width matches the site header and footer: 1280px band, 60px side margins below that, 16px on phones */
.up-hero-container,
.up-benefits,
.up-voices,
.up-case-study,
.up-partners-container {
	box-sizing: border-box;
	width: calc(100% - 120px);
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
}

.up-eyebrow {
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #007dba;
}

/* Text links: same treatment as Thought Leadership articles */
.up-benefit a {
	font-weight: 700;
	color: var(--gb-blue-text);
	text-decoration: none;
	border-bottom: 2px solid #c1e1f4;
	transition: var(--animate-transition);
}

.up-benefit a:hover {
	color: var(--primary-900);
	border-bottom-color: var(--gb-orange-text);
}

/* Buttons: same as .orange-button a / .white-button a in css/style.css */
.up-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.up-btn {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	text-decoration: none;
	padding: 10px 24px;
	border-radius: 6px;
	transition: var(--animate-transition);
}

.up-btn::after {
	content: "\276F";
	margin-left: 6px;
	display: inline-flex;
	transition: var(--animate-transition-transform);
}

.up-btn:hover::after {
	transform: var(--animate-transform);
	color: #ffffff;
}

.up-btn-orange {
	background-color: #de6503;
	border: 1px solid #de6503;
	color: #ffffff !important;
}

.up-btn-orange::after {
	color: #edb68a;
}

.up-btn-orange:hover {
	background-color: var(--orange-700);
	border-color: var(--orange-700);
}

.up-btn-white {
	background-color: var(--gb-white);
	border: 1px solid var(--gb-grey-one);
	color: var(--gb-dark-blue-text) !important;
}

.up-btn-white::after {
	color: #de6503;
}

.up-btn-white:hover {
	background-color: #de6503;
	border-color: var(--gb-orange-two);
	color: var(--gb-white) !important;
}

/* Hero */
.up-hero {
	background-color: #f4fcff;
	border-bottom: 1px solid #daebef;
}

.up-hero-container {
	padding-top: 72px;
	padding-bottom: 72px;
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	align-items: center;
}

.up-hero-message {
	flex: 1 1 560px;
	min-width: 0;
}

.up-hero h1 {
	margin-bottom: 20px;
	text-wrap: balance;
	font-size: 52px;
	line-height: 1.08;
	font-weight: 900;
	color: #184659;
}

.up-hero-intro {
	margin-bottom: 32px;
	max-width: 620px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--gray-900);
}

.up-hero-badge {
	flex: 0 1 400px;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.up-hero-badge img {
	width: 300px;
	max-width: 100%;
	height: auto;
}

/* Benefits */
.up-benefits {
	padding-top: 88px;
	padding-bottom: 48px;
}

.up-benefits h2 {
	margin-bottom: 12px;
	font-size: 38px;
	font-weight: 900;
	color: #184659;
}

.up-section-intro {
	margin-bottom: 44px;
	max-width: 700px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--gray-900);
}

.up-benefit-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.up-benefit {
	background-color: var(--gb-white);
	border: 1px solid #c1e1f4;
	border-radius: 12px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: #007dba;
}

.up-benefit h3 {
	font-size: 22px;
	font-weight: 700;
	color: #184659;
}

.up-benefit p {
	font-size: 17px;
	line-height: 1.6;
	color: var(--gray-900);
}

/* Testimonials */
/* Featured quote on the left, the two shorter quotes stacked on the right */
.up-voices {
	padding-top: 32px;
	padding-bottom: 88px;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 24px;
}

.up-voice {
	min-width: 0;
	background-color: #e4f1fb;
	border-radius: 12px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.up-voice blockquote {
	flex: 1;
	font-size: 19px;
	line-height: 1.55;
	color: #184659;
}

.up-voice figcaption {
	display: flex;
	gap: 14px;
	align-items: center;
	font-size: 15px;
	line-height: 1.4;
	color: #0f1112;
}

.up-voice figcaption img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.up-voice--featured {
	grid-row: span 2;
	background-color: #013e59;
	padding: 40px;
	gap: 24px;
}

.up-voice--featured blockquote {
	font-size: 20px;
	line-height: 1.6;
	color: #ffffff;
}

.up-voice--featured figcaption {
	font-size: 16px;
	color: #d5eef6;
}

.up-voice--featured figcaption strong {
	color: #ffffff;
}

.up-voice--featured figcaption img {
	width: 64px;
	height: 64px;
	object-position: center 30%;
}

/* Case study */
.up-case-study {
	padding-top: 48px;
	padding-bottom: 88px;
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: center;
}

.up-case-study-message {
	flex: 1 1 520px;
	min-width: 0;
}

.up-case-study h2 {
	margin-bottom: 16px;
	font-size: 38px;
	font-weight: 900;
	color: #184659;
}

.up-case-study-message > p:not(.up-eyebrow) {
	margin-bottom: 28px;
	font-size: 18px;
	line-height: 1.65;
	color: var(--gray-900);
}

.up-case-study-cover {
	flex: 0 1 340px;
	min-width: 0;
}

.up-case-study-cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

/* Partner logos */
.up-partners {
	background-color: #f4fcff;
	border-top: 1px solid #daebef;
}

.up-partners-container {
	padding-top: 80px;
	padding-bottom: 80px;
}

.up-partners h2 {
	margin-bottom: 36px;
	font-size: 32px;
	font-weight: 900;
	color: #184659;
	text-align: center;
}

.up-partner-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}

.up-partner-grid li {
	flex: 0 1 260px;
	min-width: 0;
	height: 120px;
	box-sizing: border-box;
	padding: 20px 24px;
	background-color: var(--gb-white);
	border: 1px solid #c1e1f4;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.up-partner-grid img {
	max-width: 100%;
	max-height: 72px;
	width: auto;
	height: auto;
}

/* FAQ */
.up-faq {
	border-top: 1px solid #e1ecf1;
}

.up-faq-container {
	max-width: 860px;
	margin: 0 auto;
	padding: 80px 24px;
}

.up-faq h2 {
	margin-bottom: 28px;
	font-size: 34px;
	font-weight: 900;
	color: #184659;
}

.up-faq details {
	border-bottom: 1px solid #e1ecf1;
}

/* The padding lives on the summary so the whole row, not just the text, toggles the answer */
.up-faq summary {
	display: flex;
	padding: 20px 0;
	align-items: baseline;
	gap: 12px;
	font-size: 19px;
	font-weight: 700;
	color: #184659;
	cursor: pointer;
	list-style: none;
}

/* Hide the browser's triangle; use the same arrow as the site buttons, turned down when open */
.up-faq summary::-webkit-details-marker {
	display: none;
}

.up-faq summary::before {
	content: "\276F";
	flex: none;
	display: inline-block;
	font-size: 15px;
	color: #de6503;
	transition: var(--animate-transition-transform);
}

.up-faq summary:hover::before {
	transform: var(--animate-transform);
}

.up-faq details[open] summary::before {
	transform: rotate(90deg);
}

.up-faq details p {
	margin-top: -8px;
	padding: 0 0 20px 25px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--gray-900);
}

.up-faq .up-buttons {
	margin-top: 32px;
}

@media only screen and (max-width: 834px) {
	.up-hero-container,
	.up-benefits,
	.up-voices,
	.up-case-study,
	.up-partners-container {
		width: calc(100% - (2 * var(--mobile-viewport-spacing, 16px)));
	}

	.up-hero-container {
		padding-top: 48px;
		padding-bottom: 48px;
		gap: 32px;
	}

	.up-hero h1 {
		font-size: 36px;
	}

	.up-hero-badge img {
		width: 160px;
	}

	.up-benefits {
		padding-top: 60px;
	}

	.up-benefits h2,
	.up-case-study h2 {
		font-size: 30px;
	}

	.up-partners-container {
		padding-top: 60px;
		padding-bottom: 60px;
	}

	.up-faq-container {
		padding: 60px var(--mobile-viewport-spacing, 16px);
	}

	.up-partners h2,
	.up-faq h2 {
		font-size: 28px;
	}

	.up-voices {
		grid-template-columns: minmax(0, 1fr);
	}

	.up-voice--featured {
		grid-row: auto;
	}

	.up-voice,
	.up-voice--featured {
		padding: 28px;
	}
}

@media only screen and (max-width: 576px) {
	.up-btn {
		font-size: 16px;
		padding: 10px 16px;
	}

	.up-benefit-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.up-partner-grid li {
		flex-basis: calc(50% - 12px);
		height: 96px;
		padding: 16px;
	}

	.up-partner-grid img {
		max-height: 56px;
	}
}
