/*
Portalnews 1.8.0 - Hero Destaques
*/

.portalnews-hero-destaques {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 14px;
    width: 100%;
    margin: 0 0 24px;
}

.portalnews-hero-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #111;
    border-radius: 10px;
}

.portalnews-hero-main {
    min-height: var(--pnh-main-height, 440px);
    grid-row: 1 / span 4;
}

.portalnews-hero-secondary {
    min-height: calc((var(--pnh-main-height, 440px) - 42px) / 4);
}

.portalnews-hero-card:nth-child(n+2) {
    grid-column: 2;
}

.portalnews-hero-thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    color: #ffffff;
    text-decoration: none !important;
    overflow: hidden;
}

.portalnews-hero-thumb img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.portalnews-hero-card:hover .portalnews-hero-thumb img {
    transform: scale(1.05);
}

.portalnews-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.42) 46%, rgba(0,0,0,.08) 100%);
}

.portalnews-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.portalnews-hero-main .portalnews-hero-content {
    padding: 28px;
}

.portalnews-hero-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.18;
    text-shadow: 0 3px 12px rgba(0,0,0,.70);
}

.portalnews-hero-main .portalnews-hero-title {
    font-size: 40px;
    letter-spacing: -0.7px;
    line-height: 1.08;
}

@media (max-width: 768px) {
    .portalnews-hero-destaques {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .portalnews-hero-card,
    .portalnews-hero-main,
    .portalnews-hero-secondary {
        min-height: auto;
        height: auto;
        grid-column: auto;
        grid-row: auto;
    }

    .portalnews-hero-thumb {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }

    .portalnews-hero-main .portalnews-hero-title {
        font-size: 24px;
        line-height: 1.12;
    }
}
