#department-hod-container {
  box-sizing: border-box;
  clear: both;
  max-width: 1200px;
  margin: 0 auto;
}

#department-hod-container:empty {
  display: none;
}

/* These audited wrappers contain only empty theme divs / commented legacy content. */
#department-hod-container:not(:empty) + .department-hod-spacer {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.department-faculty-heading {
  margin: 20px auto;
  padding: 0 20px;
  color: #293a5b;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
}

.department-hod {
  padding: 20px;
  color: #333;
}

.department-hod .department-hod__heading {
  margin: 0 0 20px;
  color: #293a5b;
  font-size: 26px;
  font-weight: 600;
}

.department-hod__card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e3e8e3;
  border-top: 3px solid #3db166;
  border-radius: 8px;
}

.department-hod__portrait {
  position: relative;
  display: flex;
  flex: 0 0 220px;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 280px;
  overflow: hidden;
  background: #f3f5f3;
  border-radius: 6px;
}

.department-hod__fallback {
  padding: 16px;
  color: #606860;
  font-size: 14px;
  text-align: center;
}

.department-hod .department-hod__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.department-hod__details {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.department-hod .department-hod__name {
  margin: 0 0 8px;
  color: #293a5b;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.department-hod .department-hod__designation {
  margin: 0 0 18px;
  color: #287d48;
  font-size: 17px;
}

.department-hod .department-hod__contacts {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.department-hod .department-hod__link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  max-width: 100%;
  color: #287d48;
}

.department-hod__contact-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.department-hod .department-hod__link:hover,
.department-hod .department-hod__link:focus-visible {
  color: #192f59;
  text-decoration: underline;
}

.department-hod .department-hod__bio {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-line;
}

.department-staff-error {
  color: #606860;
  font-size: 16px;
}

@media (max-width: 600px) {
  .department-hod {
    padding: 16px 12px;
  }

  .department-hod__card {
    flex-direction: column;
    gap: 20px;
    padding: 18px;
  }

  .department-hod__portrait {
    flex: none;
    align-self: center;
    max-width: 100%;
  }

  .department-hod__details {
    width: 100%;
  }
}
