/* ==========================================================================
   RJAA Alumni Theme — base styles
   ========================================================================== */

:root {
	--rjaa-navy-900: #071b30;
	--rjaa-navy-800: #0a2540;
	--rjaa-navy-700: #123a63;
	--rjaa-navy-600: #1c4c7c;
	--rjaa-gold-600: #c9a227;
	--rjaa-gold-700: #8c774c;
	--rjaa-gold-100: #f4e6bd;
	--rjaa-bg-light: #f5f7fa;
	--rjaa-white: #ffffff;
	--rjaa-text: #1f2937;
	--rjaa-text-muted: #6b7280;
	--rjaa-border: #e5e7eb;
	--rjaa-radius: 14px;
	--rjaa-shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
	--rjaa-font-heading: 'Poppins', 'Segoe UI', sans-serif;
	--rjaa-font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--rjaa-font-body);
	color: var(--rjaa-text);
	background: var(--rjaa-bg-light);
	line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
	font-family: var(--rjaa-font-heading);
	color: var(--rjaa-navy-800);
	margin: 0 0 .4em;
	line-height: 1.25;
}

.rjaa-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.rjaa-gold { color: var(--rjaa-gold-600); }

/* Buttons */
.rjaa-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	border: none;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.rjaa-btn:hover { transform: translateY(-1px); opacity: .93; }
.rjaa-btn-gold {
	position: relative;
	background: linear-gradient(135deg, var(--rjaa-gold-600), var(--rjaa-gold-700));
	color: var(--rjaa-navy-900);
	overflow: hidden;
}
.rjaa-btn-gold::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
	transform: skewX(-20deg);
	transition: left .55s ease;
}
.rjaa-btn-gold:hover::after { left: 130%; }
.rjaa-btn-navy { background: var(--rjaa-navy-800); color: var(--rjaa-white); }
.rjaa-btn-sm { padding: 9px 16px; font-size: 0.82rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.rjaa-header {
	background: var(--rjaa-white);
	border-bottom: 1px solid var(--rjaa-border);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 0 0 rgba(10,37,64,0);
	transition: box-shadow .25s ease;
}
.rjaa-header.is-scrolled { box-shadow: 0 6px 20px rgba(10,37,64,.1); }
.rjaa-header-inner {
	max-width: 1320px;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 10px 24px;
	transition: padding .25s ease;
}
.rjaa-header.is-scrolled .rjaa-header-inner { padding: 6px 24px; }
.rjaa-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.rjaa-logo img { max-height: 56px; width: auto; transition: max-height .25s ease; }
.rjaa-header.is-scrolled .rjaa-logo img { max-height: 42px; }
.rjaa-logo-crest svg { display: block; }
.rjaa-logo-text { display: flex; flex-direction: column; line-height: 1.35; white-space: nowrap; }
.rjaa-logo-text strong {
	color: var(--rjaa-navy-800);
	font-family: var(--rjaa-font-body);
	font-weight: 600;
	font-size: 0.95rem;
}
.rjaa-logo-text small {
	color: var(--rjaa-navy-800);
	font-family: 'Cairo', var(--rjaa-font-body);
	font-weight: 600;
	font-size: 1rem;
	opacity: .92;
}

.rjaa-nav { flex: 1; min-width: 0; }
.rjaa-nav-menu {
	list-style: none;
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	justify-content: center;
	white-space: nowrap;
}
.rjaa-nav-menu a {
	font-family: var(--rjaa-font-body);
	font-weight: 500;
	font-size: 0.92rem;
	color: var(--rjaa-navy-800);
	padding: 6px 1px;
	border-bottom: 2px solid transparent;
	display: inline-block;
	white-space: nowrap;
	transition: border-color .2s ease;
}
.rjaa-nav-menu a:hover {
	border-bottom-color: var(--rjaa-gold-600);
}
.rjaa-nav-menu .current-menu-item > a {
	font-weight: 700;
	border-bottom-color: var(--rjaa-gold-600);
}

.rjaa-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rjaa-header-actions .rjaa-btn-gold { font-size: 0.82rem; padding: 10px 18px; }
.rjaa-header-actions .rjaa-btn-navy { font-size: 0.82rem; padding: 10px 20px; }
.rjaa-nav-toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.rjaa-hero {
	position: relative;
	background: var(--rjaa-navy-900);
	color: var(--rjaa-white);
	padding: 90px 0 70px;
	overflow: hidden;
}
.rjaa-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	animation: rjaa-hero-zoom 18s ease-in-out infinite alternate;
}
.rjaa-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(ellipse at top left, rgba(201,162,39,.12), transparent 55%),
		linear-gradient(90deg, rgba(5,14,26,1) 0%, rgba(5,14,26,1) 10%, rgba(6,20,36,.9) 40%, rgba(8,28,48,.45) 70%, rgba(10,37,64,.2) 100%);
}
.rjaa-hero-container { position: relative; z-index: 2; }
.rjaa-hero-inner { max-width: 720px; }
@keyframes rjaa-hero-zoom {
	from { transform: scale(1); }
	to { transform: scale(1.08); }
}
@keyframes rjaa-fade-up {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}
.rjaa-hero-heading {
	font-family: Georgia, 'Times New Roman', serif;
	margin-bottom: 10px;
}
.rjaa-hero-heading .rjaa-gold {
	display: block;
	font-size: clamp(2.6rem, 6vw, 4.2rem);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.1;
	margin-bottom: 4px;
	/* Metallic gold: light cream at the top fading to a richer bronze at the
	   bottom, matching the mockup — with a solid-colour fallback for browsers
	   that don't support text-clipped gradients. */
	color: var(--rjaa-gold-600);
	background: linear-gradient(180deg, #f2d98f 0%, #d9b46a 45%, #a97e42 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: rjaa-fade-up .7s ease both;
}
.rjaa-hero-heading-sub {
	display: block;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(2rem, 4.6vw, 3.1rem);
	font-weight: 700;
	color: var(--rjaa-white);
	letter-spacing: -.005em;
	line-height: 1.15;
	animation: rjaa-fade-up .7s ease .15s both;
}
.rjaa-hero-tagline {
	display: inline-block;
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-weight: 700;
	font-size: clamp(1.5rem, 3.4vw, 2.3rem);
	margin: 6px 0 20px;
	color: var(--rjaa-gold-600);
	background: linear-gradient(180deg, #f2d98f 0%, #d9b46a 45%, #a97e42 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: rjaa-fade-up .7s ease .3s both;
}
.rjaa-hero-quote {
	color: rgba(255,255,255,.85);
	max-width: 620px;
	font-size: 1.1rem;
	animation: rjaa-fade-up .7s ease .45s both;
}
.rjaa-play-btn {
	width: 58px; height: 58px;
	border-radius: 50%;
	background: rgba(255,255,255,.15);
	border: 2px solid var(--rjaa-gold-600);
	color: var(--rjaa-white);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	margin-bottom: 26px;
	animation: rjaa-fade-up .7s ease .4s both;
}
.rjaa-play-btn:hover { background: var(--rjaa-gold-600); color: var(--rjaa-navy-900); }

.rjaa-video-modal {
	position: fixed; inset: 0; background: rgba(0,0,0,.85);
	display: flex; align-items: center; justify-content: center; z-index: 999;
}
.rjaa-video-modal-inner { width: min(900px, 92vw); }
.rjaa-video-modal-embed { position: relative; padding-top: 56.25%; }
.rjaa-video-modal-embed iframe,
.rjaa-video-modal-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rjaa-video-modal-close {
	display: block; margin-left: auto; margin-bottom: 10px;
	background: none; border: none; color: var(--rjaa-white); font-size: 2rem; cursor: pointer;
}

/* ==========================================================================
   Generic sections
   ========================================================================== */
.rjaa-section { padding: 56px 0; }
.rjaa-section-alt { background: var(--rjaa-white); }
.rjaa-section-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 26px;
}
.rjaa-section-icon { font-size: 1.6rem; line-height: 1; }
.rjaa-section-head h2 { font-size: 1.5rem; }
.rjaa-row-3col .rjaa-section-icon { font-size: 1.3rem; }
.rjaa-row-3col .rjaa-section-head h2 { font-size: 1.25rem; }
.rjaa-row-3col .rjaa-section-head p { font-size: .85rem; }
.rjaa-section-head p { margin: 0; color: var(--rjaa-text-muted); font-size: .92rem; }

/* Mockup-matching multi-column rows — cards match height within a row */
.rjaa-row-3col {
	display: grid;
	grid-template-columns: 1.35fr 1fr 1fr;
	gap: 24px;
	align-items: stretch;
}
.rjaa-row-2col-a {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 24px;
	align-items: stretch;
}
.rjaa-row-2col-b {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 24px;
	align-items: stretch;
}
.rjaa-cell {
	min-width: 0;
	display: flex;
	flex-direction: column;
}
html.js .rjaa-cell {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s ease, transform .6s ease;
}
html.js .rjaa-cell.is-visible { opacity: 1; transform: none; }
.rjaa-row-3col > .rjaa-cell:nth-child(2) { transition-delay: .12s; }
.rjaa-row-3col > .rjaa-cell:nth-child(3) { transition-delay: .24s; }
.rjaa-row-2col-a > .rjaa-cell:nth-child(2),
.rjaa-row-2col-b > .rjaa-cell:nth-child(2) { transition-delay: .12s; }
.rjaa-cell .rjaa-section-head { margin-bottom: 12px; }

/* Each cell's card fills whatever height the tallest cell in the row needs. */
.rjaa-cell-stats .rjaa-stats-card,
.rjaa-cell-spotlight .rjaa-spotlight-outer-card,
.rjaa-cell-achievement .rjaa-achievement-card,
.rjaa-cell-stories .rjaa-stories-outer-card,
.rjaa-cell-community .rjaa-community-card {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.rjaa-cell-achievement .rjaa-achievement-card { justify-content: space-between; }
.rjaa-cell-spotlight .rjaa-carousel,
.rjaa-cell-stories .rjaa-carousel {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
.rjaa-cell-spotlight .rjaa-carousel-track,
.rjaa-cell-stories .rjaa-carousel-track {
	flex: 1;
	min-height: 0;
}
.rjaa-cell-spotlight .rjaa-carousel-slide,
.rjaa-cell-stories .rjaa-carousel-slide {
	display: flex;
}
.rjaa-cell-spotlight .rjaa-spotlight-card,
.rjaa-cell-stories .rjaa-story-card {
	flex: 1;
	min-width: 0;
}
.rjaa-cell-stats .rjaa-stats-card { justify-content: flex-start; }
.rjaa-cell-community .rjaa-community-card { flex: 1; }
.rjaa-cell-spotlight .rjaa-spotlight-card { display: flex; flex-direction: column; }
.rjaa-cell-spotlight .rjaa-spotlight-body { flex: 1; }

/* The spotlight photo/text card is now nested inside the unified outer card, so drop its own box styling.
   The photo bleeds full card width; header/body text stay padded. */
.rjaa-spotlight-outer-card {
	background: var(--rjaa-white);
	border-radius: var(--rjaa-radius);
	box-shadow: var(--rjaa-shadow);
	padding: 16px 0;
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
}
.rjaa-spotlight-outer-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(10,37,64,.18); }
.rjaa-spotlight-outer-card .rjaa-section-head {
	padding: 0 24px;
}
.rjaa-cell-spotlight .rjaa-spotlight-card {
	background: none;
	box-shadow: none;
	border-radius: 0;
}
.rjaa-cell-spotlight .rjaa-spotlight-body { padding: 12px 20px; }
.rjaa-cell-spotlight .rjaa-carousel-single { padding: 0; }
.rjaa-spotlight-bottom-row,
.rjaa-stories-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 24px; margin-top: 10px; }
.rjaa-cell-spotlight .rjaa-carousel-controls,
.rjaa-cell-stories .rjaa-carousel-controls { margin-top: 0; }

/* "Where Are They Now" — title, subtitle, carousel, and dots all live inside one card box. */
.rjaa-stories-outer-card {
	background: var(--rjaa-white);
	border-radius: var(--rjaa-radius);
	box-shadow: var(--rjaa-shadow);
	padding: 20px 0;
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
}
.rjaa-stories-outer-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(10,37,64,.18); }
.rjaa-stories-outer-card .rjaa-section-head {
	padding: 0 24px;
}
.rjaa-cell-stories .rjaa-story-card {
	background: none;
	box-shadow: none;
	border-radius: 0;
}
.rjaa-cell-stories .rjaa-carousel-single { padding: 0; }

.rjaa-empty-state {
	border: 1px dashed var(--rjaa-border);
	border-radius: var(--rjaa-radius);
	padding: 30px;
	text-align: center;
	color: var(--rjaa-text-muted);
	background: var(--rjaa-white);
}

.rjaa-notice { padding: 14px 20px; border-radius: 10px; margin: 20px 0; font-weight: 500; }
.rjaa-notice-success { background: #e7f6ec; color: #1a7a3d; border: 1px solid #b9e6c6; }
.rjaa-notice-error { background: #fdecea; color: #b3261e; border: 1px solid #f6c6c2; }

.rjaa-tag {
	display: inline-block;
	font-size: .75rem;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
}
.rjaa-tag-gold { background: var(--rjaa-gold-100); color: var(--rjaa-gold-700); }
.rjaa-tag-navy { background: var(--rjaa-navy-800); color: var(--rjaa-white); }

.rjaa-image-placeholder,
.rjaa-avatar-placeholder {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--rjaa-navy-700), var(--rjaa-navy-900));
	color: var(--rjaa-gold-100);
	font-family: var(--rjaa-font-heading);
	font-weight: 700;
	letter-spacing: .05em;
	width: 100%; height: 100%; min-height: 160px;
	border-radius: var(--rjaa-radius);
}
.rjaa-avatar-placeholder { min-height: 0; font-size: 1.6rem; border-radius: var(--rjaa-radius); }
.rjaa-avatar-lg { aspect-ratio: 1; font-size: 3rem; border-radius: var(--rjaa-radius); }

/* Stats section — map image bleeds full card width, text content stays padded */
.rjaa-stats-card {
	background: var(--rjaa-white);
	border-radius: var(--rjaa-radius);
	box-shadow: var(--rjaa-shadow);
	padding: 16px 0;
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
}
.rjaa-stats-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(10,37,64,.18); }
.rjaa-stats-card .rjaa-section-head,
.rjaa-stats-overflow,
.rjaa-stats-total {
	padding-left: 24px;
	padding-right: 24px;
}
.rjaa-stats-map { position: relative; }
.rjaa-stats-map img { width: 100%; display: block; }
.rjaa-stats-pin {
	position: absolute;
	transform: translate(-50%, -100%);
	display: flex;
	align-items: center;
	gap: 4px;
	background: var(--rjaa-navy-800);
	color: var(--rjaa-white);
	border-radius: 999px;
	padding: 4px 9px 4px 6px;
	font-size: .62rem;
	white-space: nowrap;
	box-shadow: 0 3px 10px rgba(10,37,64,.25);
	cursor: pointer;
	transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, opacity .25s ease, padding .25s ease, gap .25s ease;
}
.rjaa-stats-pin.is-active {
	transform: translate(-50%, -130%) scale(1.3);
	z-index: 3;
	box-shadow: 0 10px 24px rgba(10,37,64,.4);
}
.rjaa-stats-pin strong,
.rjaa-stats-pin-count {
	max-width: 160px;
	overflow: hidden;
	transition: max-width .25s ease, opacity .2s ease;
}
.rjaa-stats-map.is-hovering .rjaa-stats-pin:not(.is-active) {
	opacity: .6;
	padding: 4px;
	gap: 0;
	box-shadow: none;
}
.rjaa-stats-map.is-hovering .rjaa-stats-pin:not(.is-active) strong,
.rjaa-stats-map.is-hovering .rjaa-stats-pin:not(.is-active) .rjaa-stats-pin-count {
	max-width: 0;
	opacity: 0;
}
html.js .rjaa-cell-stats .rjaa-stats-pin { opacity: 0; }
html.js .rjaa-cell-stats.is-visible .rjaa-stats-pin {
	opacity: 1;
	animation: rjaa-pin-pop .45s ease both;
}
html.js .rjaa-cell-stats.is-visible .rjaa-stats-pin:nth-of-type(2) { animation-delay: .08s; }
html.js .rjaa-cell-stats.is-visible .rjaa-stats-pin:nth-of-type(3) { animation-delay: .16s; }
html.js .rjaa-cell-stats.is-visible .rjaa-stats-pin:nth-of-type(4) { animation-delay: .24s; }
html.js .rjaa-cell-stats.is-visible .rjaa-stats-pin:nth-of-type(5) { animation-delay: .32s; }
html.js .rjaa-cell-stats.is-visible .rjaa-stats-pin:nth-of-type(6) { animation-delay: .4s; }
@keyframes rjaa-pin-pop {
	from { opacity: 0; transform: translate(-50%, -100%) scale(0); }
	to { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}
.rjaa-stats-pin-icon { font-size: .8rem; line-height: 1; }
.rjaa-stats-pin strong { font-weight: 600; }
.rjaa-stats-pin-count { color: var(--rjaa-gold-600); font-weight: 700; }
.rjaa-stats-overflow { margin: 14px 0 0; text-align: center; color: var(--rjaa-text-muted); font-size: .82rem; }
.rjaa-stats-total {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	margin-top: 0;
	font-weight: 700;
	color: var(--rjaa-navy-800);
	font-size: 1.5rem;
}
.rjaa-stats-total-icon { flex-shrink: 0; color: var(--rjaa-navy-800); width: 38px; height: 38px; }

/* Carousels */
.rjaa-carousel { position: relative; }
.rjaa-carousel-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 6px;
	scrollbar-width: none;
}
.rjaa-carousel-track::-webkit-scrollbar { display: none; }
.rjaa-carousel-slide { scroll-snap-align: start; flex: 0 0 320px; }
.rjaa-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.rjaa-carousel-dots { display: flex; justify-content: center; gap: 8px; }
.rjaa-carousel-dots button {
	width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--rjaa-border); cursor: pointer; padding: 0;
	transition: background .25s ease, width .25s ease, border-radius .25s ease;
}
.rjaa-carousel-dots button.is-active { background: var(--rjaa-gold-600); width: 22px; border-radius: 5px; }
.rjaa-carousel-playpause {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid var(--rjaa-border);
	background: var(--rjaa-white);
	color: var(--rjaa-navy-800);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background .2s ease, color .2s ease;
}
.rjaa-carousel-playpause:hover { background: var(--rjaa-gold-600); color: var(--rjaa-navy-900); }

/* Single-card carousels (Spotlight / Where Are They Now) with prev/next arrows, matching mockup */
.rjaa-carousel-single { padding: 0 6px; }
.rjaa-carousel-single .rjaa-carousel-slide { flex: 0 0 100%; }
.rjaa-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid var(--rjaa-border);
	background: var(--rjaa-white);
	color: var(--rjaa-navy-800);
	font-size: .75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--rjaa-shadow);
}
.rjaa-carousel-prev { left: -14px; }
.rjaa-carousel-next { right: -14px; }

/* Spotlight: prev/next sit on the same row as the dot navigator (not overlaid
   on the photo), pinned to the outer edges, styled to match the gold dots. */
.rjaa-cell-spotlight .rjaa-carousel-arrow,
.rjaa-cell-stories .rjaa-carousel-arrow {
	position: static;
	transform: none;
	flex-shrink: 0;
	width: auto;
	height: auto;
	background: none;
	border: none;
	box-shadow: none;
	color: var(--rjaa-gold-600);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: color .2s ease, transform .2s ease;
}
.rjaa-cell-spotlight .rjaa-carousel-arrow,
.rjaa-cell-stories .rjaa-carousel-arrow { font-size: 1.7rem; }
.rjaa-cell-spotlight .rjaa-carousel-arrow:hover,
.rjaa-cell-stories .rjaa-carousel-arrow:hover { color: var(--rjaa-gold-700); transform: scale(1.15); }

.rjaa-spotlight-card, .rjaa-story-card {
	background: var(--rjaa-white);
	border-radius: var(--rjaa-radius);
	box-shadow: var(--rjaa-shadow);
	overflow: hidden;
	height: 100%;
	transition: transform .3s ease, box-shadow .3s ease;
}
.rjaa-spotlight-photo, .rjaa-story-photo { aspect-ratio: 16/9; overflow: hidden; }
.rjaa-spotlight-photo img, .rjaa-story-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.rjaa-spotlight-outer-card:hover .rjaa-spotlight-photo img,
.rjaa-stories-outer-card:hover .rjaa-story-photo img { transform: scale(1.06); }
.rjaa-spotlight-body, .rjaa-story-body { padding: 18px; }
.rjaa-spotlight-title { font-weight: 600; color: var(--rjaa-navy-700); margin: 2px 0; }
.rjaa-spotlight-role, .rjaa-story-role { color: var(--rjaa-text-muted); font-size: .88rem; margin: 0 0 10px; }
.rjaa-story-meta { color: var(--rjaa-text-muted); font-size: .8rem; margin: 0; }
.rjaa-story-body blockquote { margin: 10px 0 0; font-style: italic; color: var(--rjaa-text); border-left: 3px solid var(--rjaa-gold-600); padding-left: 12px; }

/* "Where Are They Now" cards read photo-left / text-right, like the mockup */
.rjaa-story-card {
	display: flex;
	flex-direction: row;
}
.rjaa-story-photo { flex: 0 0 38%; aspect-ratio: auto; }
.rjaa-story-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }

/* Achievement CTA */
.rjaa-achievement-card {
	position: relative;
	/* Flat colour, matching exactly what the photo fades to at its own top/bottom
	   edges (see .rjaa-achievement-photo::before) — a gradient here would create a
	   visible seam wherever its colour didn't line up with the photo's fade. */
	background: var(--rjaa-navy-900);
	color: var(--rjaa-white);
	border-radius: var(--rjaa-radius);
	padding: 18px;
	overflow: hidden;
	isolation: isolate;
	transition: box-shadow .3s ease;
}
.rjaa-achievement-card:hover { box-shadow: 0 16px 34px rgba(10,37,64,.35); }
/* The photo sits in its own flex slot between the header and the footer text,
   so it always fills exactly the space between them — never overlapping either,
   regardless of how long that text runs. It fades into the card's own navy
   colour at its own top and bottom edges, so there's never a visible seam. */
.rjaa-achievement-photo {
	position: relative;
	flex: 1;
	min-height: 60px;
	margin: 10px -18px;
	overflow: hidden;
	background: var(--rjaa-navy-900);
	contain: paint;
}
.rjaa-achievement-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	display: block;
	transform: scale(1.01);
	transition: transform .35s ease;
}
.rjaa-achievement-card:hover .rjaa-achievement-photo img { transform: scale(1.07); }
.rjaa-achievement-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg,
		rgba(7,27,48,1) 0%,
		rgba(7,27,48,.85) 15%,
		rgba(7,27,48,.4) 32%,
		rgba(7,27,48,.4) 68%,
		rgba(7,27,48,.85) 85%,
		rgba(7,27,48,1) 100%);
	opacity: 1;
	transition: opacity .18s ease .1s;
}
.rjaa-achievement-card:hover .rjaa-achievement-photo::before { opacity: 0; transition: opacity .18s ease; }

.rjaa-achievement-card h2, .rjaa-achievement-card p { color: var(--rjaa-white); }
.rjaa-achievement-card .rjaa-section-head h2,
.rjaa-achievement-card .rjaa-section-head p {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.rjaa-achievement-text { color: rgba(255,255,255,.9); margin-bottom: 16px; font-size: .88rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* Community */
.rjaa-community-card {
	background: var(--rjaa-white);
	border-radius: var(--rjaa-radius);
	box-shadow: var(--rjaa-shadow);
	display: grid;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
}
.rjaa-community-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(10,37,64,.18); }
.rjaa-community-card .rjaa-section-head { grid-column: 1 / -1; padding: 24px 24px 0; }
.rjaa-community-image { min-height: 260px; overflow: hidden; }
.rjaa-community-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.rjaa-community-card:hover .rjaa-community-image img { transform: scale(1.06); }
.rjaa-community-text { padding: 34px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }

/* News */
.rjaa-news-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.rjaa-news-feature-image { border-radius: var(--rjaa-radius); overflow: hidden; aspect-ratio: 16/9; }
.rjaa-news-feature-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.rjaa-news-feature:hover .rjaa-news-feature-image img { transform: scale(1.06); }
.rjaa-news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.rjaa-news-list li { border-bottom: 1px solid var(--rjaa-border); padding-bottom: 12px; }
.rjaa-news-list time { display: block; color: var(--rjaa-gold-700); font-size: .78rem; font-weight: 600; margin-bottom: 4px; }
.rjaa-news-list a { font-weight: 600; color: var(--rjaa-navy-800); transition: color .2s ease; }
.rjaa-news-list a:hover { color: var(--rjaa-gold-700); text-decoration: underline; }

/* Events */
.rjaa-events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rjaa-event-card {
	background: var(--rjaa-white);
	border-radius: var(--rjaa-radius);
	box-shadow: var(--rjaa-shadow);
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
}
.rjaa-event-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(10,37,64,.18); }
.rjaa-event-image { aspect-ratio: 16/9; overflow: hidden; }
.rjaa-event-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.rjaa-event-card:hover .rjaa-event-image img { transform: scale(1.06); }
.rjaa-event-body { padding: 16px; }
.rjaa-event-meta { color: var(--rjaa-text-muted); font-size: .82rem; }

/* Footer */
.rjaa-footer { position: relative; background: var(--rjaa-navy-900); color: rgba(255,255,255,.85); padding-top: 40px; overflow: hidden; }
.rjaa-footer-graphic {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 200px;
	object-fit: contain;
	object-position: bottom;
	pointer-events: none;
	z-index: 0;
}
html.js .rjaa-footer-graphic {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .8s ease, transform .8s ease;
}
html.js .rjaa-footer-graphic.is-visible { opacity: 1; transform: none; }
.rjaa-footer-inner,
.rjaa-footer-bottom { position: relative; z-index: 1; }
.rjaa-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 140px; }
.rjaa-footer .rjaa-logo-text strong { color: var(--rjaa-white); }
.rjaa-footer .rjaa-logo-text small { color: rgba(255,255,255,.6); }
.rjaa-footer-menu { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; flex-wrap: wrap; }
.rjaa-footer-menu a { color: rgba(255,255,255,.8); font-size: .9rem; }
.rjaa-footer-menu a:hover { color: var(--rjaa-gold-600); }
.rjaa-footer-social { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rjaa-footer-social-label { font-size: .8rem; color: rgba(255,255,255,.6); }
.rjaa-social-icons { display: flex; gap: 12px; }
.rjaa-social-icons a { color: rgba(255,255,255,.8); }
.rjaa-social-icons a:hover { color: var(--rjaa-gold-600); }
.rjaa-footer-email { color: var(--rjaa-gold-100); font-size: .88rem; }
.rjaa-footer-bottom { padding: 18px 0; margin-top: 10px; }
.rjaa-footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .8rem; }
.rjaa-footer-tagline { font-style: italic; color: var(--rjaa-gold-600); }

/* Pages / posts */
.rjaa-page-header {
	position: relative;
	background: var(--rjaa-navy-900);
	color: var(--rjaa-white);
	padding: 70px 0;
	overflow: hidden;
}
.rjaa-page-header-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	animation: rjaa-hero-zoom 18s ease-in-out infinite alternate;
}
.rjaa-page-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(5,14,26,.55) 0%, rgba(6,20,36,.82) 100%);
}
.rjaa-page-header > .rjaa-container { position: relative; z-index: 2; }
.rjaa-page-header h1 {
	color: var(--rjaa-white);
	margin: 0;
	text-shadow: 0 2px 10px rgba(0,0,0,.5);
	animation: rjaa-fade-up .6s ease both;
}
.rjaa-page-header .rjaa-post-meta {
	color: rgba(255,255,255,.75);
	margin-top: 8px;
	animation: rjaa-fade-up .6s ease .12s both;
}
.rjaa-page-content { padding: 40px 0; }
.rjaa-subheading { font-size: 1.2rem; margin-top: 10px; }
.rjaa-subheading-spaced { margin-top: 40px; }
.rjaa-post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.rjaa-post-card { background: var(--rjaa-white); border-radius: var(--rjaa-radius); box-shadow: var(--rjaa-shadow); overflow: hidden; }
.rjaa-post-card-image { aspect-ratio: 16/9; display: block; overflow: hidden; }
.rjaa-post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.rjaa-post-card-body { padding: 18px; }
.rjaa-post-meta { color: var(--rjaa-text-muted); font-size: .8rem; }
.rjaa-single-content { max-width: 760px; }
.rjaa-single-image { border-radius: var(--rjaa-radius); overflow: hidden; margin-bottom: 24px; }

/* Alumni single profile */
.rjaa-profile-page { display: grid; grid-template-columns: 280px 1fr; gap: 34px; }
.rjaa-profile-photo img, .rjaa-profile-photo .rjaa-avatar-lg { border-radius: var(--rjaa-radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.rjaa-profile-year, .rjaa-profile-role { color: var(--rjaa-text-muted); margin: 2px 0; }
.rjaa-profile-bio { margin-top: 18px; max-width: 620px; }

/* Forms */
.rjaa-form { max-width: 720px; background: var(--rjaa-white); border-radius: var(--rjaa-radius); box-shadow: var(--rjaa-shadow); padding: 30px; }
.rjaa-form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.rjaa-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rjaa-form label { font-weight: 600; font-size: .88rem; color: var(--rjaa-navy-800); }
.rjaa-form input[type="text"],
.rjaa-form input[type="email"],
.rjaa-form input[type="url"],
.rjaa-form input[type="number"],
.rjaa-form input[type="file"],
.rjaa-form select,
.rjaa-form textarea {
	padding: 10px 14px;
	border: 1px solid var(--rjaa-border);
	border-radius: 8px;
	font-family: inherit;
	font-size: .95rem;
}
.rjaa-form-checkbox label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.rjaa-form-notice { background: var(--rjaa-white); border-radius: var(--rjaa-radius); padding: 24px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.rjaa-stats-card,
	.rjaa-community-card,
	.rjaa-profile-page,
	.rjaa-news-layout { grid-template-columns: 1fr; }
	.rjaa-events-grid,
	.rjaa-post-list { grid-template-columns: 1fr; }
	.rjaa-form-grid { grid-template-columns: 1fr; }
	.rjaa-row-3col,
	.rjaa-row-2col-a,
	.rjaa-row-2col-b { grid-template-columns: 1fr; gap: 40px; }
	.rjaa-hero-kicker {
		position: static;
		display: block;
		text-align: left;
		margin-bottom: 14px;
		white-space: normal;
	}
	.rjaa-nav { display: none; }
	.rjaa-nav.is-open {
		display: block; position: absolute; top: 100%; left: 0; right: 0;
		background: var(--rjaa-white); border-bottom: 1px solid var(--rjaa-border); padding: 10px 0;
	}
	.rjaa-nav.is-open .rjaa-nav-menu { flex-direction: column; gap: 0; padding: 0 24px; }
	.rjaa-nav.is-open .rjaa-nav-menu li { padding: 10px 0; border-bottom: 1px solid var(--rjaa-border); }
	.rjaa-nav-toggle {
		display: flex; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px;
	}
	.rjaa-nav-toggle span { width: 22px; height: 2px; background: var(--rjaa-navy-800); }
	.rjaa-header-actions .rjaa-btn-sm:first-child { display: none; }
}

@media (max-width: 600px) {
	.rjaa-header-inner { flex-wrap: wrap; }
	.rjaa-header-actions { margin-left: auto; }
	.rjaa-hero { padding: 60px 0 40px; }
	.rjaa-carousel-slide { flex-basis: 82vw; }
	.rjaa-story-card { flex-direction: column; }
	.rjaa-story-photo { flex-basis: auto; aspect-ratio: 4/3; }
	.rjaa-achievement-card { padding: 22px; }
	.rjaa-carousel-arrow { display: none; }
	.rjaa-footer-inner { padding-bottom: 50px; }
	.rjaa-footer-graphic { height: 90px; }
	html.js .rjaa-footer-graphic.is-visible { opacity: .6; }
	html:not(.js) .rjaa-footer-graphic { opacity: .6; }
	.rjaa-footer-bottom { padding-top: 55px; }
}

/* ==========================================================================
   Reduced motion — disable decorative animation, keep content instantly visible
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.rjaa-hero-overlay,
	.rjaa-page-header-bg { animation: none; }
	.rjaa-hero-heading .rjaa-gold,
	.rjaa-hero-heading-sub,
	.rjaa-hero-tagline,
	.rjaa-hero-quote,
	.rjaa-play-btn,
	.rjaa-page-header h1,
	.rjaa-page-header .rjaa-post-meta {
		animation: none;
		opacity: 1;
		transform: none;
	}
	html.js .rjaa-cell,
	html.js .rjaa-footer-graphic {
		transition: none;
		animation: none;
		opacity: 1;
		transform: none;
	}
	html.js .rjaa-cell-stats .rjaa-stats-pin {
		transition: none;
		animation: none;
		opacity: 1;
		transform: translate(-50%, -100%);
	}
	.rjaa-stats-pin strong,
	.rjaa-stats-pin-count { transition: none; }
	.rjaa-stats-map.is-hovering .rjaa-stats-pin:not(.is-active) { opacity: 1; }
}
