.header-card {
    background: linear-gradient(95.44deg, rgb(78, 35, 255) 5.29%, rgb(110, 41, 250) 42.52%, rgb(155, 50, 243) 94.71%) border-box border-box;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    
}

.header-card .search-apps {

}

.header-card .search-apps input {

}

.header-card .search-apps {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 5px 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-card .search-apps::before {
    content: "\f002"; /* Unicode for Font Awesome search icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 16px;
    margin-right: 10px;
    color: #888;
}

.header-card .search-apps input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    padding: 10px 0;
    background: transparent;
}

.header-card .search-apps input::placeholder {
    color: #aaa;
}
.card-section {
    padding: 20px;
}

.card-section h3 {
    font-size: 20px;
    font-weight: 600;
}

.cards-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Two equal columns */
    gap: 20px; /* Space between the grid items */
  }
/* Medium screens (e.g., tablets) */
@media (max-width: 1024px) {
    .cards-container {
      grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    }
  }
  
  /* Small screens (e.g., mobile devices) */
  @media (max-width: 768px) {
    .cards-container {
      grid-template-columns: repeat(1, 1fr); /* 1 column */
    }
  }
  .card-link {
    text-decoration: none;
  }

.opacity-animation {
  transition: opacity 0.5s ease;
}

.opacity-animation.opacity-animation-show {
  opacity: 0;
}

  
  .card .icon-container {
    background-color: #fef5fa;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    margin-right: 16px;
  }
  
  .card .icon-container img {
    width: 50px;
    height: 50px;
  }
  
  .card .content {
    flex-grow: 1;
  }
  
  .card .content h3 {
    margin: 0;
    color: #333;
    font-size: 1rem;
    display: -webkit-box; /* Enables multi-line truncation */
    -webkit-line-clamp: 1; /* Limits text to 2 lines */
    -webkit-box-orient: vertical; /* Specifies the box orientation */
    overflow: hidden; /* Hides overflowing content */
    text-overflow: ellipsis; /* Adds "..." to overflowing text */
    word-break:break-all;
  }
  
  .card .content p {
    margin: 4px 0 0;
    color: rgb(107, 114, 128);
    display: -webkit-box; /* Enables multi-line truncation */
    -webkit-line-clamp: 2; /* Limits text to 2 lines */
    -webkit-box-orient: vertical; /* Specifies the box orientation */
    overflow: hidden; /* Hides overflowing content */
    text-overflow: ellipsis; /* Adds "..." to overflowing text */
    word-break:break-all;
  }
  
  .card .star-icon,.card .favorite-icon {
    margin-left: 8px;
    align-self: flex-start;
    cursor: pointer;
    color: gray;
    transition: color 0.3s ease;
    font-size: 16px;
  }
  .favorite-icon.active {
    color: orange;
  }


  .all-apps-header {
    display: flex;
    justify-content: space-between;
  }

  .sort-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  /* Styling for the label */
    .sort-label {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 8px;
        
    }

    /* Styling for the select dropdown */
    .sort-select {
        padding: 10px 15px; /* Nice padding around the dropdown text */
        border: 1px solid #ccc; /* Light border color */
        border-radius: 5px; /* Rounded corners for the select box */
        background-color: #f9f9f9; /* Light background color */
        cursor: pointer; /* Pointer cursor for better UX */
        transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transition on focus */
    }

    /* Hover effect for select box */
    .sort-select:hover {
        border-color: #888;
    }

    /* Focus effect for select box */
    .sort-select:focus {
        border-color: #5e9f87; /* Border color when focused */
        box-shadow: 0 0 8px rgba(94, 159, 135, 0.5); /* Subtle shadow on focus */
        outline: none; /* Remove default focus outline */
    }