/* ===== SEÇÃO NEWS HERO ===== */
.news-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.9) 0%, rgba(0, 87, 217, 0.85) 100%);
    margin-top: 80px;
}

.news-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="rgba(10,36,99,0.8)"/><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.news-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0 40px;
    text-align: center;
    color: var(--white);
}

.news-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green-strong);
    color: var(--green-lighter);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--green-medium);
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.news-hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.news-hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ===== SEÇÃO NEWSLETTER ===== */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--green-soft) 0%, rgba(47, 170, 247, 0.1) 100%);
}

.newsletter-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow-2xl);
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid var(--green-primary);
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-green);
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(60, 220, 42, 0.3);
}

.newsletter-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark-navy);
}

.newsletter-description {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto 30px;
}

.newsletter-form .form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--white);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 4px var(--green-soft);
}

.newsletter-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.benefit-item i {
    color: var(--green-primary);
    font-size: 1rem;
}

.newsletter-message {
    padding: 15px;
    border-radius: var(--radius-md);
    margin-top: 20px;
    font-weight: 500;
    display: none;
}

.newsletter-message.success {
    background: rgba(60, 220, 42, 0.1);
    color: var(--green-dark);
    border: 1px solid var(--green-primary);
    display: block;
}

.newsletter-message.error {
    background: rgba(220, 60, 42, 0.1);
    color: #d92c2c;
    border: 1px solid #ff6b6b;
    display: block;
}

/* ===== SEÇÃO NOTÍCIAS ===== */
.news-section {
    padding: 80px 0;
    background: var(--background-light);
}

.news-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-green);
    color: var(--white);
    border-color: var(--green-primary);
    box-shadow: var(--shadow-md);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--green-primary);
}

.news-card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.05);
}

.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.news-card-category.regulamentacao {
    color: var(--royal-blue);
    background: rgba(0, 87, 217, 0.1);
    border: 1px solid rgba(0, 87, 217, 0.2);
}

.news-card-category.mercado {
    color: var(--green-primary);
    background: rgba(60, 220, 42, 0.1);
    border: 1px solid rgba(60, 220, 42, 0.2);
}

.news-card-category.logistica {
    color: var(--light-blue);
    background: rgba(47, 170, 247, 0.1);
    border: 1px solid rgba(47, 170, 247, 0.2);
}

.news-card-category.oportunidade {
    color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.news-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.news-card-date i {
    color: var(--green-primary);
}

.news-card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-navy);
    line-height: 1.4;
    flex: 1;
}

.news-card-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.news-card-source {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.news-card-source i {
    color: var(--green-primary);
}

.news-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.news-card-readmore:hover {
    gap: 12px;
    color: var(--green-dark);
}

/* ===== ALERTAS TOAST ===== */
.alerts-container {
    position: fixed;
    top: 100px;
    right: 25px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
}

.alert-toast {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-2xl);
    border-left: 4px solid;
    transform: translateX(400px);
    opacity: 0;
    animation: slideIn 0.5s ease forwards, fadeOut 0.5s ease 4.5s forwards;
    position: relative;
    overflow: hidden;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.alert-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: inherit;
    opacity: 0.3;
}

.alert-toast.success {
    border-left-color: var(--green-primary);
    background: linear-gradient(135deg, var(--white) 0%, rgba(60, 220, 42, 0.05) 100%);
}

.alert-toast.info {
    border-left-color: var(--light-blue);
    background: linear-gradient(135deg, var(--white) 0%, rgba(47, 170, 247, 0.05) 100%);
}

.alert-toast.warning {
    border-left-color: #FF9800;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 152, 0, 0.05) 100%);
}

.alert-toast.error {
    border-left-color: #f44336;
    background: linear-gradient(135deg, var(--white) 0%, rgba(244, 67, 54, 0.05) 100%);
}

.alert-toast-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.alert-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
}

.alert-toast.success .alert-toast-icon {
    background: var(--gradient-green);
}

.alert-toast.info .alert-toast-icon {
    background: linear-gradient(135deg, var(--light-blue), var(--medium-blue));
}

.alert-toast.warning .alert-toast-icon {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.alert-toast.error .alert-toast-icon {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.alert-toast-title {
    font-weight: 700;
    color: var(--dark-navy);
    font-size: 1.1rem;
}

.alert-toast-message {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.alert-toast-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-normal);
    padding: 5px;
}

.alert-toast-close:hover {
    color: var(--text-dark);
}

/* ===== INDICADOR DE CARREGAMENTO ===== */
.loading-indicator {
    text-align: center;
    padding: 30px;
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-light);
    border-top-color: var(--green-primary);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-indicator span {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .news-hero-title {
        font-size: 2.5rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .newsletter-card {
        padding: 40px 30px;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .news-hero {
        min-height: 50vh;
        margin-top: 70px;
    }
    
    .news-hero-title {
        font-size: 2rem;
    }
    
    .news-hero-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .news-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .alerts-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .alert-toast {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .news-hero {
        min-height: 45vh;
    }
    
    .news-hero-title {
        font-size: 1.8rem;
    }
    
    .news-hero-badge {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
    
    .newsletter-card {
        padding: 30px 20px;
    }
    
    .newsletter-card h2 {
        font-size: 1.6rem;
    }
    
    .newsletter-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}