/* ==========================================================================
   Board of Directors Module Styling
   ========================================================================== */

.board-directors-wrapper {
  --bod-primary: #1a202c;
  --bod-accent: #ff402a;
  --bod-accent-hover: #888;
  --bod-text-dark: #2d3748;
  --bod-text-muted: #718096;
  --bod-bg-card: #ffffff;
  --bod-border: #e2e8f0;
  --bod-radius: 12px;
  --bod-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --bod-shadow-hover: 0 20px 30px -10px rgba(0, 0, 0, 0.12);

  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 20px;
  box-sizing: border-box;
}

.board-directors-wrapper * {
  box-sizing: border-box;
}

/* Header Section */
.board-directors-wrapper .bod-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.board-directors-wrapper .bod-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--bod-accent);
  margin-bottom: 8px;
}

.board-directors-wrapper .bod-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--bod-primary);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.board-directors-wrapper .bod-description {
  font-size: 1rem;
  color: var(--bod-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Directors Grid */
.board-directors-wrapper .bod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Director Card */
.board-directors-wrapper .bod-card {
  background-color: var(--bod-bg-card);
  border-radius: var(--bod-radius);
  border: 1px solid var(--bod-border);
  overflow: hidden;
  box-shadow: var(--bod-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.board-directors-wrapper .bod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bod-shadow-hover);
}

/* Card Image Area */
.board-directors-wrapper .bod-image-container {
  position: relative;
  width: 100%;
  background-color: #f7fafc;
  overflow: hidden;
  max-width: 250px;
  height: 100%;
}

.board-directors-wrapper .bod-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.board-directors-wrapper .bod-card:hover .bod-image {
  transform: scale(1.04);
}

/* Hover Social Bar */
.board-directors-wrapper .bod-socials {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.board-directors-wrapper .bod-card:hover .bod-socials {
  opacity: 1;
  transform: translateY(0);
}

.board-directors-wrapper .bod-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--bod-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.board-directors-wrapper .bod-social-link:hover {
  background-color: var(--bod-accent);
  color: #ffffff;
}

/* Card Information */
.board-directors-wrapper .bod-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.board-directors-wrapper .bod-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bod-primary);
  margin: 0 0 4px 0;
}

.board-directors-wrapper .bod-role {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bod-accent);
  margin: 0 0 16px 0;
}

.board-directors-wrapper .bod-bio {
  font-size: 0.9rem;
  color: var(--bod-text-muted);
  line-height: 1.55;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

/* Button */
.board-directors-wrapper .bod-modal-btn {
  background: transparent;
  color: var(--bod-accent);
  border: 1px solid var(--bod-accent);
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.board-directors-wrapper .bod-modal-btn:hover {
  background-color: var(--bod-accent);
  color: #ffffff;
}

/* Modal Popup Overlay & Window */
.board-directors-wrapper .bod-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.board-directors-wrapper .bod-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.board-directors-wrapper .bod-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.board-directors-wrapper .bod-modal-container {
  position: relative;
  background-color: #ffffff;
  width: 90%;
  max-width: 650px;
  border-radius: var(--bod-radius);
  padding: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 2;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.board-directors-wrapper .bod-modal.is-active .bod-modal-container {
  transform: scale(1);
}

.board-directors-wrapper .bod-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--bod-text-muted);
  cursor: pointer;
  line-height: 1;
}

.board-directors-wrapper .bod-modal-close:hover {
  color: var(--bod-primary);
}

.board-directors-wrapper .bod-modal-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.board-directors-wrapper .bod-img {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.board-directors-wrapper .bod-modal-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.board-directors-wrapper .bod-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    position: sticky;
    top: 10px;
}

.board-directors-wrapper .bod-intro {
    position: sticky;
    top: 0;
    background: #fff;
}

.board-directors-wrapper .bod-intro {
  position: sticky;
  top: 0px;
  background: #fff;
}

.board-directors-wrapper .bod-modal-content {
  flex-grow: 1;
}

.board-directors-wrapper .bod-modal-content h3 {
  margin: 0 0 4px 0;
  font-size: 1.35rem;
  color: var(--bod-primary);
}

.board-directors-wrapper .bod-modal-role {
  font-size: 0.9rem;
  color: var(--bod-accent);
  margin: 0 0 12px 0;
  font-weight: 500;
}

.board-directors-wrapper .bod-modal-divider {
  border: none;
  border-top: 1px solid var(--bod-border);
  margin: 12px 0;
}

.board-directors-wrapper #bodModalFullBio {
  font-size: 0.925rem;
  color: var(--bod-text-dark);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .bod-card {
    height: auto !important;
}

.bod-group {
    display: block !important;
}
  .board-directors-wrapper .bod-image-container {
      max-width:100%;
  }
}

/* Responsive Styles */
@media (max-width: 600px) {
  .board-directors-wrapper .bod-modal-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .board-directors-wrapper .bod-modal-btn {
    align-self: stretch;
    text-align: center;
  }
}