/*
This file holds the css for the page past presidents and advisory as they have the same design.
*/
:root {
  --navy: #1a2744;
  --red: #c0392b;
  --red-dark: #9b2d20;
  --cream: #f7f5f0;
  --white: #ffffff;
  --border: rgba(26, 39, 68, 0.12);
  --muted: #6b7a9a;
  --cim-font: "Manrope", sans-serif;
}

.eb-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.eb-board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.member-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.3, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.2s;
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(26, 39, 68, 0.13);
  border-color: rgba(192, 57, 43, 0.3);
}

.card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #c8d3e8 0%, #8fa0c4 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s;
}

.member-card:hover .card-overlay {
  opacity: 1;
}

.overlay-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  color: #fff;
  font-family: var(--cim-font);
  font-size: 12px;
  font-weight: 500;
  padding: 9px 22px;
  border-radius: 30px;
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.5px;
  transform: translateY(8px);
  transition: transform 0.22s;
}

.member-card:hover .overlay-btn {
  transform: translateY(0);
}

.card-stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.member-card:hover .card-stripe {
  transform: scaleX(1);
}

.card-info {
  padding: 16px 16px 18px;
}

.card-name {
  font-family: var(--cim-font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 4px;
}

.card-role {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.card-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  background: var(--red);
  color: #fff;
  font-family: var(--cim-font);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: background 0.16s;
}

.card-read-btn:hover {
  background: var(--red-dark);
}

.card-read-btn svg {
  flex-shrink: 0;
}

.eb-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 36, 0.74);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.eb-modal-overlay.is-open {
  display: flex;
}

.eb-modal-box {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: ebPopIn 0.3s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

@keyframes ebPopIn {
  from {
    opacity: 0;
    transform: scale(0.84) translateY(28px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.eb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 22px 15px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.eb-modal-title {
  font-family: var(--cim-font);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
}

.eb-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.15s,
    transform 0.22s;
}

.eb-modal-close:hover {
  background: var(--red-dark);
  transform: rotate(90deg);
}

.eb-modal-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

.eb-modal-hero {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.eb-modal-img {
  width: 160px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #c8d3e8 0%, #8fa0c4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  overflow: hidden;
}

.eb-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.eb-modal-identity {
  flex: 1;
  min-width: 0;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eb-modal-name {
  font-family: var(--cim-font);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 6px;
  word-wrap: break-word;
}

.eb-modal-role {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.4px;
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 2px;
  margin-bottom: 16px;
}

.eb-modal-email {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

.eb-modal-email a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
}

.eb-modal-email a:hover {
  color: var(--red);
}

.eb-modal-bio {
  padding: 24px 24px 30px;
  font-size: 14px;
  line-height: 1.82;
  color: #3a4a6b;
  word-wrap: break-word;
}

.eb-modal-bio strong {
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 860px) {
  .eb-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .eb-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .eb-modal-img {
    width: 110px;
  }

  .eb-modal-name {
    font-size: 1.25rem;
  }

  .eb-body {
    padding: 32px 14px 60px;
  }

  .eb-hero-inner {
    padding: 36px 18px 44px;
  }
}
