/* ========================================= /
/ /assets/css/cards.css                     /
/ ========================================= */
.acf-rel-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--box-shadow-m);
  margin-bottom: var(--space-m);
  transition: box-shadow 0.24s, border-color 0.24s, transform 0.16s;
  overflow: hidden;
  min-height: 0;
  height: auto;
}
.acf-rel-card:hover,
.acf-rel-card:focus-within {
  border-color: var(--primary-medium-light);
  box-shadow: var(--box-shadow-xl);
  transform: translateY(-2px) scale(1.01);
}
.acf-rel-image {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  border-radius: var(--radius-l);
  overflow: hidden;
  margin: var(--space-s);
  margin-right: 0;
}
.acf-rel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.3s;
}
.acf-rel-card:hover .acf-rel-image img {
  transform: scale(1.05);
}
.acf-rel-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 0;
  padding: var(--space-m);
  min-width: 0;
  background: none;
}
.acf-rel-title {
  font-size: var(--h4);
  font-family: var(--headline-font);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  letter-spacing: var(--ls-h-4);
  margin: 0 0 var(--space-xs) 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acf-rel-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
.acf-rel-title a:hover {
  color: var(--primary-medium-light);
  text-decoration: underline;
}
.acf-rel-designation {
  display: block;
  margin-bottom: var(--space-s);
  font-size: var(--text-s);
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.acf-rel-designation span {
  background: var(--secondary-ultra-light);
  border-radius: var(--radius-s);
  padding: 0.25em 0.85em;
  display: inline-block;
}
.acf-rel-content .btn,
.acf-rel-content .btn--primary {
  margin-top: var(--space-xs);
  min-width: fit-content;
  align-self: flex-start;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-m);
  font-weight: 600;
  font-size: var(--text-s);
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
@media (max-width: 600px) {
  .acf-rel-card {
    flex-direction: column;
    margin-bottom: var(--space-s);
  }
  .acf-rel-image {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    margin: 0;
  }
  .acf-rel-content {
    padding: var(--space-s);
  }
  .acf-rel-title {
    font-size: var(--h5);
    white-space: normal;
  }
  .acf-rel-designation {
    font-size: var(--text-xs);
    margin-bottom: var(--space-xs);
  }
}