/* Base Styling */

.impact-section {
  position: relative;
  width: 100vw; /* Full viewport width */
  margin-left: calc(50% - 50vw); /* Centers the div while extending to 100vw */
  height: 550px; /* Fixed height */
  overflow: hidden;
  margin-top: -50px;
  margin-bottom: -10px;
}

.background-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* Full width of the section */
  height: 100%; /* Full height of the section */
  -o-object-fit: cover;
     object-fit: cover; /* Ensures the image covers the entire background area */
  z-index: -1; /* Places the image behind the content */
}

.impact-content {
  position: relative;
  max-width: 350px;
  width: 40%; /* Initial width for larger screens */
  -webkit-box-flex: 0;
          flex: 0 0 40%; /* Prevents flex-grow */
  padding: 5rem 3rem;
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  border-bottom-right-radius: 80px;
  z-index: 1;
  margin: 40px auto;
  margin-left: 20% !important;
}

.impact-content h1, .impact-content p {
  color: #ffffff; /* Ensure text color is white */
  font-family: Arial, Helvetica, sans-serif;
}

.impact-content h3 {
  color: #ffffff; /* Ensure text color is white */
  font-size: 3rem;
  font-family: Arial, Helvetica, sans-serif;
}

.impact-content a {
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif;
  margin-left: 20px;
}

.learn-more-button {
  background-color: #E2DFD7;
  color: #2c536f;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: inline-block;
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

.learn-more-button:hover {
  background-color: #d1c5aa;
}

/* Responsive Adjustments */

@media (max-width: 1024px) {
  .impact-content {
    width: 60%; /* Adjust width for tablet screens */
    padding: 3rem 2rem; /* Reduce padding */
    border-bottom-right-radius: 50px; /* Adjust corner radius */
  }
}

@media (max-width: 768px) {
  .impact-content {
    width: 80%; /* Adjust width for mobile screens */
    padding: 2rem 1.5rem; /* Reduce padding for smaller screens */
    border-bottom-right-radius: 30px; /* Further adjust corner radius */
  }
}

@media (max-width: 480px) {
  .impact-content {
    width: 90%; /* Maximize width for very small screens */
    padding: 1.5rem 1rem; /* Further reduce padding */
    font-size: 0.9rem; /* Adjust font size for readability */
    right: 40px !important;
  }
}