.trial-wrapper {
    width: calc(33.333% - 16px);
    max-width: 384px;
    height: 586px;

    .top-image-wrapper {
        display: flex;
        height: 320px;
        padding: 28px;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        align-self: stretch;
        border-radius: 6px 6px 0 0;
        background:
                linear-gradient(180deg, rgba(0, 0, 0, 0.00) 38.94%, #000 156.48%),
                linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%),
                var(--trial-bg) 50% / cover no-repeat,
                var(--trial-bg) -132.635px -0.417px / 340.602% 100% no-repeat;
    }

    .percentage-box {
        display: flex;
        width: 218px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .percent-wrapper {
        display: flex;
        align-items: center;
        column-gap: 3.61px;
        color: #FFF;
        font-family: DemoNumber;
        font-size: 72px;
        font-style: normal;
        font-weight: 300;
        line-height: 100%;
        margin-left: -5px;
    }

    .percent-wrapper:before{
        content: '';
        width: 40px;
        height: 40px;
        display: inline-block;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-image: url("../icons/arrow-up.svg");
    }

    .percent-wrapper.down:before{
        background-image: url("../icons/arrow-down.svg");
    }

    .percentage-box-text {
        height: 44px;
        align-self: stretch;
        color: #FFF;
        font-family: Inter;
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 120%;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .trial-details-wrapper {
        display: flex;
        height: 266px;
        padding: 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        align-self: stretch;
        background: #CCF0F6;
        border-radius: 0 0 6px 6px;
    }

    .trial-title {
        color: #002B46;
        font-family: Demo;
        font-size: 32px;
        font-style: normal;
        font-weight: 500;
        line-height: 120%;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    .trial-date-and-location {
        color: rgba(0, 43, 70, 0.70);
        font-family: Inter;
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 130%;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @media (max-width: 768px) {
        width: 294px;
        max-width: 294px;
        min-width: 294px;
        height: 356px;

        .top-image-wrapper {
            height: 200px;
            padding: 24px;
        }

        .percentage-box {
            width: 173px;
            gap: 3.33px;
        }

        .percent-wrapper {
            column-gap: 1.8px;
            font-size: 44px;
        }

        .percent-wrapper:before{
            width: 24px;
            height: 24px;
        }

        .percentage-box-text {
            height: auto;
            font-size: 14px;
        }

        .trial-details-wrapper {
            height: 156px;
            padding: 20px;
            gap: 8px;
        }

        .trial-title {
            font-size: 20px;
            -webkit-line-clamp: 3;
        }

        .trial-date-and-location {
            font-size: 14px;
        }
    }
}

@media (max-width: 768px) {
    .ajax-trials .trial-wrapper {
        width: 100%;
        max-width: 100%;
        height: 370px;

        .percent-wrapper {
            font-size: 50px;
        }

        .trial-details-wrapper {
            height: 170px;
            padding: 24px;
        }

        .trial-title {
            font-size: 22px;
        }
    }
}

/*trail - menu*/
.menu-trials-blue-blocks-trials-container .trial-wrapper {
    width: 288px;
    height: 376px;

    .top-image-wrapper {
        height: 188px;
        padding: 20px;
    }

    .percentage-box {
        width: 173px;
    }

    .percent-wrapper {
        display: flex;
        column-gap: 1.8px;
        font-size: 46px;
    }

    .percent-wrapper:before{
        width: 21px;
        height: 24px;
    }

    .percentage-box-text {
        height: 34px;
        font-size: 14px;
    }

    .trial-details-wrapper {
        display: flex;
        height: 188px;
        padding: 20px;
        gap: 8px;
    }

    .trial-title {
        font-size: 22px;
    }

    .trial-date-and-location {
        font-size: 14px;
    }

}