/* =========================================================================
 * TBB Academy Home
 * Everything is namespaced under .tbb-ah so it can't leak into the theme.
 * ====================================================================== */

.tbb-ah {
	--tbb-ah-navy-900: #071344;
	--tbb-ah-navy-800: #0b1c5e;
	--tbb-ah-blue-700: #1240b8;
	--tbb-ah-blue-600: #1e5fd8;
	--tbb-ah-blue-500: #2f7ef0;
	--tbb-ah-ink: #0f172a;
	--tbb-ah-muted: #5b6b8c;
	--tbb-ah-line: #e3ebf8;
	--tbb-ah-surface: #f2f7ff;
	--tbb-ah-radius: 16px;
	--tbb-ah-max: 1240px;

	box-sizing: border-box;
	font-family: inherit;
	line-height: 1.5;
}

.tbb-ah *,
.tbb-ah *::before,
.tbb-ah *::after {
	box-sizing: border-box;
}

.tbb-ah__inner {
	width: 100%;
	max-width: var(--tbb-ah-max);
	margin: 0 auto;
	padding: 0 24px;
}

/* -------------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------------- */

.tbb-ah .tbb-ah-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tbb-ah .tbb-ah-btn:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.tbb-ah .tbb-ah-btn:focus-visible {
	outline: 3px solid rgba(255, 255, 255, .65);
	outline-offset: 2px;
}

.tbb-ah .tbb-ah-btn__icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

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

/* White pill on the hero */
.tbb-ah .tbb-ah-btn--solid {
	background: #fff;
	color: var(--tbb-ah-blue-700);
	box-shadow: 0 10px 24px rgba(3, 12, 45, .28);
}

.tbb-ah .tbb-ah-btn--solid:hover {
	background: #fff;
	color: var(--tbb-ah-navy-800);
	box-shadow: 0 14px 30px rgba(3, 12, 45, .34);
}

/* Translucent pill on the hero */
.tbb-ah .tbb-ah-btn--ghost {
	background: rgba(255, 255, 255, .10);
	border-color: rgba(255, 255, 255, .28);
	color: #fff;
	backdrop-filter: blur(6px);
}

.tbb-ah .tbb-ah-btn--ghost:hover {
	background: rgba(255, 255, 255, .18);
	border-color: rgba(255, 255, 255, .5);
	color: #fff;
}

/* Blue pill on light sections */
.tbb-ah .tbb-ah-btn--primary {
	background: var(--tbb-ah-blue-600);
	color: #fff;
	box-shadow: 0 8px 18px rgba(30, 95, 216, .28);
}

.tbb-ah .tbb-ah-btn--primary:hover {
	background: var(--tbb-ah-blue-700);
	color: #fff;
	box-shadow: 0 12px 24px rgba(18, 64, 184, .32);
}

.tbb-ah .tbb-ah-btn--primary:focus-visible {
	outline-color: rgba(30, 95, 216, .5);
}

.tbb-ah .tbb-ah-btn--lg {
	padding: 15px 34px;
	font-size: 16px;
}

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

.tbb-ah-hero {
	position: relative;
	overflow: hidden;
	padding: 96px 0 150px;
	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) 32%,
			var(--tbb-ah-blue-700) 66%,
			var(--tbb-ah-blue-500) 100%);
	color: #fff;
	isolation: isolate;
}

/* Faint dot grid, matches the reference art. */
.tbb-ah-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-hero__glow {
	position: absolute;
	top: -18%;
	right: -6%;
	width: 640px;
	height: 640px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(63, 130, 255, .32) 0%, rgba(63, 130, 255, 0) 68%);
	pointer-events: none;
	z-index: -1;
}

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

/* --- Copy column --- */

.tbb-ah-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;
	letter-spacing: .01em;
	color: #dce7ff;
	backdrop-filter: blur(6px);
}

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

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

.tbb-ah .tbb-ah-hero__title {
	margin: 0 0 18px;
	font-size: clamp(2.4rem, 5.2vw, 4.25rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.025em;
	color: #fff;
}

.tbb-ah-hero__tagline {
	margin: 0 0 34px;
	max-width: 34ch;
	font-size: clamp(1.05rem, 1.9vw, 1.45rem);
	font-weight: 500;
	color: #cfdcf7;
}

.tbb-ah-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 40px;
}

.tbb-ah .tbb-ah-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.tbb-ah-hero__stat-value {
	display: block;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
}

.tbb-ah-hero__stat-label {
	display: block;
	margin-top: 2px;
	font-size: .875rem;
	color: #b9caea;
}

/* --- Card column --- */

.tbb-ah-hero__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.tbb-ah .tbb-ah-card {
	display: block;
	padding: 20px;
	border-radius: var(--tbb-ah-radius);
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .16);
	color: #fff;
	text-decoration: none;
	backdrop-filter: blur(10px);
	transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.tbb-ah a.tbb-ah-card:hover {
	transform: translateY(-4px);
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .32);
	color: #fff;
	text-decoration: none;
}

.tbb-ah-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.tbb-ah-card__icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	color: #a9c6ff;
}

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

.tbb-ah-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}

.tbb-ah-card__badge {
	margin-left: auto;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: .7rem;
	font-weight: 700;
	white-space: nowrap;
}

.tbb-ah-card__badge--blue   { background: rgba(59, 130, 246, .22); color: #a9c9ff; }
.tbb-ah-card__badge--violet { background: rgba(139, 92, 246, .22); color: #cbb6ff; }
.tbb-ah-card__badge--green  { background: rgba(16, 185, 129, .22); color: #9ae6c8; }
.tbb-ah-card__badge--amber  { background: rgba(245, 158, 11, .22); color: #f8cd86; }

.tbb-ah .tbb-ah-card__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.tbb-ah .tbb-ah-card__list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .85rem;
	line-height: 1.45;
	color: #c9d8f4;
}

.tbb-ah-card__dot {
	width: 6px;
	height: 6px;
	margin-top: 7px;
	flex: 0 0 6px;
	border-radius: 50%;
	background: #60a5fa;
}

.tbb-ah-card__dot--violet { background: #a78bfa; }
.tbb-ah-card__dot--green  { background: #34d399; }
.tbb-ah-card__dot--amber  { background: #fbbf24; }

/* --- Wave into the next section --- */

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

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

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

/* =========================================================================
 * COURSES & QUIZZES
 * ====================================================================== */

.tbb-ah-courses {
	padding: 72px 0 96px;
	background: var(--tbb-ah-surface);
	color: var(--tbb-ah-ink);
}

.tbb-ah-courses__head {
	text-align: center;
	margin-bottom: 36px;
}

.tbb-ah-courses__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-courses__title {
	margin: 0;
	font-size: clamp(1.9rem, 3.6vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--tbb-ah-ink);
}

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

/* --- Blue stat banner --- */

.tbb-ah .tbb-ah-statbar {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 0 0 42px;
	padding: 34px 20px;
	list-style: none;
	border-radius: 20px;
	background: linear-gradient(100deg, #17297f 0%, #1b46b8 52%, #1f56d8 100%);
	box-shadow: 0 20px 44px rgba(20, 48, 130, .26);
	text-align: center;
	color: #fff;
}

.tbb-ah .tbb-ah-statbar li {
	margin: 0;
	padding: 0 12px;
	list-style: none;
	border-left: 1px solid rgba(255, 255, 255, .22);
}

.tbb-ah .tbb-ah-statbar li:first-child {
	border-left: 0;
}

.tbb-ah-statbar__value {
	display: block;
	font-size: clamp(1.6rem, 3vw, 2.35rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.02em;
}

.tbb-ah-statbar__label {
	display: block;
	margin-top: 6px;
	font-size: .9rem;
	color: #cfdcfb;
}

/* --- Exam cards --- */

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

.tbb-ah-exam {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 26px 26px 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-exam:hover {
	transform: translateY(-4px);
	border-color: #c9dbfb;
	box-shadow: 0 18px 36px rgba(15, 35, 85, .1);
}

.tbb-ah-exam__tag {
	margin: 0 0 14px;
	padding: 5px 12px;
	border-radius: 999px;
	background: #e6efff;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tbb-ah-blue-600);
}

.tbb-ah .tbb-ah-exam__title {
	margin: 0 0 10px;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.2;
}

.tbb-ah .tbb-ah-exam__title a {
	color: var(--tbb-ah-ink);
	text-decoration: none;
}

.tbb-ah .tbb-ah-exam__title a:hover {
	color: var(--tbb-ah-blue-600);
}

.tbb-ah-exam__text {
	margin: 0 0 16px;
	font-size: .95rem;
	line-height: 1.6;
	color: var(--tbb-ah-muted);
}

.tbb-ah-exam__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: auto 0 18px; /* top:auto pins meta + button to the card bottom */
	padding-top: 4px;
	font-size: .9rem;
	font-weight: 600;
	color: var(--tbb-ah-blue-600);
}

.tbb-ah-exam__meta-icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

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

.tbb-ah-courses__footer {
	margin: 42px 0 0;
	text-align: center;
}

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

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

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

	.tbb-ah-hero__tagline {
		max-width: none;
	}

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

@media (max-width: 782px) {
	.tbb-ah__inner {
		padding: 0 18px;
	}

	.tbb-ah-hero {
		padding: 56px 0 110px;
	}

	.tbb-ah-hero__actions {
		margin-bottom: 32px;
	}

	.tbb-ah .tbb-ah-hero__stats {
		gap: 26px;
	}

	.tbb-ah .tbb-ah-statbar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 26px 0;
		padding: 28px 12px;
	}

	.tbb-ah .tbb-ah-statbar li:nth-child(odd) {
		border-left: 0;
	}

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

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

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

	.tbb-ah-exams {
		grid-template-columns: minmax(0, 1fr);
	}

	.tbb-ah-courses {
		padding: 56px 0 72px;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	.tbb-ah .tbb-ah-btn,
	.tbb-ah .tbb-ah-card,
	.tbb-ah-exam {
		transition: none;
	}

	.tbb-ah .tbb-ah-btn:hover,
	.tbb-ah a.tbb-ah-card:hover,
	.tbb-ah-exam:hover {
		transform: none;
	}
}
