#mentor {
  margin: 0 auto;
  padding: 50px 0;
  width: 80vw;
  height: fit-content;

  display: flex;
  flex-direction: column;
  gap: 30px;
}

.header-wrapper {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

.header {
  font-size: var(--fontsize-header);
  font-weight: 700;
  color: black;
  text-transform: uppercase;
}

.filter-wrapper {
  border: 2px solid lightgray;
  border-radius: 5px;

  width: fit-content;
  height: fit-content;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.filter-button {
  border-right: 2px solid lightgray;
  padding: 7px;
  height: max-content;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--apple-animation);
}

.filter-wrapper ul {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.filter-wrapper ul a {
  padding: 7px 20px;
  font-size: 16px;
  font-weight: 600;
  color: black;
  text-transform: uppercase;
  transition: var(--apple-animation);
}

.filter-button:hover,
.filter-wrapper ul a:hover {
  background-color: lightgray;
  transition: var(--apple-animation);
}

.mentors-wrapper {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.mentor-card {
  cursor: pointer;
  max-width: 360px;
  box-shadow: var(--boxshadow);
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 15px;

  display: flex;
  align-items: end;
}

.mentor-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mentor-details {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  background-color: white;
  z-index: 2;
  border-radius: 15px;
}

.mentor-name {
  width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  
  line-height: 1.2;
  font-size: 18px;
  font-weight: 600;
  color: black;
}

.mentor-sponsor {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  font-size: 16px;
  font-weight: 500;
  color: gray;
}

.mentor-status {
  margin-top: 30px;
  margin-bottom: 5px;
  width: fit-content;
  height: fit-content;
  padding: 5px 8px;

  background-color: transparent;
  color: transparent;

  font-size: 14px;
  font-weight: 600;
  border-radius: 5px;
}

.status-accept {
  background-color: #def7eb;
  color: #00bf63;
}

.status-reject {
  background-color: #ffeaea;
  color: #ff3131;
}

.mentor-background {
  width: 100%;
  line-height: 1.2;
  font-size: 14x;
  font-weight: 400;
  color: gray;
  
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mentor-overlay {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateX(100%);
  cursor: default;
  top: 0;
  right: 0;
  z-index: 9999;
  box-sizing: border-box;
  position: fixed;
  background-color: white;
  height: 100vh;
  width: 100%;
  max-width: 600px;
  transition: var(--animation-default-fast);
  overflow-y: scroll;
  overscroll-behavior: contain; 
  pointer-events: all;
  outline: none;
}

.overlay-active {
  transform: translateX(0%);
  transition: var(--animation-default-fast);
}

html:has(.lock-scroll) {
  position: fixed;
  width: 100%;
}

body.lock-scroll {
  box-sizing: border-box;
  height: 100dvh !important;
  overflow-y: hidden !important;
}

body:has(.overlay-active) .overlay {
  visibility: visible;
}

.mentor-overlay div {
  width: 80%;
  margin: 30px auto 0;
}

.close-overlay {
  cursor: pointer;
  color: white;
  z-index: 1;
  position: fixed;
  top: 20px;
  right: 30px;
}

.close-overlay span {
  font-size: 30px !important;
}

.overlay-upper {
  position: relative;
  width: 100% !important;
  height: 30svh;
  margin-top: 0 !important;
  margin-bottom: 50px !important;
}

div.overlay-background {
  background: url('../../assets/og-image.webp') no-repeat center / cover;
  margin-top: 0 !important;
  position: absolute;
  top: 0;
  left: 0;
}

.overlay-background {
  margin-top: 0 !important;
  background-color: var(--primary);
  height: 100% !important;
  width: 100% !important;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.5);
}

.overlay-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 25%);
  width: 200px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
}

.overlay-name {
  color: black;
  padding-top: 10px;
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  line-height: 1;
}

.overlay-details ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.overlay-details ul li {
  border-radius: 15px;
  aspect-ratio: 1/1;
  background-color: white;
  overflow: hidden;
  box-shadow: 2px 4px 6px #00000014;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.overlay-details ul li img {
  aspect-ratio: 1/1;
  height: 50%;
  object-fit: contain;
}

.overlay-details ul li h1 {
  padding: 1px;
  width: 80%;
  text-align: center;
  line-height: 1;
  color: black;
  font-size: 16px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-services {
  margin: 30px auto 50px !important;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.overlay-services h1 {
  color: black;
  font-size: 18px;
  font-weight: 500;
}

.overlay-services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.overlay-services ul li {
  border-radius: 8px;
  padding: 5px 8px;
  background-color:#cadaf2;
  color: #281b67;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}