/* Feature Section Styling */
.feature-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5%;
    background-color: #ffffff;
    overflow: hidden;
}

/* Feature Container */
.feature-container {
    display: flex;
    align-items: center;
    position: relative;
}

/* Individual Feature Card */
.feature-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    width: 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(100px);
    /* transition: opacity 0.8s ease-out, transform 0.8s ease-out; */
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.feature-card.active {
    opacity: 1;
    transform: translateX(0);
}

/* Overlapping Effect */
.feature-card:not(:first-child) {
    margin-left: -7px;
}

/* Feature Card Hover */
.feature-card:hover {
    transform: translateY(-15px);
}

/* Feature Card Image */
.feature-card img {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
}

/* Feature Card Text */
.feature-card h3 {
    font-size: 1rem;
    font-weight: bold;
    font-style: italic;
    color: #004aad;
    padding: 5px;
}

/* Right Side Text */
.feature-text {
    text-align: right;
    font-size: 2rem;
    font-weight: bold;
    font-style: italic;
}

.feature-text span {
    color: #898584;
}

.feature-text strong {
    color: #004aad;
    font-size: 2.2rem;
}

@media (min-width: 1900px) {
  .feature-section {
    padding: 100px 5%;
    gap: 60px;
  }

  .feature-container {
    gap: -10px;
  }

  .feature-card {
    width: 240px;
    height: 240px;
    padding: 40px;
  }

  .feature-card img {
    width: 120px;
    margin-bottom: 20px;
  }

  .feature-card h3 {
    font-size: 1rem;
  }

  .feature-text {
    font-size: 2.6rem;
  }

  .feature-text strong {
    font-size: 3rem;
  }
}


@media (max-width: 1400px) {
  .feature-section {
    gap: 40px;
  }

  .feature-container {
    margin-bottom: 30px;
  }

  .feature-card {
    width: 160px;
    height: 160px;
    margin: 10px;
    transform: translateX(0); /* Prevent initial overflow */
  }
  .feature-card:not(:first-child) {
    margin-left: -19px;
}
  .feature-card h3 {
    font-size: 0.6rem;
  }
  .feature-card img {
    width: 70px;
    height: auto;
    margin-bottom: 15px;
}
.feature-text {
  text-align: right;
  font-size: 1.5rem;
  font-weight: bold;
  font-style: italic;
  margin-left: -48px;
}

.feature-text span {
  color: #898584;
}

.feature-text strong {
  color: #004aad;
  font-size: 1.8rem;
  }
}

/* Tablets and Small Laptops */
@media (max-width: 991px) {
    .feature-section {
      margin-top: -80px;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 30px;
    }
  
    .feature-container {
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 30px;
    }
  
    .feature-card {
      width: 160px;
      height: 160px;
      margin: 10px;
      transform: translateX(0); /* Prevent initial overflow */
    }
  
    .feature-text {
      font-size: 1.6rem;
      text-align: center;
    }
  
    .feature-text strong {
      font-size: 1.8rem;
    }
  }
  
  @media (max-width: 576px) {
    .feature-section {
      padding: 100px 20px;
    }
  
    .feature-card {
      width: 140px;
      height: 140px;
      padding: 20px;
    }
  
    .feature-card img {
      width: 70px;
      margin-bottom: 10px;
    }
  
    .feature-card h3 {
      font-size: 0.9rem;
    }
  
    .feature-text {
      font-size: 1.3rem;
    }
  
    .feature-text strong {
      font-size: 1.6rem;
    }
  }

  @media (hover: none) {
    .feature-card:hover {
      transform: none;
    }
  }
  