/* grid/cards */
.dmu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: .5rem 1rem;
  margin: 0 auto;
}

.dmu-profile-card {
  text-align: center;
  padding: 1rem;
}

.dmu-profile-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

@media (max-width: 600px) {
  .dmu-profile-photo {
    width: 100px;
    height: 100px;
  }
}

.dmu-profile-name {
  font-size: 1rem;
  font-weight: bold;
  color: #582c83;
  margin: .5rem 0 .25rem;
}

.dmu-profile-name a {
  color: #582c83 !important;
  text-decoration: none !important;
}

.dmu-profile-name a:hover {
  text-decoration: underline !important;
}

.dmu-profile-title {
  margin: 0;
  font-size: .95rem;
  color: #444;
}

.dmu-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #582c83;
  color: #fff;
  font-weight: bold;
}

.dmu-profile-card .dmu-initials {
  width: 140px;
  height: 140px;
  font-size: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .dmu-profile-card .dmu-initials {
    width: 100px;
    height: 100px;
    font-size: 1.5rem;
  }
}

.dmu-profile-card p {
  margin-bottom: 0;
  margin-top: 4px;
  line-height: 1.4;
}

/* table */
.dmu-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem auto;
  font-family: sans-serif;
}

.dmu-table th,
.dmu-table td {
  border: 1px solid #ddd;
  padding: 12px;
  vertical-align: middle;
}

.dmu-table th {
  background: #f5f5f5;
  text-align: left;
  font-weight: bold;
}

.dmu-table img {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  object-fit: cover;
  margin-right: 10px;
  vertical-align: middle;
}

.dmu-table a {
  color: #582c83 !important;
  text-decoration: none !important;
}

.dmu-table a:hover {
  text-decoration: underline !important;
}

.dmu-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.dmu-table tbody tr:hover {
  background: #eef0ff;
}

.dmu-table td {
  line-height: 1.5;
}

.dmu-table-name {
  display: flex;
  align-items: center;
}

.dmu-table-name img,
.dmu-table-name .dmu-initials {
  margin-right: .5rem;
}

/* Flickity */
.carousel {
  background: transparent;
  padding-bottom: 1rem;
}

.carousel-cell {
  width: 220px;
  margin-right: 10px;
}

.flickity-prev-next-button {
  background: #582c83;
  color: #fff;
  border-radius: 50% !important;
  opacity: 85%;
  background: white;
  /* optional, helps shadow stand out */
  border-radius: 50%;
  /* makes it circular if desired */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s ease;
}

.flickity-prev-next-button:hover {
  background: #2e1a47;
  color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.2);
}

.flickity-button.flickity-prev-next-button.previous {
  left: -1.3rem;
}

.flickity-button.flickity-prev-next-button.next {
  right: -1.3rem;
  ;
}