/* =========================================
   SUMMARY CARD (TIGHTENED 2-COLUMN LAYOUT)
   ========================================= */
.zf-summary-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(57, 130, 137, 0.3);
  border-radius: 0;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zf-summary-card:hover {
  border-color: var(--base-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Column 1: Avatar Media */
.zf-summary-card__media {
  flex-shrink: 0;
}

.zf-summary-card__media img {
	border: 1px solid rgba(57, 130, 137, 0.3);
}

.zf-summary-card__photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 0;
}

.zf-summary-card__photo-fallback {
  width: 150px;
  height: 150px;
  background-color: var(--base-color-alt);
  border: 1px solid rgba(57, 130, 137, 0.3);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--base-color);
  font-size: 4rem;
}

/* Column 2: Content Body */
.zf-summary-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0; /* Prevents flex items from overflowing text bounds */
}

/* Header Row */
.zf-summary-card__header {
  margin: 0;
}

.zf-summary-card__name {
  margin: 0;
  font-size: 1.45em !important;
  font-weight: 500;
  line-height: 1.2;
}

.zf-summary-card__name a {
  color: #43c0c6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.zf-summary-card__name a:hover {
  color: var(--base-color);
}

/* Stacked Meta Block (Specialty + Subspecialties) */
.zf-summary-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.zf-summary-card__specialty {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.zf-summary-card__subspecialty {
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--brand-color);
}

/* Location Block */
.zf-summary-card__location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.zf-summary-card__location i {
  color: var(--base-color);
  font-size: 0.95rem;
}

/* Excerpt */
.zf-summary-card__excerpt {
  font-size: 0.925rem;
  line-height: 1.5;
  margin-top: 0.1rem;
}

/* Footer Action */
.zf-summary-card__footer {
  margin-top: 0.25rem;
}

.zf-summary-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1.1rem;
  border-radius: 0;
  border: 1px solid rgba(57, 130, 137, 0.3);
  background-color: var(--base-color);
  color: #ffffff;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 1;
}

.zf-summary-card__btn:hover {
  color: #ffffff;
  opacity: 0.85;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */
@media (min-width: 768px) {
  .zf-summary-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .zf-summary-card__media,
  .zf-summary-card__photo,
  .zf-summary-card__photo-fallback {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .zf-summary-card__btn {
    width: 100%;
  }
}
