/* Tablet and Tablet Landscape Card Height Fix */
@media (min-width: 768px) and (max-width: 1024px) {
  .feature-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 15px !important;
  }
  .feature-box p {
    flex-grow: 1;
    margin-bottom: 10px;
  }
  .feature-box i {
    margin-bottom: 15px;
  }
  .feature-box h4 {
    margin-top: 0 !important;
  }
}

/* Flip the third team member image */
.team-section .row.mt-50 > div:nth-child(3) .team-flip-front,
.team-section .row.mt-50 > div:nth-child(3) .team-flip-front img {
  transform: rotate(180deg);
}

/* Fix team member alignment in tablet view */
@media (min-width: 768px) and (max-width: 991px) {
  .bordered-bg .row.mt-50 > [class*="col-"] {
    margin-bottom: 30px;
  }
  .bordered-bg .team-flip {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .bordered-bg .team-flip-inner {
    flex: 1;
  }
  .bordered-bg .social-default-no-border {
    margin-top: auto;
  }
}

/* Fix team member card alignment in tablet view */
@media (min-width: 768px) and (max-width: 991px) {
  .bordered-bg .row.mt-50 {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
  }

  .bordered-bg .row.mt-50 > [class*="col-"] {
    display: flex;
    padding: 0 15px;
    margin-bottom: 30px;
  }

  .bordered-bg .team-flip {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .bordered-bg .team-flip-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .bordered-bg .team-flip-front,
  .bordered-bg .team-flip-back {
    flex: 1;
  }

  .bordered-bg .social-default-no-border {
    margin-top: auto;
  }
}
