/* On header instance, hide Items per page selector (only show it near the pager). */
.view-filters {
  display: none;
}

.header {
  margin-top: -100px;
  height: 400px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(74, 157, 213, 1) 65%
  );
}

.header * {
  color: white;
  text-align: center;
}

.header h1 {
  margin-top: 70px;
  margin-bottom: 30px;
  font-size: 60px;
}

.header p {
  max-width: 650px;
  hyphens: none;
  font-size: 15px;
  font-family: 'IdealSans-Light-Pro';
}

/* Expert Cards Wrapper */
.views-view-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding-top: 60px;
}

/* Expert Cards */
.expert-card {
  width: 1000px;
  max-height: 250px;
  display: flex;
  border-radius: 15px;
  overflow: hidden;
  background-color: white;
}

.expert-card * {
  font-family: 'IdealSans-Book-Pro';
}

.expert-card__image {
  width: 250px;
  background-color: #C4C4C4;
}

.expert-card__image div {
  height: 100%;
}

.expert-card__image img {
  width: 250px;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.expert-card__body {
  width: 80%;
  padding: 20px 25px;
}

.expert-card__body h2 {
  font-size: 30px;
  font-weight: bold;
}

.expert-card__title {
  margin-bottom: 20px;
}

.expert-card__title p {
  line-height: 1;
  font-weight: bold;
  color: #0A4EE8;
}

.expert-card__body p {
  font-size: 15px;
  font-family: 'IdealSans-Light-Pro';
  line-height: 1.5;
  hyphens: none;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expert-card__read-more {
  display: inline-block;
  margin-top: 5px;
  padding: 0;
  border: none;
  background: none;
  font-size: 15px;
  font-family: 'IdealSans-Book-Pro';
  color: #0A4EE8;
  cursor: pointer;
}

.expert-card__read-more:hover {
  text-decoration: underline;
}

.expert-modal .modal-dialog {
  max-width: 700px;
}

.expert-modal * {
  font-family: 'IdealSans-Book-Pro';
}

.expert-modal__heading {
  width: 100%;
}

.expert-modal .modal-title {
  font-family: 'IdealSans-Book-Pro';
}

.expert-modal .modal-title h2 {
  margin-bottom: 0;
}

.expert-modal__title {
  margin-top: 5px;
}

.expert-modal__title p {
  line-height: 1;
  color: #0A4EE8;
}

.expert-modal .modal-body p {
  font-size: 15px;
  font-family: 'IdealSans-Light-Pro';
  line-height: 1.5;
  hyphens: none;
}

/* Footer */
.view-footer .count,
.pager a,
.form-item-items-per-page select,
.form-item-items-per-page label {
  font-size: 15px !important;
}

.view-footer {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 30px !important;
}

@media (max-width: 1210px) {
  .view-experts {
    gap: 0px;
  }

  .view-footer {
    margin-top: 30px;
    padding-bottom: 0 !important;
  }

  .expert-card {
    width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .expert-card__body {
    padding: 20px 30px;
  }

  .footer-wrapper {
    margin-bottom: 30px;
    margin-top: 20px;
  }

  .views-view-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 40px;
  }

  .header {
    padding: 40px;
  }

  .expert-card {
    flex-direction: column;
    max-height: none;
  }

  .expert-card__body {
    width: 100%;
  }

  .expert-card__image {
    display: block;
    width: 100%;
    height: 300px;
  }

  .expert-card__image img {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header h1 {
    font-size: 40px;
  }

  .expert-card {
    width: 400px;
  }
}

@media (max-width: 543px) {
  .header {
    padding-top: 90px;
    height: 450px;
  }

  .expert-card {
    width: 300px;
  }
}
