.team-filters {
  text-align: center;
  margin-bottom: 30px;
}

.team-filter-btn {
  background: #08254f !important;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 18px;
  margin: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.team-filter-btn.active,
.team-filter-btn:hover {
  background: #1398bb !important;
  color: #ffffff !important;
}

.team-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.team-card {
  text-align: center;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s;
  width: calc(25% - 45px);
}

/* .team-card.active {
  outline: 3px solid #00b5e2;
} */

.team-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 6px;
  object-fit: cover;
}

.team-info {
  padding: 0px;
  text-align: left;
}

.team-name {
  font-weight: 600;
  color: #001d32;
  margin-top: 15px;
  margin-bottom: 2px;
  font-size: 26;
  font-weight: 800;
}

.team-image {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 6px;
  overflow: hidden;
}

.team-designation {
  color: #001d32;
  font-size: 14px;
  font-size: 18;
  font-weight: 300;
  font-style: italic;
}

.team-detail-panel {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 30px;
  height: fit-content;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  box-shadow: 0px 4px 8px 3px #00000026;
  margin: 0px;
}

.close-button-cus-team-card {
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
}

.team-detail-inner {
  display: none;
}

.team-detail-inner.active {
  display: block;
}

.detail-header {
  align-items: center;
  margin-bottom: 15px;
  width: 30%;
}

.detail-header h3 {
  color: #1398bb;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
}
.detail-designation {
  color: #001d32;
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
}

.detail-image img {
  border-radius: 10px;
  width: 100%;
  aspect-ratio: square;
  height: auto;
}

.detail-links a {
  display: inline-block;
  margin-right: 10px;
  color: #00b5e2;
  text-decoration: none;
}

.detail-content {
  width: 70%;
}

.detail-content p {
  margin-bottom: 12px;
  color: #444;
}

.coompany-name {
  font-size: 16px;
  font-weight: 700;
}

.heading-section-team {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.heading-section-team hr {
  position: absolute;
  width: 100%;
}

.heading-section-team h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0px;
  padding: 10px 50px;
  background-color: white;
  z-index: 2;
}

.capital-error-not-found-msg,
.ceo-error-not-found-msg {
  text-align: center;
  color: #444;
}

@media screen and (max-width: 1280px) {
  .team-card {
    width: calc(33.3333333% - 40px);
  }
}

@media screen and (max-width: 991px) {
  .team-grid {
    gap: 30px;
  }
  .team-card {
    width: calc(50% - 15px);
  }

  .team-detail-panel {
    flex-direction: column;
    gap: 30px;
  }

  .detail-header {
    width: 100%;
  }

  .detail-content {
    width: 100%;
  }
  .close-button-cus-team-card {
    top: 10px;
    right: 10px;
  }
}

@media screen and (max-width: 576px) {
  .team-card {
    width: 100%;
  }
  .heading-section-team h2 {
    padding: 10px 30px;
  }
}

.team-card:hover {
    transform: translateY(-8px);
    transition: 0.3s;
}

.team-modal-template{
  position: relative;
  margin-top: -60px;
}