/* onepercent-locations-directory v1.3 brand + spacing tweaks
   Applied to Team Directory
*/
:root {
  --opl-blue: #0b6ca6;          /* brand blue */
  --opl-dir-button-mt: 20px;    /* space above the CTA button */
  --opl-dir-section-py: 30px;   /* vertical padding inside cards/sections */
}

/* * Card Container 
 * White bg, shadow, rounded corners, centered text
 */
.opl-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: var(--opl-dir-section-py);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.opl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* * Image Styling 
 * Square crop, top aligned
 */
.opl-card__media {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.opl-card__img {
  width: 250px;
  height: 250px;
  border-radius: 20px; /* Rounded corners on image */
  object-fit: cover;
  object-position: 50% 0; /* Center horizontal, Top vertical */
  display: block;
}

/* * Text Content 
 */
.opl-card__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px; /* Spacing between small items */
}

.opl-card__name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 -3px 0;
  color: #444;
}

.opl-card__title {
  font-size: 0.95rem;
  color: #555;
  font-weight: 700;
  margin-bottom: 10px;
}

.opl-card__email,
.opl-card__phone {
  color: var(--opl-blue);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
}

.opl-card__email:hover,
.opl-card__phone:hover {
  text-decoration: underline;
}

/* * CTA Button 
 * Styled to match provided specs
 */
.opl-card__cta {
  margin-top: var(--opl-dir-button-mt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 20px;
  border: 2px solid var(--opl-blue);
  border-radius: 10px;
  color: var(--opl-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.opl-card__cta .arrow {
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.opl-card__cta:hover,
.opl-card__cta:focus {
  background: var(--opl-blue);
  color: #fff;
  text-decoration: none;
}

.opl-card__cta:hover .arrow {
  transform: translateX(3px);
}

/* Force team directory to 3-2-1 columns: desktop / tablet / mobile */
.opl-team-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .opl-team-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  .opl-team-directory-grid {
    grid-template-columns: 1fr;
  }
}
