/* =========================================================
   Real Estate Professionals - Responsive Grid
   ========================================================= */

.team-profile-grid {
  margin: 32px 0 40px;
}

/* Individual grid item */
.team-profile-grid .views-view-responsive-grid__item {
  display: flex;
}

/* Profile card */
.team-profile-grid .views-view-responsive-grid__item-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;

  padding: 20px;

  background: #fff;
  border: 1px solid rgba(0, 92, 153, 0.16);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);

  text-align: center;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.team-profile-grid .views-view-responsive-grid__item-inner:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 92, 153, 0.30);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

/* Remove old generic field spacing */
.team-profile-grid .field-content {
  margin: 0;
}

/* Profile image */
.team-profile-grid .views-field-field-picture {
  margin: 0;
}

.team-profile-grid .views-field-field-picture img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}

/* Name */
.team-profile-grid .views-field-field-name {
  margin-top: 12px;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.team-profile-grid .views-field-field-name a {
  color: #005c99;
  text-decoration: none;
}

.team-profile-grid .views-field-field-name a:hover,
.team-profile-grid .views-field-field-name a:focus {
  text-decoration: underline;
}

/* Professional titles */
.team-profile-grid .views-field-field-professional-titles {
  margin-top: 8px;
  line-height: 1.45;
}

/* Mobile refinement */
@media screen and (max-width: 600px) {
  .team-profile-grid {
    margin: 28px 0 34px;
  }

  .team-profile-grid .views-view-responsive-grid__item-inner {
    padding: 18px;
  }
}