/* =====================================================================
   STUDENT SUCCESS SLIDER
   Slick base styles + card styles for the homepage student spotlights
   ===================================================================== */


/* ---------------------------------------------------------------------
   PRE-LOAD (before Slick starts)
   --------------------------------------------------------------------- */

/* Before Slick starts: hide the cards, but lay them out in a row so the space is the right size */
.studentSuccessSlider:not(.slick-initialized) {
	display: flex;
	overflow: hidden;
	visibility: hidden;
}
.studentSuccessSlider:not(.slick-initialized) > .cardContain {
	flex: 0 0 calc(33.333% - 24px); /* 3 across, minus the 12px margin on each side */
	margin: 12px;
}
@media (max-width: 767px) {
	.studentSuccessSlider:not(.slick-initialized) > .cardContain {
		flex-basis: calc(50% - 24px); /* 2 across */
	}
}
@media (max-width: 550px) {
	.studentSuccessSlider:not(.slick-initialized) > .cardContain {
		flex-basis: calc(100% - 24px); /* 1 across */
	}
}


/* ---------------------------------------------------------------------
   SLICK BASE (core carousel layout)
   --------------------------------------------------------------------- */

.slick-slider {
	position: relative;
	display: block;
	box-sizing: border-box;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	touch-action: pan-y;
	-webkit-tap-highlight-color: transparent;
}

.slick-list {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 0;
	padding: 0;
}
.slick-list:focus {
	outline: none;
}
.slick-list.dragging {
	cursor: pointer;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
	transform: translate3d(0, 0, 0);
}

.slick-track {
	position: relative;
	top: 0;
	left: 0;
	display: block;
	max-width: none;
	margin-left: auto;
	margin-right: auto;
}
.slick-track::before,
.slick-track::after {
	display: table;
	content: '';
}
.slick-track::after {
	clear: both;
}

.slick-slide {
	display: none;
	float: left;
	height: 100%;
	min-height: 1px;
}
.slick-initialized .slick-slide {
	display: block;
}
.slick-slide img {
	display: block;
}

.slick-arrow.slick-hidden {
	display: none;
}


/* ---------------------------------------------------------------------
   ARROWS
   --------------------------------------------------------------------- */

.slick-prev,
.slick-next {
	position: absolute;
	top: 35%;
	z-index: 1;
	display: block;
	width: 80px;
	height: 60px;
	padding: 0;
	margin: 0;
	transform: translate(0, -50%);
	cursor: pointer;
	background: black;
	opacity: 0.7;
	font-size: 2rem;
}
.slick-prev {
	left: 0;
}
.slick-next {
	right: 0;
}
.slick-prev i,
.slick-next i {
	color: white;
	text-shadow: black 0 2px 2px;
}
.slick-prev:hover,
.slick-next:hover,
.slick-prev:focus,
.slick-next:focus {
	opacity: 1;
}
body.accessible .slick-prev:focus,
body.accessible .slick-next:focus {
	outline: #FFD200 solid 2px;
	outline-offset: -4px;
}

@media only screen and (max-width: 550px) {
	.slick-prev,
	.slick-next {
		top: 42%;
	}
}


/* ---------------------------------------------------------------------
   CARDS
   --------------------------------------------------------------------- */

/* Space around each card (also gives the hover lift + shadow room so it isn't clipped) */
.slick-slide > div {
	margin: 12px;
}

.cardContain {
	background: white;
	border-radius: var(--radius-m, 6px);
	overflow: hidden; /* Keeps image corners rounded and clips the image zoom */
	box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.24), 0 4px 8px 0 rgba(0, 0, 0, 0.24);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cardContain a {
	display: block;
	text-decoration: none;
}

.cardContain img {
	width: 100%;
	border-radius: 0; /* Card handles the rounding */
	transition: transform 0.4s ease;
}

.cardText {
	position: relative; /* Sits above the image so the zoom never covers the text */
	z-index: 1;
	padding: 13px 16px;
	background: white;
}

.cardTitle {
	font-family: 'Source Sans Pro', sans-serif;
	font-weight: 900;
	font-size: 2.3rem;
	color: #003E7E;
	text-transform: none;
	margin-bottom: 5px;
	padding: 0;
}

.cardDescription {
	display: inline-block; /* Prevents the link underline on the description */
	margin-bottom: 0;
	color: #222;
}


/* ---------------------------------------------------------------------
   CARD HOVER + KEYBOARD FOCUS
   --------------------------------------------------------------------- */

/* Lift the card and deepen the shadow */
.cardContain:hover,
.cardContain:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2), 0 6px 12px 0 rgba(0, 0, 0, 0.3);
}

/* Slow zoom on the photo */
.cardContain:hover img,
.cardContain:focus-within img {
	transform: scale(1.05);
}

/* Underline the name */
.cardContain:hover .cardTitle,
.cardContain:focus-within .cardTitle {
	text-decoration: underline;
}

/* Visible focus ring for keyboard users */
body.accessible .cardContain:focus-within {
	outline: #FFD200 solid 2px;
	outline-offset: 2px;
}

/* Turn off the motion for people who have reduced motion enabled */
@media (prefers-reduced-motion: reduce) {
	.cardContain,
	.cardContain img {
		transition: none;
	}
	.cardContain:hover,
	.cardContain:focus-within,
	.cardContain:hover img,
	.cardContain:focus-within img {
		transform: none;
	}
}