.icon {
  text-decoration: none;
  -moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  -webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  -ms-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  border-bottom: none;
  position: relative;
}

.features {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -moz-justify-content: center;
  -webkit-justify-content: center;
  -ms-justify-content: center;
  justify-content: center;
  width: calc(100% + 2em);
  margin: 0 0 3em -2em;
  padding: 0;
  list-style: none;
}

.features li {
  width: calc(33.33333% - 2em);
  margin-left: 2em;
  margin-top: 3em;
  padding: 0;
  text-align: center;
}

.features li:nth-child(1),
.features li:nth-child(2),
.features li:nth-child(3) {
  margin-top: 0;
}

.features li > :last-child {
  margin-bottom: 0;
}

.features li h3 {
  margin: 0.5em 0 0.25em 0; /* Reduced spacing: 0.5em above, 0.25em below */
  font-size: 1.2em;
}

.features li p {
  margin: 0;
  font-size: 0.9em;
}

.icon:before {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  text-transform: none !important;
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
}

.icon > .label {
  display: none;
}

.icon.solid:before {
  font-weight: 900;
}

.icon.brands:before {
  font-family: "Font Awesome 6 Brands";
}

.icon.major {
  border: solid 1px;
  display: inline-block;
  border-radius: 100%;
  padding: 0.65em;
  margin: 0 auto 0.5em auto; /* Reduced bottom margin to 0.5em */
  cursor: default;
  text-align: center;
  position: relative;
  overflow: hidden;
  font-size: 6.25rem;
  width: 2.25em;
  height: 2.25em;
}

.icon.major i {
  display: inline-block;
  width: 2.25em;
  height: 2.25em;
  line-height: 2.2em;
  border-radius: 100%;
  border: solid 1px;
  text-align: center;
  vertical-align: middle;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
}

.icon.alt {
  display: inline-block;
  border: solid 1px;
  border-radius: 100%;
}

.icon.alt:before {
  display: block;
  font-size: 1.25em;
  width: 2em;
  height: 2em;
  text-align: center;
  line-height: 2em;
}

.icon.style1 {
  color: #336929;
}

.icon.style2 i {
  color: #2f54b3;
}
.icon.style3 i {
  color: #8e177a;
}

/* Mobile responsiveness: Stack <li> tags vertically */
@media screen and (max-width: 768px) {
  .features {
    width: 100%; /* Remove extra width for mobile */
    margin: 0; /* Reset margin */
  }

  .features > li {
    width: 100%; /* Full width for stacking */
    margin-left: 0; /* Remove left margin */
    margin-top: 2em; /* Consistent spacing between items */
    font-weight: 400 !important; /* Normal weight for list items */
    font-size: 1em !important;
  }
  .features > li > h3 {
    margin: 0.5em 0 0.25em 0; /* Maintain heading margin */
    font-weight: bold !important; /* Bold headings */
    font-size: 1.5em !important; /* Slightly larger font size for headings */
  }
  .features li:nth-child(1),
  .features li:nth-child(2),
  .features li:nth-child(3) {
    margin-top: 2em; /* Ensure all items have same top margin */
  }

  .features li:first-child {
    margin-top: 0; /* No extra margin for first item */
  }
}
