/* ==========================================================================
   CARROSSEL ELEGANTE DE NOVIDADES & ARTIGOS
   ========================================================================== */
.section-news-carousel {
    position: relative;
    padding: 80px 0 90px;
    background: #ffffff;
}

.news-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
}

.news-header-flex .section-title-dotted {
    flex: 1;
    margin-bottom: 0;
}

.news-carousel-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}

.news-nav-btn:hover:not(:disabled) {
    background: #0088cc;
    border-color: #0088cc;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.25);
}

.news-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
    border-color: #e2e8f0;
    color: #94a3b8;
    transform: none;
    box-shadow: none;
}

.news-carousel-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 6px 4px 14px;
}

.news-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.news-carousel-track::-webkit-scrollbar {
    display: none; /* Safari e Chrome */
}

.news-carousel-track > article.news-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 280px;
    box-sizing: border-box;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-carousel-track > article.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 162, 234, 0.4);
    box-shadow: 0 14px 30px rgba(0, 136, 204, 0.15);
}

.news-carousel-track .news-thumb-wrap {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.news-carousel-track .news-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-carousel-track > article.news-card:hover .news-thumb-img {
    transform: scale(1.08);
}

.news-carousel-track .news-body {
    padding: 20px 18px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.news-carousel-track .news-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.news-carousel-track > article.news-card:hover .news-title {
    color: #0088cc;
}

.news-carousel-track .news-footer-date {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-carousel-footer {
    margin-top: 40px;
    text-align: center;
}

@media (max-width: 1200px) {
    .news-carousel-track > article.news-card {
        flex: 0 0 calc((100% - 48px) / 3);
    }
}

@media (max-width: 900px) {
    .news-carousel-track > article.news-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
    .news-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .news-carousel-nav {
        align-self: flex-end;
    }
}

@media (max-width: 600px) {
    .news-carousel-track > article.news-card {
        flex: 0 0 85%;
        min-width: 240px;
    }
}
