/* Estilos para a seção Destaques Anteriores */
/* Para ser integrado ao CSS existente do site */

.destaques-anteriores {
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    /* padding: 0 60px;*/
    /* position: relative; */
    overflow: hidden;
}

/* .destaques-anteriores::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #20c997, #0dcaf0, #6f42c1);
} */

.destaques-anteriores .section-title {
    color: #20c997;
    font-weight: 700;
    font-size: 34px; /*2.5rem;*/
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.destaques-anteriores .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #20c997, #0dcaf0);
    border-radius: 2px;
}

.destaque-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    position: relative;
    border: 1px solid rgba(32, 201, 151, 0.1);
}

.destaque-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(32, 201, 151, 0.3);
}

.destaque-image {
    height: 180px;
    background: linear-gradient(135deg, #20c997, #0dcaf0);
    position: relative;
    overflow: hidden;
}

.destaque-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.destaque-card:hover .destaque-image img {
    transform: scale(1.05);
}

.destaque-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
}

.destaque-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 180px);
}

.destaque-date {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.destaque-title {
    color: #212529;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.destaque-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.destaque-link {
    color: #20c997;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: all 0.3s ease;
}

.destaque-link:hover {
    color: #0dcaf0;
    gap: 0.75rem;
}

.destaque-link i {
    transition: transform 0.3s ease;
}

.destaque-link:hover i {
    transform: translateX(3px);
}

.destaque-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(32, 201, 151, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 99999;
}

/* OPÇÃO 1: CSS para aplicar diretamente ao link atual */
.opcao1 > a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #20c997;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #20c997;
    border-radius: 25px;
    background: transparent;
    transition: all 0.3s ease;
    margin-top: 2rem;
    float: right;
    clear: both;
}

.opcao1 > a::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.opcao1 > a:hover {
    color: white;
    background: #20c997;
    border-color: #20c997;
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3);
    transform: translateY(-2px);
}

.opcao1 > a:hover::after {
    transform: translateX(3px);
}

/* Responsividade */
@media (max-width: 1199.98px) {
    .destaque-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .destaques-anteriores .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .destaque-image {
        height: 150px;
    }
    
    .destaque-content {
        padding: 1.25rem;
        height: calc(100% - 150px);
    }
}

 @media (max-width: 768px) {
    .opcao1 > a,
    .ver-mais-link {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 576px) {

    .opcao1 > a {
        float: none;
        display: block;
        width: fit-content;
        margin: 2rem auto 0;
    }
}

/* Animação de entrada */
.destaque-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.destaque-card:nth-child(1) { animation-delay: 0.1s; }
.destaque-card:nth-child(2) { animation-delay: 0.2s; }
.destaque-card:nth-child(3) { animation-delay: 0.3s; }
.destaque-card:nth-child(4) { animation-delay: 0.4s; }
.destaque-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para versão com Slick.js (opcional) */
.destaques-anteriores.slick-enabled .slick-dots {
    bottom: -50px;
}

.destaques-anteriores.slick-enabled .slick-dots li button:before {
    color: #20c997;
    font-size: 12px;
}

.destaques-anteriores.slick-enabled .slick-dots li.slick-active button:before {
    color: #0dcaf0;
}

.destaques-anteriores.slick-enabled .slick-prev,
.destaques-anteriores.slick-enabled .slick-next {
    width: 40px;
    height: 40px;
    background: #20c997;
    border-radius: 50%;
    z-index: 1;
}

.destaques-anteriores.slick-enabled .slick-prev:before,
.destaques-anteriores.slick-enabled .slick-next:before {
    color: white;
    font-size: 16px;
}

.destaques-anteriores.slick-enabled .slick-prev {
    left: -60px;
}

.destaques-anteriores.slick-enabled .slick-next {
    right: -60px;
}

