
.team {
	padding-top: 120px;
	padding-bottom: 90px;
}

.team__btn {
	text-align: right;
}
.team__item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Create the ratio: height = (4/3) * width -> padding-top = 133.333% */
.team__item::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: calc(100% * 4 / 3); /* 133.333% = 4/3 */
}

/* Put the real content absolutely over the pseudo-element */
.team__item > .team__text,
.team__item > * {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
}

.team__item::after {
    content: "";
    position: absolute;
    inset: 0; /* shorthand for top:0; left:0; right:0; bottom:0 */
     background: rgba(255, 255, 255, 0.45); 
    opacity: 0;
    transition: opacity 0.5s ease-out;
    z-index: 2; /* must be ABOVE image but BELOW text */
    pointer-events: none;
}

.team__item:hover::after {
    opacity: 1;
}

.team__item:hover .team__text h5,
.team__item:hover .team__text span,
.team__item:hover .team__text p {
    color: #000 !important;
    font-weight: 700;
    z-index: 3;
    position: relative;
}

.team__item:hover .team__text .team__title {
	border-bottom: 1px solid rgba(183, 183, 183, 0.2);
	padding: 0 0 32px;
	margin-bottom: 34px;
	opacity: 0;
	visibility: hidden;
	position: relative;
	bottom: initial;
	opacity: 1;
	visibility: visible;
}

.team__item:hover .team__text p {
	opacity: 1;
	visibility: visible;
}

.team__item:hover .team__text .team__social {
	opacity: 1;
	visibility: visible;
	bottom: 34px;
}

.team__text {
	height: 100%;
	position: relative;
	padding: 35px 30px 40px;
}

.team__text .team__title {
	position: absolute;
	left: 0;
	bottom: 42px;
	width: 100%;
	padding: 0 30px;
	-webkit-transition: all, 0.7s, ease-out;
	-o-transition: all, 0.7s, ease-out;
	transition: all, 0.7s, ease-out;
	backdrop-filter: blur(10px); /* Blur effect */
    background: rgba(255, 255, 255, 0.25); /* Frosted glass effect */
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.team__text .team__title h5 {
	color: #ffffff;
	font-weight: 600;
	font-family: "Poppins", sans-serif;
	margin-bottom: 6px;
}

.team__text .team__title span {
	font-size: 14px;
	color: #000;
}

.team__text p {
	color: #000;
	opacity: 0;
	visibility: hidden;
	-webkit-transition: all 0.7s ease-out;
	-o-transition: all, 0.7s, ease-out;
	transition: all, 0.7s, ease-out;
}

.team__text .team__social {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	padding: 0 30px;
	opacity: 0;
	visibility: hidden;
	-webkit-transition: all, 0.7s, ease-out;
	-o-transition: all, 0.7s, ease-out;
	transition: all, 0.7s, ease-out;
}

.team__text .team__social a {
	display: inline-block;
	font-size: 20px;
	color: #ffffff;
	margin-right: 34px;
	-webkit-transition: all, 0.3s;
	-o-transition: all, 0.3s;
	transition: all, 0.3s;
}

.team__text .team__social a:last-child {
	margin-right: 0;
}

.team__text .team__social a:hover {
	color: #dfa667;
}
/* ----------------------------------