/* Alumni Success Stories — premium Life at BIMS page (DSA design language) */

:root {
	--als-green: #1a5c38;
	--als-green-dark: #0f3d25;
	--als-green-light: #2d8a55;
	--als-gold: #c9a227;
	--als-text: #1e293b;
	--als-text-muted: #64748b;
	--als-bg: #f8faf9;
	--als-card: #ffffff;
	--als-border: rgba(26, 92, 56, 0.12);
	--als-shadow: 0 4px 24px rgba(15, 61, 37, 0.08);
	--als-shadow-lg: 0 20px 60px rgba(15, 61, 37, 0.14);
	--als-radius: 16px;
	--als-radius-sm: 10px;
	--als-font: 'Nunito', 'Segoe UI', sans-serif;
}

.als-page {
	font-family: var(--als-font);
	font-size: 18px;
	color: var(--als-text);
	background: #ffffff;
	overflow-x: hidden;
}

.als-page *,
.als-page *::before,
.als-page *::after {
	box-sizing: border-box;
}

.als-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

.als-eyebrow {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--als-gold);
	margin-bottom: 12px;
}

.als-heading {
	font-size: clamp(34px, 4.5vw, 48px);
	font-weight: 700;
	color: var(--als-green-dark);
	margin: 0 0 16px;
	line-height: 1.2;
}

.als-subheading {
	font-size: 19px;
	color: var(--als-text-muted);
	line-height: 1.7;
	max-width: 680px;
	margin: 0 auto 40px;
	text-align: center;
}

.als-section-header {
	text-align: center;
	margin-bottom: 48px;
}

.als-section {
	position: relative;
	padding: 72px 0;
	isolation: isolate;
}

.als-section--cream {
	background: linear-gradient(180deg, #ffffff 0%, #f3f8f5 45%, #ffffff 100%);
}

.als-section--cream::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 12% 18%, rgba(26, 92, 56, 0.06) 0%, transparent 42%),
		radial-gradient(circle at 88% 82%, rgba(201, 162, 39, 0.07) 0%, transparent 38%);
	pointer-events: none;
	z-index: -1;
}

/* Buttons */
.als-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 50px;
	text-decoration: none !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
	border: 2px solid transparent;
	cursor: pointer;
}

.als-btn--primary {
	background: var(--als-gold);
	color: var(--als-green-dark) !important;
	box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}

.als-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(201, 162, 39, 0.45);
	color: var(--als-green-dark) !important;
}

.als-btn--ghost {
	background: rgba(255, 255, 255, 0.12);
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(8px);
}

.als-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.22);
	transform: translateY(-2px);
	color: #fff !important;
}

/* Hero */
.als-hero {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: center;
	padding: 100px 0 60px;
	overflow: hidden;
}

.als-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.05);
	transition: transform 8s ease-out;
}

.als-hero.is-loaded .als-hero__bg {
	transform: scale(1);
}

.als-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(15, 61, 37, 0.92) 0%, rgba(26, 92, 56, 0.78) 45%, rgba(15, 61, 37, 0.85) 100%);
}

.als-hero__orbs {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	overflow: hidden;
}

.als-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
	opacity: 0.35;
	animation: als-float 9s ease-in-out infinite;
}

.als-orb--1 {
	width: 180px;
	height: 180px;
	top: 18%;
	right: 12%;
	background: radial-gradient(circle, rgba(201, 162, 39, 0.55), transparent 70%);
}

.als-orb--2 {
	width: 120px;
	height: 120px;
	bottom: 22%;
	left: 10%;
	background: radial-gradient(circle, rgba(45, 138, 85, 0.5), transparent 70%);
	animation-delay: -3s;
}

.als-orb--3 {
	width: 90px;
	height: 90px;
	top: 58%;
	right: 28%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
	animation-delay: -5s;
}

@keyframes als-float {
	0%, 100% { transform: translateY(0) translateX(0); }
	50% { transform: translateY(-18px) translateX(10px); }
}

.als-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
}

.als-hero__inner {
	max-width: 760px;
}

.als-hero__title {
	font-size: clamp(32px, 5vw, 54px);
	font-weight: 800;
	color: #fff;
	margin: 0 0 18px;
	line-height: 1.15;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.als-hero__desc {
	font-size: 18px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.92);
	margin: 0 0 32px;
	max-width: 620px;
}

.als-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 48px;
}

.als-hero__actions {
	margin-bottom: 0;
}

/* Impact stats boxes */
.als-stats-grid,
.als-hero-stats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.als-stat-box {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--als-border);
	border-radius: var(--als-radius);
	box-shadow: var(--als-shadow);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 24px 14px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.als-stat-box:hover {
	transform: translateY(-6px);
	box-shadow: var(--als-shadow-lg);
	border-color: var(--als-green-light);
}

.als-stat-box__value {
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	color: var(--als-green);
	line-height: 1.1;
}

.als-stat-box__label {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--als-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.35;
}

.als-hero-stats {
	margin-top: 28px;
}

.als-hero-stats .als-stat-box {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: none;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.als-hero-stats .als-stat-box:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.3);
	box-shadow: none;
}

.als-hero-stats .als-stat-box__value {
	color: #fff;
}

.als-hero-stats .als-stat-box__label {
	color: rgba(255, 255, 255, 0.86);
}

/* Alternating timeline stories */
.als-timeline {
	position: relative;
	display: grid;
	gap: 42px;
	padding: 12px 0 8px;
}

.als-timeline__line {
	position: absolute;
	top: 24px;
	bottom: 24px;
	left: 50%;
	width: 3px;
	transform: translateX(-50%);
	border-radius: 999px;
	background: linear-gradient(180deg, var(--als-green-light), var(--als-gold), var(--als-green-light));
	opacity: 0.35;
	pointer-events: none;
}

.als-row {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: stretch;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--als-border);
	border-radius: var(--als-radius);
	overflow: hidden;
	box-shadow: var(--als-shadow);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	cursor: pointer;
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.als-row:hover,
.als-row:focus-visible {
	transform: translateY(-6px);
	box-shadow: var(--als-shadow-lg);
	border-color: var(--als-green-light);
	outline: none;
}

.als-row--reverse .als-row__media {
	order: 2;
}

.als-row--reverse .als-row__content {
	order: 1;
}

.als-row__dot {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border: 4px solid var(--als-green);
	box-shadow: 0 0 0 6px rgba(26, 92, 56, 0.12);
	pointer-events: none;
}

.als-row__media {
	position: relative;
	overflow: hidden;
	background: #e8f2ec;
	aspect-ratio: 4 / 5;
	align-self: stretch;
}

.als-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
	display: block;
}

.als-row__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(15, 61, 37, 0.88);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
}

.als-row__content {
	padding: 36px 34px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.als-row__index {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.14em;
	color: #8db79f;
}

.als-row__name {
	margin: 0 0 8px;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	color: var(--als-green-dark);
	line-height: 1.2;
}

.als-row__batch {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 700;
	color: var(--als-green);
}

.als-row__preview {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.75;
	color: var(--als-text-muted);
	white-space: pre-line;
}

.als-row__more {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	align-self: flex-start;
	color: var(--als-green);
	font-size: 15px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	transition: color 0.2s ease, gap 0.2s ease;
}

.als-row:hover .als-row__more,
.als-row__more:hover {
	color: var(--als-green-dark);
	gap: 12px;
}

.als-empty {
	text-align: center;
	padding: 48px 24px;
	border-radius: var(--als-radius);
	background: rgba(255, 255, 255, 0.9);
	border: 1px dashed var(--als-border);
	color: var(--als-text-muted);
}

/* Modal */
.als-modal[hidden] {
	display: none !important;
}

.als-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.als-modal.is-open {
	display: flex;
}

.als-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 28, 18, 0.72);
	backdrop-filter: blur(6px);
}

.als-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	height: min(88vh, 820px);
	max-height: min(88vh, 820px);
	overflow: hidden;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: stretch;
	transform: translateY(18px) scale(0.98);
	opacity: 0;
	transition: transform 0.32s ease, opacity 0.32s ease;
}

.als-modal.is-open .als-modal__dialog {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.als-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	background: rgba(15, 61, 37, 0.92);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, background 0.2s ease;
}

.als-modal__close:hover {
	transform: scale(1.06);
	background: var(--als-green);
}

.als-modal__media {
	flex: 0 0 min(340px, 38%);
	min-width: 0;
	min-height: 0;
	background: #e8f2ec;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow: hidden;
}

.als-modal__media img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center center;
	display: block;
}

.als-modal__body {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 36px 32px 40px;
}

.als-modal__title {
	margin: 0 0 8px;
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 800;
	color: var(--als-green-dark);
	line-height: 1.2;
}

.als-modal__batch {
	margin: 0 0 20px;
	font-size: 15px;
	font-weight: 700;
	color: var(--als-green);
}

.als-modal__story {
	font-size: 16px;
	line-height: 1.8;
	color: var(--als-text-muted);
	white-space: pre-line;
}

/* CTA */
.als-cta {
	position: relative;
	padding: 100px 0;
	text-align: center;
	overflow: hidden;
}

.als-cta--brand {
	background: linear-gradient(135deg, #0a3c26 0%, #009355 55%, #0a2820 100%);
}

.als-cta__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.als-cta__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(15, 61, 37, 0.9) 0%, rgba(26, 92, 56, 0.85) 100%);
}

.als-cta__content {
	position: relative;
	z-index: 2;
	max-width: 680px;
	margin: 0 auto;
}

.als-cta__title {
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	color: #fff;
	margin: 0 0 16px;
}

.als-cta__text {
	font-size: 17px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 32px;
}

.als-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

/* Reveal */
.als-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.als-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.als-reveal--delay-1 { transition-delay: 0.1s; }
.als-reveal--delay-2 { transition-delay: 0.2s; }
.als-reveal--delay-3 { transition-delay: 0.3s; }

body.als-modal-open {
	overflow: hidden;
}

/* Responsive */
@media (max-width: 1100px) {
	.als-stats-grid,
	.als-hero-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.als-timeline__line,
	.als-row__dot {
		display: none;
	}

	.als-row,
	.als-row--reverse {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.als-row--reverse .als-row__media,
	.als-row--reverse .als-row__content {
		order: initial;
	}

	.als-row__media {
		aspect-ratio: 16 / 11;
		max-height: 320px;
	}

	.als-row__content {
		padding: 24px 20px 28px;
	}

	.als-modal__dialog {
		flex-direction: column;
		height: min(92dvh, 820px);
		max-height: min(92dvh, 820px);
	}

	.als-modal__media {
		flex: 0 0 auto;
		width: 100%;
		max-height: 220px;
		padding: 14px;
	}

	.als-modal__media img {
		max-height: 192px;
	}

	.als-modal__body {
		flex: 1 1 auto;
		padding: 20px 18px 28px;
	}
}

@media (max-width: 720px) {
	.als-stats-grid,
	.als-hero-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.als-section {
		padding: 52px 0;
	}

	.als-hero-stats {
		margin-top: 20px;
	}

	.als-timeline {
		gap: 22px;
	}

	.als-hero {
		min-height: auto;
		padding: 90px 0 48px;
	}

	.als-hero__actions,
	.als-cta__actions {
		flex-direction: column;
	}

	.als-btn {
		justify-content: center;
		width: 100%;
	}

	.als-row__name {
		font-size: 24px;
	}
}

@media (max-width: 420px) {
	.als-stats-grid,
	.als-hero-stats {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.als-reveal,
	.als-row,
	.als-row__media img,
	.als-modal__dialog,
	.als-orb {
		transition: none !important;
		animation: none !important;
	}
}
