  @charset "utf-8";
/* CSS Document */

html {
  	scroll-behavior: smooth;
}

.student-box-tab {
	font-family: 'Open Sans', sans-serif;
	max-width: 800px;
	margin: 0 auto;
}

.student-box-tab h2 {
	text-align: center;
}

.student-box-tab a {
	display: inline-block;
	transition: background-color 0.5s ease;
}

.student-box-tab a:hover > span.student-tab-img {
	
}

.student-box-tab a:hover > span.student-tab-txt {
	background-color: #222;
}

.student-box-tab a:hover span.hover-underline-animation:after {
	transform: scaleX(1);
	transform-origin: bottom left;
}

.student-tab-img, .student-tab-txt {
	margin-bottom: 15px;
}

.student-tab-img  {
	display: inline-block;
/* 	background-color: #A90533;
	transition: background-color 0.5s ease; */
}

.student-tab-img > img {
/* 	clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%, 0 20%); */
}

.student-tab-txt {
	display: inline-block;
	text-align: center;
	background-color: #A90533;
	vertical-align: top;
	height: 167px;
	width: 240px;
	margin-left: -9px;
	overflow: hidden;
	transition: background-color 0.5s ease;
}

.student-tab-txt > span {
 	color: #fff !important;
	font-size: 1.5em;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.hover-underline-animation {
  display: inline-block;
  position: relative;
  color: #fff;
  padding-bottom: 5px;
  flex-basis: 175px;
}

.hover-underline-animation:after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #fff;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;	
}

@media only screen and (min-width: 855px) {
	.student-box-tab a:nth-child(odd) {
		margin-right: 12px;
	}
}

@media only screen and (max-width: 842px) {
	.student-box-tab {
		text-align: center;
	}
}

@media only screen and (max-width: 444px) {
	.student-tab-img  {
		width: 130px;
	}
	
	.student-tab-txt {
		width: 190px;
	}
}