:root {
  font-size: 14px;
}

.specialty__tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.specialty__tiles .tile {
  width: 20%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: 150ms cubic-bezier(0, 0, 0.5, 1);
  border: 1px solid white;
}

.specialty__tiles .tile:last-of-type {
  border-bottom-width: 2px;
}

.specialty__tiles .tile:hover {
  transform: scale(1.1);
  z-index: 2;
  border-radius: 5%;
  border-width: 2px;
  transition: 150ms cubic-bezier(0, 0, 0.5, 1);
}

.specialty__tiles .tile .tile-bg {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specialty__tiles .tile .text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  height: 100%;
  padding: 2rem;
  box-sizing: border-box;
  color: white;
}

.specialty__tiles .tile .text hr {
  border-color: white;
}

.specialty__tiles .tile .text h6,
.specialty__tiles .tile .text h2,
.specialty__tiles .tile .text a {
  color: white;
}

.specialty__tiles .tile .text a {
  border-bottom: 2px solid white;
  font-weight: 600;
  transition: 150ms all;
}

.specialty__tiles .tile .text *:last-child {
  margin-bottom: 0;
}

.specialty__tiles .tile .text a:hover {
  border-color: #1B2C3E;
  color: #1B2C3E;
  transition: 150ms all;
}

.specialty__tiles .tile:nth-of-type(2n + 1) .text {
  background-color: rgba(0, 132, 188, 0.75);
}

.specialty__tiles .tile:nth-of-type(2n) .text {
  background-color: rgba(0, 124, 174, 0.75);
}

@media screen and (max-width: 1439px) {
  .specialty__tiles .tile {
    width: 33.33333333333%;
  }

  .specialty__tiles .tile:nth-of-type(n + 4) {
    width: 50%;
  }

  /* .specialty__tiles {
    display: none;
  } */
}

@media screen and (max-width: 991px) {
  .specialty__tiles .tile {
    width: 50%;
  }

  .specialty__tiles .tile:nth-of-type(n + 5) {
    width: 100%;
  }
}

@media screen and (max-width: 599px) {
  .specialty__tiles .tile {
    width: 100% !important;
  }

  /* .specialty__tiles .tile:hover {
    transform: none;
    border-radius: 0px;
  } */
}
