/* ==========================================
   Notícias Destaques - Design Moderno
   ========================================== */

:root {
    --primary-color: #2563EB;
    --primary-hover: #1d4ed8;
    --white: #ffffff;
    --text-dark: #1F2937;
    --text-medium: #64748B;
    --text-light: #9CA3AF;
    --border-light: #E5E7EB;
    --bg-light: #F9FAFB;
    --shadow-card: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 24px 0 rgba(0, 0, 0, 0.15);
}

/* Reset de estilos globais que interferem no componente */
.news-highlights-section article {
    padding: 0 !important;
    text-align: left !important;
}

.news-highlights-section {
    padding: 40px 0;
}

/* Section Title */
.news-highlights-section .section-title-modern {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #000 !important;
    margin: 0 0 1rem !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1.2rem !important;
}

@media (max-width: 768px) {
    .news-highlights-section .section-title-modern {
        font-size: 1.8rem !important;
        gap: 0.8rem !important;
    }
}

.news-highlights-section .section-title-modern .title-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8) !important;
    border: 3px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important;
    font-size: 2.5rem !important;
    color: #fff !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: iconFloat 3s ease-in-out infinite !important;
    position: relative !important;
    z-index: 999 !important;
}

.news-highlights-section .section-title-modern .title-icon:before {
    content: "\e915" !important;
    display: block !important;
    font-family: PrimeIcons !important;
    font-size: 1.8rem !important;
    color: #fff !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1 !important;
    text-align: center !important;
    z-index: 1000 !important;
    position: relative !important;
}

.news-highlights-section .section-title-modern .title-icon:hover {
    transform: translateY(-8px) rotate(5deg) scale(1.05) !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8, #1e40af) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.4) inset !important;
}

@media (max-width: 768px) {
    .news-highlights-section .section-title-modern .title-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.4rem !important;
        border-radius: 12px !important;
    }

    .news-highlights-section .section-title-modern .title-icon:before {
        font-size: 1.4rem !important;
    }
}

.news-highlights-section .section-title-modern .title-text {
    color: #000 !important;
    text-shadow: none !important;
    position: relative !important;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* Container */
.news-highlights-section .news-highlights-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Layout Grid */
.news-highlights-section .news-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 32px;
}

@media (max-width: 1024px) {
    .news-highlights-section .news-layout-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Main News Section */
.news-highlights-section .main-news-section {
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .news-highlights-section .main-news-section {
        padding: 20px;
    }
}

.news-highlights-section .main-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

@media (max-width: 768px) {
    .news-highlights-section .main-news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* News Card */
.news-highlights-section .main-news-card {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-highlights-section .main-news-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.news-highlights-section .main-news-card:hover .news-image {
    transform: scale(1.05);
}

.news-highlights-section .main-news-card:hover .card-hover-overlay {
    opacity: 0.1;
}

/* Image Container */
.news-highlights-section .news-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-highlights-section .news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-highlights-section .news-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-highlights-section .news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

/* Content */
.news-highlights-section .news-content {
    padding: 24px;
}

.news-highlights-section .news-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news-highlights-section .news-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-highlights-section .news-link:hover {
    color: var(--primary-color);
}

.news-highlights-section .news-summary {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.news-highlights-section .news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.news-highlights-section .read-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-highlights-section .read-more-btn:hover {
    color: var(--primary-hover);
}

.news-highlights-section .read-more-btn i {
    font-size: 12px;
}

/* Sidebar Widgets */
.news-highlights-section .sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-highlights-section .widget-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-highlights-section .widget-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.news-highlights-section .widget-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    padding: 20px;
    color: var(--white);
}

.news-highlights-section .widget-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-highlights-section .widget-title i {
    font-size: 16px;
    opacity: 0.9;
}

.news-highlights-section .widget-content {
    padding: 24px;
}

@media (max-width: 768px) {
    .news-highlights-section .widget-content {
        padding: 16px;
    }
}

/* Popular Posts */
.news-highlights-section .popular-post-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.news-highlights-section .popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-highlights-section .popular-post-item:hover {
    transform: translateX(4px);
    background: var(--bg-light);
    margin: 0 -12px;
    padding: 16px 12px;
    border-radius: 12px;
}

.news-highlights-section .post-image-container {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
}

.news-highlights-section .post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-highlights-section .post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-highlights-section .post-date {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.news-highlights-section .post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.news-highlights-section .post-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news-highlights-section .post-link:hover {
    color: var(--primary-color);
}

.news-highlights-section .post-views {
    font-size: 11px;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-weight: 500;
}

.news-highlights-section .post-views .pi {
    font-size: 11px;
}

/* Informes */
.news-highlights-section .informes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.news-highlights-section .informe-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.news-highlights-section .informe-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-color);
}

.news-highlights-section .informe-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-highlights-section .informe-image-container {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: var(--bg-light);
}

.news-highlights-section .informe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-highlights-section .informe-item:hover .informe-image {
    transform: scale(1.05);
}

.news-highlights-section .informe-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(37, 99, 235, 0.95);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.news-highlights-section .informe-content {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-highlights-section .informe-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-highlights-section .informe-item:hover .informe-title {
    color: var(--primary-color);
}

.news-highlights-section .informe-date {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-highlights-section .informe-date .pi {
    font-size: 12px;
}

/* Empty State para Informes */
.news-highlights-section .empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px dashed var(--border-light);
}

.news-highlights-section .empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    margin-bottom: 12px;
}

.news-highlights-section .empty-icon .pi {
    font-size: 24px;
    color: var(--primary-color);
}

.news-highlights-section .empty-text {
    font-size: 14px;
    color: var(--text-medium);
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

/* Atos Normativos */
.news-highlights-section .ato-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.news-highlights-section .ato-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-highlights-section .ato-item:hover {
    transform: translateX(4px);
    background: var(--bg-light);
    margin: 0 -12px;
    padding: 16px 12px;
    border-radius: 12px;
}

.news-highlights-section .ato-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.news-highlights-section .ato-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.news-highlights-section .ato-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-highlights-section .ato-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.news-highlights-section .ato-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news-highlights-section .ato-link:hover {
    color: var(--primary-color);
}

.news-highlights-section .ato-date {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

/* Card Hover Effect */
.news-highlights-section .card-hover-overlay {
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .news-highlights-section {
        padding: 32px 0;
    }

    .news-highlights-section .news-highlights-container {
        padding: 0 12px;
    }

    .news-highlights-section .news-layout-grid {
        gap: 24px;
    }

    .news-highlights-section .main-news-card .news-content {
        padding: 20px;
    }

    .news-highlights-section .main-news-card .news-title,
    .news-highlights-section .widget-title {
        font-size: 16px;
    }

    .news-highlights-section .popular-post-item {
        gap: 12px;
    }

    .news-highlights-section .post-image-container {
        width: 60px;
        height: 45px;
    }

    .news-highlights-section .informe-image-container {
        height: 120px;
    }

    .news-highlights-section .informe-content {
        padding: 10px 12px 12px;
    }

    .news-highlights-section .informe-title {
        font-size: 13px;
    }
}
