.roc-research-areas {
	width: 100%;
}

.roc-research-areas__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.roc-research-area-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 228px;
	padding: 28px;
	overflow: hidden;
	isolation: isolate;
	color: #0c2340;
	text-decoration: none;
	background: #fff;
	border: 1px solid rgba(12, 35, 64, 0.14);
	border-radius: 14px;
	box-shadow: 0 16px 42px rgba(12, 35, 64, 0.07);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.roc-research-area-card::before {
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	content: "";
	background: #e6ae64;
	transform: scaleX(0.22);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.roc-research-area-card__number {
	margin-bottom: 34px;
	font-family: Anton, sans-serif;
	font-size: 18px;
	line-height: 1;
	color: #e6ae64;
	letter-spacing: 0.04em;
}

.roc-research-area-card__title {
	max-width: 290px;
	margin: 0 0 28px;
	font-family: Cormorant Garamond, serif;
	font-size: clamp(22px, 2vw, 30px);
	font-weight: 700;
	line-height: 1.08;
	color: #0c2340;
}

.roc-research-area-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: auto;
	font-family: "DM Sans", sans-serif;
}

.roc-research-area-card__count {
	font-size: 14px;
	font-weight: 650;
	line-height: 1.3;
	color: #0c2340;
}

.roc-research-area-card__arrow {
	display: inline-flex;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	font-size: 22px;
	line-height: 1;
	color: #fff;
	background: #0c2340;
	border-radius: 50%;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.roc-research-area-card:hover {
	color: #0c2340;
	border-color: #e6ae64;
	box-shadow: 0 22px 52px rgba(12, 35, 64, 0.13);
	transform: translateY(-5px);
}

.roc-research-area-card:hover::before {
	transform: scaleX(1);
}

.roc-research-area-card:hover .roc-research-area-card__arrow {
	color: #0c2340;
	background: #e6ae64;
}

.roc-research-area-card:focus-visible,
.roc-research-areas__all-link:focus-visible {
	outline: 3px solid #e6ae64;
	outline-offset: 4px;
}

.roc-research-areas__all {
	display: flex;
	justify-content: center;
	margin-top: 38px;
}

.roc-research-areas__all-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 15px 22px;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	letter-spacing: 0.01em;
	background: #0c2340;
	border: 1px solid #0c2340;
	border-radius: 8px;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.roc-research-areas__all-link:hover {
	color: #0c2340;
	background: #e6ae64;
	border-color: #e6ae64;
	transform: translateY(-2px);
}

.roc-research-areas__all-arrow {
	font-size: 21px;
	line-height: 1;
}

@media (max-width: 1024px) {
	.roc-research-areas__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.roc-research-area-card {
		min-height: 210px;
	}
}

@media (max-width: 767px) {
	.roc-research-areas__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.roc-research-area-card {
		min-height: 0;
		padding: 24px;
	}

	.roc-research-area-card__number {
		margin-bottom: 24px;
	}

	.roc-research-area-card__title {
		margin-bottom: 24px;
		font-size: 24px;
	}

	.roc-research-areas__all {
		margin-top: 28px;
	}

	.roc-research-areas__all-link {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.roc-research-area-card,
	.roc-research-area-card::before,
	.roc-research-area-card__arrow,
	.roc-research-areas__all-link {
		transition: none;
	}

	.roc-research-area-card:hover,
	.roc-research-areas__all-link:hover {
		transform: none;
	}
}
