/**
 * WEB ARCHI
 * Lecturer Directory
 */

/* Directory layout */
.wa-lecturer-directory {
  width: 100%;
}

.wa-lecturer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* Lecturer card */
.wa-lecturer-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e9e7;
  border-radius: 12px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.wa-lecturer-card:hover {
  transform: translateY(-4px);
  border-color: #c9ded5;
  box-shadow: 0 12px 28px rgba(15, 45, 35, 0.09);
}

/* Entire card link */
.wa-lecturer-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
}

.wa-lecturer-card-link:hover,
.wa-lecturer-card-link:focus {
  color: inherit;
  text-decoration: none !important;
}

/* Lecturer photo */
.wa-lecturer-card-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #edf2ef;
}

.wa-lecturer-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.35s ease;
}

.wa-lecturer-card:hover .wa-lecturer-card-photo img {
  transform: scale(1.04);
}

/* No photo fallback */
.wa-lecturer-card-no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: #e4f1e9;
  color: #007b5e;
  font-size: 64px;
  font-weight: 700;
}

/* Card content */
.wa-lecturer-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.wa-lecturer-card-name {
  margin: 0 0 10px;
  color: #173c32;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.wa-lecturer-card-position {
  margin: 0 0 12px;
  color: #007b5e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.wa-lecturer-card-education {
  margin: 0 0 18px;
  color: #697873;
  font-size: 13px;
  line-height: 1.6;
}

/* View profile action */
.wa-lecturer-card-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: #008568;
  font-size: 14px;
  font-weight: 700;
}

.wa-lecturer-card-link:hover .wa-lecturer-card-action {
  color: #005f4b;
}

/* Tablet */
@media (max-width: 1023px) {
  .wa-lecturer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .wa-lecturer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .wa-lecturer-card-photo {
    aspect-ratio: 3 / 4;
  }

  .wa-lecturer-card-content {
    padding: 18px;
  }

  .wa-lecturer-card-name {
    font-size: 17px;
    line-height: 1.45;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .wa-lecturer-card,
  .wa-lecturer-card-photo img {
    transition: none;
  }

  .wa-lecturer-card:hover {
    transform: none;
  }
}

/* Override global heading styles inside lecturer directory */
.wa-lecturer-directory .wa-lecturer-card .wa-lecturer-card-name {
  margin: 0 0 10px !important;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.45 !important;
  letter-spacing: normal;
  text-decoration: none !important;
}
