/* Team Members Widget Styles */
.team-members-wrapper {
  width: 100%;
  max-width: 100%;
}

 

.team-members-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
}

/* Filter Buttons */
.team-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.team-filter-btn {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  color: #495057;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

.team-filter-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-2px);
}

.team-filter-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Grid Layout */
.team-members-grid {
  display: grid;
  /* grid-template-columns and gap are controlled by the Elementor Layout controls */
}

/* Team Member Cards */
.team-member-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #e2e8f0;
}

.team-member-card.filtered-out {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Image Styles */
.team-member-image-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.team-member-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
 

/* Text Styles */
.team-member-info {
  position: relative;
}

.team-member-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.team-member-position {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 0 1.5rem 0;
  font-weight: 400;
  line-height: 1.4;
}

.team-member-read-more {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
  padding: 0;
}

.team-member-read-more:hover {
  color: #1d4ed8;
  text-decoration-thickness: 2px;
}

/* Modal Styles */
.team-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.team-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.team-modal-content {
  background: white; 
  width: 100%;
  height:100%;
  overflow-y:scroll;
  max-width: 1340px; 
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

.team-modal-header {
  display: flex;
  justify-content: space-between; 
}

.team-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.team-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

 

.team-modal-body {
  padding: 2rem;
}

.team-modal-member-info {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.team-modal-image-wrapper {
  flex-shrink: 0;
}

.team-modal-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f1f5f9;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-modal-details {
  flex: 1;
  min-width: 0;
}

.team-modal-member-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.team-modal-member-position {
  font-size: 1.1rem;
  color: #2563eb;
  font-weight: 500;
  margin: 0 0 1.5rem 0;
}

.team-modal-member-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 2rem;
}

.team-modal-member-bio p {
  margin-bottom: 1rem;
}

.team-modal-member-bio p:last-child {
  margin-bottom: 0;
}

.team-modal-contact-info {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
}

.team-modal-contact-info > div {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-modal-contact-info > div:last-child {
  margin-bottom: 0;
}

.team-modal-contact-info strong {
  color: #374151;
  font-weight: 600;
  min-width: 80px;
}

.team-modal-email-link,
.team-modal-linkedin-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.team-modal-email-link:hover,
.team-modal-linkedin-link:hover {
  text-decoration: underline;
}

.team-modal-phone-number {
  color: #374151;
  font-weight: 500;
}

/* No Team Members Message */
.no-team-members {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
  font-size: 1.1rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  /* grid columns/gap at this breakpoint are controlled by Elementor's tablet settings */
}

@media (max-width: 768px) {
  /* grid columns/gap at this breakpoint are controlled by Elementor's mobile settings */

  .team-members-title {
    font-size: 2rem;
  }

  .team-member-card {
    padding: 1.5rem 1rem;
  }

  .team-member-image {
    width: 100px;
    height: 100px;
  }

  .team-modal-content {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }

  .team-modal-member-info {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .team-modal-image {
    width: 120px;
    height: 120px;
  }

  .team-modal-body {
    padding: 1.5rem;
  }

  .team-modal-header {
    /*padding: 1rem 1.5rem;*/
  }

  .team-filters {
    gap: 0.5rem;
  }

  .team-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  /* grid columns/gap at this breakpoint are controlled by Elementor's mobile settings */

  .team-members-title {
    font-size: 1.75rem;
  }

  .team-modal-member-name {
    font-size: 1.5rem;
  }

  .team-modal-contact-info {
    text-align: left;
  }

  .team-modal-contact-info > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .team-modal-contact-info strong {
    min-width: auto;
  }
}

/* Print Styles */
@media print {
  .team-modal-overlay {
    display: none !important;
  }

  .team-member-read-more {
    display: none;
  }

  .team-filters {
    display: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .team-member-card {
    border: 2px solid #000;
  }

  .team-filter-btn {
    border: 2px solid #000;
  }

  .team-modal-content {
    border: 3px solid #000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .team-member-card,
  .team-member-image,
  .team-filter-btn,
  .team-modal-overlay,
  .team-modal-content {
    transition: none;
    animation: none;
  }

  .team-member-card:hover {
    transform: none;
  }

  .team-member-card:hover .team-member-image {
    transform: none;
  }
}
