.pdf-card {
    padding: 40px 30px 100px 25px;
    background: var(--color-gray-100);
    position: relative;
    display: block;
    height: 100%;
}

.pdf-card:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 162px;
    height: 5px;
    background: var(--color-gray-300);
}

.pdf-card:before {
    content: "";
    position: absolute;
    right: 162px;
    bottom: 0;
    width: 5px;
    height: 5px;
    background: var(--color-gray-300);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.pdf-card .btn-tertiary {
    position: absolute;
    left: 25px;
    bottom: 40px;
    padding-left: 5px;
    padding-right: 56px;
    color: var(--color-black);
    overflow: unset;
}

.pdf-card .btn-tertiary:after {
    color: var(--primary-color);
    font-size: 38px;
}

.pdf-card .btn-tertiary:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: calc(100% - 51px);
    display: block;
    height: 13px;
    background: rgba(200, 15, 46, 0.15);
    clip-path: unset;
    top: unset;
}

.pdf-card__icon {
    margin: 0 0 35px;
}

.pdf-card h4 {
    font-size: 18px;
    color: var(--primary-color-dark);
    text-transform: none;
    margin: 0 0 28px;
}

.pdf-card p {
    font-size: 16px;
    color: var(--color-black);
    font-family: var(--body-font-family);
    font-weight: normal;
    line-height: 1.5em;
    padding-right: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.pdf-card h3 {
    font-size: 32px;
    line-height: 1.2em;
    color: var(--color-black);
}

@media (min-width: 768px) {
    .pdf-card {
        padding: 40px 72px 40px 35px;
        display: flex;
        align-items: center;
        gap: 43px;
    }

    .pdf-card__image {
        width: 194px;
    }

    .pdf-card__content {
        width: calc(100% - 194px - 43px);
    }

    .pdf-card .btn-tertiary {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 28px;
    }

    .pdf-card:after {
        width: 325px;
    }

    .pdf-card:before {
        right: 325px;
    }

    .pdf-card p {
        padding-right: 0;
    }
}

@media (min-width: 1200px) {
    .pdf-card {
        padding: 30px 26px 30px 35px;
    }

    .pdf-card-item {
        &:hover {
            .pdf-card {
                transition: all ease-in 0.3s;
                background-color: #f1dcdd;

                &::after, &::before {
                    transition: all ease-in 0.3s;
                    background-color: var(--primary-color);
                }
            }
        }
    }

    .pdf-card p {
        font-size: 18px;
        line-height: 1.555em;
    }

    .pdf-card .btn-tertiary {
        margin-top: 35px;
    }

    .pdf-card:hover .btn-tertiary {
        color: var(--primary-color);
    }
}
