.case-study-section {
    padding: 16px;
}

.case-study-section__title {
    color: var(--prosem-dark-color);
    margin-bottom: 32px;
}

.case-study-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 2px;
}

.case-study {
    height: 300px;
    width: 100%;
    border-radius: 16px;
    background-size: cover;
    overflow: hidden;
}

.case-study__content {
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: block;
    background-color: var(--prosem-dark-overlay);
    transition: background-color 0.3s linear;
    color: var(--prosem-light-color);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.case-study__description {
    width: 100%;
}

.case-study__anchor {
    text-decoration: none;
}

.case-study__content .h3 {
    color: inherit;
    overflow: hidden;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.case-study__content:hover {
    background-color: var(--prosem-primary-overlay);
    color: var(--prosem-dark-color);
}

.case-study__button {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s linear;
    background-color: var(--prosem-dark-color);
    color: var(--prosem-light-color);
    padding: 8px 16px;
    font-size: 14px;;
}

.case-study__button:hover {
    background-color: var(--prosem-dark-color);
    color: var(--prosem-light-color);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

.case-study__content:hover .case-study__button {
    opacity: 1;
    pointer-events: all;
}

.case-study__text {
    color: var(--prosem-gray-color);
    margin-top: 8px;
    overflow: hidden;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.case-study__content:hover .case-study__text {
    color: inherit;
}

.case-study__view-all .case-study__content {
    background-color: var(--prosem-primary-color);
    color: var(--prosem-dark-color);
    align-items: center;
    justify-content: center;
    transition: all 0.3s linear;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
}

.case-study__view-all .case-study__content:hover {
    background-color: var(--prosem-dark-color);
    color: var(--prosem-light-color);
}

@media screen and (min-width: 860px) {
    .case-study-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .case-study-section__title {
        margin-bottom: 96px;
    }
}

@media screen and (min-width: 1200px) {
    .case-study-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1400px) {
    .case-study-section {
       max-width: 1320px;
       margin: auto;
    }

}

@media (pointer: coarse) {
    .case-study__button {
        opacity: 1!important;
        border: 1px solid var(--prosem-light-color);
        pointer-events: all;
    }
}