.counselor-carousel {
  position: relative;
  margin-top: 45px;
  padding: 0 38px;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.55s ease;
}

.counselor-slide {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 28px;
}

.counselor-carousel .team-card {
  min-width: 0;
}

.counselor-carousel .portrait {
  display: block;
}

.portrait img,
.round-portrait img,
.profile-photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 24px);
  z-index: 3;
  width: 34px;
  height: 48px;
  border: 0;
  background: rgba(70, 70, 70, 0.65);
  color: #fff;
  font-size: 32px;
  line-height: 40px;
  cursor: pointer;
}

.carousel-arrow.prev {
  left: 0;
}

.carousel-arrow.next {
  right: 0;
}

.carousel-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.team-card h3 a:hover,
.counselor-row h2 a:hover {
  color: #111;
}

.counselor-detail-page {
  padding: 60px 0;
}

.counselor-profile {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr) 310px;
  gap: 34px;
  padding: 45px;
  background: #fff;
}

.profile-photo {
  position: relative;
  height: 470px;
  overflow: hidden;
  background: #d8d9da;
}

.profile-photo::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 29%;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: #e8c8b4;
  box-shadow: 0 110px 0 65px #364438;
}

.round-portrait::before,
.portrait::before,
.profile-photo::before {
  display: none;
}

.profile-content h1 {
  margin: 0;
  color: #333;
  font-size: 36px;
}

.profile-content > h2 {
  margin: 0 0 25px;
  color: #6c923b;
  font-size: 18px;
  font-weight: 400;
}

.profile-content section {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.profile-content section h3 {
  margin: 0;
  color: #4f842c;
}

.booking-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 38px;
  background: #f36b16;
  color: #fff;
}

.related-team-panel {
  align-self: stretch;
  min-width: 0;
  padding: 20px 18px;
  border-left: 1px solid #eeeeee;
  background: #fbfbfb;
}

.related-team-panel h2 {
  margin: 0 0 15px;
  color: #856039;
  font-size: 20px;
  line-height: 1.25;
}

.related-list {
  height: 540px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-color: #b58d74 #eeeeee;
  scrollbar-width: thin;
}

.related-list::-webkit-scrollbar {
  width: 8px;
}

.related-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #eeeeee;
}

.related-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b58d74;
}

.related-list::-webkit-scrollbar-thumb:hover {
  background: #9d6f3e;
}

.related-list-track {
  display: grid;
  gap: 10px;
}

.related-counselor {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 8px;
  border: 1px solid #eeeeee;
  background: #fff;
}

.related-counselor:hover {
  border-color: rgba(133, 96, 57, .32);
  box-shadow: 0 8px 20px rgba(60, 50, 40, .08);
  transform: translateY(-1px);
}

.related-avatar {
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: #f1f1f1;
}

.related-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.16);
  transform-origin: center top;
}

.related-info {
  display: block;
  min-width: 0;
}

.related-info strong,
.related-info small,
.related-info em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-info strong {
  color: #222;
  font-size: 14px;
  line-height: 1.35;
}

.related-info small {
  color: #6c923b;
  font-size: 12px;
  line-height: 1.35;
}

.related-info em {
  margin-top: 3px;
  color: #777;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.knowledge-item > img {
  width: 125px;
  height: 75px;
  flex: none;
  object-fit: cover;
}

.article-list article > img {
  width: 220px;
  height: 140px;
  object-fit: cover;
}

.article-content-image {
  margin: 32px 0;
}

.article-content-image img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.article-content-image figcaption {
  padding-top: 8px;
  color: #888;
  text-align: center;
}

.article-body figure img,
.profile-content figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.gender-field {
  margin: 0;
  padding: 0;
  border: 0;
  color: #777;
}

.gender-field legend {
  margin-bottom: 9px;
}

.gender-field label {
  display: inline-flex;
  align-items: center;
  margin-right: 30px;
  color: #444;
}

.gender-field input {
  width: 17px;
  height: 17px;
  margin: 0 8px 0 0;
}

.article-page {
  min-height: 0 !important;
  padding-bottom: 90px;
}

.article-page > .wrap {
  margin-top: -1px;
}

.article-page .list-tabs {
  margin: 0 0 24px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .04);
}

.article-page .list-tabs a {
  min-width: 105px;
  border: 0;
  text-align: center;
}

.article-list,
.article-layout aside {
  align-self: start;
}

.office-collage div {
  background-image: url("images/content/office.3c64e80b7eb7.jpg");
}

.office-collage div:nth-child(2) {
  background-image: url("images/content/parent-child.fd14b163828d.jpg");
}

.office-collage div:nth-child(3) {
  background-image: url("images/content/growth.9428a8835605.jpg");
}

.office-collage div:nth-child(4) {
  background-image: url("images/content/couple.807ffa936f91.jpg");
}

@media (max-width: 800px) {
  .counselor-carousel {
    padding: 0 27px;
  }

  .counselor-slide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .carousel-arrow {
    top: calc(50% - 21px);
    width: 27px;
    height: 42px;
  }

  .counselor-profile {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 20px;
  }

  .profile-photo {
    height: 430px;
  }

  .profile-content h1 {
    font-size: 30px;
  }

  .related-team-panel {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid #eeeeee;
    background: transparent;
  }

  .related-list {
    height: 420px;
    overflow-y: auto;
  }

  .related-list-track {
    gap: 9px;
  }

  .knowledge-item > img {
    width: 100px;
  }

  .article-list article > img {
    width: 105px;
    height: 90px;
  }

  .gender-field {
    padding-top: 5px;
  }
}
