/* TEAM HERO */
.team-hero {
  background: #0f172a;
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}

.team-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.team-hero p {
  color: #cbd5f5;
  max-width: 600px;
  margin: auto;
  font-size: 15px;
}

/* TEAM SECTION */
.team-section {
  padding: 60px 20px;
  background: #ffffff;
}

.team-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.team-card {
  background: #f8fafc;
  padding: 30px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.team-img {
  position: relative;
  width: 260px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Image fills frame properly */
.team-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* Image */
.team-img img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.team-img img {
  object-fit: cover;
  object-position: center top;
  object-position: center 20%;

}



/* Overlay */
.img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  /* greyish overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* LinkedIn icon */
.img-overlay a {
  color: #ffffff;
  font-size: 28px;
  background: #0a66c2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.img-overlay a:hover {
  transform: scale(1.15);
}

/* Hover effects */
.team-img:hover .img-overlay {
  opacity: 1;
}

.team-img:hover img {
  transform: scale(1.05);
}

/* LinkedIn overlay */
.linkedin-overlay {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: #0a66c2;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.linkedin-overlay:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.team-card img {
  /* width and height removed to allow object-fit in container */
  /* border-radius removed */
  object-fit: cover;
  margin-bottom: 15px;

  background: #fff;
  padding: 5px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12),
    0 0 0 4px #f1f5f9;

}

/* RESET any previous image styling */
.team-card img {
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}



.team-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.team-card span {
  font-size: 13px;
  color: #64748b;
  display: block;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}

/* LinkedIn Icon */
.linkedin-link {
  display: inline-block;
  margin: 6px 0 10px;
  color: #0a66c2;
  font-size: 20px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.linkedin-link:hover {
  transform: scale(1.1);
  opacity: 0.85;
}


/* VALUES */
.team-values {
  background: #f1f5f9;
  padding: 50px 20px;
  text-align: center;
}

.team-values h2 {
  font-size: 26px;
  margin-bottom: 30px;
}

.values-grid {
  max-width: 800px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.values-grid div {
  background: #ffffff;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

/* CTA */
.team-cta {
  background: #0f172a;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.team-cta h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.team-cta .cta-btn {
  display: inline-block;
  background: #facc15;
  color: #0f172a;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}