/* =========================
   CTA Section
   ========================= */
.cta {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(180deg, #e5e7eb 0%, #ffffff 100%); /* grey → white */
  overflow: hidden;
}

/* Background PNG */
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/img/cta_bg.png") no-repeat center center;
  background-size: cover;
  opacity: 0.5;
  z-index: 0;
}

.cta-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3rem;
  z-index: 1;
}

/* Person absolute left */
.cta-image {
  position: absolute;
  left: 8%;
  top: -130px;
  z-index: 2;
}

.cta-image img {
  max-height: 680px;
  width: auto;
}

/* Text area */
.cta-text {
  flex: 1 1 60%;
  max-width: 600px;
  color: #555555;
}

.cta-text h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta-text p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #374151;
  line-height: 1.6;
  font-weight: lighter;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: lighter;
  border-radius: 25px;
  background: #10D3E2;   /* Brand color */
  color: black;
  text-decoration: none;
  transition: opacity 0.3s ease;
  border: none;
}
.btn:hover {
  opacity: 0.9;
}

/* =========================
   Mobile Responsive (CTA)
   ========================= */
@media (max-width: 768px) {
  .cta {
    padding: 3rem 1.5rem;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  }

  .cta::before {
    display: none; /* remove bg png */
  }

  .cta-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  /* Person image moves inline */
  .cta-image {
    position: relative;
    left: auto;
    top: auto;
    z-index: 1;
    margin: 0 auto;
  }

  .cta-image img {
    width: auto;
  }

  .cta-text {
    flex: 1 1 100%;
    max-width: 100%;
    color: #444;
    margin-top:-80px;
  }

  .cta-text h2 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .cta-text p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }

  .cta-text .btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: 30px;
  }
}

@media (max-width: 480px) {
  .cta {
    padding: 2.5rem 1rem;
  }

  .cta-text h2 {
    font-size: 1.4rem;
  }

  .cta-text p {
    font-size: 0.95rem;
  }

  .cta-text .btn {
    width: 100%;
    max-width: 280px;
  }
}
