.case-study-grid__wrapper {
    margin-top: 80px;
    margin-bottom: 180px;

    @media(max-width: 768px) {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    @media(max-width: 540px) {
        margin-top: 0;
    }

    h2 {
        color: #202223;
        text-align: center;
        font-family: 'Plus Jakarta Sans';
        font-size: 36px;
        font-style: normal;
        font-weight: 800;
        line-height: 48px; /* 133.333% */
        letter-spacing: -0.72px;
        text-align: center;
        margin-bottom: 32px;
    }
}

.case-study-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    flex-wrap: wrap;

    @media (max-width: 992px) {
        margin-left: 24px;
        margin-right: 24px;
        gap: 1rem;
    }

    @media (max-width: 768px) {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        margin-bottom: 48px;
    }
}

.wp-block-column {
    .case-study-grid {
        max-width: 100%;
        padding: 0;
        margin-bottom: 48px;
    }
}

.case-study-grid__item {
    width: calc(33% - 0.8rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;

    @media (max-width: 992px) {
        width: calc(50% - 0.5rem);
        min-width: 300px;
    }

    @media (max-width: 540px) {
        width: 100%;
        min-width: 300px;
    }
}

.case-study-grid__card {
    display: flex;
    padding: 33px 33px 29px 33px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex: 1 0 0;
    align-self: stretch;
    border-radius: 8px;
    border: 1px solid #ebeef5;
    background: #fff;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease-in-out;

    &:hover {
        box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.12);
    }

    @media (max-width: 768px) {
        padding: 1.5rem;
        gap: 1.25rem;
    }
}

.case-study-grid__logo {
    height: 96px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;

    img {
        max-width: 240px;
        max-height: 96px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    @media (max-width: 768px) {
        height: 80px;

        img {
            max-width: 200px;
            max-height: 80px;
        }
    }
}

.case-study-grid__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    flex: 1;
}

.case-study-grid__meta {
    padding-bottom: 0.625rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;

    .case-study-grid__industry {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
    }
}

.case-study-grid__industry {
    text-align: center;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    margin: 0;
}

.case-study-grid__description {
    width: 100%;
    padding-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    .case-study-grid__subtitle {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
}

.case-study-grid__subtitle {
    width: 100%;
    text-align: center;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin: 0;

    @media (max-width: 768px) {
        font-size: 15px;
        line-height: 22px;
    }
}

.case-study-grid__link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;

    &:hover {
        transform: translateX(2px);

        .case-study-grid__link-text {
            color: #0369a1;
        }

        .case-study-grid__link-arrow {
            color: #0369a1;
        }
    }

    &:focus {
        outline: 2px solid #0ea5e9;
        outline-offset: 2px;
        border-radius: 4px;
    }
}

.case-study-grid__link-text {
    text-align: center;
    color: #0ea5e9;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    transition: color 0.2s ease-in-out;

    @media (max-width: 768px) {
        font-size: 16px;
        line-height: 24px;
    }
}

.case-study-grid__link-arrow {
    width: 16px;
    height: 16px;
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease-in-out;

    svg {
        width: 100%;
        height: 100%;
    }
}
