/* Board of Directors page (boardofdirectors.php). Uses the homepage design system. */

/* ---------- Compact page header (replaces the tall hero on this page) ---------- */
.bod-head {
  padding: 150px 0 56px;
  background: radial-gradient(90% 140% at 100% 0%, #13235F 0%, #07133F 50%, #030727 100%);
  color: #fff;
}
.bod-head__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; }
.bod-head__crumbs a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.bod-head__crumbs a:hover { color: #FF8B3D; }
.bod-head__crumbs span { color: rgba(255, 255, 255, .45); }
.bod-head__crumbs [aria-current] { color: #fff; }
.bod-head__title {
  margin: 0;
  font-family: "Raleway", sans-serif; font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -.045em;
  color: #fff;
}

/* ---------- Grid ---------- */
.bod { padding: 72px 0 110px; background: #fff; font-family: "Open Sans", sans-serif; }
.bod__empty { margin: 0; text-align: center; font-size: 15px; color: #5B6577; }

.bod__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 28px; row-gap: 48px;
}

/* ---------- Sections: Chairman / Directors / Chief Executive ---------- */
.bod-group { --accent: #07133F; }
.bod-group--orange { --accent: #C2410C; }
.bod-group--teal   { --accent: #0F766E; }
.bod-group--slate  { --accent: #475569; }
.bod-group + .bod-group { margin-top: 80px; }

.bod-group__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px; padding-bottom: 16px;
  border-bottom: 1px solid #E7EBF1; position: relative;
}
.bod-group__head::after { /* accent underline under the heading */
  content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--accent);
}
.bod-group__title {
  margin: 0;
  font-family: "Raleway", sans-serif; font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.03em; color: #07133F;
}
.bod-group__count {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  display: inline-grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--accent);
}

/* Chairman: one larger card, photo beside the name */
.bod-group--large .bod__grid { grid-template-columns: 1fr; }
.bod-group--large .bod-card {
  display: grid; grid-template-columns: 300px 1fr; grid-template-rows: 1fr auto auto auto 1fr;
  column-gap: 40px; justify-items: start;
}
.bod-group--large .bod-card__photo { grid-column: 1; grid-row: 1 / -1; }
.bod-group--large .bod-card__role-tag { grid-column: 2; grid-row: 2; margin-top: 0; }
.bod-group--large .bod-card__name { grid-column: 2; grid-row: 3; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; margin-top: 8px; }
.bod-group--large .bod-card__more { grid-column: 2; grid-row: 4; margin-top: 16px; }

/* ---------- Card: photo, name, role, link ---------- */
.bod-card {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%; padding: 0; border: 0; background: none;
  text-align: left; cursor: pointer; color: inherit;
}
.bod-card__photo {
  display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, #EEF2F7 0%, #DDE4EE 100%);
}
.bod-card__photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.bod-card__name {
  margin-top: 18px;
  font-family: "Raleway", sans-serif; font-weight: 700;
  font-size: 19px; line-height: 1.3; letter-spacing: -.015em; color: #07133F;
}
.bod-card__role-tag {
  margin-top: 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4;
  color: var(--accent, #07133F);
}
.bod-card__role-tag + .bod-card__name { margin-top: 6px; }
.bod-card__more {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 14px; font-weight: 600; color: #C2410C;
}
.bod-card__more i { font-size: 20px; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }

.bod-card:hover .bod-card__photo img { transform: scale(1.04); }
.bod-card:hover .bod-card__name { color: #C2410C; }
.bod-card:hover .bod-card__more i { transform: translateX(3px); }
.bod-card:focus-visible { outline: none; }
.bod-card:focus-visible .bod-card__photo { outline: 3px solid #FF6600; outline-offset: 3px; }

/* ---------- Profile popup ---------- */
.bod-modal {
  width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: 0; border-radius: 20px; background: #fff;
  box-shadow: 0 30px 80px rgba(3, 7, 39, .35); overflow: hidden;
}
.bod-modal::backdrop { background: rgba(3, 7, 39, .72); }
.bod-modal[open] { animation: bod-in .45s cubic-bezier(.22, 1, .36, 1); }
@keyframes bod-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

.bod-modal__inner { position: relative; max-height: calc(100vh - 48px); overflow-y: auto; padding: 36px 40px 40px; font-family: "Open Sans", sans-serif; }
.bod-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: #F1F4F9; color: #07133F; font-size: 26px; cursor: pointer;
  transition: background .2s, color .2s;
}
.bod-modal__close:hover { background: #07133F; color: #fff; }
.bod-modal__close:focus-visible { outline: 3px solid #FF6600; outline-offset: 2px; }

.bod-modal__head { display: flex; align-items: center; gap: 22px; padding-right: 40px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #E7EBF1; }
.bod-modal__photo { width: 112px; height: 140px; flex: none; object-fit: cover; object-position: center 18%; border-radius: 12px; background: #E9EEF5; }
.bod-modal__name { margin: 0 0 6px; font-family: "Raleway", sans-serif; font-weight: 700; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; color: #07133F; }
.bod-modal__role { margin: 0; font-size: 15px; color: #5B6577; }

.bod-modal__bio { font-size: 15px; line-height: 1.8; color: #4A5568; }
.bod-modal__bio p { margin: 0 0 14px; }
.bod-modal__bio ul { margin: 0 0 16px; padding-left: 20px; }
.bod-modal__bio li { margin-bottom: 6px; }
.bod-modal__bio li::marker { color: #FF6600; }

body.bod-locked { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .bod__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bod-head { padding-top: 130px; }
}
@media (max-width: 767px) {
  .bod__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 36px; }
  .bod { padding: 48px 0 80px; }
  .bod-head { padding: 120px 0 40px; }
  .bod-card__name { font-size: 16px; }
  .bod-card__role-tag { margin-top: 12px; font-size: 11px; }
  .bod-group + .bod-group { margin-top: 56px; }
  .bod-group--large .bod-card { display: flex; }
  .bod-group--large .bod-card__photo { max-width: 320px; }
  .bod-group--large .bod-card__role-tag { margin-top: 12px; }
  .bod-modal__inner { padding: 28px 22px 30px; }
  .bod-modal__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .bod-modal__name { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .bod-card__photo img, .bod-card__more i { transition: none; }
  .bod-card:hover .bod-card__photo img { transform: none; }
  .bod-modal[open] { animation: none; }
}
