.features {
  padding: 3rem 1rem;
  background-color: var(--color-bg2);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.feature-list-container {
  display: flex;
  justify-content: center; /* Centers the list container */
  align-items: center; /* Vertically centers the list container */
  margin-top: 2rem;
}

.features h2 {
  font-size: 2.5rem;
  color: #777;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.features h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 5px;
  background-color: var(--color-primary);
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 850px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.2rem;
  color: var(--color-text);
  font-weight: 400;
}

.feature-list li {
  position: relative;
  margin: 1.5rem 0;
  padding-left: 40px; /* Increased padding for better checkmark alignment */
  font-weight: 400;
  line-height: 1.8;
  transition: all 0.3s ease;
}

.feature-list li:hover {
  transform: translateX(8px);
}

.normal-checkmark {
  position: absolute;
  left: 0;
  top: 50%; /* Align checkmark to the middle of the line */
  transform: translateY(-50%); /* Adjust to make sure it aligns vertically */
  color: rgb(62, 214, 62);
  font-size: 2.2rem;
  font-weight: bold;
  transition: transform 0.3s ease;
  line-height: 1.8;
}

.feature-list li:hover .normal-checkmark {
  transform: scale(1.2) translateY(-50%); /* Slightly enlarge and keep vertical alignment */
}

/* Elegant hover effect for list items */
.feature-list li:hover {
  color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  background-color: rgba(62, 214, 62, 0.1);
  border-radius: 8px;
  padding-left: 45px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .features h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .feature-list {
    padding: 0 1rem;
  }

  .feature-list li {
    font-size: 1rem;
    padding-left: 30px;
  }

  .normal-checkmark {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .feature-list {
    padding: 0 1rem;
  }

  .feature-list li {
    font-size: 1rem;
    padding-left: 25px;
  }

  .normal-checkmark {
    font-size: 1.6rem;
  }
}
