.philosophy-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5%;
}

.philosophy-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width: 1500px;
  width: 100%;
  gap: 3rem;
  flex-wrap: wrap;
}

.philosophy-image img {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
}

.philosophy-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  flex: 1;
  width: 70%;
  height: 34.8%;
  padding-left: 8%;
  gap: 4%;
}

.philosophy-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 56px;
  line-height: 66px;
  color: var(--text-dark);
}

.philosophy-text p {
  width: 620px;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  color: var(--text-gray);
  margin-bottom: 45px;
}

.btn-green-philosophy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 351px;
  height: 64px;
  border-radius: 999px;
  border: none;
  background-color: #3fb84b;
  cursor: pointer;
  text-decoration: none;
  /* font inside the button */
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  color: #fff;
  gap: 12px;
}

.btn-green-philosophy :hover {
  background-color: #45c75a;
  color: #fff;
  border: 2px solid #45c75a;
  box-shadow: var(--XXSoftXSsoft) var(--YYSoftXSsoft) var(--BlurBlurSoftXSsoft)
      var(--SpreadSpreadSoftXSsoft) var(--PrimaryButtonsShadow),
    var(--XXHardXShard) var(--YYHardXShard) var(--BlurBlurHardXShard)
      var(--SpreadSpreadHardXShard) var(--PrimaryButtonsShadow);
}

.btn-green-philosophy .btn-icon {
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.btn-green-philosophy .btn-icon path {
  fill: #fff;
  transition: fill 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1487px) {
  .philosophy-text {
    align-items: center;
  }
}

@media (max-width: 1199px) and (min-width: 900px) {
  .philosophy-content {
    flex-direction: row;
    gap: 2rem;
  }

  .philosophy-text {
    width: 65%;
    padding-left: 6%;
  }

  .philosophy-text h2 {
    font-size: 48px;
    line-height: 56px;
  }

  .philosophy-text p {
    font-size: 20px;
    line-height: 28px;
    text-align: center;
  }

  .btn-green-philosophy {
    width: 300px;
    height: 56px;
  }
}

/* Tablets and small screens */
@media (max-width: 899px) and (min-width: 600px) {
  .philosophy-content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .philosophy-text {
    width: 90%;
    padding-left: 0;
    text-align: center;
  }

  .philosophy-text h2 {
    font-size: 48px;
    line-height: 44px;
  }

  .philosophy-text p {
    font-size: 20px;
    line-height: 30px;
    width: 100%;
  }

  .btn-green-philosophy {
    width: 250px;
    height: 52px;
    align-self: center;
    font-size: 12px;
  }

  .philosophy-image img {
    max-width: 100%;
    border-radius: 12px;
  }
}

/* Mobile devices */
@media (max-width: 599px) {
  .philosophy-content {
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }

  .philosophy-text {
    width: 100%;
    padding-left: 0;
    text-align: center;
    gap: 1.5rem;
  }

  .philosophy-text h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .philosophy-text p {
    font-size: 16px;
    line-height: 24px;
    width: 100%;
  }

  .btn-green-philosophy {
    width: 100%;
    max-width: 280px;
    height: 48px;
    font-size: 0.9rem;
    align-self: center;
  }

  .philosophy-image img {
    max-width: 100%;
    border-radius: 12px;
  }
}
