.selida > .main {
	min-width: 0;
}


.alumni-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding-left: 8px;
	margin-bottom: 24px;
}

.alumni-heading h2 {
	font-size: 24px;
	font-weight: 500;
	color: #434246;
	margin: 0;
	line-height: 1.2;
}

.alumni-heading h2::after {
	content: "";
	display: block;
	width: 58px;
	height: 3px;
	margin-top: 9px;
	background-image: linear-gradient(90deg, #482ff7, #8a2f86);
}

.alumni-note {
	font-size: 14.5px;
	line-height: 1.6;
	color: #55586b;
	padding-left: 8px;
	margin: -12px 0 24px;
	max-width: 70ch;
}


.researcher-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 22px;
	padding: 0 8px;
	margin-bottom: 12px;
}

.researcher-card {
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(43, 30, 107, 0.10);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.researcher-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(43, 30, 107, 0.18);
}

.researcher-photo {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #eeecfb;
}

.researcher-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.researcher-card:hover .researcher-photo img {
	transform: scale(1.05);
}

.researcher-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 15px 16px 18px;
}

.researcher-body h3 {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	color: #434246;
	margin: 0 0 5px;
}

.researcher-role {
	font-size: 14px;
	color: #02c0fc;
	margin: 0 0 12px;
}

.alumni-icons {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	min-height: 20px;
}

.alumni-icons img {
	width: 20px;
	height: 20px;
	display: block;
	opacity: 0.75;
	transition: opacity 0.2s ease;
}

.alumni-icons a:hover img {
	opacity: 1;
}

.researcher-link {
	margin-top: auto;
	align-self: flex-start;
	font-size: 14px;
	font-weight: 500;
	color: #482ff7;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.researcher-link:hover {
	border-bottom-color: #482ff7;
}

.researcher-link:focus-visible,
.researcher-photo:focus-visible {
	outline: 2px solid #482ff7;
	outline-offset: 3px;
}


.thesis-arrows {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.thesis-arrow {
	width: 42px;
	height: 42px;
	border: 1px solid #c9c3f5;
	border-radius: 50%;
	background-color: #ffffff;
	color: #482ff7;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.thesis-arrow:hover:not(:disabled) {
	background-color: #482ff7;
	border-color: #482ff7;
	color: #ffffff;
}

.thesis-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.thesis-arrow:focus-visible {
	outline: 2px solid #482ff7;
	outline-offset: 2px;
}

.thesis-track {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 4px 8px 10px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.thesis-track::-webkit-scrollbar {
	display: none;
}

.thesis-card {
	flex: 0 0 calc((100% - 88px) / 5);   
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(43, 30, 107, 0.10);
	transition: box-shadow 0.25s ease;
}

.thesis-card:hover {
	box-shadow: 0 10px 24px rgba(43, 30, 107, 0.18);
}


.thesis-photo {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #eeecfb;
}

.thesis-photo > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.thesis-when {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(28, 18, 66, 0.72);
	color: #ffffff;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-align: center;
	padding: 6px 8px;
	margin: 0;
	transition: opacity 0.3s ease;
}

.thesis-reveal {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 18px 16px;
	background-image: linear-gradient(rgba(72, 47, 247, 0.95), rgba(43, 20, 80, 0.97));
	color: #ffffff;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.32s ease, transform 0.32s ease;
	overflow-y: auto;
}

.thesis-reveal-label {
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #c9c0ff;
	margin: 0 0 8px;
}

.thesis-reveal-title {
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 10px;
}

.thesis-reveal-date {
	font-size: 12.5px;
	color: #d5cfff;
	margin: 0;
}


@media (hover: hover) {
	.thesis-card:hover .thesis-reveal {
		opacity: 1;
		transform: translateY(0);
	}
	.thesis-card:hover .thesis-when {
		opacity: 0;
	}
}

.thesis-card:focus-within .thesis-reveal,
.thesis-card.is-open .thesis-reveal {
	opacity: 1;
	transform: translateY(0);
}

.thesis-card:focus-within .thesis-when,
.thesis-card.is-open .thesis-when {
	opacity: 0;
}


.thesis-info {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 15px 16px 16px;
}

.thesis-info h3 {
	font-size: 16.5px;
	font-weight: 500;
	line-height: 1.3;
	color: #434246;
	margin: 0 0 5px;
}

.thesis-role {
	font-size: 13.5px;
	color: #02c0fc;
	margin: 0 0 12px;
}

.thesis-info .alumni-icons {
	margin-top: auto;
	margin-bottom: 0;
}


@media (max-width: 1200px) {
	.thesis-card {
		flex: 0 0 calc((100% - 38px) / 3);   /* 3 cards */
	}
}

@media screen and (max-width: 800px) {
	.selida {
		flex-wrap: nowrap;
	}
	.selida > .main,
	.selida > .side {
		width: 100%;
		max-width: 100%;
	}
}

@media (max-width: 800px) {
	.alumni-heading h2 {
		font-size: 21px;
	}
	.thesis-card {
		flex: 0 0 60%;                        /* 1 card */
	}
	.researcher-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.thesis-track {
		scroll-behavior: auto;
	}
	.thesis-reveal {
		transition: opacity 0.01s;
		transform: none;
	}
	.researcher-card:hover,
	.researcher-card:hover .researcher-photo img {
		transform: none;
	}
}
