/* ============================================
   NEWS – ESTILOS EXCLUSIVOS
   ============================================ */

/* ----- HERO (padrão) ----- */
#hero {
    position: relative;
    min-height: 36vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 50px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg, rgba(186,2,37,0.92) 0%, rgba(186,2,37,0.75) 40%, rgba(10,10,10,0.80) 100%);
}

#hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px 24px 50px;
}

.hero-content {
    max-width: 700px;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-radius: 20px;
    font-family: var(--font-inter);
    font-size: 0.7rem;
    font-weight: 600;
    color: #D1964F;
    background: rgba(209,150,79,0.2);
    border: 1px solid rgba(209,150,79,0.45);
    margin-bottom: 12px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D1964F;
}

#hero h1 {
    font-family: var(--font-inter);
    font-size: 3.0rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 8px;
}

#hero p {
    font-family: var(--font-lato);
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.hero-wave svg {
    display: block;
    width: 100%;
}

/* ----- NEWS SECTION ----- */
#news-section {
    padding: 40px 0 64px;
    background: #FFFFFF;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

/* ----- FILTER PILLS ----- */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-pill {
    padding: 6px 20px;
    border-radius: 20px;
    border: 1px solid #E5DDD5;
    background: #F5F0EB;
    color: #4A4A4A;
    font-family: var(--font-inter);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background: #E8E0D8;
    transform: translateY(-1px);
}

.filter-pill.active {
    background: #BA0225;
    color: #FFFFFF;
    border-color: #BA0225;
    box-shadow: 0 2px 8px rgba(186, 2, 37, 0.20);
}

/* ----- FEATURED ARTICLE ----- */
.featured-card {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    background: #FDFAF7;
    border: 1px solid #F0EAE4;
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
}

.featured-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

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

.featured-card:hover .featured-image img {
    transform: scale(1.03);
}

.featured-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 14px;
    border-radius: 20px;
    font-family: var(--font-inter);
    font-size: 0.65rem;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 14px;
    border-radius: 20px;
    font-family: var(--font-inter);
    font-size: 0.65rem;
    font-weight: 600;
    color: #FFFFFF;
    background: #D1964F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content {
    padding: 24px 28px;
}

.featured-meta {
    display: flex;
    gap: 12px;
    font-family: var(--font-lato);
    font-size: 0.8rem;
    color: #4A4A4A;
    margin-bottom: 8px;
}

.featured-content h2 {
    font-family: var(--font-inter);
    font-size: 1.4rem;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.3;
    margin-bottom: 10px;
}

.featured-content p {
    font-family: var(--font-lato);
    font-size: 0.95rem;
    color: #4A4A4A;
    line-height: 1.7;
    margin-bottom: 16px;
}

.read-full {
    font-family: var(--font-inter);
    font-size: 0.85rem;
    font-weight: 600;
    color: #BA0225;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.read-full:hover {
    opacity: 0.7;
}

/* ----- ARTICLE LIST ----- */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #F0EAE4;
    background: #FDFAF7;
    transition: all 0.25s ease;
}

.article-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.article-image {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #F5F0EB;
}

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

.article-item:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.article-category {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-family: var(--font-inter);
    font-size: 0.55rem;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    align-self: flex-start;
}

.article-content h3 {
    font-family: var(--font-inter);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.3;
    margin-bottom: 4px;
}

.article-content p {
    font-family: var(--font-lato);
    font-size: 0.8rem;
    color: #4A4A4A;
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 10px;
    font-family: var(--font-lato);
    font-size: 0.7rem;
    color: #6A6A6A;
    margin: 6px 0 4px;
}

.read-more {
    font-family: var(--font-inter);
    font-size: 0.75rem;
    font-weight: 600;
    color: #BA0225;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.read-more:hover {
    opacity: 0.7;
}

/* ----- SIDEBAR ----- */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ============================================
   NEWSLETTER - SIDEBAR
   ============================================ */
.newsletter-box {
    background: #BA0225;
    border-radius: 16px;
    padding: 24px 20px;
    height: 340px; /* Altura TOTAL fixa */
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.newsletter-tag {
    font-family: var(--font-inter);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #D1964F;
    display: block;
    margin-bottom: 4px;
    height: 18px;
    line-height: 18px;
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.newsletter-box h3 {
    font-family: var(--font-inter);
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px 0;
    min-height: 28px;
    flex-shrink: 0;
    /* Remove o white-space: nowrap para quebrar linha */
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.newsletter-box .newsletter-desc {
    font-family: var(--font-lato);
    font-size: 1rem;  /* Mantém o tamanho original */
    color: #FFFFFF;      /* BRANCO PURO */
    line-height: 1.5;
    margin: 0 0 16px 0;
    min-height: 40px;
    flex-shrink: 0;
    white-space: normal;
    word-wrap: break-word;
    opacity: 0.9;        /* Leve transparência para suavizar, se quiser */
}

/* Formulário com altura fixa */
.newsletter-box form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    margin-top: auto;
}

.newsletter-box form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
    color: #FFFFFF;
    font-family: var(--font-lato);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    height: 46px;
    flex-shrink: 0;
}

.newsletter-box form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.5);
    opacity: 1;
}

.newsletter-box form input[type="email"]:focus {
    border-color: #D1964F;
    background: rgba(255,255,255,0.18);
}

.newsletter-box form input[type="email"]:focus::placeholder {
    color: rgba(255,255,255,0.3);
}

.newsletter-box form button {
    padding: 14px 16px;
    border-radius: 8px;
    border: none;
    background: #8f011c;
    color: #FFFFFF;
    font-family: var(--font-inter);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    height: 46px;
    min-height: 46px;
    flex-shrink: 0;
}

.newsletter-box form button:hover {
    opacity: 0.85;
}

/* Estado de sucesso */
.newsletter-success {
    text-align: center;
    padding: 8px 0;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.newsletter-success span {
    font-size: 2rem;
    color: #FFFFFF;
    display: block;
}

.newsletter-success p {
    color: #FFFFFF !important;
    margin-bottom: 0 !important;
    font-family: var(--font-lato);
    font-size: 0.9rem;
}

/* Categories */
.categories-box h4 {
    font-family: var(--font-inter);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #4A4A4A;
    margin-bottom: 12px;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    background: transparent;
    color: #4A4A4A;
    font-family: var(--font-lato);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    border-top: none;
    border-right: none;
    border-bottom: none;
}

.category-item:hover {
    background: #F5F0EB;
}

.category-item.active {
    background: rgba(186, 2, 37, 0.06);
    font-weight: 600;
}

.category-count {
    font-family: var(--font-inter);
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 12px;
    background: #F0EAE4;
    color: #4A4A4A;
}

.category-item.active .category-count {
    background: rgba(186, 2, 37, 0.15);
    color: #BA0225;
}

/* Topics */
.topics-box h4 {
    font-family: var(--font-inter);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #4A4A4A;
    margin-bottom: 12px;
}

.topics-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-tag {
    padding: 4px 14px;
    border-radius: 16px;
    border: 1px solid #E5DDD5;
    background: #F5F0EB;
    color: #4A4A4A;
    font-family: var(--font-lato);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topic-tag:hover {
    background: #BA0225;
    color: #FFFFFF;
    border-color: #BA0225;
}

/* ----- NO NEWS ----- */
.no-news {
    font-family: var(--font-lato);
    font-size: 0.95rem;
    color: #4A4A4A;
    text-align: center;
    padding: 40px 0;
}

/* ============================================
   NEWS MODAL - ESTILOS MELHORADOS
   ============================================ */
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

.news-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.news-modal-content {
    position: relative;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px 48px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    animation: modalContentIn 0.3s ease;
}

.news-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4A4A4A;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 4px 8px;
}

.news-modal-close:hover {
    color: #BA0225;
}

.news-modal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #BA0225;
    font-family: var(--font-inter);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 16px;
    transition: opacity 0.2s ease;
}

.news-modal-back:hover {
    opacity: 0.7;
}

.news-modal-body {
    font-family: var(--font-lato);
    color: #1A1A1A;
    line-height: 1.8;
}

.news-modal-body h1 {
    font-family: var(--font-inter);
    font-size: 1.6rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.news-modal-body h2 {
    font-family: var(--font-inter);
    font-size: 1.2rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 28px 0 12px 0;
    line-height: 1.3;
}

.news-modal-body h3 {
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 20px 0 10px 0;
    line-height: 1.3;
}

.news-modal-body .modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: #6A6A6A;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0EAE4;
}

.news-modal-body .modal-meta .modal-category {
    font-weight: 600;
    color: #BA0225;
}

.news-modal-body .modal-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333333;
}

.news-modal-body .modal-content p {
    margin: 0 0 12px 0;
}

.news-modal-body .modal-content ul {
    padding-left: 24px;
    margin: 8px 0 16px 0;
    list-style-type: disc;
}

.news-modal-body .modal-content ul li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.news-modal-body .modal-content strong {
    color: #BA0225;
    font-weight: 700;
}

.news-modal-body .modal-content br {
    display: block;
    content: "";
    margin: 4px 0;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalContentIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsivo */
@media (max-width: 768px) {
    .news-modal-content {
        padding: 24px 20px;
        max-height: 95vh;
    }

    .news-modal-body h1 {
        font-size: 1.2rem;
    }

    .news-modal-body h2 {
        font-size: 1rem;
    }

    .news-modal-body .modal-content {
        font-size: 0.85rem;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .news-modal-content {
        padding: 24px 20px;
        max-height: 95vh;
    }

    .news-modal-body h1 {
        font-size: 1.2rem;
    }

    .news-modal-body .modal-content {
        font-size: 0.85rem;
    }
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 1024px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .news-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    #hero {
        min-height: 40vh;
        padding-top: 40px;
    }

    #hero .container {
        padding: 24px 16px 40px;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.6rem;
        padding: 4px 12px;
    }

    .featured-image {
        height: 200px;
    }

    .featured-content {
        padding: 16px 18px;
    }

    .featured-content h2 {
        font-size: 1.1rem;
    }

    .article-item {
        flex-direction: column;
        padding: 14px 16px;
    }

    .article-image {
        width: 100%;
        height: 160px;
    }

    .news-sidebar {
        grid-template-columns: 1fr;
    }

    .filter-pills {
        gap: 6px;
    }

    .filter-pill {
        padding: 4px 14px;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .featured-image {
        height: 160px;
    }

    .featured-content h2 {
        font-size: 1rem;
    }

    .featured-content p {
        font-size: 0.85rem;
    }

    .article-content h3 {
        font-size: 0.85rem;
    }

    .article-image {
        height: 120px;
    }
}