/* Import Figtree font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;600&display=swap');

/* Main wrapper for scoping */
.team-element-wrapper { /* Changed wrapper class */
  width: 100%;
  font-family: 'Figtree', sans-serif;
  color: #36194C;
  /* Set base font-size to 16px for em calculations */
  font-size: 16px;
   padding-top:60px;
  padding-bottom:60px;
  background-color:#F2F1FC;
  margin-top:0px;
  margin-bottom:0px;
}

/* Centered container */
.team-element-wrapper .container { /* Changed scope */
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px; 
  padding-right: 20px;

}

/* Main Heading (H2) */
.team-element-wrapper .team-element-main-heading { /* Changed class */
  font-family: 'Figtree', sans-serif;
font-weight: 500;
font-size: 36px;
  line-height: 150%;
  letter-spacing: 0.5em; 
  text-transform: uppercase;
  color: #36194C;
  margin: 0;
  padding: 0;
}


/* Sub Heading (H3) */
.team-element-wrapper .team-element-sub-heading { /* Changed class */
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 1.5em; /* 24px / 16px */
  line-height: 120%;
  letter-spacing: 0.5em; 
  text-transform: uppercase;
  color: #36194C;
  margin: 0 0 40px 0; 
}

/* Team Member Grid */
.team-element-wrapper .team-element-grid { /* Changed class */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px; 
  margin-top:50px;
}

/* Individual Team Member Card */
.team-element-wrapper .team-element-item { /* Changed class */
  /* No specific styles needed */
}

/* Card Name (H2) */
.team-element-wrapper .team-element-name { /* Changed class */
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 1.25em; /* 20px / 16px */
  line-height: 150%;
  letter-spacing: 0;
  color: #36194C;
  margin: 0;
  padding: 0;
}

/* Card Title (H3) */
.team-element-wrapper .team-element-title { /* Changed class */
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 1.125em; /* 18px / 16px */
  line-height: 150%;
  letter-spacing: 0;
  color: #36194C;
  margin: 0px 0 15px 0; 
}

/* Card Description (P) */
.team-element-wrapper .team-element-description { /* Changed class */
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 1em; /* 16px / 16px */
  line-height: 150%;
  letter-spacing: 0;
  color: #36194C;
  margin: 15px 0 15px 10px; 
  text-align:left !important;
}

/* Card Button */
.team-element-wrapper .team-element-button { /* Changed class */
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 1em; /* 16px / 16px */
  line-height: 150%;
  letter-spacing: 0;
  color: #36194C;
  text-decoration: none;
  display: block; 
  margin-bottom: 15px; 
  transition: opacity 0.3s ease;
}

.team-element-wrapper .team-element-button:hover { /* Changed scope */
  opacity: 0.7;
}

/* LinkedIn Icon Link */
.team-element-wrapper .team-element-linkedin { /* Changed class */
  display: inline-block;
  line-height: 1;
}

.team-element-wrapper .team-element-linkedin svg { /* Changed scope */
  width: 24px;
  height: 24px;
  fill: #36194C;
  transition: fill 0.3s ease;
}

.team-element-wrapper .team-element-linkedin:hover svg { /* Changed scope */
  fill: #0A66C2; /* Official LinkedIn Blue */
}

/* Responsive Styles */
@media (max-width: 991px) {
  /* Tablet: 2 columns */
  .team-element-wrapper .team-element-grid { /* Changed scope */
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  /* Mobile: 1 column */
  .team-element-wrapper .team-element-grid { /* Changed scope */
    grid-template-columns: 1fr;
  }

  .team-element-main-heading{
    font-size:32px !important;
  }
  
  /* Reduce letter spacing on mobile for readability */
  .team-element-wrapper .team-element-main-heading,
  .team-element-wrapper .team-element-sub-heading { /* Changed scope */
    letter-spacing: 0.2em;
  }

  .team-element-grid{
    margin-top:0px !important;
  }




}