.dynamika-revistas {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(var(--dynamika-quantidade), minmax(0, 1fr));
    gap: 40px;
}

.card-revista {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef0f2;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 520px;
    position: relative;
    /*max-height: 400px;*/
}

.card-revista:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--e-global-color-primary), white 50%);
}

.revista-img-wrapper {
    width: 100%;
    height: 95%;
    aspect-ratio: 16 / 9;
    background: #f1f3f5;
    position: relative;
    overflow: hidden;
}

.revista-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-revista:hover .revista-img-wrapper img {
    transform: scale(1.08);
}

.revista-hover-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.revista-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.card-revista:hover .revista-hover-icon {
    opacity: 1;
}

.revista-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
}

.revista-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.2s;
    /*display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;*/
    overflow: hidden;
}

.card-revista:hover .revista-title {
    color: var(--e-global-color-primary);
}

.revista-summary {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    /*-webkit-line-clamp: 3;
    -webkit-box-orient: vertical;*/
    overflow: hidden;
}

@media (max-width: 1110px) {

    .dynamika-revistas {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-revista {
        height: auto;
        min-height: 420px;
    }

    .revista-img-wrapper {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .revista-body {
        padding: 18px;
    }

    .revista-title {
        font-size: 1.05rem;
    }

    .revista-summary {
        font-size: 0.9rem;
    }
}


@media (max-width: 600px) {

    .card-revista {
        height: auto;
        min-height: 420px;
    }

    .revista-img-wrapper {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .revista-body {
        padding: 16px;
    }

    .revista-title {
        font-size: 1rem;
    }

    .revista-summary {
        font-size: 0.9rem;
    }
}