/* Board of Governors Member Styles - Matching V1 Design */

.board-members-section {
  padding: 5rem 1rem;
  background-color: #f9fafb;
}

.board-members-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.board-members-heading span {
  color: #d4af37;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.board-members-heading h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .board-members-heading h2 {
    font-size: 2.25rem;
  }
}

.board-members-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .board-members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .board-members-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.board-member-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.board-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.member-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

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

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.8), transparent);
}

.member-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  color: #d4af37;
  font-size: 0.75rem;
  font-weight: 500;
}

.member-badge svg {
  width: 0.75rem;
  height: 0.75rem;
}

.member-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.member-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.member-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 0.25rem;
}

.member-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.member-bio {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.read-more-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1e3a5f;
  font-weight: 600;
  font-size: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.read-more-btn:hover {
  color: #d4af37;
}

.read-more-btn::after {
  content: "→";
  transition: transform 0.3s ease;
}

.read-more-btn:hover::after {
  transform: translateX(4px);
}

/* Modal Styles */
.member-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.member-modal.active {
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 1rem;
  max-width: 900px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.member-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s ease, transform 0.3s ease;
  color: #1e3a5f;
}

.modal-close:hover {
  background: white;
  transform: rotate(90deg);
}

.modal-header {
  position: relative;
}

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

.modal-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.85), transparent 60%);
}

.modal-header-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
}

.modal-header-info h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 0.25rem;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.modal-body {
  padding: 2rem;
}

.modal-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

@media (min-width: 768px) {
  .modal-header img {
    height: 320px;
  }
  
  .modal-header-info h2 {
    font-size: 2rem;
  }
}
