/* Grid Layout */
.yv-case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
}

/* Card */
.yv-case-study-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    height: 100%;

    border: none;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.05);
        
    transition: all 0.3s ease;
}

.yv-case-study-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Image */
.yv-case-study-image {
    height: 220px;
    overflow: hidden;
}

.yv-case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content */
.yv-case-study-content {
    padding: 20px 20px 30px;

    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Text Area */
.yv-case-study-text {
    flex-grow: 1;
}

/* Title */
.yv-case-study-title {
    font-size: 22px;
    line-height: 26px;
    margin: 0;
    color: #2B2B2B;
    font-weight: 600;
}

/* Excerpt */
.yv-case-study-excerpt {
    margin-top: 12px;
    color: #1E1E1ECC;
    font-size: 16px;
    line-height: 1.5;
}

.yv-case-study-excerpt p {
    margin: 0;
}

/* Button Wrapper */
.yv-case-study-button {
    margin-top: auto;
}

/* Button */
.yv-case-study-btn {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 10px;
    background: #8A6DE9;
    color: #FFFFFF;
    padding: 10px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.yv-case-study-btn:hover {
    background: #2B2B2B;
    color: #FFFFFF;
}

/* Tablet */
@media (max-width: 1024px) {
    .yv-case-study-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .yv-case-study-grid {
        grid-template-columns: 1fr;
    }

    .yv-case-study-title {
        font-size: 20px;
        line-height: 24px;
    }
}