/* =========================================================
   HAES GOVERNING BODY DIRECTORY & MEMBER PROFILE PAGES
   ========================================================= */
.haes-gb-page {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  color: #14213d;
}

.haes-gb-page .aims-hero {
  position: relative;
  overflow: hidden;
  background-color: #0f1c33;
}

.haes-gb-page .aims-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.haes-gb-page .aims-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15, 28, 51, 0.92) 0%,
    rgba(20, 33, 61, 0.82) 58%,
    rgba(201, 100, 73, 0.36) 100%
  );
  z-index: 1;
}

.haes-gb-page .aims-hero-inner {
  position: relative;
  z-index: 2;
}

.gb-section {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4.75rem;
  background: linear-gradient(
    135deg,
    #fffaf0 0%,
    #f5f8ff 36%,
    #fdf3f0 70%,
    #f2fbf7 100%
  );
}

.gb-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.gb-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-top: 4px solid #c9a227;
  border-radius: 16px;
  padding: 1.15rem 1.45rem;
  margin-bottom: 2.25rem;
  box-shadow: 0 12px 28px rgba(15, 28, 51, 0.06);
}

.gb-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #14213d;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.gb-count-pill i {
  color: #c9a227;
}

/* Directory Cards Grid with Large Portraits */
.gb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.85rem;
}

.gb-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(20, 33, 61, 0.09);
  box-shadow: 0 12px 30px rgba(15, 28, 51, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(15, 28, 51, 0.14);
  border-color: rgba(201, 162, 39, 0.65);
}

.gb-card-photo {
  position: relative;
  width: 100%;
  height: 310px;
  background: linear-gradient(135deg, #14213d 0%, #243b6b 100%);
  overflow: hidden;
}

.gb-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.gb-card:hover .gb-card-photo img {
  transform: scale(1.04);
}

.gb-card-body {
  padding: 1.4rem 1.45rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gb-role-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
  color: #ffffff;
  background: #14213d;
}

.gb-badge--gold {
  background: #c9a227;
  color: #0f1c33;
}

.gb-badge--terracotta {
  background: #c96449;
  color: #ffffff;
}

.gb-card-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: #14213d;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}

.gb-card-desig {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 1.15rem;
  flex: 1;
}

.gb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(20, 33, 61, 0.14);
}

.gb-tenure-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #14213d;
  background: #f8fafc;
  border: 1px solid rgba(20, 33, 61, 0.12);
  padding: 0.38rem 0.72rem;
  border-radius: 8px;
}

.gb-tenure-chip i {
  color: #c96449;
}

.gb-view-btn,
.gb-view-btn:link,
.gb-view-btn:visited,
.gb-view-btn:hover,
.gb-view-btn:focus-visible {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  background: #c96449;
  border: 1px solid #c96449;
  border-radius: 8px;
  padding: 0.52rem 0.95rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gb-view-btn:hover,
.gb-view-btn:focus-visible {
  background: #b14f36;
  border-color: #b14f36;
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

/* Individual Member Detail Page Layout */
.gb-profile-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}

.gb-profile-sidebar {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(20, 33, 61, 0.09);
  border-top: 4px solid #c9a227;
  box-shadow: 0 14px 36px rgba(15, 28, 51, 0.08);
}

.gb-profile-hero-photo {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #14213d 0%, #243b6b 100%);
  overflow: hidden;
}

.gb-profile-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.gb-secretariat-panel {
  padding: 1.35rem 1.45rem 1.5rem;
}

.gb-secretariat-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.85rem;
}

.gb-secretariat-row {
  padding: 0.65rem 0;
  border-bottom: 1px dashed rgba(20, 33, 61, 0.14);
}

.gb-secretariat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.gb-secretariat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.gb-secretariat-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: #14213d;
}

.gb-profile-main {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(20, 33, 61, 0.09);
  border-left: 5px solid #c9a227;
  box-shadow: 0 14px 36px rgba(15, 28, 51, 0.08);
  padding: 2rem 2.15rem;
}

.gb-profile-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(20, 33, 61, 0.09);
}

.gb-profile-name {
  font-size: 1.65rem;
  font-weight: 700;
  color: #14213d;
  line-height: 1.25;
  margin: 0.3rem 0 0.4rem;
}

.gb-profile-desig {
  font-size: 1rem;
  font-weight: 600;
  color: #c96449;
  line-height: 1.5;
  margin: 0;
}

.gb-bio-heading {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.6rem;
}

.gb-bio-copy {
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.8;
  margin: 0 0 1.75rem;
}

.gb-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(20, 33, 61, 0.09);
}

.gb-back-btn,
.gb-back-btn:link,
.gb-back-btn:visited,
.gb-back-btn:hover,
.gb-back-btn:focus-visible {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  background: #14213d;
  border: 1px solid #14213d;
  border-radius: 9px;
  padding: 0.65rem 1.15rem;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gb-back-btn:hover,
.gb-back-btn:focus-visible {
  background: #c96449;
  border-color: #c96449;
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

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

  .gb-profile-grid {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .gb-profile-grid {
    grid-template-columns: 1fr;
  }

  .gb-profile-hero-photo {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .gb-grid {
    grid-template-columns: 1fr;
  }

  .gb-card-photo {
    height: 290px;
  }

  .gb-profile-main {
    padding: 1.4rem;
  }
}
.gb-card-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.gb-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  color: #ffffff;
  background: #14213d;
}

.gb-badge--member {
  background: rgba(20, 33, 61, 0.08);
  color: #14213d;
  border: 1px solid rgba(201, 162, 39, 0.7);
  box-shadow: 0 2px 8px rgba(15, 28, 51, 0.06);
}

.gb-badge--member i {
  color: #c96449;
  font-size: 0.72rem;
}

.gb-officer-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #c96449;
  letter-spacing: 0.2px;
}