/* CSS for Founders & Directors Layout */

.acf-layout-founders-and-directors {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  z-index: 1;
}

/* Dynamic background glows with custom dimensions */
.founders-glow-tr {
  position: absolute;
  top: 0;
  right: 0;
  width: 524px;
  height: 524px;
  opacity: 0.25;
  filter: blur(150px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.founders-glow-bl {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 622px;
  height: 622px;
  opacity: 0.25;
  filter: blur(150px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

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

.founders-heading {
  text-align: center;
}

/* Founders Row Layout */
.founders-wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-bottom: 20px;
}

.founder-row {
  row-gap: 30px;
}

.founder-col-details {
  display: flex;
  align-items: center;
}

.founder-details-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.founder-story-label {
  display: block;
  margin-bottom: 20px;
}

.founder-name {
  margin: 0;
}

.founder-designation {
  margin: 0;
}

.founder-about-text {
  display: block;
}

.founder-about-text p {
  margin-bottom: 15px;
}

.founder-about-text p:last-child {
  margin-bottom: 0;
}

/* Directors Grid Card Layout */
.directors-grid {
  row-gap: 40px;
}

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

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

.director-image-wrap,
.founder-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-5);
}

.director-img,
.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

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

/* Corner Squares for team photos using points_color */
.director-corner-square,
.founder-corner-square {
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 5;
}

.director-corner-tl,
.founder-corner-tl {
  top: 15px;
  left: 15px;
}

.director-corner-br-1,
.founder-corner-br-1 {
  bottom: 15px;
  right: 15px;
}

.director-corner-br-2,
.founder-corner-br-2 {
  bottom: 27px;
  right: 27px;
}

/* Social Link and Icon Styles */
.director-social-row,
.founder-social-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.director-social-link,
.founder-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.director-linkedin-icon,
.founder-linkedin-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.director-card-name {
  margin: 0;
}

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

/* Responsive adjustments */
@media (max-width: 991px) {
  .director-image-wrap,
  .founder-image-wrap {
    height: 300px;
  }
  .director-image-wrap img,
  .founder-image-wrap img {
    object-position: center top;
  }

  .founders-header-row {
    margin-bottom: 35px;
  }
  .founder-story-label {
    margin-bottom: 15px;
  }

  .founders-wrapper {
    gap: 40px;
    margin-bottom: 50px;
  }

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

  /* Set 100% width on mobile as requested */
  .founder-col-img,
  .founder-col-details,
  .founder-col-about {
    width: 100% !important;
  }
}
