/* =========================================================================
 * TBB Academy — About Us
 * Loads on top of tbb-academy-home.css (same .tbb-ah namespace + variables).
 * Section classes are prefixed .tbb-ah-ab- so they can't collide with the
 * homepage sections when both run on one page.
 * ====================================================================== */

.tbb-ah-ab-hero,
.tbb-ah-ab-story,
.tbb-ah-ab-offer,
.tbb-ah-ab-values,
.tbb-ah-ab-cta {
	/* Colour the hero wave to match whatever section follows it. */
	--tbb-ah-ab-next: #fff;
}

/* -------------------------------------------------------------------------
 * Section headers
 * ---------------------------------------------------------------------- */

.tbb-ah-ab-head {
	text-align: center;
	max-width: 780px;
	margin: 0 auto 40px;
}

.tbb-ah-ab-head__eyebrow {
	margin: 0 0 10px;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tbb-ah-blue-600);
}

.tbb-ah .tbb-ah-ab-head__title {
	margin: 0;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -.02em;
	color: var(--tbb-ah-ink);
}

.tbb-ah-ab-head__subtitle {
	margin: 14px auto 0;
	max-width: 62ch;
	font-size: 1.02rem;
	color: var(--tbb-ah-muted);
}

/* =========================================================================
 * HERO
 * ====================================================================== */

.tbb-ah-ab-hero {
	position: relative;
	overflow: hidden;
	padding: 92px 0 130px;
	background:
		radial-gradient(120% 90% at 50% 0%, rgba(4, 12, 48, .85) 0%, rgba(4, 12, 48, 0) 60%),
		linear-gradient(180deg,
			var(--tbb-ah-navy-900) 0%,
			var(--tbb-ah-navy-800) 38%,
			var(--tbb-ah-blue-700) 78%,
			var(--tbb-ah-blue-500) 100%);
	color: #fff;
	isolation: isolate;
}

.tbb-ah-ab-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
	background-size: 26px 26px;
	opacity: .45;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
	pointer-events: none;
	z-index: -1;
}

.tbb-ah-ab-hero__glow {
	position: absolute;
	top: -22%;
	left: 50%;
	width: 780px;
	height: 780px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(63, 130, 255, .28) 0%, rgba(63, 130, 255, 0) 68%);
	pointer-events: none;
	z-index: -1;
}

.tbb-ah-ab-hero__inner {
	max-width: 900px;
	text-align: center;
}

.tbb-ah-ab-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 26px;
	padding: 8px 18px 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .09);
	border: 1px solid rgba(255, 255, 255, .22);
	font-size: 14px;
	font-weight: 600;
	color: #dce7ff;
	backdrop-filter: blur(6px);
}

.tbb-ah-ab-hero__badge-icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
	color: #8fb6ff;
}

.tbb-ah-ab-hero__badge-icon svg {
	width: 100%;
	height: 100%;
}

.tbb-ah .tbb-ah-ab-hero__title {
	margin: 0 0 18px;
	font-size: clamp(2.1rem, 4.4vw, 3.5rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.025em;
	color: #fff;
}

.tbb-ah-ab-hero__tagline {
	margin: 0 auto 34px;
	max-width: 60ch;
	font-size: clamp(1.02rem, 1.6vw, 1.25rem);
	font-weight: 500;
	color: #cfdcf7;
}

.tbb-ah-ab-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 38px;
}

.tbb-ah .tbb-ah-ab-hero__facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbb-ah .tbb-ah-ab-hero__facts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 16px;
	list-style: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .16);
	font-size: .85rem;
	font-weight: 600;
	color: #cddcf8;
	backdrop-filter: blur(6px);
}

.tbb-ah-ab-hero__fact-icon {
	display: inline-flex;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	color: #9dc0ff;
}

.tbb-ah-ab-hero__fact-icon svg {
	width: 100%;
	height: 100%;
}

.tbb-ah-ab-hero__wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	line-height: 0;
	pointer-events: none;
}

.tbb-ah-ab-hero__wave svg {
	display: block;
	width: 100%;
	height: 110px;
}

.tbb-ah-ab-hero__wave path {
	fill: var(--tbb-ah-ab-next);
}

/* =========================================================================
 * WHO WE ARE
 * ====================================================================== */

.tbb-ah-ab-story {
	padding: 76px 0 84px;
	background: #fff;
	color: var(--tbb-ah-ink);
}

.tbb-ah-ab-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.tbb-ah .tbb-ah-ab-story__title {
	margin: 0 0 20px;
	font-size: clamp(1.7rem, 3vw, 2.35rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--tbb-ah-ink);
}

.tbb-ah-ab-story__text {
	margin: 0 0 16px;
	font-size: 1.02rem;
	line-height: 1.75;
	color: var(--tbb-ah-muted);
}

.tbb-ah-ab-story__text:last-child {
	margin-bottom: 0;
}

/* --- The community panel --- */

.tbb-ah-ab-community {
	position: sticky;
	top: 24px;
	padding: 26px 24px 28px;
	border-radius: 20px;
	background: linear-gradient(160deg, #0b1c5e 0%, #1240b8 70%, #2159d8 100%);
	box-shadow: 0 22px 46px rgba(15, 35, 85, .22);
	color: #fff;
}

.tbb-ah-ab-community__title {
	margin: 0 0 18px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #a9c6ff;
}

.tbb-ah .tbb-ah-ab-community__list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbb-ah .tbb-ah-ab-community__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbb-ah .tbb-ah-ab-community__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	color: #fff;
	text-decoration: none;
	transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.tbb-ah a.tbb-ah-ab-community__item:hover {
	transform: translateX(3px);
	background: rgba(255, 255, 255, .14);
	border-color: rgba(255, 255, 255, .34);
	color: #fff;
	text-decoration: none;
}

.tbb-ah-ab-community__icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	margin-top: 2px;
	color: #a9c6ff;
}

.tbb-ah-ab-community__icon svg {
	width: 100%;
	height: 100%;
}

.tbb-ah-ab-community__copy {
	display: block;
}

.tbb-ah-ab-community__name {
	display: block;
	margin-bottom: 4px;
	font-size: .98rem;
	font-weight: 700;
	color: #fff;
}

.tbb-ah-ab-community__badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 9px;
	border-radius: 999px;
	background: rgba(52, 211, 153, .22);
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #9ae6c8;
	vertical-align: 2px;
}

.tbb-ah-ab-community__text {
	display: block;
	font-size: .86rem;
	line-height: 1.5;
	color: #c3d4f2;
}

/* =========================================================================
 * WHAT WE OFFER
 * ====================================================================== */

.tbb-ah-ab-offer {
	padding: 76px 0 84px;
	background: var(--tbb-ah-surface);
	color: var(--tbb-ah-ink);
}

.tbb-ah-ab-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.tbb-ah-ab-tile {
	padding: 26px 24px 28px;
	border-radius: var(--tbb-ah-radius);
	background: #fff;
	border: 1px solid var(--tbb-ah-line);
	box-shadow: 0 2px 10px rgba(15, 35, 85, .04);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tbb-ah-ab-tile:hover {
	transform: translateY(-4px);
	border-color: #c9dbfb;
	box-shadow: 0 18px 36px rgba(15, 35, 85, .1);
}

.tbb-ah-ab-tile__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: 12px;
	background: #e6efff;
	color: var(--tbb-ah-blue-600);
}

.tbb-ah-ab-tile__icon svg {
	width: 22px;
	height: 22px;
}

.tbb-ah .tbb-ah-ab-tile__title {
	margin: 0 0 8px;
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.3;
	color: var(--tbb-ah-ink);
}

.tbb-ah-ab-tile__text {
	margin: 0;
	font-size: .94rem;
	line-height: 1.62;
	color: var(--tbb-ah-muted);
}

/* --- Exams we cover --- */

.tbb-ah-ab-exams {
	margin-top: 48px;
	padding: 34px 30px 36px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--tbb-ah-line);
	text-align: center;
}

.tbb-ah .tbb-ah-ab-exams__title {
	margin: 0 0 8px;
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--tbb-ah-ink);
}

.tbb-ah-ab-exams__note {
	margin: 0 auto 24px;
	max-width: 58ch;
	font-size: .95rem;
	color: var(--tbb-ah-muted);
}

.tbb-ah .tbb-ah-ab-exams__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbb-ah .tbb-ah-ab-chip {
	margin: 0;
	padding: 10px 18px;
	list-style: none;
	border-radius: 14px;
	background: var(--tbb-ah-surface);
	border: 1px solid var(--tbb-ah-line);
	text-align: left;
}

.tbb-ah-ab-chip__name {
	display: block;
	font-size: .95rem;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--tbb-ah-blue-700);
}

.tbb-ah-ab-chip__text {
	display: block;
	margin-top: 2px;
	font-size: .78rem;
	color: var(--tbb-ah-muted);
}

/* =========================================================================
 * WHY STUDENTS STAY
 * ====================================================================== */

.tbb-ah-ab-values {
	padding: 76px 0 90px;
	background: #fff;
	color: var(--tbb-ah-ink);
}

.tbb-ah-ab-values__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px 34px;
}

.tbb-ah-ab-value__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: #e6efff;
	color: var(--tbb-ah-blue-600);
}

.tbb-ah-ab-value__icon svg {
	width: 20px;
	height: 20px;
}

.tbb-ah .tbb-ah-ab-value__title {
	margin: 0 0 8px;
	font-size: 1.08rem;
	font-weight: 800;
	line-height: 1.32;
	letter-spacing: -.01em;
	color: var(--tbb-ah-ink);
}

.tbb-ah-ab-value__text {
	margin: 0;
	font-size: .94rem;
	line-height: 1.62;
	color: var(--tbb-ah-muted);
}

.tbb-ah .tbb-ah-ab-statbar {
	margin: 54px 0 0;
}

/* =========================================================================
 * CLOSING CTA
 * ====================================================================== */

.tbb-ah-ab-cta {
	position: relative;
	overflow: hidden;
	padding: 76px 0 84px;
	background: linear-gradient(120deg, #071344 0%, #0b1c5e 42%, #1240b8 100%);
	color: #fff;
	isolation: isolate;
}

.tbb-ah-ab-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
	background-size: 26px 26px;
	opacity: .4;
	-webkit-mask-image: radial-gradient(90% 70% at 50% 40%, #000 0%, transparent 75%);
	mask-image: radial-gradient(90% 70% at 50% 40%, #000 0%, transparent 75%);
	pointer-events: none;
	z-index: -1;
}

.tbb-ah-ab-cta__inner {
	max-width: 820px;
	text-align: center;
}

.tbb-ah .tbb-ah-ab-cta__title {
	margin: 0 0 14px;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -.02em;
	color: #fff;
}

.tbb-ah-ab-cta__text {
	margin: 0 auto 30px;
	max-width: 60ch;
	font-size: 1.02rem;
	line-height: 1.7;
	color: #cfdcf7;
}

.tbb-ah-ab-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* =========================================================================
 * RESPONSIVE
 * ====================================================================== */

@media (max-width: 1024px) {
	.tbb-ah-ab-hero {
		padding: 72px 0 116px;
	}

	.tbb-ah-ab-story__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.tbb-ah-ab-community {
		position: static;
	}

	.tbb-ah-ab-tiles,
	.tbb-ah-ab-values__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.tbb-ah-ab-hero {
		padding: 56px 0 96px;
	}

	.tbb-ah-ab-hero__wave svg {
		height: 70px;
	}

	.tbb-ah-ab-story,
	.tbb-ah-ab-offer,
	.tbb-ah-ab-values,
	.tbb-ah-ab-cta {
		padding: 56px 0 64px;
	}

	.tbb-ah-ab-exams {
		padding: 28px 20px 30px;
	}
}

@media (max-width: 560px) {
	.tbb-ah-ab-tiles,
	.tbb-ah-ab-values__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tbb-ah-ab-hero__actions .tbb-ah-btn,
	.tbb-ah-ab-cta__actions .tbb-ah-btn {
		flex: 1 1 auto;
	}

	.tbb-ah .tbb-ah-ab-exams__list {
		justify-content: stretch;
	}

	.tbb-ah .tbb-ah-ab-chip {
		flex: 1 1 100%;
	}
}

/* =========================================================================
 * MOTION
 * ====================================================================== */

@media (prefers-reduced-motion: reduce) {
	.tbb-ah-ab-tile,
	.tbb-ah .tbb-ah-ab-community__item {
		transition: none;
	}

	.tbb-ah-ab-tile:hover,
	.tbb-ah a.tbb-ah-ab-community__item:hover {
		transform: none;
	}
}
