/*
 * Puerto Rico trial namespace enhancements.
 * Loaded only by the Puerto Rico landing, Aguadilla, and Guaynabo templates.
 */

@media (min-width: 992px) {
	.gersh-pr-page--campus .gersh-pr-hero .row {
		isolation: isolate;
	}

	.gersh-pr-page--campus .gersh-pr-hero .col-lg-7 {
		position: relative;
		z-index: 2;
	}

	.gersh-pr-page--campus .gersh-pr-hero .col-lg-5 {
		position: relative;
		z-index: 1;
	}
}
.gersh-pr-locations__container--wide {
	max-width: 1440px;
	padding-left: 24px;
	padding-right: 24px;
	width: 100%;
}

.gersh-pr-location-card--with-form {
	display: grid;
	grid-template-columns: minmax(320px, .76fr) minmax(0, 1.24fr);
	overflow: hidden;
	padding: 0;
}

.gersh-pr-location-card__details {
	min-width: 0;
}

.gersh-pr-location-card--with-form .gersh-pr-location-card__details {
	background: #2f3237;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 52px 46px;
}

.gersh-pr-location-card--with-form .gersh-pr-location-card__details h3 {
	color: #ef4823;
	font-size: clamp(28px, 2.3vw, 36px);
	line-height: 1.16;
}

.gersh-pr-location-card--with-form .gersh-pr-location-card__details p {
	color: #f6f8fa;
	line-height: 1.6;
}

.gersh-pr-location-card--with-form .gersh-pr-location-card__details strong {
	color: #ffffff;
}

.gersh-pr-location-card--with-form .gersh-pr-location-card__details a:not(.gersh-pr-primary-cta) {
	color: #ffc722;
}

.gersh-pr-location-card--with-form .gersh-pr-location-card__details a:not(.gersh-pr-primary-cta):hover {
	color: #ffffff;
}

.gersh-pr-campus-slider {
	margin-bottom: 28px;
	width: 100%;
}

.gersh-pr-campus-slider__viewport {
	aspect-ratio: 700 / 394;
	border: 2px solid rgba(255, 199, 34, .82);
	border-radius: 12px;
	overflow: hidden;
	position: relative;
}

.gersh-pr-campus-slider__slide {
	inset: 0;
	margin: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity .24s ease;
}

.gersh-pr-campus-slider__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.gersh-pr-campus-slider__slide img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.gersh-pr-campus-slider__control {
	align-items: center;
	background: rgba(47, 50, 55, .82);
	border: 1px solid rgba(255, 255, 255, .78);
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: none;
	height: 44px;
	justify-content: center;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: background-color .18s ease, border-color .18s ease;
	width: 44px;
	z-index: 2;
}

.gersh-pr-campus-slider.is-ready .gersh-pr-campus-slider__control {
	display: flex;
}

.gersh-pr-campus-slider__control--previous {
	left: 12px;
}

.gersh-pr-campus-slider__control--next {
	right: 12px;
}

.gersh-pr-campus-slider__control svg {
	fill: none;
	height: 24px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 24px;
}

.gersh-pr-campus-slider__control:hover {
	background: #ef4823;
	border-color: #ef4823;
}

.gersh-pr-campus-slider__control:focus-visible,
.gersh-pr-campus-slider__dot:focus-visible {
	box-shadow: 0 0 0 3px #2f3237, 0 0 0 6px #ffc722;
	outline: 0;
}

.gersh-pr-campus-slider__dots {
	display: none;
	justify-content: center;
	margin: 10px 0 0;
}

.gersh-pr-campus-slider.is-ready .gersh-pr-campus-slider__dots {
	display: flex;
}

.gersh-pr-campus-slider__dot {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	height: 32px;
	justify-content: center;
	padding: 0;
	width: 32px;
}

.gersh-pr-campus-slider__dot:before {
	background: rgba(255, 255, 255, .48);
	border-radius: 50%;
	content: "";
	height: 8px;
	transition: background-color .18s ease, transform .18s ease;
	width: 8px;
}

.gersh-pr-campus-slider__dot[aria-current="true"]:before {
	background: #ffc722;
	transform: scale(1.35);
}

@media (prefers-reduced-motion: reduce) {
	.gersh-pr-campus-slider__slide,
	.gersh-pr-campus-slider__control,
	.gersh-pr-campus-slider__dot:before {
		transition: none;
	}
}

/* Keep the desktop hero image below the copy when the two columns overlap. */
@media (min-width: 992px) {
	.gersh-pr-page--campus .gersh-pr-hero .row {
		isolation: isolate;
	}

	.gersh-pr-page--campus .gersh-pr-hero .col-lg-7 {
		position: relative;
		z-index: 2;
	}

	.gersh-pr-page--campus .gersh-pr-hero .col-lg-5 {
		position: relative;
		z-index: 1;
	}
}

/*
 * The production theme keeps its desktop navigation until 992px, but that
 * navigation is wider than a 1024px viewport. This asset is only enqueued on
 * the three Puerto Rico templates, so the earlier mobile switch stays scoped.
 */
@media (max-width: 1199px) {
	.main-header {
		display: none;
	}

	.mobile-header {
		display: block;
	}

	.menu-item-object-custom.menu-item-has-children:after,
	button.d-xl-none.menu-button-bk.js-menu-tog {
		display: none;
	}

	.mobile-header ul#merged-menu,
	nav.menulinks.merged-menu {
		background-color: #ffffff;
		display: block;
		left: 0;
		position: absolute;
		top: 100%;
		width: 100%;
		z-index: 999;
	}

	.mobile-header li.menu-item {
		border-bottom: 1px solid #e5e5e5;
		display: block;
	}

	.mobile-header li.menu-item:last-child {
		border: 0 !important;
	}

	.bk-header nav ul li a {
		display: block;
		font-size: 16px;
		padding: 9px 0 !important;
		position: relative;
		width: 100%;
		z-index: 999;
	}

	.mobile-logo {
		max-width: 123px;
	}

	.mobile-logo a.logo-bk img {
		display: block;
		width: 100%;
	}

	.mob-menu,
	.sub-menu {
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease-in-out;
	}

	button.mobile-menu-toggle {
		background-color: transparent;
		border: 0;
		font-size: 25px;
		line-height: normal;
		padding: 0;
	}

	.submenu-open > .sub-menu {
		max-height: 500px;
	}
}

.gersh-pr-location-form {
	background: #ffffff;
	min-width: 0;
	padding: 48px 54px 42px;
	position: relative;
}

.gersh-pr-location-form:before {
	background: linear-gradient(to bottom, #ffc722 0 42%, #ef4823 42% 100%);
	content: "";
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 5px;
}

.gersh-pr-location-form__heading {
	margin-bottom: 26px;
}

.gersh-pr-location-form__heading > p:first-child {
	color: #ef4823;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.gersh-pr-location-form__heading h3 {
	color: #2f3237;
	font-size: clamp(30px, 2.5vw, 40px);
	line-height: 1.12;
	margin-bottom: 12px;
}

.gersh-pr-location-form__heading .gersh-pr-location-form__intro {
	color: #5c6269;
	font-size: 16px;
	line-height: 1.55;
	margin: 0;
	max-width: 680px;
}

.gersh-pr-admissions-form {
	margin: 0;
}

.gersh-pr-admissions-form__grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gersh-pr-admissions-form__field {
	min-width: 0;
}

.gersh-pr-admissions-form__field--full {
	grid-column: 1 / -1;
}

.gersh-pr-admissions-form__field > label,
.gersh-pr-admissions-form__field > legend {
	color: #2f3237;
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 8px;
}

.gersh-pr-admissions-form__field > label > span:not(.gersh-pr-admissions-form__optional),
.gersh-pr-admissions-form__field > legend > span {
	color: #c32300;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	margin-left: 5px;
}

.gersh-pr-admissions-form__optional {
	color: #687079;
	font-size: 12px;
	font-weight: 600;
}

.gersh-pr-admissions-form input[type="email"],
.gersh-pr-admissions-form input[type="tel"],
.gersh-pr-admissions-form input[type="text"],
.gersh-pr-admissions-form textarea {
	background: #ffffff;
	border: 1px solid #ccd2d8;
	border-radius: 10px;
	box-shadow: none;
	color: #2f3237;
	font-family: allotrope, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	padding: 12px 14px;
	transition: border-color .16s ease, box-shadow .16s ease;
	width: 100%;
}

.gersh-pr-admissions-form input[type="email"],
.gersh-pr-admissions-form input[type="tel"],
.gersh-pr-admissions-form input[type="text"] {
	height: 50px;
}

.gersh-pr-admissions-form textarea {
	height: 118px;
	min-height: 118px;
	resize: vertical;
}

.gersh-pr-admissions-form input[type="email"]:focus,
.gersh-pr-admissions-form input[type="tel"]:focus,
.gersh-pr-admissions-form input[type="text"]:focus,
.gersh-pr-admissions-form textarea:focus {
	border-color: #ef4823 !important;
	box-shadow: 0 0 0 3px rgba(239, 72, 35, .16) !important;
	outline: 0;
}

.gersh-pr-admissions-form__choice-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gersh-pr-admissions-form__choice-grid--compact {
	grid-template-columns: repeat(2, minmax(0, 140px));
}

.gersh-pr-admissions-form__choice-grid label {
	align-items: center;
	background: #f6f8fa;
	border: 1px solid #d7dee4;
	border-radius: 10px;
	display: flex;
	min-height: 46px;
	padding: 10px 12px;
	transition: background-color .16s ease, border-color .16s ease;
}

.gersh-pr-admissions-form__choice-grid label:focus-within,
.gersh-pr-admissions-form__choice-grid label:has(input:checked) {
	background: #fff7f4;
	border-color: #ef4823;
}

.gersh-pr-admissions-form__choice-grid input[type="radio"] {
	accent-color: #ef4823;
	flex: 0 0 auto;
	height: 18px;
	margin: 0 9px 0 0;
	width: 18px;
}

.gersh-pr-admissions-form__choice-grid label > span {
	color: #41464d;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	max-width: none;
	width: 100%;
}

.gersh-pr-admissions-form__footer {
	align-items: center;
	display: flex;
	margin-top: 8px;
	padding-top: 14px;
}

.gersh-pr-admissions-form__footer button {
	background: #ef4823;
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	color: #ffffff;
	cursor: pointer;
	font-family: allotrope, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	margin: 0;
	padding: 16px 30px;
	transition: background-color .16s ease, transform .16s ease;
}

.gersh-pr-admissions-form__footer button:hover:not(:disabled) {
	background: #c32300;
	transform: translateY(-1px);
}

.gersh-pr-admissions-form__footer button:focus-visible,
.gersh-pr-location-form a:focus-visible,
.gersh-pr-location-card--with-form .gersh-pr-location-card__details a:focus-visible {
	box-shadow: 0 0 0 4px rgba(255, 199, 34, .38);
	outline: 2px solid #2f3237;
	outline-offset: 2px;
}

.gersh-pr-admissions-form__footer button:disabled {
	cursor: wait;
	opacity: .68;
}

.gersh-pr-admissions-form__error {
	background: #fff4f1;
	border: 0;
	border-left: 3px solid #c32300;
	color: #8e1b00;
	font-size: 13px;
	margin-top: 7px;
	padding: 8px 10px;
}

.gersh-pr-admissions-form__field--invalid input[type="email"],
.gersh-pr-admissions-form__field--invalid input[type="tel"],
.gersh-pr-admissions-form__field--invalid input[type="text"],
.gersh-pr-admissions-form__field--invalid textarea {
	border-color: #c32300;
}

.gersh-pr-admissions-form__status {
	background: #fff4f1;
	border: 1px solid #ef9b88;
	border-radius: 10px;
	box-shadow: none;
	color: #8e1b00;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 22px;
	padding: 14px 16px;
}

.gersh-pr-admissions-form__honeypot {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	top: auto;
	width: 1px;
}

.gersh-pr-admissions-form__confirmation {
	background: #f6f8fa;
	border-left: 5px solid #ef4823;
	border-radius: 10px;
	color: #2f3237;
	font-size: 17px;
	line-height: 1.55;
	padding: 22px 24px;
}

.gersh-pr-admissions-form__confirmation strong,
.gersh-pr-admissions-form__confirmation span {
	color: #c32300;
}

.gersh-pr-location-form__privacy {
	color: #687079;
	font-size: 12px;
	line-height: 1.55;
	margin: 20px 0 0;
}

.gersh-pr-location-form__privacy a,
.gersh-pr-location-form__fallback a {
	color: #c32300;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gersh-pr-location-form__fallback {
	background: #f6f8fa;
	border-left: 5px solid #ffc722;
	border-radius: 10px;
	padding: 20px 22px;
}

.gersh-pr-location-form__fallback p {
	color: #41464d;
	margin-bottom: 8px;
}

@media (max-width: 991px) {
	.gersh-pr-location-card--with-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.gersh-pr-location-card--with-form .gersh-pr-location-card__details,
	.gersh-pr-location-form {
		padding: 42px;
	}

	.gersh-pr-location-form:before {
		background: linear-gradient(to right, #ffc722 0 42%, #ef4823 42% 100%);
		height: 5px;
		width: 100%;
	}
}

@media (max-width: 575px) {
	.gersh-pr-location-card--with-form {
		padding: 0;
	}

	.gersh-pr-locations__container--wide {
		padding-left: 15px;
		padding-right: 15px;
	}

	.gersh-pr-location-card--with-form .gersh-pr-location-card__details,
	.gersh-pr-location-form {
		padding: 32px 26px;
	}

	.gersh-pr-campus-slider {
		margin-bottom: 22px;
	}

	.gersh-pr-location-form__heading h3 {
		font-size: 30px;
	}

	.gersh-pr-admissions-form__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gersh-pr-admissions-form__field--full {
		grid-column: auto;
	}

	.gersh-pr-admissions-form__choice-grid,
	.gersh-pr-admissions-form__choice-grid--compact {
		grid-template-columns: minmax(0, 1fr);
	}

	.gersh-pr-admissions-form__footer button {
		width: 100%;
	}
}

/* Landing page hero: keep the copy column above the image column when they overlap. */
@media (min-width: 992px) {
	.gersh-pr-page--landing .gersh-pr-hero .row {
		isolation: isolate;
	}

	.gersh-pr-page--landing .gersh-pr-hero .col-lg-7 {
		position: relative;
		z-index: 2;
	}

	.gersh-pr-page--landing .gersh-pr-hero .col-lg-5 {
		position: relative;
		z-index: 1;
	}
}

/* Program grid: center each card's label in the space beside its icon. */
.gersh-pr-program-card > span:not(.gersh-pr-program-card__icon) {
	flex: 1;
	text-align: center;
}
