@charset "UTF-8";

.news-section {
    padding: 35px 20px;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Card base */
.news-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Hover elegante */
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 50px rgba(0,0,0,0.28);
}

.news-card:hover img {
    transform: scale(1.1);
    filter: blur(2px);
}

/* Overlay animado */
.news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 25, 50, 0.85),
        rgba(10, 25, 50, 0.25),
        transparent
    );
    display: flex;
    align-items: flex-end;
    padding: 22px;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.4s ease;
}

.news-card:hover .news-overlay {
    transform: translateY(0);
    opacity: 1;
}

.news-text {
    color: #fff;
}

.news-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ec5ff;
    display: block;
    margin-bottom: 6px;
}

.news-text h3,
.news-text h4 {
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

/* Tamanhos */
.news-card.large {
    height: 420px;
}

.news-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-card.small {
    height: 198px;
}

/* Animação de entrada */
.slide-left {
    animation: slideLeft 0.8s ease forwards;
    opacity: 0;
}

.slide-right {
    animation: slideRight 0.8s ease forwards;
    opacity: 0;
}

.slide-right.delay {
    animation-delay: 0.15s;
}

@keyframes slideLeft {
    from { transform: translateX(-40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Botão */
.news-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-news {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    background: linear-gradient(135deg, #1e4fa1, #2f6fe0);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(47,111,224,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-news:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(47,111,224,0.5);
}

/* Responsivo */
@media (max-width: 900px) {
    .news-container {
        grid-template-columns: 1fr;
    }

    .news-card.large,
    .news-card.small {
        height: 260px;
    }
}
