// M
@media screen and (min-width: 601px) and (max-width: 1000px) {
  .features {
    flex-wrap: wrap !important;
    gap: 32px 16px !important;
  }
  .featureCard {
    max-width: 50% !important;
    flex: 1 0 45% !important;
  }
  .main {
    gap: 32px !important;
  }
}

// S
@media screen and (max-width: 600px) {
  .features {
    flex-wrap: wrap;
  }
  .featureCard {
    max-width: 50% !important;
    flex: 1 0 40% !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;

    .featureTitle {
      text-align: center !important;
    }
    .featureDescription {
      display: none !important;
    }
  }

  .main {
    gap: 16px !important;
  }
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.features {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;

  .featureCard {
    // reset
    text-decoration: none;
    h2 {
      margin: 0;
    }
    p {
      margin: 0;
    }

    display: flex;
    flex: 1 1 25%;
    align-items: flex-start;
    gap: 16px;
    min-height: 110px;

    &:hover {
      transition: all 0.2s ease-out;
      transform: scale(1.04, 1.04);
      opacity: 0.8;
    }

    .icon {
      filter: var(--rs-fully-featured-invert-filter, none);
      display: flex;
      width: 32px;
      height: 32px;
      justify-content: center;
      align-items: center;
    }

    .featureContent {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
      gap: 8px;

      .featureTitle {
        color: var(--rs-fully-featured-title-color, #0b0c0e);

        font-size: 18px;
        font-style: normal;
        font-weight: 700;
        line-height: 150%; /* 27px */
      }

      .featureDescription {
        color: var(--rs-fully-featured-desc-color, #6b7075);

        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 23.8px; /* 158.667% */
      }
    }
  }
}

// ---------- dark mode
:global {
  html:not(.dark) {
    --rs-fully-featured-title-color: #0b0c0e;
    --rs-fully-featured-desc-color: #6b7075;
    --rs-fully-featured-invert-filter: none;
  }

  html.dark {
    --rs-fully-featured-title-color: white;
    --rs-fully-featured-desc-color: #c6cacd;
    --rs-fully-featured-invert-filter: invert(1);
  }
}
