/* ==========================================================================
   Case Study Stats — Section 6
   Figma: 11892:2278
   "The most published immune medicine platform in the world"
   ========================================================================== */

.block--case-study-stats {
	background-color: #f6f6f9;
	padding: 40px 0;
	width: 100%;
}

@media screen and (min-width: 920px) {
	.block--case-study-stats {
		padding-top: 100px;
		padding-bottom: 60px;
	}
}

@media screen and (min-width: 1250px) {
	.block--case-study-stats {
		padding-top: 140px;
		padding-bottom: 60px;
	}
}

/* Heading
   ========================================================================== */
.case-study-stats__heading {
	font-family: "Axiforma", sans-serif;
	font-weight: 700;
	font-size: 32px;
	line-height: 1.19;
	color: #50565b;
	text-align: center;
	max-width: 860px;
	margin: 0 auto 20px;
}

@media screen and (min-width: 782px) {
	.case-study-stats__heading {
		font-size: 44px;
		line-height: 1.18;
	}
}

@media screen and (min-width: 1250px) {
	.case-study-stats__heading {
		font-size: 60px;
		line-height: 1.08;
		max-width: 1173px;
	}
}

/* Hero stat (1,000+)
   ========================================================================== */
.case-study-stats__hero {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 10px;
	margin-bottom: 10px;
}

.case-study-stats__hero-number {
	font-family: "Axiforma", sans-serif;
	font-weight: 700;
	font-size: 56px;
	line-height: 1.21;
	color: #50565b;
	letter-spacing: -1px;
}

@media screen and (min-width: 782px) {
	.case-study-stats__hero-number {
		font-size: 80px;
		line-height: 1.2;
	}
}

@media screen and (min-width: 1250px) {
	.case-study-stats__hero-number {
		font-size: 100px;
		line-height: 1.2;
	}
}

.case-study-stats__hero-suffix {
	font-family: "Axiforma", sans-serif;
	font-weight: 700;
	font-size: 56px;
	line-height: 1.2;
	color: #2154d7;
}

@media screen and (min-width: 782px) {
	.case-study-stats__hero-suffix {
		font-size: 80px;
	}
}

@media screen and (min-width: 1250px) {
	.case-study-stats__hero-suffix {
		font-size: 100px;
	}
}

.case-study-stats__hero-label {
	font-family: "TT Norms Pro", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.62;
	color: #1b1b1b;
	text-align: center;
	margin: 0 0 50px;
}

@media screen and (min-width: 1250px) {
	.case-study-stats__hero-label {
		font-size: 20px;
		line-height: 1.5;
		margin-bottom: 60px;
	}
}

/* Publication cards row
   ========================================================================== */
.case-study-stats__cards {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

@media screen and (min-width: 576px) {
	.case-study-stats__cards {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 24px;
	}
}

@media screen and (min-width: 1250px) {
	.case-study-stats__cards {
		flex-wrap: nowrap;
		justify-content: center;
		gap: 60px;
	}
}

/* Individual card
   ========================================================================== */
.case-study-stats__card {
	background-color: #ffffff;
	border: 1px solid #2154d7;
	border-radius: 20px 0 20px 0; /* top-left + bottom-right rounded */
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: 100%;
	position: relative;
	transition: background-color 0.25s ease;
}

.case-study-stats__card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(33, 84, 215, 0) 0%, transparent 30%);
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.case-study-stats__card:hover::before {
	opacity: 0;
}

.case-study-stats__card:hover {
	background-color: #2154d7;
}

@media screen and (min-width: 576px) {
	.case-study-stats__card {
		width: calc(50% - 12px);
		flex-shrink: 0;
	}
}

@media screen and (min-width: 1250px) {
	.case-study-stats__card {
		width: 240px;
		flex-shrink: 0;
	}
}

.case-study-stats__card-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.case-study-stats__card-category {
	font-family: "TT Norms Pro", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.62;
	color: #50565b;
	margin: 0;
	transition: color 0.2s ease;
	text-align: center;
}

@media screen and (min-width: 1250px) {
	.case-study-stats__card-category {
		font-size: 20px;
		line-height: 1.5;
	}
}

.case-study-stats__card-stat {
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

/* Count number inside card */
.case-study-stats__number {
	font-family: "Axiforma", sans-serif;
	font-weight: 700;
	font-size: 42px;
	line-height: 1.19;
	color: #50565b;
	transition: color 0.2s ease;
}

@media screen and (min-width: 1250px) {
	.case-study-stats__number {
		font-size: 60px;
		line-height: 1.08;
	}
}

.case-study-stats__card-plus {
	font-family: "Axiforma", sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.33;
	color: #2154d7;
	margin-top: 4px;
	transition: color 0.2s ease;
}

@media screen and (min-width: 1250px) {
	.case-study-stats__card-plus {
		font-size: 40px;
		line-height: 1.35;
		margin-top: 4px;
	}
}

/* Card footer: explore link
   ========================================================================== */
.case-study-stats__card-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.case-study-stats__card-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: "Axiforma", sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.57;
	color: #2154d7;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.case-study-stats__card-link:hover,
.case-study-stats__card-link:focus {
	color: #1a43ad;
}

.case-study-stats__card-link svg {
	flex-shrink: 0;
}

/* Card hover: invert all text colours
   ========================================================================== */
.case-study-stats__card:hover .case-study-stats__card-category { color: #ffffff; }
.case-study-stats__card:hover .case-study-stats__number         { color: #f6f6f6; }
.case-study-stats__card:hover .case-study-stats__card-plus      { color: #ffffff; }
.case-study-stats__card:hover .case-study-stats__card-link,
.case-study-stats__card:hover .case-study-stats__card-link:hover,
.case-study-stats__card:hover .case-study-stats__card-link:focus { color: #ffffff; }
