/* Wrapper for placing multiple contact cards side by side */
.contact-cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact-info-container {
  background: white;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  max-width: 300px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgb(0 0 0 / 25%);
  margin: 1rem 0;
}

.contact-info-top-half {
  flex-shrink: 0;
  width: 100%;
  height: 80px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: #1c375b;
  background-image:
    url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23000000' stroke-width='2' stroke-opacity='0.2'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #1c375b, #6f8197);
  background-size: 21px 38px, auto;
  background-repeat: repeat, no-repeat;
}

.contact-info-portrait {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  position: relative;
  z-index: 1;
  transform: translateY(55px);
}

.contact-info-bottom-half {
  padding: 4rem 1rem 1rem;
  flex: 1;
  text-align: center;
}

.contact-info-name {
  font-weight: 600;
  font-size: 1.4rem;
  color: #222;
  margin: 0;
}

.contact-info-title {
  font-size: 1rem;
  font-weight: 500;
  width: fit-content;
  margin: 0.5rem auto 0.75rem;
  background: linear-gradient(135deg, #cd4236, #1c375b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.contact-info-items {
  border-top: 1px solid #eee;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #4a5568;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 16px;
  height: 16px;
  color: #666;
  flex-shrink: 0;
}

.contact-link {
  color: inherit;
  text-decoration: none;
}

.contact-link:hover {
  color: #1c375b;
  text-decoration: underline;
}

/* Responsive: stack on small screens */
@media (max-width: 600px) {
  .contact-cards-row {
    flex-direction: column;
    align-items: center;
  }
}
