/* ==========================================================================
   SECTION 10: EXECUTIVE BOARD & GOVERNANCE
   Optical Peep-Hole Window Parallax + Theme Color Harmony + Octagonal Mesh
   ========================================================================== */

.ehs-board-section {
  position: relative !important;
  padding: 65px 0 115px 0 !important;
  /* Theme-Aligned Royal Charcoal & Oxford Base */
  background-color: #06152b !important;
  border-top: 1px solid rgba(56, 189, 248, 0.2) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2) !important;

  /* TRUE OPTICAL PEEP-HOLE LOCKED PARALLAX */
  background-attachment: fixed !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

/* Translucent Optical Overlay (Balanced Opacity so image shines through) */
.ehs-board-bg-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    145deg,
    rgba(6, 21, 43, 0.82) 0%,
    rgba(9, 32, 64, 0.74) 50%,
    rgba(5, 17, 35, 0.86) 100%
  ) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* Distinct Geometric Octagonal Governance Lattice Mesh Overlay */
.ehs-board-mesh-overlay {
  position: absolute !important;
  inset: 0 !important;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.26) 1.5px, transparent 1.5px),
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(56, 189, 248, 0.02) 1px, transparent 1px) !important;
  background-size: 32px 32px, 32px 32px, 32px 32px, 32px 32px !important;
  opacity: 0.9 !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* ==========================================================================
   SECTION HEADER (CENTER-ALIGNED & COMPACT GAP)
   ========================================================================== */

.ehs-board-header {
  text-align: center !important;
  max-width: 840px !important;
  margin: 0 auto 45px auto !important;
  position: relative !important;
  z-index: 4 !important;
}

.ehs-board-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(2, 132, 199, 0.25) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  padding: 5px 16px !important;
  border-radius: 30px !important;
  margin-bottom: 12px !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

.ehs-board-badge svg {
  color: #38bdf8 !important;
}

.ehs-board-title {
  font-size: 38px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  letter-spacing: -0.6px !important;
  margin: 0 0 12px 0 !important;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

.ehs-board-sub {
  font-size: 16px !important;
  color: #cbd5e1 !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

/* ==========================================================================
   BOARD GRID: 4 IN FIRST ROW, 3 IN SECOND ROW (CENTERED)
   ========================================================================== */

.ehs-board-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 26px !important;
  position: relative !important;
  z-index: 4 !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
}

/* Row 1: 4 Cards */
.ehs-board-card {
  flex: 0 0 calc(25% - 20px) !important;
  max-width: calc(25% - 20px) !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

/* Row 2: 3 Cards Centered */
.ehs-board-card:nth-child(n+5) {
  flex: 0 0 calc(28% - 20px) !important;
  max-width: calc(28% - 20px) !important;
}

/* Card Styling: High-Trust White Card with Theme Accent */
.ehs-board-card-inner {
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.ehs-board-card:hover .ehs-board-card-inner {
  transform: translateY(-8px) !important;
  border-color: #0056b3 !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 20px rgba(2, 132, 199, 0.25) !important;
}

/* Portrait Image Frame */
.ehs-board-img-wrap {
  position: relative !important;
  width: 100% !important;
  height: 220px !important;
  overflow: hidden !important;
  background: #002244 !important;
}

.ehs-board-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ehs-board-card:hover .ehs-board-photo {
  transform: scale(1.06) !important;
}

.ehs-board-photo-placeholder {
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, #002244 0%, #0056b3 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #38bdf8 !important;
}

.ehs-board-desig-pill {
  position: absolute !important;
  bottom: 12px !important;
  left: 12px !important;
  background: rgba(0, 34, 68, 0.92) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  max-width: 88% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Card Body */
.ehs-board-body {
  padding: 20px 20px 18px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  background: #ffffff !important;
}

.ehs-board-name {
  font-size: 17.5px !important;
  font-weight: 900 !important;
  color: #002244 !important;
  margin: 0 0 3px 0 !important;
  line-height: 1.25 !important;
}

.ehs-board-role-line {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0056b3 !important;
  margin-bottom: 10px !important;
  display: block !important;
}

.ehs-board-bio-text {
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #475569 !important;
  margin: 0 0 16px 0 !important;
  flex-grow: 1 !important;
}

/* Footer / Audit Strip */
.ehs-board-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 12px !important;
  border-top: 1px solid #f1f5f9 !important;
  margin-top: auto !important;
}

.ehs-board-audit-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #15803d !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  padding: 3px 7px !important;
  border-radius: 6px !important;
}

.ehs-board-link-btn {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: #e0f2fe !important;
  color: #0056b3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.ehs-board-link-btn:hover {
  background: #0056b3 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

/* ==========================================================================
   RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 1200px) {
  .ehs-board-card,
  .ehs-board-card:nth-child(n+5) {
    flex: 0 0 calc(33.333% - 18px) !important;
    max-width: calc(33.333% - 18px) !important;
  }
}

@media (max-width: 860px) {
  .ehs-board-card,
  .ehs-board-card:nth-child(n+5) {
    flex: 0 0 calc(50% - 15px) !important;
    max-width: calc(50% - 15px) !important;
  }
}

@media (max-width: 580px) {
  .ehs-board-section {
    padding: 50px 0 75px 0 !important;
    background-attachment: scroll !important;
  }
  .ehs-board-title {
    font-size: 28px !important;
  }
  .ehs-board-card,
  .ehs-board-card:nth-child(n+5) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}