/* CSS for Team Section Layout */

.acf-layout-team-section {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  z-index: 1;
}

/* Background glows */
.acf-layout-team-section::before {
  content: "";
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: rgba(92, 72, 156, 0.15); /* color-4 purple */
  filter: blur(150px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.acf-layout-team-section::after {
  content: "";
  position: absolute;
  top: -150px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: rgba(230, 81, 37, 0.15); /* color-1 orange */
  filter: blur(150px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.team-section-header-row {
  margin-bottom: 50px;
}

.team-section-heading {
  text-align: center;
}

.team-grid {
  row-gap: 40px;
}

.team-col {
  display: flex;
  justify-content: center;
}

.team-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.team-card-image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-5);
}

.team-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.team-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-5), var(--color-dark));
}

/* Corner Squares for team photos */
.team-corner-square {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--color-dark, #000000);
  z-index: 5;
}

.team-corner-tl {
  top: 15px;
  left: 15px;
}

.team-corner-br-1 {
  bottom: 15px;
  right: 15px;
}

.team-corner-br-2 {
  bottom: 27px; /* 15px + 12px = 27px */
  right: 27px;
}

/* Social Row and Link Styles */
.team-card-social-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.team-card-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.team-linkedin-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Card Content Area */
.team-card-content {
  padding: 24px 8px 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.team-card-designation {
  margin: 0;
}

.founder-about-text {
  font-family: var(--font-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .team-section-header-row {
    margin-bottom: 35px;
  }

  .team-grid {
    row-gap: 30px;
  }

  /* Mobile spacing adjustments */
  .team-card-img {
    height: 300px;
    object-position: center top;
  }
}
