/*Container for starting about section*/
.about-starting {
  font-size: 1.5rem;
  line-height: 2.5rem;
  max-width: 1000px;
}

/*Vision and Values section*/
.vision-container,
.teacher-txt-container {
  flex-direction: column;
  gap: 1.5rem;
}

.vision-container-text,
.teacher-txt-container-txt {
  flex-direction: column;
  gap: 1.5rem;
}

.vision-container-text p {
  font-size: 1.3rem;
  line-height: 1.7rem;
}

.teacher-txt-container p {
  font-size: 1rem;
}

.values-parent-container {
  flex-direction: column;
  gap: 4.5rem;
}

.values-parent-container-text {
  flex-direction: column;
  gap: 1.5rem;
}

.values-parent-container-text p {
  font-size: 1.3rem;
  line-height: 1.7rem;
}

#vision-value > *,
#teacher-txt-value > * {
  text-align: left;
  max-width: 950px;
  line-height: 2rem;
}

.values-container {
  flex-direction: column;
  gap: 4rem;
  width: 100%;
}

.values-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, 100%);
  row-gap: 4rem;
  align-items: start;
  justify-items: center;
  width: 100%;
}

.values {
  flex-direction: column;
  gap: 0.2rem;
  max-width: 300px;
}

.values-heading {
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
}

.values-text {
  display: flex;
  align-items: center;
  flex-direction: column;
  line-height: 1.5rem;
}

.values-text {
  text-align: center;
  text-align-last: unset;
}

.values-text i,
.values-text p,
.values-text span {
  text-align: center;
  text-align-last: unset;
  font-size: 1rem;
}

/*Landscape img full section*/
.about-img {
  background-position: 40% 60%;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 4rem;
}

/*Teacher section*/
.teacher-section {
  /* padding-top: 4rem; */
  /* padding-bottom: 2rem; */
  /* height: 100vh; */
  margin-top: -2rem;
  margin-bottom: -2rem;
  flex-direction: column;
}

.swiper {
  width: 100%;
  --swiper-navigation-sides-offset: calc(
    50% - 160px - var(--swiper-navigation-size, 44px) / 2
  );
  --swiper-pagination-bullet-inactive-color: #666362;
  --swiper-pagination-color: #2f2d2c;
}

.swiper-wrapper {
  width: 100%;
  height: 30em;
  display: flex;
  align-items: center;
}

.card {
  width: 20em;
  height: 80%;
  border-radius: 2em;
  box-shadow: 0 0 2em rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
  cursor: pointer;
}

.card .overlay {
  transition: 1s ease;
}

.card:hover .overlay {
  z-index: 3;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.card .info {
  z-index: 3;
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 1.25rem;
  color: #fff;
  transform: translateY(20px);
  opacity: 0;
  transition: 0.5s ease;
}

.card:hover .info,
.card.swiper-slide-active .info {
  transform: translateY(0);
  opacity: 1;
}

.card .info h3 {
  font-size: 1.5em;
}

.card .info p {
  font-size: 1.2em;
  text-align: unset;
  text-align-last: unset;
}

.swiper-slide:not(.swiper-slide-active) {
  filter: grayscale(1);
}

/*Media Queries*/
@media only screen and (max-width: 425px) {
  .teacher-section {
    padding-left: 0;
    padding-right: 0;
  }
}

@media only screen and (max-width: 767px) {
  .about-starting > p {
    text-align: left;
  }
}

@media only screen and (min-width: 768px) {
  .about-starting {
    font-size: 2rem;
    line-height: 4rem;
  }

  .values-group {
    grid-template-columns: repeat(auto-fit, 50%);
    row-gap: 4rem;
  }

  .values-group:first-of-type .values:last-child {
    grid-column: 1 / -1;
  }
}

@media only screen and (min-width: 992px) {
  .values-group {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    row-gap: 0;
  }

  .values-group:last-of-type {
    grid-template-columns: 1fr 1fr 0.5fr 1fr 1fr;
  }

  .values-group:last-of-type .values:first-child {
    grid-column: 2;
  }

  .values-group:last-of-type .values:last-child {
    grid-column: 4;
  }

  .values-group:first-of-type .values:last-child {
    grid-column: unset;
  }

  .teacher-txt-container-txt {
    width: 75%;
  }

  #teacher-txt-value > * {
    max-width: unset;
    line-height: 2rem;
  }
}

@media only screen and (min-width: 1440px) {
  .about-starting {
    max-width: 1150px;
  }
  #vision-value,
  #teacher-txt-value {
    max-width: 1150px;
  }
}
