.filter-section {
    text-align: center;
    margin: 20px auto;
    max-width: 1100px;
}

.user-filter,
.sub-filter {
    margin-bottom: 10px;
}

.user-btn,
.filter-btn {
    padding: 14px 20px;
    margin: 5px;
    border: 2.5px solid rgb(0, 174, 239);
    cursor: pointer;
    font-size: 14px;
    border-radius: 2em;
    border-color: rgb(0, 174, 239);
    color: rgb(0, 174, 239);
    background-color: transparent;
    width: 16.55%;
    margin-left: 15px;
    margin-right: 15px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.user-btn:hover,
.filter-btn:hover {
    background-color: #00AEEF;
    color: #fff;
}

.user-btn.active,
.filter-btn.active {
    background-color: #00aeef;
    color: #ffffff;
    border: 2.5px solid rgb(0, 174, 239);
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .1) 50%, rgba(0, 0, 0, .1));
    background-repeat: repeat-x;
    background-size: 200%;
    background-position: 0 -100%;
    margin-left: 15px;
    margin-right: 15px;
}

.price-plans {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.price-plans a {
    /*flex: 1; */
    text-align: center; /* Center content inside the anchors */
}

.plan-image {
    width: 95%;
    margin: 5px;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    /* Only opacity for fade-in */
}

.plan-image.loaded {
    opacity: 1;
    /* Fade-in effect */
}

.plan-image.fade-out {
    opacity: 0;
    /* Fade-out effect */
}


/* Responsive styling for mobile and tablet screens */

@media (max-width: 768px) {
    .user-btn,
    .filter-btn {
        width: 100%;
        max-width: 420px;
        margin: 20px 0 !important;
        text-align: center;
    }
    .plan-image {
        max-width: 100%;
        margin: 20px 0 !important;
    }
}

@media (max-width: 480px) {
    .user-btn,
    .filter-btn {
        width: 100%;
        max-width: 365px;
        margin: 20px 0 !important;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }
    .plan-image {
        max-width: 100%;
        margin: 20px 0 !important;
    }
}