.directory-title { background: #deeee8; }
.ec-roster { background: linear-gradient(180deg, #deeee8, #e9f1ed 60%, #e4edf2); }
.directory-title { padding: clamp(24px,4vw,48px) 16px 16px; }
.directory-title h1 { color: #123d41; font-family: 'DM Sans','Noto Sans Bengali',sans-serif; font-size: clamp(30px,4vw,54px); line-height: 1.25; }
.ec-roster { padding: 8px 0 44px; }
.ec-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 16px; }
.ec-card {
  display: grid;
  grid-template-columns: clamp(76px,8vw,108px) minmax(0,1fr);
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: clamp(12px,1.4vw,20px);
  width: calc((100% - 32px)/3);
  min-height: 142px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 16px;
  background: #cce9df;
  box-shadow: 0 3px 14px #123d410c;
}
.ec-card:nth-child(2) { background: #f4e4c8; }
.ec-card:nth-child(3) { background: #d8e7f4; }
.ec-photo { grid-area: 1 / 1 / -1 / 2; background: #e2ebe8 center 34% / cover no-repeat; }
.ec-card h2, .ec-card p { grid-column: 2; margin: 0; padding-right: 12px; font-family: 'DM Sans','Noto Sans Bengali',sans-serif; }
.ec-card h2 { grid-row: 3; color: #123d41; font-size: clamp(19px,1.8vw,26px); line-height: 1.28; overflow-wrap: break-word; }
.ec-card p { grid-row: 2; margin-bottom: 6px; color: #17685e; font-size: 15px; line-height: 1.45; font-weight: 600; }
.ec-row:first-child { margin: 0 0 24px; }
.ec-row:first-child .ec-card { width: min(100%,580px); min-height: 142px; grid-template-columns: clamp(76px,8vw,108px) minmax(0,1fr); background: #b9ddd4; }
.ec-row:first-child h2 { color: #123d41; font-size: clamp(22px,2.4vw,32px); }
.ec-row:first-child p { color: #17685e; }
.ec-row:first-child .ec-photo { background-position: center 28%; }
@media (max-width: 840px) {
  .ec-card { width: calc((100% - 16px)/2); }
}
@media (max-width: 640px) {
  .ec-card { width: 100%; min-height: 110px; grid-template-columns: 94px minmax(0,1fr); }
  .ec-row:first-child .ec-card { min-height: 110px; grid-template-columns: 94px minmax(0,1fr); }
  .ec-row { gap: 12px; margin-bottom: 12px; }
}

/* Keep the President portrait square, independent of the card height. */
.ec-row:first-child .ec-card { grid-template-columns: clamp(110px,12vw,142px) minmax(0,1fr); min-height:142px; }
.ec-row:first-child .ec-photo { align-self:center; width:100%; height:auto; aspect-ratio:1 / 1; background-size:contain; background-position:center; background-color:#d5d5d5; }
@media(max-width:640px){.ec-row:first-child .ec-card{grid-template-columns:110px minmax(0,1fr);min-height:110px;}}
