.blocks-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.blocks-wrapper-main {
    position: relative;
    overflow: hidden;
    padding-left: 3rem;
    min-height: 32.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    padding: 2.5rem 1.5rem 2.5rem 4.5rem;
    background-position: 100% center;
    background-repeat: no-repeat;
    background-size: 200% 100%;
    transition:
        background-position 0.5s ease,
        color 0.5s ease;
    background-image: linear-gradient(
        90deg,
        var(--secondary) 0,
        var(--secondary) 50%,
        transparent 50%,
        transparent 100%
    );
}


.blocks-wrapper-main::before {
    content: "";
    width: 3rem;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: var(--secondary);
    z-index: 2;
}

.blocks-header {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
}

.blocks-creative {
    flex: 1 0 auto;
    padding-bottom: 1.25rem;
}

.blocks-creative img {
    display: block;
    width: calc(100% + 4.5rem);
    margin-left: -4.5rem;
    height: auto;
    z-index: 1;
}

.blocks-link {
    text-decoration: none;
    color: #000;
    
}

.blocks-header::after {
    content: "";
    display: block;
    width: 8.125rem;
    margin-bottom: 1.75rem;
    border-top: 2px solid currentColor;
}

.blocks-wrapper-heading {
    font-size: 1.375rem;
}

.blocks-wrapper-heading > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: currentColor;
    text-decoration: none;
    transition: none;
}

.blocks-body {
    min-height: 10.5rem;
    display: flex;
    align-items: center;
}

.blocks-hot-zone {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.blocks-wrapper-main:hover {
    background-position: 0% center;
    color: #fff;
}

.blocks-wrapper-main:hover .blocks-creative img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.blocks-wrapper-main:hover .blocks-link {
    color: #fff;
    transition: color 0.5s ease;
}


@media (max-width: 1024px) {
    .blocks-wrapper {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .blocks-wrapper {
        grid-template-columns: 1fr;
    }
}