/* =========================================================
   JU Alumni – Home page styles
   (moved out of Index.cshtml; plain CSS, so @media uses a single @)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,500;0,6..72,600;1,6..72,400&family=Source+Sans+3:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Manrope:wght@400;500;600&display=swap");


/* =========================================================
   1. ABOUT SECTION
   ========================================================= */
.ju-about {
	--ju-ink: #1b2a4a;       /* deep institutional blue */
	--ju-marigold: #e0a526;  /* accent */
	--ju-slate: #4a5568;     /* body text */
	--ju-mist: #f4f6fa;      /* section background */
	--ju-white: #ffffff;

	background: var(--ju-mist);
	padding: 5.5rem 0;
	font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--ju-slate);
}

/* ---------- Text column ---------- */
.ju-about__title {
	font-family: "Newsreader", Georgia, "Times New Roman", serif;
	font-weight: 600;
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	line-height: 1.1;
	color: var(--ju-ink);
	margin: 0;
}

.ju-about__rule {
	display: block;
	width: 56px;
	height: 3px;
	background: var(--ju-marigold);
	margin: 1.25rem 0 1.5rem;
	border-radius: 2px;
}

.ju-about__lead {
	font-size: 1.075rem;
	line-height: 1.7;
	max-width: 34rem;
	margin-bottom: 2rem;
}

.ju-about__quote {
	position: relative;
	margin: 0 0 2.25rem;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 3px solid var(--ju-marigold);
	max-width: 32rem;
}

.ju-about__quote p {
	font-family: "Newsreader", Georgia, serif;
	font-style: italic;
	font-size: 1.45rem;
	line-height: 1.4;
	color: var(--ju-ink);
	margin: 0 0 0.6rem;
}

/* Attribution line (a <p>, not <footer>, so global footer styles can't hide it) */
.ju-about__quote .ju-about__cite {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 1.1rem 0 0;
	padding: 0;
	background: none;
	border: 0;
	font-family: "Source Sans 3", system-ui, sans-serif;
	font-style: normal;
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.5;
	color: var(--ju-slate);
}

/* Short marigold line leading into the attribution */
.ju-about__quote .ju-about__cite::before {
	content: "";
	flex: 0 0 36px;
	height: 1px;
	background: var(--ju-marigold);
}

.ju-about__quote .ju-about__cite cite {
	font-style: normal;
	font-weight: 600;
	color: var(--ju-ink);
}

.ju-about__btn {
	display: inline-block;
	padding: 0.8rem 1.6rem;
	background: var(--ju-ink);
	color: var(--ju-white);
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: background-color 0.2s ease;
}

.ju-about__btn:hover {
	background: #25385f;
	color: var(--ju-white);
}

.ju-about__btn:focus-visible {
	outline: 3px solid var(--ju-marigold);
	outline-offset: 3px;
}

/* ---------- Team carousel ---------- */
.ju-team {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 24px 48px -20px rgba(27, 42, 74, 0.45);
	background: var(--ju-ink);
}

.ju-team__card {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
}

.ju-team__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.ju-team__caption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 4rem 1.75rem 3.25rem;
	background: linear-gradient(to top, rgba(27, 42, 74, 0.95) 0%, rgba(27, 42, 74, 0.6) 55%, transparent 100%);
	color: var(--ju-white);
}

.ju-team__caption h5 {
	font-family: "Newsreader", Georgia, serif;
	font-weight: 500;
	font-size: 1.6rem;
	color: var(--ju-white);
	margin: 0 0 0.25rem;
}

.ju-team__caption p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--ju-marigold);
	font-weight: 600;
}

/* Prev / next – subtle round buttons */
.ju-team__ctrl {
	width: 44px;
	height: 44px;
	top: 42%;
	bottom: auto;
	margin: 0 0.75rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.ju-team:hover .ju-team__ctrl,
.ju-team__ctrl:focus-visible {
	opacity: 1;
}

.ju-team__ctrl:hover {
	background: rgba(255, 255, 255, 0.32);
}

.ju-team__ctrl .carousel-control-prev-icon,
.ju-team__ctrl .carousel-control-next-icon {
	width: 1.1rem;
	height: 1.1rem;
}

/* Indicators – short bars, active one widens */
.ju-team__dots {
	margin: 0 1.75rem 1.25rem;
	justify-content: flex-start;
}

.ju-team__dots [data-bs-target] {
	width: 14px;
	height: 4px;
	margin: 0 4px 0 0;
	border: 0;
	border-radius: 2px;
	background: var(--ju-white);
	opacity: 0.45;
	transition: width 0.3s ease, opacity 0.3s ease;
}

.ju-team__dots .active {
	width: 32px;
	opacity: 1;
	background: var(--ju-marigold);
}


/* =========================================================
   2. GALLERY SECTION (dark)
   ========================================================= */
.ju-gallery {
	--ju-black: #000000;
	--ju-panel: #141414;
	--ju-gold: #d4a849;
	--ju-text: #ece9e2;
	--ju-muted: #9b978f;
	--ju-line: rgba(212, 168, 73, 0.35);

	position: relative;
	background: var(--ju-black);
	padding: 6rem 0;
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--ju-text);
}

/* Hairline divider at the top of the section */
.ju-gallery::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: min(1140px, 90%);
	height: 1px;
	background: linear-gradient(to right, transparent, var(--ju-line), transparent);
}

.ju-gallery__head {
	text-align: center;
	max-width: 38rem;
	margin: 0 auto 3.5rem;
}

.ju-gallery__title {
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-weight: 600;
	font-size: clamp(2.5rem, 4.2vw, 3.6rem);
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: var(--ju-text);
	margin: 0;
}

.ju-gallery__rule {
	display: block;
	width: 72px;
	height: 1px;
	background: var(--ju-gold);
	margin: 1.5rem auto 1.25rem;
}

.ju-gallery__intro {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.7;
	color: var(--ju-muted);
}

.ju-gallery__stack {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	height: 100%;
	justify-content: space-between;
}

.ju-video {
	position: relative;
	padding: 8px;
	background: var(--ju-panel);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: border-color 0.3s ease;
}

.ju-video:hover,
.ju-video:focus-within {
	border-color: var(--ju-gold);
}

/* Gold corner accents on the featured video */
.ju-video--featured::before,
.ju-video--featured::after {
	content: "";
	position: absolute;
	width: 28px;
	height: 28px;
	border-color: var(--ju-gold);
	border-style: solid;
	pointer-events: none;
}

.ju-video--featured::before {
	top: -6px;
	left: -6px;
	border-width: 1px 0 0 1px;
}

.ju-video--featured::after {
	bottom: -6px;
	right: -6px;
	border-width: 0 1px 1px 0;
}

.ju-video iframe {
	border: 0;
	display: block;
	background: var(--ju-black);
}


/* =========================================================
   3. SEE OUR VIDEOS SECTION (light, editorial)
   ========================================================= */
.ju-videos {
	--ju-white: #ffffff;
	--ju-stone: #f1efea;
	--ju-gold: #b8892f;
	--ju-ink: #1a1a1a;
	--ju-muted: #6b6760;

	/* Two-tone background: white on top, stone band behind the videos */
	background: linear-gradient(to bottom, var(--ju-white) 0%, var(--ju-white) 52%, var(--ju-stone) 52%, var(--ju-stone) 100%);
	padding: 6.5rem 0 7.5rem;
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--ju-ink);
	overflow: hidden;
}

.ju-videos__head {
	margin-bottom: 4rem;
}

.ju-videos__title {
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-weight: 600;
	font-size: clamp(2.8rem, 5.5vw, 4.75rem);
	line-height: 0.95;
	letter-spacing: -0.02em;
	color: var(--ju-ink);
	margin: 0;
}

.ju-videos__rule {
	display: block;
	width: 72px;
	height: 1px;
	background: var(--ju-gold);
	margin-bottom: 1.1rem;
}

.ju-videos__intro {
	margin: 0;
	max-width: 30rem;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--ju-muted);
}

.ju-videos__card {
	position: relative;
	isolation: isolate;
	background: #000;
	box-shadow: 0 30px 50px -30px rgba(26, 26, 26, 0.55);
}

/* Offset gold outline behind each video */
.ju-videos__card::before {
	content: "";
	position: absolute;
	inset: 0;
	transform: translate(14px, 14px);
	border: 1px solid var(--ju-gold);
	z-index: -1;
	pointer-events: none;
	transition: transform 0.35s ease;
}

.ju-videos__card:hover::before,
.ju-videos__card:focus-within::before {
	transform: translate(8px, 8px);
}

.ju-videos__card iframe {
	border: 0;
	display: block;
}


/* =========================================================
   4. RESPONSIVE + REDUCED MOTION (all sections)
   ========================================================= */
@media (min-width: 992px) {
	/* Staggered rhythm: middle video sits lower */
	.ju-videos__grid > div:nth-child(2) {
		margin-top: 3.5rem;
	}
}

@media (max-width: 991.98px) {
	.ju-about { padding: 4rem 0; }
	.ju-about__title,
	.ju-about__lead,
	.ju-about__quote { max-width: none; }
	.ju-team__ctrl { opacity: 1; } /* always visible on touch screens */

	.ju-gallery { padding: 4.5rem 0; }
	.ju-gallery__head { margin-bottom: 2.5rem; }

	.ju-videos {
		padding: 4.5rem 0 5rem;
		background: linear-gradient(to bottom, var(--ju-white) 0%, var(--ju-white) 30%, var(--ju-stone) 30%, var(--ju-stone) 100%);
	}
	.ju-videos__head { margin-bottom: 2.75rem; }
}

@media (max-width: 575.98px) {
	.ju-videos__card::before { transform: translate(10px, 10px); }
}

@media (prefers-reduced-motion: reduce) {
	.ju-about *,
	.ju-team .carousel-item,
	.ju-video,
	.ju-videos__card::before {
		transition: none !important;
	}
}
