.fiilp-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  background-repeat: no-repeat;
  border-radius: 10px 10px 60px 10px;
  overflow: hidden;
  height: 800px;
  max-width; 1200px;
  font-family: "Inter Variable", "Inter", sans-serif !important;
}

.fiilp-hero .fiilp-hero-wrapper {
  display: flex;
  flex: 1;
  width: auto;
  max-height: auto;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  flex: 1;
  max-width: 500;
  max-height: 220px;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px;
  background-color: #2d3340;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-upper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-upper .fiilp-hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 15px;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-upper .fiilp-hero-title span {
  font-size: 30px; /* Text sizes from Structure 1 */
  font-weight: 700;
  line-height: 30px;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-upper .fiilp-hero-title .fiilp-hero-title-badge {
  display: inline-flex;
  font-size: 12px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #CFD8CB 0%, #8FBBD6 100%);
  padding: 2px 6px;
  color: #000;
  border-radius: 2px;
  font-weight: 700;
  flex-shrink: 0;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-upper .fiilp-hero-subtitle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-upper .fiilp-hero-subtitle span {
  font-size: 24px; 
  font-weight: 500;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-middle {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-middle .fiilp-hero-text p {
  font-family: "Inter", sans-serif;
  font-size: 20px; 
  font-weight: 300;
  margin: 0;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-actions {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 20px;
  gap: 20px;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-actions .fiilp-hero-cta {
  display: inline-flex;
  flex-grow: 2;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-actions .fiilp-hero-cta span {
  display: inline-block;
  white-space: normal;
  font-size: unset;
  line-height: unset;
  font-weight: unset;
}
.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-actions .fiilp-hero-cta button,
a.fi_cta {
  color: #2d3340 !important;
  background-color: #fff !important;
}

a.fi_cta:hover,
a.fi_cta:visited,
a.fi_cta:active,
a.fi_cta:link {
  text-decoration: none;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-actions .fiilp-hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-shrink: 0;
  flex-grow: 1;
  justify-content: flex-start;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-actions .fiilp-hero-social div {
  padding-top: 10px;
  display: flex;
  justify-content: center;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-actions .fiilp-hero-social svg {
  height: 30px;
}

.fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-actions .fiilp-hero-social svg path {
  fill: #fff;
}

/* Mobile Adaptations */
@media screen and (max-width: 500px) {
  .fiilp-hero {
    border-radius: 20px;
    max-height: 600px; /* Allow dynamic height for mobile */ 
  }
  
  .fiilp-hero .fiilp-hero-wrapper {
    max-height: 600px; /* Limit the gradient/photo height */
    background-size: 100%; /* Ensure the full photo is visible */
    background-position: center; /* Center the photo */
  }
  
   .fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content {
    padding: 20px;
    gap: 8px; /* Reduced gap for content */
  }
  
  .fiilp-hero .fiilp-hero-wrapper .fiilp-hero-logo {
    justify-content: center;
    height: 100px; /* Smaller logo container for mobile */
  }

  .fiilp-hero .fiilp-hero-wrapper .fiilp-hero-logo img {
    width: 300px;
    max-height: 100px;
  }

  .fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-upper .fiilp-hero-title span {
    font-size: 18px;
    line-height: 18px;
  }

  .fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-upper .fiilp-hero-subtitle span {
    font-size: 16px; 
    line-height: 16px;
    font-weight: 400;
  }

  .fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-middle .fiilp-hero-text p {
    font-size: 14px; 
    line-height: 14px;
    font-weight: 300;
  }

  .fiilp-hero .fiilp-hero-wrapper .fiilp-hero-content .fiilp-hero-content-actions .fiilp-hero-cta {
    justify-content: center;
  }
}
