.fe-featured-entrepreneurs {
  text-align: center;
  padding: 0rem 1rem;
  max-width: 1440px;
  margin: auto;
}

.fe-section-title {
  font-family: var(--font-family-sans);
  font-size: 2rem;
  letter-spacing: 0.08em;
  line-height: 150%;
  text-transform: uppercase;
  text-align: left;
}

.fe-card-container {
  display: -webkit-box;
  display: flex;
  flex-wrap: wrap;
  grid-gap: 2rem;
  gap: 2rem;
  -webkit-box-pack: center;
          justify-content: center;
}

/* Wrapper to hold both the icon and the company card */

.fe-card-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

/* Icon styling */

.fe-icon-wrapper {
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
          align-items: center;
  position: absolute;
  top: -45px !important;
  left: 50%;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  z-index: 2;
  background-size: cover;
  background-position: center;
}

/* Individual icon styles */

.fe-icon-agriculture {
  background-image: url("/themes/custom/oef/images/agriculture.svg");
  background-repeat: no-repeat;
  width: 100px;
  height: 100px;
}

.fe-icon-construction {
  background-image: url("/themes/custom/oef/images/construction.svg");
  background-repeat: no-repeat;
  width: 100px;
  height: 100px;
}

.fe-icon-manufacturing {
  background-image: url("/themes/custom/oef/images/manufacturing.svg");
  background-repeat: no-repeat;
  width: 100px;
  height: 100px;
}

/* Company card styling */

.fe-company-card {
  background-color: #2c536f;
  border-top-left-radius: 80px 80px;
  border-bottom-left-radius: 40px 40px;
  border-bottom-right-radius: 40px 40px;
  overflow: hidden;
  -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 350px;
  margin: 1rem;
  text-align: left;
  position: relative;
  padding-top: 0px;
}

/* Main image styling */

.fe-image-wrapper {
  width: 100%;
  overflow: hidden;
  border-top-left-radius: 40px;
}

.fe-main-image {
  width: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Info section */

.fe-info-section {
  padding: 0.5rem 1.5rem;
  color: #ffffff;
  background-color: #2c536f;
  max-width: 100%;
  margin-left: 2em;
}

.fe-info-section h3 {
  font-family: var(--font-family-serif);
  font-size: 1rem;
  margin: 1rem -1.5rem 0;
  color: #f1dfc9;
}

.fe-info-section-accent {
  display: block;
  height: 5px;
  width: 50px;
  background-color: #f1dfc9;
  margin: 0.5rem -1.5rem;
}

.fe-info-section .fe-company-name {
  margin: 0;
  font-size: 1rem;
  color: #F1DFC9;
  margin-left: -1.5rem !important;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
}

.fe-info-section .fe-industry {
  font-style: italic;
  margin: 1rem -1.5rem;
  color: #F1DFC9;
}

.fe-info-section .fe-company-name a, .fe-info-section .fe-industry a {
  color: #F1DFC9;
}

/* Black border before footer */

.fe-black-border {
  height: 10px;
  background-color: #231f20;
  margin: 0; /* Removes left/right margins */
  position: relative;
  left: calc(57% - 210px);
  width: 350px;
}

/* Footer section */

.fe-footer-section {
  background-color: #f1dfc9;
  padding: 1rem;
  text-align: right;
  text-transform: uppercase;
  color: #2c536f;
  border-bottom-right-radius: 40px;
  border-bottom-left-radius: 40px;
  margin: 0; /* Removes left/right margins */
  position: relative;
  left: calc(57% - 210px);
  width: 350px;
}

.fe-footer-section a {
  text-decoration: none;
  font-weight: bold;
  color: #2c536f;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}

.fe-footer-section a:hover {
  color: #1b394e;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .fe-featured-entrepreneurs {
    margin: 200px auto 0;
  }

  .fe-card-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
            flex-direction: column;
    -webkit-box-align: center;
            align-items: center;
  }

  .fe-info-section .fe-company-name {
    font-size: 1.25rem;
  }

  .fe-footer-section {
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  .fe-icon-wrapper {
    width: 100px;
    height: 100px;
    top: -30px;
  }
}